Quote from m.burdess on January 10, 2021, 2:10 pmI wish to reduce the amount of programming, so wish to load a list of name into a ListBox, and then use these to create the information on a page.
Can you point me to the commands needed.
your
Michael
I wish to reduce the amount of programming, so wish to load a list of name into a ListBox, and then use these to create the information on a page.
Can you point me to the commands needed.
your
Michael

Quote from luishp on January 10, 2021, 3:36 pmHi @m-burdess,
Have you seen the included sample app under the ListExample folder?Regards.
Hi @m-burdess,
Have you seen the included sample app under the ListExample folder?
Regards.
Quote from m.burdess on January 13, 2021, 10:30 pm@luishp
Yes I have looked at the Listexample, but the project I am working on uses three list and each list link to information in the next list, until you get to the information.
So list one has 4 parts Route, Station, Yard and Walking Route. The Route then shows 9 bits of information in list 2, and then list 3 can be broken down to 15 more. The station and Yard is just a lists for each ( station over 160 and yards about 10). The walking routes is a list of location. And if this can be done with lists being linked, I change the area covered just by changing the list for a new area.
This also links into the question about using variable with SVG images, and reducing the amount of coding.
yours
Michael
Yes I have looked at the Listexample, but the project I am working on uses three list and each list link to information in the next list, until you get to the information.
So list one has 4 parts Route, Station, Yard and Walking Route. The Route then shows 9 bits of information in list 2, and then list 3 can be broken down to 15 more. The station and Yard is just a lists for each ( station over 160 and yards about 10). The walking routes is a list of location. And if this can be done with lists being linked, I change the area covered just by changing the list for a new area.
This also links into the question about using variable with SVG images, and reducing the amount of coding.
yours
Michael

