Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hi,
It was a plugin of mine. Finnaly I managed it doing something like this :
// Form declarations
String myElementId = "ident";
Form form = FormUtil.findRootForm(element);
Element myElement = FormUtil.findElement(myElementId, form, formData);
String[] values = FormUtil.getElementPropertyValues(runway, formData);
// Plugin declarations
PluginManager pluginManager = (PluginManager) AppUtil.getApplicationContext().getBean("pluginManager");
Plugin plugin = pluginManager.getPlugin("com.my.package.MyPlugin");
AppDefinition appDef = AppUtil.getCurrentAppDefinition();
Map propertiesMap = new HashMap();
propertiesMap.put("myElementId", values[0]);
ApplicationPlugin pluginMng = (ApplicationPlugin) plugin;
((PropertyEditable)pluginMng).setProperties(propertiesMap);
pluginMng.execute(propertiesMap);
I do it in the store binder of my form.
Cheers,
Matthieu.
Hi, what plugin are you using as the Post Processing Tool? To access form data you could try to use the Hash Variable#FormDataHashVariable
Hi there,
I saw that it is possible to connect a plugin to a form as Post Processing Tool but I can't find how to get data from this form. With the form path it's OK as well. I just want to know which form did the last action (create,update, delete) to update other tables in database.
Thanks,
Matthieu.