Copy link to clipboard
Copied
Hi all,
I have to merge columns of a table.For these I need count of columns to be merged.These count may vary for tables.So I am trying to get these count using dialog box and then merge cells.How shall I get values using dialog box with help of script.Please do guide me
Regards,
Revathi
rg4.onClick= function() {
w.close(1);
}
var myResult = myDialog.show();
if ( myResult==1 ) {
alert( "docuHeight:"+docuHeight.text );
}
HTH
Loic
Copy link to clipboard
Copied
Hi ,
I am able to get the dialog box.My script is:
var rg1 = myDialog.add ('group');
rg1.add('statictext',undefined, 'Enter the Previous Column count:');
var docuHeight = rg1.add('edittext',undefined, '00');
rg1.add('statictext',undefined);
var rg2 = myDialog.add ('group');
rg2.alignment = "right";
var rg3 = myDialog.add ('group');
rg3.add('statictext',undefined, 'Enter the Tolerence Count:');
var docuHeight = rg3.add('edittext',undefined, '00');
var rg4 = myDialog.add ('group');
rg4.alignment = "right";
rg4.add('button', undefined, 'Cancel', {name: 'cancel'});
rg4.add('button', undefined, 'OK', {name: 'ok'});
var myResult = myDialog.show();
This gives me dialog as:
Now I have to get the values from this dialog box.How shall I get it?Please do guide.
Regards,
Revathi
Copy link to clipboard
Copied
rg4.onClick= function() {
w.close(1);
}
var myResult = myDialog.show();
if ( myResult==1 ) {
alert( "docuHeight:"+docuHeight.text );
}
HTH
Loic
Copy link to clipboard
Copied
Hi Loic,
Thank you,
It worked for me.
Regards,
Revathi