Quote from luishp on January 13, 2021, 10:57 pm@m-burdess I don't understand where is the problem. You can populate Arrays with the required information depending on the user selection to show it in another list.
As SVG images are coded as text, you can save them on variables or external files and show each one dinamicaly when required with SetObjectHTML comand.Regards.
@m-burdess I don't understand where is the problem. You can populate Arrays with the required information depending on the user selection to show it in another list.
As SVG images are coded as text, you can save them on variables or external files and show each one dinamicaly when required with SetObjectHTML comand.
Regards.
Quote from Gaev on January 14, 2021, 3:17 am@m-burdess
So list one has 4 parts Route, Station, Yard and Walking Route. The Route then shows 9 bits of information in list 2, and then list 3 can be broken down to 15 more. The station and Yard is just a lists for each ( station over 160 and yards about 10). The walking routes is a list of location. And if this can be done with lists being linked, I change the area covered just by changing the list for a new area.
Not everybody is familiar with terms like Route, Yard, Walking Route etc.
Perhaps you can elaborate with real world values e.g.
Primary ListBox items
text1 - on selection, show List1a
text2 - on selection, show List1b
etc.ListBox List1a items
text1a - on selection, show ???
text1b - on selection, show ???ListBox List1b items
etc.Also, do you want the configuration information to be hard coded (via SetVar commands) or loaded from external files (so you do not have to recompile App when you need to change config data).
So list one has 4 parts Route, Station, Yard and Walking Route. The Route then shows 9 bits of information in list 2, and then list 3 can be broken down to 15 more. The station and Yard is just a lists for each ( station over 160 and yards about 10). The walking routes is a list of location. And if this can be done with lists being linked, I change the area covered just by changing the list for a new area.
Not everybody is familiar with terms like Route, Yard, Walking Route etc.
Perhaps you can elaborate with real world values e.g.
Primary ListBox items
text1 - on selection, show List1a
text2 - on selection, show List1b
etc.
ListBox List1a items
text1a - on selection, show ???
text1b - on selection, show ???
ListBox List1b items
etc.
Also, do you want the configuration information to be hard coded (via SetVar commands) or loaded from external files (so you do not have to recompile App when you need to change config data).
Quote from m.burdess on January 14, 2021, 1:52 pm@gaev
Sorry for my poorly written question. So, lets give a better description.
This is a project to take a written booklet (done with Excel maps) some 10 years ago, into a digit system, for the training of Train Driver on Routes, that is the information that a Driver needs to know to do his/her job.
So a Route is from one point to another via a given point. So an example may be Plymouth to London Paddington, which you can go two ways via Bristol or Westbury. Sounds easy, but this route is then broken down into smaller section, like Plymouth to Newton Abbot and then Newton Abbot to Exeter and so on until you get to Paddington. This also need to link to information about the section of the route,like Signals and places these can take you, local / company instructions to this section of line.
The Station are just that, a maps of the station and infomation about exits, First Aid Box, and Emergancy Phones etc.
The Yards are where Driver have to take a train to or from, and give him a map of the yard and local instructions needed to work safely within this area.
Walking Routes, are safe route from one place to another, either Stations or Yards.
So you asked about hard code or load from external files. I would say from external Files, as this allow for the information to be change with major system updates. Also the person doing these update, only need to know which files he can change and where it is within the system. So if the track and signaling is changed between Plymouth and Newton Abbot, he will be able create the new map (in SVG format) and overwrite with this new version.
Sorry if leaves you with more question, but it is a large project, that covers some 400+ miles of track and information.
Sorry for my poorly written question. So, lets give a better description.
This is a project to take a written booklet (done with Excel maps) some 10 years ago, into a digit system, for the training of Train Driver on Routes, that is the information that a Driver needs to know to do his/her job.
So a Route is from one point to another via a given point. So an example may be Plymouth to London Paddington, which you can go two ways via Bristol or Westbury. Sounds easy, but this route is then broken down into smaller section, like Plymouth to Newton Abbot and then Newton Abbot to Exeter and so on until you get to Paddington. This also need to link to information about the section of the route,like Signals and places these can take you, local / company instructions to this section of line.
The Station are just that, a maps of the station and infomation about exits, First Aid Box, and Emergancy Phones etc.
The Yards are where Driver have to take a train to or from, and give him a map of the yard and local instructions needed to work safely within this area.
Walking Routes, are safe route from one place to another, either Stations or Yards.
So you asked about hard code or load from external files. I would say from external Files, as this allow for the information to be change with major system updates. Also the person doing these update, only need to know which files he can change and where it is within the system. So if the track and signaling is changed between Plymouth and Newton Abbot, he will be able create the new map (in SVG format) and overwrite with this new version.
Sorry if leaves you with more question, but it is a large project, that covers some 400+ miles of track and information.
Quote from Gaev on January 14, 2021, 5:51 pm@m-burdess
Thank you for the detailed description of the elements.
Your post started off with ...
I wish to reduce the amount of programming, so wish to load a list of name into a ListBox, and then use these to create the information on a page.
... from which I gathered that what you really want is a way to ...
Populate the items in ListBox2 based on user selection of an item in ListBox1 (and perhaps populate items in ListBox3 based on user selection of an item in ListBox2).
To that end, can you elaborate on my earlier request about how the items (text) in the first and subsequent ListBoxes might look like ? ... just two or three items per box will be sufficient ... and they don't have to be real values.
You might look at the Tutorial that I had prepared to illustrate dynamic loading of ListBoxes ... you can find it in the Sample Apps/neoGSheets folder ... it is called neoGSheets-gaev-sample.neoapp
In this example, the items are stored in a Google Sheet for convenience (the neoGSheets plugin makes it simple to convert rows in Sheets to items in ListBoxes.
However, the underlying javascript library requires that the sheet containing the rows of data be accessible by all users; but there are ways around this (at the cost of a little less convenience).
The examples in the Tutorial only display the selected item (in a TextBox underneath the ListBox; but it is easy/possible to act on the selection with the display of another (dynamic) list.
Let us know if this is the kind of thing you were looking for.
Thank you for the detailed description of the elements.
Your post started off with ...
I wish to reduce the amount of programming, so wish to load a list of name into a ListBox, and then use these to create the information on a page.
... from which I gathered that what you really want is a way to ...
Populate the items in ListBox2 based on user selection of an item in ListBox1 (and perhaps populate items in ListBox3 based on user selection of an item in ListBox2).
To that end, can you elaborate on my earlier request about how the items (text) in the first and subsequent ListBoxes might look like ? ... just two or three items per box will be sufficient ... and they don't have to be real values.
You might look at the Tutorial that I had prepared to illustrate dynamic loading of ListBoxes ... you can find it in the Sample Apps/neoGSheets folder ... it is called neoGSheets-gaev-sample.neoapp
In this example, the items are stored in a Google Sheet for convenience (the neoGSheets plugin makes it simple to convert rows in Sheets to items in ListBoxes.
However, the underlying javascript library requires that the sheet containing the rows of data be accessible by all users; but there are ways around this (at the cost of a little less convenience).
The examples in the Tutorial only display the selected item (in a TextBox underneath the ListBox; but it is easy/possible to act on the selection with the display of another (dynamic) list.
Let us know if this is the kind of thing you were looking for.