Passing parameter to Query in JDBC binder

Confluence User - 03 Jun, 2017

Hi,

 

I have a select box which is populating using JDBC binder, I have to pass parameter in query's where clause so that it populates data dynamically. 

 

I tried the #form.TABLE.COLUMN# from the same form but it is not working. Please advise!

 

Regards,

TK

forms;jdbc;selectbox

3


04 Jun, 2017
confluenceUser
confluenceUser

Hi, you should probably provide more specific information than "not working". If I were to guess, could be because there isn't any default record ID for the hash variable to determine which row to return. You can try passing in the record ID eg #form. tableName . fieldId [recordId]# as mentioned in https://dev.joget.org/community/display/KBv5/Hash+Variable#HashVariable-FormDataHashVariable Hash Variable#FormDataHashVariable

05 Jun, 2017
confluenceUser
confluenceUser

Hi Anders

 

Basically I need to pass parameters in query like in below image. This is a select box which will populate according to jdbc binder query.

 

 

 

Regards,

TK

05 Jun, 2017
confluenceUser
confluenceUser

As mentioned in my answer, I doubt the hash variable can automatically determine the primary key or record ID you intend to use so you need to to pass in the record ID in the hash variable.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print