Action button on custom dialog
I am very new to this but trying to learn. The task I've been given is this:
- Have a button on a page that when pressed will open a custom dialog with 4 buttons.
- Each button should open a different external pdf file in a new window.
I feel like it's getting close but just can't get there. Any and all help will be greatly appreciated!
var Dlg =
{
description:
{
name: "Select File To Open",
elements:
[
{
type: "view",
elements:
[
{
item_id: "Header1",
name: "Select Document To Open",
type: "static_text",
},
{
item_id: "Button1",
name: "IOM",
type: "button",
Button1:function(dialog)
{
app.openDoc("/IOM/IOM.pdf", this);
},
},
{
item_id: "Button2",
name: "Submittal",
type: "button",
},
{
item_id: "Button3",
name: "Owner's Manual",
type: "button",
},
{
item_id: "Button4",
name: "Test & Balance",
type: "button",
}
]
},
{
type: "ok",
ok_name: "Close"
},
]
}
};
app.execDialog(Dlg);
