Show multiple anwsers from a custom dialog in a text box.
I have a custom dialog in which several questions are asked. I would like to display all 3 answers in one text box on my form. I got the custom dialog working, but I can't seem to get all the data in my text box. Here's the dialog box code.
var oDlg =
{
strName: "",
initialize: function(dialog)
{
dialog.load({"usnm":this.strName});
},
commit: function(dialog)
{
var data = dialog.store();
this.strName = data["cls1"];
},
description:
{
name: "Discription Of Cargo Dialog",
elements:
[
{
type: "view",
elements:
[
{
type: "cluster",
item_id: "cls1",
name: "Please Choose",
char_width: 8,
char_height: 8,
elements:
[
{
type: "radio",
item_id: "Rad1",
group_id: "GRP1",
name: "Out",
value: "Out -",
},
{
type: "radio",
item_id: "Rad2",
group_id: "GRP1",
name: "In",
value: "In -",
},
]
},
{
name: "Number of passengers:",
type: "static_text",
},
{
item_id: "pass",
type: "edit_text",
char_width: 2
},
{
name: "Number of lifts:",
type: "static_text",
},
{
item_id: "lifts",
type: "edit_text",
char_width: 2
},
{
type: "ok_cancel",
},
]
},
]
}
};
// Dialog Activation
oDlg.strName = this.getField("PRIV.DESCRIPTION OF CARGORow1").value;
if("ok" == app.execDialog(oDlg))
{
this.getField("PRIV.DESCRIPTION OF CARGORow1").value = oDlg.strName;
}
Like I said I would like all three anwsers to show in the "PRIV.DESCRIPTION OF CARGORow1" text box.
Justin Petty