Jump to content
Sign in to follow this  
MarkWilson

How To View Single Record Of Multi-Line Portal

Recommended Posts

I have two databases, Parent and LineItems. I want to be able to display a selected description of the data in a portal with numerous items. I then want to display all the information of one record in a large, single record portal. Finally, I want to show the user which line item is select in the portal by highlighting the portal row.

Currently, I am setting a number field with a Max( LineItem::Serial_# ) + 1 and a decsending sort to highlight and dislplay the current record in the single portal. It does cause me a little grief when a line item is duplicated or deleted.

Does anyone have another approach?

Thanks

Share this post


Link to post
Share on other sites

Make the highlight a calculation of Case( Parent::global = serial, highlight ). When a row is selected, Set Field [global, LineItem::serial].

Share this post


Link to post
Share on other sites

Used a concatenated key in the LineItems file:

KeyField & "_" & Serial

Script:

Set Field [ KeySinglePortal , KeyField & "_" & LineItems::Serial ]

(KeySinglePortal as a text field)

Thank you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.