Get a Jumpstart with our Sample Apps
Results 1 to 3 of 3

Thread: List control displaying children (parent/children scenario) does not load

  1. #1
    Member
    Real Name
    Jaime Ben David
    Join Date
    Jan 2011
    Location
    Karkur, Israel
    Posts
    944

    Default List control displaying children (parent/children scenario) does not load

    Hi
    I have an UX that displays an Order ( parent ) and Products for that order ( children ). The Products table is displayed using a list control ( with detail view for editing ). Backend is MariaDB.
    Data source for the list is defined as "select * from Products where OrderID = :whatID" and i defined the whatID argument setup to load at runtime the value of the {OrderID} field.

    I have a grid for all orders, where the OrderID column is a Link that will open the above mentioned UX for editing.

    When opening the UX from the grid for editing, the list is empty even though there obviously are records there, as if it didn't recognize the filtering field.

    If for debugging purposes i enter a defaul value in the OrderID field of my UX, the list will load ok...

    What am i doing wrong?

    Thanks
    Jaime

  2. #2
    "Certified" Alphaholic peteconway's Avatar
    Real Name
    Peter Conway
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    2,384

    Default Re: List control displaying children (parent/children scenario) does not load

    1. Why is there a grid.
    2. the UX will need a refresh ( the list control) in the on render complete of the UX, then the parent will get filtered (you may need to do this in the onSynchronize as well) - then any child lists.
    3. You need to think about why you are using the Grid (outside the UX) when the list control now does basically all the grid can do inside it. Much easier.
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

  3. #3
    Member
    Real Name
    Jaime Ben David
    Join Date
    Jan 2011
    Location
    Karkur, Israel
    Posts
    944

    Default Re: List control displaying children (parent/children scenario) does not load

    Thanks for your help.
    I have a 'classic' scenario where a grid displays an Orders table with all kind of options ( search, print and stuff ).
    The OrderID field is set as a link that onClick runs the action "Open a UX for adding / editing record" in editing mode of course, opening the above mentioned ux.

    The list is setup as explained, it's as if when rendering the list control in the UX, the OrderID control is still not populated. I also setup the action to already fill in the OrderID argument, still doesn't help.
    Will manually refresh the list in the onRenderComplete, will see if that helps...

Similar Threads

  1. MySql based list control hierarchical menus - children syntax needed
    By gregincolumbus in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 04-18-2016, 02:05 PM
  2. web tree control expand event to load children
    By vagkomninos in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 04-26-2014, 05:10 AM
  3. Copy Parent and Children
    By markbwillard in forum Alpha Five Version 11 - Desktop Applications
    Replies: 4
    Last Post: 02-07-2013, 01:03 AM
  4. Design question: grid with linked children and grand-children
    By WindForce in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 06-25-2012, 11:29 AM
  5. Insert Parent, children and grand children - how to
    By Zeke_11 in forum Application Server Version 10 - Web/Browser Applications
    Replies: 16
    Last Post: 11-11-2010, 07:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •