Tom,
Ok, I did miss the original request for assistance hence my confusion as
to why it was being created. I did ask myself why would you really need
the portal row highlighted if you new which line you were going to enter
data. Now you have explained the details of the initial request, I can
see the optical advantage of having the whole line of data highlighted
when perusing data.
However, I'm certainly interested in the opportunity it opens for other
possible uses. Thank you.
Lee Mills
Tom Elliott wrote:
Lee,
I can see your problem.
The method I described was not designed for portals with enterable
fields - it's useful when the portal is only used for selecting a
child record from which data is displayed (possibly for editing)
elsewhere on the layout. In this case the portal fields are not
enterable so the problem doesn't arise.
Generally, I'd have thought it's pretty obvious which row the user is
in if they're actually entering data into it, but if you've only got 1
portal on your layout, you MIGHT be able to do something to get
RowHighLight to change when the user clicks or tabs into a portal
field...
unstored calc field in child table: RecordNumber = Get ( RecordNumber
) this must be evaluated in the context of the TO used for the portal
and if the portal is sorted the relationship must sort the child table
in the same order (you can then dispense with the portal sort)
RowHighLight = If ( Get ( PortalRowNumber ) = RecordNumber ;
g_HighLight ; "" )
I haven't tried this and it may or may not work. If it does, you'd
also probably have to increase the portal row height so that the
highlight shows above and/or below the data fields. Or, rather than
highlighting the whole row you could have a symbol (arrow or whatever)
in g_Highlight and put RowHighlight at one end of the row
(RowHighLight could then be text rather than a container and you could
put the symbol directly into the calc and get rid of g_HighLight)
cheers
Tom
On 22 Jan 2007, at 23:34, Lee wrote:
Hi,
I've been following this thread with interest, however when fields
virtually fill the portal row, how do you get to see the colored
'RowHighLight' even when the fields are set to be transparent. When
the user click's in a field to enter data, all fields in that row are
activated to white or the layout's background color. I've tried with
all fields and the portal row set to be transparent and the
'RowHighLight' field is still covered by the normal data entry fields
until the user has completed entering data in that row.
How do you get the portal row to maintain the RowHighLight color in
the fields while the user is entering data ?
Also, I cannot get the 'RowHighLight' field to change color unless I
click on an area not covered by a field. Am I missing something in
your description of the process.
--