You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Hi all,

I am building an application, and one of the requirements is to be able to populate a Select Box list from the results of a RESTful API call.

I have done as much research as I can, and it seems the solution is to create a Form Binder plugin, which does the RESTful call in normal Java code, returning the list of data.

Following information found here I have created a class which extends FormBinder, and implements FormLoadElementBinder. I successfully compiled, and imported this plugin into Joget, using the plugin importer found in the settings menu. The upload was successful, and the plugin displayed in the list of plugins with the correct name.

It is now that I am stuck though. How do I go about using this plugin, so that when a user clicks on the Select Box, the options returned via the REST call are there? I have tried reading as much documentation as I can find, but none seem to explain it in depth.

I can't find where I associate my plugin with a Select Box in Joget, so that the Select Box uses my java code to get the data to display. I tried searching in all of the options in the form-builder, but cannot find anywhere.

I would greatly appreciate any feedback, or to point me in the direction of the proper way to achieve what I need.

Thanks a lot,
Troy.

  • No labels