Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Browse linked to Browse

Integrated Application Platform › Forums › General › Browse linked to Browse

  • This topic has 5 replies, 3 voices, and was last updated 11 years, 7 months ago by emilevanpassel.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 12, 2011 at 2:15 pm #708
    terjec
    Participant

    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

    July 13, 2011 at 4:28 pm #879
    amckinlay
    Keymaster

    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

    July 19, 2011 at 10:45 am #880
    terjec
    Participant

    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.

    August 3, 2011 at 12:34 pm #881
    terjec
    Participant

    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. :mrgreen:

    August 3, 2011 at 2:50 pm #882
    amckinlay
    Keymaster

    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

    August 3, 2011 at 8:25 pm #883
    emilevanpassel
    Participant

    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.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language