Hi Guys, i want to share discussion about how to use repeat controls. Here i show small example and use java expression syntax. I got some idea about binding java objects to fields.
Step1: Create a form and give name as Test, Create a editable field inside this form as field.
Step2: Then create a one x-page. Place the one repeat control and button and then place the following code in onclick event of this button and will show the result.
Code:
var field = document.getValue( ‘field’ );
if( !field ){ field = []; }
if( typeof field === ’string’ ){
field = [ field ];
}
field.push(”);
document.setValue( ‘field’, field );
No comments:
Post a Comment