Alpha Video Training
Results 1 to 7 of 7

Thread: List and repeating container

  1. #1
    Member
    Real Name
    Alan Lander
    Join Date
    Jul 2015
    Posts
    7

    Default List and repeating container

    I am trying to build my first web application, and I am not familiar with coding. I have am using now a desktop application first developed in 2002, updated four years ago. In the desktop version of what I use there is a dbf table called clients, with a primary key. When a client is searched the client address, birthdate etc. fields appears. There I is also browse that populates from another set, showing all the files associated with that client, one client can have many files, with the link being client id.

    I have in my playing around with the web version of the application a list control, with search part, and when a client name is clicked in the list, fields on the ux component are populated with data from the client table (now sql table running on a MySQL database server). I then have repeating container with the file information, still linked by client id. The fields in the repeating component are bound to the table file, and the parent/child link was set up.

    I have no idea of where or what the code is to populate the repeating section when a client is chosen from the list. I tried something in the server side events, tried something on the click the column properties in the list control, and am not getting it. Looked for videos, documentation - knowing this must be a very simple thing to do.

    Sorry for what seems to me is probably a very, very basic question -any help will be, well, helpful.

  2. #2
    Member
    Real Name
    Alex
    Join Date
    Oct 2015
    Location
    Perth, WA Australia
    Posts
    146

    Default Re: List and repeating container

    Hey Alan,
    If data is bounded to the ux you want to run an action javascript "Populate Controls in a UX Component with data from Tables" from say an onSelect or onClick event within the list builder
    Alex Collier

    "The spread of computers and the Internet will put jobs in two categories. People who tell computers what to do, and people who are told by computers what to do"

    AA Builds from 5221_5152 to Pre-releases >> Deploying to IIS in AWS

  3. #3
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,121

    Default Re: List and repeating container

    If I were you I would stay away from repeating sections at all costs. It is FAR easier and superior (to me anyway) to use another list control instead. All you have to do is choose the linking fields and the parent list. There are lots of different ways though. You could also create another component and embed it, then the embedded component can filter by an argument. The argument's value can come from a field in the current list so that in effect your able to open another component and filter based on the current record.
    Lastly, with all of the options involved, just know that it isn't a basic question!

    Repeating sections work with databinding of the UX not the list control - it wouldn't surprise me if you could do it BUT that's the general rule.

    To get what your after, create a second child list. I think you will find that to be really easy to do.


    If you go the Grid route, you can use linked grids in much the same way. Personally, I find myself moving away from grids but for certain things they are just easier to build and complete with a lot less options for you to botch it - but again, I think the list control is the best.

    Good luck!
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

  4. #4
    Member
    Real Name
    Alex
    Join Date
    Oct 2015
    Location
    Perth, WA Australia
    Posts
    146

    Default Re: List and repeating container

    Great explanation charles. Right on point that this opens a whole decision tree of choices to go down. I tend to use grids for fast data entry if the intended user is on a desktop, otherwise everything else is ux with list controls coupled with viewboxs, forrmviews or stamdard controls.
    Alex Collier

    "The spread of computers and the Internet will put jobs in two categories. People who tell computers what to do, and people who are told by computers what to do"

    AA Builds from 5221_5152 to Pre-releases >> Deploying to IIS in AWS

  5. #5
    Member
    Real Name
    Alan Lander
    Join Date
    Jul 2015
    Posts
    7

    Default Re: List and repeating container

    Thank you. Adding a second list was simple- ultimately. The ultimately was that it was not working at first. I looked finally at the linking table on my SQL database. It had not transferred data correctly. I transferred the data and everything worked. I look at this as the same as forgetting to plug in the computer thirty years ago when my staff had no idea on how to work the new machine that replaced the IBM typewriter on their desk! I have to get use to checking the SQL server to make sure it is OK as well.

    There is a learning curve and I am just at the beginning. The good news is besides everything working OK.

    Again, thank you for the responses.

  6. #6
    Member
    Real Name
    Richard Battle
    Join Date
    May 2017
    Location
    Austin,TX
    Posts
    91

    Default Re: List and repeating container

    Hey Alex! When you say you are using formviews, and viewboxes...what are the advantages of those over lists and grids? I still haven't figured out when and where to use those controls.

  7. #7
    Member
    Real Name
    Alex
    Join Date
    Oct 2015
    Location
    Perth, WA Australia
    Posts
    146

    Default Re: List and repeating container

    I have realised this thread is in V11. So features of the viewbox and formview are probably not applicable. but here is my answer anyways

    One - I use the viewbox when i don't need the features of a list likke saving back to the database. I use it to solely display data without all the css and footprint the list has
    Two - I use viewbox in conjunction with a listbox and bind the data of the viewbox to the list data soucre. Usually in layouts that sit side by side as clearly dont need a second list
    Three - I tend to have both List and Viewbox on my components. Very rarely i would just use a viewbox.
    Four - The viewbox and list have different ways of dealing with each record in the HTML Template. What i mean is that list will display each record depending on your setting either vertical, horizontal or snaking, the view box will do anything you define in the HTML template along with some CSS.

    With the formview control (this is essential a viewbox with additional features to speed the dev up of Forms). Again i would use i conjunction with a listbox with a detail view.
    Alex Collier

    "The spread of computers and the Internet will put jobs in two categories. People who tell computers what to do, and people who are told by computers what to do"

    AA Builds from 5221_5152 to Pre-releases >> Deploying to IIS in AWS

Similar Threads

  1. Repeating section in Free-Form Container can it be done?
    By samyot in forum Mobile & Browser Applications
    Replies: 7
    Last Post: 11-30-2018, 06:47 PM
  2. Possible to have a container inside Repeating Section?
    By WindForce in forum Mobile & Browser Applications
    Replies: 2
    Last Post: 08-10-2016, 10:50 AM
  3. Scroll to top of repeating section container
    By Steve Workings in forum Mobile & Browser Applications
    Replies: 12
    Last Post: 05-08-2016, 10:18 PM
  4. Can't set repeating section scrollable height to fill container in a panel?
    By pcaspa in forum Mobile & Browser Applications
    Replies: 10
    Last Post: 10-07-2013, 11:37 PM
  5. Error computing HTML Template when Container put in Repeating Container
    By RichCPT in forum Application Server Version 11 - Web/Browser Applications
    Replies: 1
    Last Post: 02-29-2012, 12:37 PM

Bookmarks

Posting Permissions

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