Auto fill based on user input

Confluence User - 21 Jul, 2022

Hi, 

I want to ask, how to populate data that had been chosen by user. All the data had been store in one datalist. 


I have this data in datalist, I create form to user choose 'UNNo' and 'Packing Group' and will auto display 'DG Category' but unfortunately it display by dropdown. I using JDBC option binder to retrieve value. from datalist. 

Do you have any ideas on how to put multiple condition on this query? currently, i only put one condition (where c_UNNO=?). When i put multiple condition like (where c_UNNO=? and c_packingGroup=?) it didn't works.


Also, do you have any idea on how to retrieve value from user input and display/to reuse for another field (in one form), before form submission. Because, #form.tablename.fieldname# only applicable if the value is already exists/after form submission.

datalists;forms;jdbc;beanshell;optionbinder;autofill;user;selectbox

1


25 Jul, 2022
confluenceUser
confluenceUser

Hi, instead of using ?, you can try to make use of Hash Variables to place the value. If you would like to retrieve the value before form submission, then you would need to use client-side JavaScript for example making use of Javascript API#getField(fieldId).

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print