OK, Cancel, Next, Back buttons Acro dialog
Hi community. Is it possible to get the (OK, Cancel, Next, Back) buttons? I'm a beginner, and I am grateful for any answer. Many thanks in advance.
var oDlg1 = {
Name: 0,
initialize: function(dialog) {
dialog.load({
"name": this.Name,
});
},
commit: function(dialog) {
var data = dialog.store();
this.Name = data["Name"];
},
description: {
name: "",
align_children: "align_left",
elements: [{
type: "view",
align_children: "align_top",
elements: [{
type: "cluster",
font: "dialog",
bold: true,
name: "",
elements: [{
name: "Name:",
type: "static_text",
}, {
item_id: "name",
type: "edit_text",
font: "dialog",
bold: true,
char_width: 25,
char_height: 2,
}],
}],
},
{
type: "ok_cancel",
ok_name: "Next",
cancel_name: "Cancel",
}]
}
};
oDlg1.Name = this.getField("Name").value;
var oDlg2 = {
Surname: "",
initialize: function(dialog) {
dialog.load({
"snam": this.Surname,
});
},
commit: function(dialog) {
var data = dialog.store();
this.Surname = data["snam"];
},
description: {
name: "Surname:",
align_children: "align_left",
elements: [{
type: "view",
align_children: "align_top",
elements: [{
type: "cluster",
font: "dialog",
bold: true,
name: "",
elements: [{
name: "Surname:",
type: "static_text",
}, {
item_id: "snam",
type: "edit_text",
font: "dialog",
bold: true,
char_width: 25,
char_height: 2,
}],
}],
},
{
type: "ok_cancel_other",
ok_name: "OK",
cancel_name: "Cancel",
other_name: "Back",
}]
}
};
oDlg2.Surname = this.getField("Surname").value;
if ("other" == app.execDialog(oDlg1)) {
} else if ("ok" == app.execDialog(oDlg2)) {
this.getField("Surname").value = oDlg2.Surname;
this.getField("Name").value = oDlg1.Name;
}?
