How do I query external database with JDBC Binder plugin

Confluence User - 20 May, 2016

I am trying to populate a dropdown list from an external database view (MSSQL) using the JDBC Binder plugin.

I am able to create a database connection and test with success, but when I run the form the dropdown is empty.

Am I missing a setting?

Is there an error log that would capture the cause?

Thank you for your help.

 

 

jdbc

2


20 May, 2016
confluenceUser
confluenceUser

Hi Brian Baldwin

To populate a selectbox, you need two values, the id and the value, example:

"select id, firstName from database_name;"

20 May, 2016
confluenceUser
confluenceUser

Yes! that worked.

Changed the query as follows -

Before: SELECT FundingAction FROM  GCAWarehouseSQL.dbo.vSageFAInGCA

After: SELECT eGC1_Number AS ID, FundingAction FROM GCAWarehouseSQL.dbo.vSageFAInGCA

 

Thank you for your help Matthew.

 

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print