You are viewing limited content. For full access, please sign in.

Question

Question

Create table rows from LookUp

asked on September 10, 2014

This is my case:

1. The user select an option from a drop down list.

2. I perform a LookUp with the selected option to retrieve from SQL a list of data.

3. I need to add the data in the array in a table (one row for each data) for the user to add some information.

 

Example:

1. Choose between Personal or Corporate

2. If Personal was chosen return from SQL the required fields for Personal

3. Create a table for the user to index the fields:

 

If Personal is chosen, fields to populate the table for the user to index:

First Name:

Last Name:

Social Security Number: 

 

If Corporate is chosen, fields to populate the table for the user to index:

Corporate Name:

Municipal ID:

Tax ID:

 

Of course if the case is so simple I wouldn't use the Lookup, but my real case have dozens of choices on the first drop down list and hundreds of fields already assigned on the database to each option, and the users can add on SQL more options at will.

 

Appreciate your ideas.

0 0

Answer

SELECTED ANSWER
replied on September 10, 2014 Show version history

What you need to do is set up something like the javascript in the answer here: https://answers.laserfiche.com//questions/55591/Populating-a-table-with-a-sql-lookup-values-via-dropdown-options-without-user-interaction

 

What you do though is when the field changes, you retrieve the value and then based on that value, use the suggestions in 1 of 2 hidden fields to get the list of required information. Or, just hard code that part. Either way, it is not terribly difficult. Can you post a screenshot of the table so I can get a clearer idea of what part you want to change when they choose Personal or Corporate

0 0

Replies

replied on September 10, 2014

As a side note, why do you need a table? why not use a collection and show/hide the sections based on the value in the dropdown. I fail to understand the purpose/need for the table in this process

0 0
replied on September 10, 2014

I need the table because there are dozens of options and hundreds of fields and they are managed from another application and they are dynamical changed according to the development of new regulations and new products offered by the client. 

0 0
replied on September 10, 2014

then do as that link shows you and you should do fine. 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.