Hello,

I see, lot of new property resolved in build 350, i use lot of beanshell java code in my workflows and i have got a one question only

How can i  set a group property in beanshell? /like the value  put(PROPERTY_VALUE,"value") and label, when i add new item in the box/.

Thx.

  • No labels

2 Comments

  1. Hi,

    In Bean Shell Options Binder, now you can use the code below to add grouping to an option.

    import org.joget.apps.form.model.*;
    import org.joget.apps.form.service.*;
    
    public FormRowSet test() {
    	FormRowSet f = new FormRowSet();
    	f.setMultiRow(true);
    
    	FormRow r1 = new FormRow();
    	r1.put(FormUtil.PROPERTY_VALUE, "test1");
    	r1.put(FormUtil.PROPERTY_LABEL, "tester1");
            r1.put(FormUtil.PROPERTY_GROUPING, "G1");
            f.add(r1);
    
    	FormRow r2 = new FormRow();
    	r2.put(FormUtil.PROPERTY_VALUE, "test2");
    	r2.put(FormUtil.PROPERTY_LABEL, "tester2");
            r2.put(FormUtil.PROPERTY_GROUPING, "G1");
    
    	f.add(r2);
    
    	return f;
    }
    
    return test();

    You can refer to Dynamic Cascading Dropdown List on how to use this feature.

    Hope this's help.
    Owen