[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Jens Strandberg

11/15/2005 11:10:00 PM

Normally, when you skip through a grid, the current line will be marked with
a > .

In one particular grid, I am using different colours to highlight different
lines according to various values, and in order to be able to see all lines
with the correct colour, I have set the grid property HighlightActive to "No".

Now, this has the side effect, that the current line is marked just fine
with a > - but any other line that you have made active earlier will also be
marked with a >.

Is this a bug, is there any solution - or is it just "by design" ?

Thanks in advance !

/Jens
6 Answers

Jens Strandberg

11/16/2005 11:16:00 AM

0

....on the same subject...:

Let's say that a given grid line is colour coded, eg. YELLOW, if there are
any notes related.

If I now delete the note, so that no note is linked to the line, I would
like to "re-colour" the line again, so that it appears "normal".

As far as I know, the colouring is handled by the datasource method
displayOption only, but is this method run only once (at startup of the
form), or is there any way to let the method apply again ?

Thanks in advance.
/Jens

Mike Frank

11/17/2005 12:03:00 PM

0

ExecuteQuery on the dataSource should do the trick, but then you must reselect your record.

You could try refresh, reload... (but I'm not sure about this)

Mike

Luegisdorf

11/22/2005 7:53:00 AM

0

Hi Jens

To re-color your row you can use this command in the modified() of your
Notes field:

yourTableBuffer_ds.write(); // i think this is needed, but not fully sure
yourTableBuffer_ds.clearDisplayOption(yourTableBuffer);

This should work.

regards
Patrick


"Jens Strandberg" wrote:

> ...on the same subject...:
>
> Let's say that a given grid line is colour coded, eg. YELLOW, if there are
> any notes related.
>
> If I now delete the note, so that no note is linked to the line, I would
> like to "re-colour" the line again, so that it appears "normal".
>
> As far as I know, the colouring is handled by the datasource method
> displayOption only, but is this method run only once (at startup of the
> form), or is there any way to let the method apply again ?
>
> Thanks in advance.
> /Jens

Jens Strandberg

11/22/2005 9:34:00 PM

0

Thanks Patrick,

The problem is that my "Notes" field is actually located in DocuRef, i.e.
the standard document handling "spot".

In this case, I guess that I would have to keep track of the caller, when I
open the document handling window, and once something is inserted or updated,
I would pass this information back to the caller, which would then - in turn
- execute the method on the datasource ?

Thanks in advance !

/Jens

"Luegisdorf" wrote:

> To re-color your row you can use this command in the modified() of your
> Notes field:
>
> yourTableBuffer_ds.write(); // i think this is needed, but not fully sure
> yourTableBuffer_ds.clearDisplayOption(yourTableBuffer);

Luegisdorf

11/23/2005 7:21:00 AM

0

Hi Jens

In this case that's the best way. I think you can use the caller records
data source. Do you know how to do?

Best regards
Patrick

"Jens Strandberg" wrote:

> Thanks Patrick,
>
> The problem is that my "Notes" field is actually located in DocuRef, i.e.
> the standard document handling "spot".
>
> In this case, I guess that I would have to keep track of the caller, when I
> open the document handling window, and once something is inserted or updated,
> I would pass this information back to the caller, which would then - in turn
> - execute the method on the datasource ?
>
> Thanks in advance !
>
> /Jens
>
> "Luegisdorf" wrote:
>
> > To re-color your row you can use this command in the modified() of your
> > Notes field:
> >
> > yourTableBuffer_ds.write(); // i think this is needed, but not fully sure
> > yourTableBuffer_ds.clearDisplayOption(yourTableBuffer);

Jens Strandberg

11/23/2005 7:37:00 AM

0

Hi Patrick,

Yes, I have done so in a related case (not with DocuRef though), so I will
just dig out my code from there.

Thanks for your help.

/Jens

"Luegisdorf" wrote:

> Hi Jens
>
> In this case that's the best way. I think you can use the caller records
> data source. Do you know how to do?
>
> Best regards
> Patrick
>
> "Jens Strandberg" wrote:
>
> > Thanks Patrick,
> >
> > The problem is that my "Notes" field is actually located in DocuRef, i.e.
> > the standard document handling "spot".
> >
> > In this case, I guess that I would have to keep track of the caller, when I
> > open the document handling window, and once something is inserted or updated,
> > I would pass this information back to the caller, which would then - in turn
> > - execute the method on the datasource ?
> >
> > Thanks in advance !
> >
> > /Jens
> >
> > "Luegisdorf" wrote:
> >
> > > To re-color your row you can use this command in the modified() of your
> > > Notes field:
> > >
> > > yourTableBuffer_ds.write(); // i think this is needed, but not fully sure
> > > yourTableBuffer_ds.clearDisplayOption(yourTableBuffer);