Passing multiple values from a datalist to a URL

Confluence User - 01 Sep, 2018

Hello team, an irritating doubt. I have been, for several hours, trying to pass through an action button, several id records from a DATALIST to the URL of a process, in an unsuccessful way. Is there any consideration that I should take into account? the list is not sending the parameters, and I do not see other options. I have action hyperlinks that are doing it correctly. When I exactly replicate the url and the parameters I use in the hyperlink to the action button, it simply does not work. Any ideas?

datalists;hyperlink;action;url

4


06 Sep, 2018
confluenceUser
confluenceUser

Hi

We do not have enough information, maybe you can supply a sample app, screenshot or screen video.

Attached is a demonstration app where you can add records and in the datalist, click the row checkboxes and click then click the Hyperlink button to add a new record with the fields automatically added into the form pulled from the datalist column (done via url parameter). Is this what you were planning to do?

Do import the app and have a run. Thank you.

APP_5828_datalist_hyperlink_parameter.jwa

07 Sep, 2018
confluenceUser
confluenceUser

Hello, I have already been able to replicate and test from the example. I have found an important feature. in the example, the list is loaded with an Advanced form binder. It works perfectly. What I have noticed is that the parameters are not passed when the list is loaded from the JDBC binder. I have tried to rename the parameter that must be passed from the query, put the name in lowercase and uppercase and still does not work. Attached, the modification of the example including a new list (list from query) already published in the Userview with a hyperlink in the area of actions. In the real application I can not load the list through the Advanced Form Binder, given the complexity of the query to generate it.

 

APP_5828_datalist_hyperlink_parameter-1-20180906151900.jwa

07 Sep, 2018
confluenceUser
confluenceUser

Hello, I have already been able to replicate and test from the example. I have found an important feature. in the example, the list is loaded with an Advanced form binder. It works perfectly. What I have noticed is that the parameters are not passed when the list is loaded from the JDBC binder. I have tried to rename the parameter that must be passed from the query, put the name in lowercase and uppercase and still does not work. Attached, the modification of the example including a new list (list from query) already published in the Userview with a hyperlink in the area of actions. In the real application I can not load the list through the Advanced Form Binder, given the complexity of the query to generate it. https://dev.joget.org/community/download/attachments/31916686/APP_5828_datalist_hyperlink_parameter-1-20180906151900.jwa?version=1&modificationDate=1536265529144&api=v2

07 Sep, 2018
confluenceUser
confluenceUser

Hi

Using JDBC should work too.

Please try the new demonstration app below with JDBC as a datasource for a datalist, and you can click the checkboxes and then click the "Hyperlink" button to open into a new form with the label fields populated with all the records label values.

Thank you.

APP_datalist_hyperlink_parameter_jdbc.jwa

 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print