Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
hi,
How to get values in form into Bean Shell with request/respons.
i need to get form values (lables and corresponding values) in Bean Shell. Is it possible?
plz reply me.
cheers
3 Comments
Pete
To get the form value use, #form.formName.formFieldName#. See the example code below
import java.util.Collection;
import org.joget.workflow.model.*;
import org.joget.workflow.model.service.*;
WorkflowManager wm = (WorkflowManager) pluginManager.getBean("workflowManager");
String firstname ="#form.initialIntakeForm.userFirstname#";
System.out.println("Creating a user "+firstname);
Joel Jimenez
Excuse me, help me I Can't show or get my variable or value by form I have this.
-I have Joget Commit
I'm trying this code
import java.util.Collection;
import org.joget.workflow.model.*;
import org.joget.workflow.model.service.*;
String a="#form.formulario.carrera#\n"+" #form.frm_ua_ingreso_done.carrera#\n"+
" #form.formulario.carrera#\n"+" #performer.act_id.id#\n"+
" #assignment.processId#\n"+" #variable.carne#\n"+
" #variable.status_orden#\n"+" #user.admin.id#\n";
System.out.println("Creating a user "+a);
Thanks
Bastiana
Share your app with me to help you.