• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Getting values through Dialog box using script

New Here ,
Jun 20, 2017 Jun 20, 2017

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

TOPICS
Scripting

Views

627

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Jun 20, 2017 Jun 20, 2017

rg4.onClick= function() {

w.close(1);

}

      var myResult = myDialog.show();

if ( myResult==1 ) {

alert( "docuHeight:"+docuHeight.text );

}

HTH

Loic

Ozalto | Productivity Oriented - Loïc Aigon

Votes

Translate

Translate
New Here ,
Jun 20, 2017 Jun 20, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jun 20, 2017 Jun 20, 2017

Copy link to clipboard

Copied

rg4.onClick= function() {

w.close(1);

}

      var myResult = myDialog.show();

if ( myResult==1 ) {

alert( "docuHeight:"+docuHeight.text );

}

HTH

Loic

Ozalto | Productivity Oriented - Loïc Aigon

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 20, 2017 Jun 20, 2017

Copy link to clipboard

Copied

LATEST

Hi Loic,

Thank you,

It worked for me.

Regards,

Revathi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines