Integrated Application Platform › Forums › General › Browse linked to Browse
- This topic has 5 replies, 3 voices, and was last updated 15 years ago by
emilevanpassel.
-
AuthorPosts
-
July 12, 2011 at 2:15 pm #708
terjec
ParticipantHello,
Starting to get into Suneido and enjoying it very much! 😛
I have been searching for more information for linking two browse together and finding very little.
I’d like to do something like;
Controller
{
Controls: #(Horz (Vert
(Browse’invoices rename invoice_num to invoice_num_new’)
columns: (invoice_date, invoice_customer))
(Vert
(Browse’invoice_lines’
columns: (line_desc, line_amount)
linkField: “invoice_num”,
name: “invoice_num_new”)
))
}Have anyone made a solution to do this?
Thanx
TerjecJuly 13, 2011 at 4:28 pm #879amckinlay
KeymasterI do not have a good example for that. We usually use an AccessControl to view one invoice at a time, and then put a browse on it for the line items. (Like in the Master-Detail example in the help.)
I don’t think linkField will work with two browses.
You should be able to handle List_Selection events from the invoice browse and then SetQuery on the invoice lines browse.
I’m glad to hear you are enjoying Suneido
July 19, 2011 at 10:45 am #880terjec
ParticipantThank you for your reply.
I will look into this when I get more familiar with the language.
For now I use an Access and then I can change it later.August 3, 2011 at 12:34 pm #881terjec
ParticipantI now have an AccessControl and two Browse linked to it. This work fine. Based on the value in a field in the Access I’d like to hide one or even both linked Browse. Any example or help on how to do this would be appreciated.
August 3, 2011 at 2:50 pm #882amckinlay
KeymasterYou can Insert/Append and Remove from Vert’s and Horz’s
Or you can use SetVisible – that doesn’t adjust the layout
Or you could use a TabsControl and just select the right tab
Hopefully one of those will work for you
August 3, 2011 at 8:25 pm #883emilevanpassel
ParticipantInstead of adding/removing from a Vert Control, you could try to use a Flip Control if you want to switch between two objects. Not sure if that is smart to do, memory wise. Of course this is only interesting if you want to switch between showing Browse #1 and Browse #2. If you also want to be able to hide both, or show both, a Vert Control is a good solution.
-
AuthorPosts
- You must be logged in to reply to this topic.