Forum Discussion
Trach_Van
5 years agoIdeator I
You can use the sample code from "InBasket.html"
case "project":
var acwFormNd = aras.getFormForDisplay("Activity Completion Worksheet", "by-name", false);
if (acwFormNd && acwFormNd.node) {
var w = parseInt(aras.getItemProperty(acwFormNd.node, "width"));
var h = parseInt(aras.getItemProperty(acwFormNd.node, "height"));
}
//Open Activity Completion Form
params = [window, grid.getUserData(rowID, "activityID")];
params.aras = aras;
params.resultHandler = populateActivityGrid;
params.dialogHeight = h ? h + 20/*statusbar*/ + 31 /*toolbar*/ + 28 /*title bar*/ + 25 /*safe-interval between form and relationships*/ : 600;
params.dialogWidth = w || 700;
params.resizable = true;
params.content = "../Solutions/Project/scripts/ActivityCompletionWorksheet/ACWDialog.html";
var actNd = aras.getItemById("Activity2", params[1], 0);
if (actNd) {
var dialog = window.parent.parent.ArasModules.Dialog.show("iframe", params);
}
break;
- Chris_Porter5 years agoIdeator I
Hi Trach, thanks for the response.
This seems like it would work for opening the form in a new dialog/popup window. Does something similar exist for just opening it as a tab like normal (the equivalent of uiShowItemEx) rather than a popup?
- Gayathri5 years agoIdeator I
Hi Chris/Trach,
Any update on this thread? I have a similar requirement. I need to open a custom form in a new tab instead of a new dialog. Can you please update the thread if you have any inputs or new findings?