- This topic has 5 replies, 3 voices, and was last updated 12 years, 1 month ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Integrated Application Platform
Integrated Application Platform › Forums › General › Browse linked to Browse
Hello,
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
Terjec
I 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
Thank 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.
I 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.
You 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
Instead 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.