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

Dynamic Stamp - Multiple Pop Up Scripts

New Here ,
Jan 11, 2023 Jan 11, 2023

Hello,

 

I need a little assistance to get multiple pop up windows in my dynamic stamp. Currently, my stamp has 32 input fields, which all pop up in one window. I would like to break the script down into 5 different script boxes, each with 6 or so input fields, with all the input fields in that scrip in one pop up box.. What can I add to my existing script to get them to pop up one after another untill all have been filled in, or skipped?

 

Below is my first script that I would like to be the first pop up. Once completed, I would like 4 more pop ups to follow for Lines 2, 3, 4, and 5.

 

Thank you in Advanced!!!

if (event.source.forReal && (event.source.stampName == "#MultiLine"))

var JSADMDlg1 = {

result: "cancel",

DoDialog: function() {

return app.execDialog(this);

},

stuff1: "txt1",

stuff2: "txt2",

stuff3: "txt3",

stuff4: "txt4",

stuff5: "txt5",

stuff6: "txt6",

stuff7: "txt7",

stuff8: "txt8",


initialize: function(dialog) {

var dlgInit = {


"txt1": this.stuff1,

"txt2": this.stuff2,

"txt3": this.stuff3,

"txt4": this.stuff4,

"txt5": this.stuff5,

"txt6": this.stuff6,

"txt7": this.stuff7,

"txt8": this.stuff8,



};

dialog.load(dlgInit);

},

commit: function(dialog) {

var oRslt = dialog.store();

this.stuff0 = oRslt["txt0"];

this.stuff1 = oRslt["txt1"];

this.stuff2 = oRslt["txt2"];

this.stuff3 = oRslt["txt3"];

this.stuff4 = oRslt["txt4"];

this.stuff5 = oRslt["txt5"];

this.stuff6 = oRslt["txt6"];

this.stuff7 = oRslt["txt7"];

this.stuff8 = oRslt["txt8"];


},

description: {

name: "JSADM Dialog",

elements: [{

type: "view",

width: 214 ,

height: 351,

elements: [{

type: "view",

width: 236,

height: 354,

char_height: 10,

elements: [{

type: "static_text",

item_id: "sta0",

name: "Recieved Electronically On (Not Invoice Date):",

},
{

type: "edit_text",

item_id: "txt1",

variable_Name: "stuff1",

width: 214,

height: 26,

char_width: 35,

},
{
type: "static_text",

item_id: "sta1",

name: "Budget Year (ex: 2022):",

},

{

type: "edit_text",

item_id: "txt1",

variable_Name: "stuff1",

width: 214,

height: 26,

char_width: 35,

},

{
type: "static_text",

item_id: "sta2",

name: "Contract #:",

},

{

type: "edit_text",

item_id: "txt2",

variable_Name: "stuff2",

width: 214,

height: 26,

char_width: 35,

},


{

type: "static_text",

item_id: "sta3",

name: "Line 1 Description:",

},

{

type: "edit_text",

item_id: "txt3",

variable_Name: "stuff3",

width: 214,

height: 26,

char_width: 35,

char_width: 8,

},
{

type: "static_text",

item_id: "sta4",

name: "Line 1 Fund:",

},

{

type: "edit_text",

item_id: "txt4",

variable_Name: "stuff4",

width: 214,

height: 26,

char_width: 35,

char_width: 8,

},
{

type: "static_text",

item_id: "sta5",

name: "Line 1 Department:",

},

{

type: "edit_text",

item_id: "txt5",

variable_Name: "stuff5",

width: 214,

height: 26,

char_width: 35,

char_width: 8,

},
{

type: "static_text",

item_id: "sta6",

name: "Line 1 Program:",

},

{

type: "edit_text",

item_id: "txt6",

variable_Name: "stuff6",

width: 214,

height: 26,

char_width: 35,

char_width: 8,

},
{

type: "static_text",

item_id: "sta7",

name: "Line 1 GL Account:",

},

{

type: "edit_text",

item_id: "txt7",

variable_Name: "stuff7",

width: 214,

height: 26,

char_width: 35,

char_width: 8,

},
{

type: "static_text",

item_id: "sta8",

name: "Line 1 Amount:",

},

{

type: "edit_text",

item_id: "txt8",

variable_Name: "stuff8",

width: 214,

height: 26,

char_width: 35,

char_width: 8,

},

]

},

{

type: "ok_cancel",

width: 64,

height: 23,

},

]

}, ]

}

JSADMDlg1.stuff0 = "";

JSADMDlg1.stuff1 = "";

JSADMDlg1.stuff2 = "";

JSADMDlg1.stuff3 = "";

JSADMDlg1.stuff4 = "";

JSADMDlg1.stuff5 = "";

JSADMDlg1.stuff6 = "";

JSADMDlg1.stuff7 = "";

JSADMDlg1.stuff8 = "";


if ("ok" == JSADMDlg1.DoDialog()) {


this.getField("txt0").value = JSADMDlg1.stuff0;

this.getField("txt1").value = JSADMDlg1.stuff1;

this.getField("txt2").value = JSADMDlg1.stuff2;

this.getField("txt3").value = JSADMDlg1.stuff3;

this.getField("txt4").value = JSADMDlg1.stuff4;

this.getField("txt5").value = JSADMDlg1.stuff5;

this.getField("txt6").value = JSADMDlg1.stuff6;

this.getField("txt7").value = JSADMDlg1.stuff7;

this.getField("txt8").value = JSADMDlg1.stuff8;


}





TOPICS
General troubleshooting , JavaScript
360
Translate
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
no replies

Have something to add?

Join the conversation