Array column to set Active

272 views
Skip to first unread message

ii2team...@gmail.com

unread,
Oct 30, 2014, 11:59:59 PM10/30/14
to suppor...@runmyprocess.com
In web interface i have 2 tables, each table contains fields that are mandatory.
both tables are set not visible once the web interface is loaded. there is a radio button which chooses any one of the table. once i enter values in the table and submit, it is not working. The required fields in the other table is showing to enter values(the mandatory fields). is there any way to solve this?

Murali

unread,
Nov 2, 2014, 9:29:22 AM11/2/14
to suppor...@runmyprocess.com, ii2team...@gmail.com
Hi,
 
Below sample code, which will help you to understand how to check whether there exist incomplete mandatory fileds(including hidden) in a WI and how to update the mandatory condition for those in runtime.
 
//shows false, when there are incomplete mandatory fileds.
alert("before:"+RMPApplication.validate());
//deregister the mandatory field condition
RMPApplication.deregisterRequiredVariable("text1",true);
//shows true, when there are no incomplete mandatory fileds.
alert("after:"+RMPApplication.validate());
 
Reference example to deal with Invalid widgets in a Webinterface : http://docs.runmyprocess.com/Developer_Guide/Web_Interface/JS_Code_Examples/Invalid_Fields
Additional Ref for more similar methods usage and description: http://docs.runmyprocess.com/API_Reference/JS
 
Regards,
Murali
Reply all
Reply to author
Forward
0 new messages