I want to popup an Item Type X.
That Item Type has a RelationshipType "Y" , so in that popup we have a tab "Y". That Y has a list of items (well filled)
The popup is well, the only issue is the dropbox search is empty .
If I create it as not being a popup, the search options are filled and ok.
Can you give me a tip?
The popup is being created :
var width = 820;
var height = 650;
var selectedItem = getXData(_this.getProperty("id", ""));
var itemType = selectedItem.getAttribute("type");
var itemTypeNode = aras.getItemTypeDictionary(itemType).node;
var mainWnd = aras.getMostTopWindowWithAras(window);
var params = {
title: "Update " + _this.getProperty("keyed_name", ""),
aras: aras,
item: selectedItem.node,
Item: mainWnd.Item,
isEditMode: true,
itemID: selectedItem.getID(),
itemTypeName: itemType,
keyed_name: aras.getKeyedNameEx(selectedItem),
noTabs: false,
opener: mainWnd,
itemType: itemTypeNode,
itemTypeLabel: aras.getItemProperty(itemTypeNode, "label"),
scriptsURL: aras.getScriptsURL(),
dbName: aras.getDatabase(),
dialogWidth: width,
dialogHeight: height,
resizable: true,
toolbar: 0,
tabsToDisable: [],
content: "../Solutions/Project/scripts/modalViewEdit.html"};
mainWnd.ArasModules.MaximazableDialog.show('iframe', params).promise.then(callback);
Hi Prada,
Are you just trying to open a regular item form as a new browser window rather than a new tab within Innovator? What's the trigger for your code?
Eli
Eli Donahue
Aras Labs Software Engineer
I am trying to open a Item Type X in a popup so I do it using a dialog. That it's ok. However that Item X that I am opening has a relation with Y . It show properly the tab , however the box of the search is always empty . It should not be automatically filled?
If I don't use a popup (just another tab), then the search box is automatically filled.
Hi Prada,
Is ItemType X the Activity2 ItemType, or a custom ItemType you created? The modalViewEdit.html file is specifically created for the Project Activity completion dialog, so that may be why you are not seeing the correct behavior in the relationship grid.
If you just want to open an Aras item form in a new window, you can use the following code:
var myItem = <item you want to open>;
aras.uiShowItemEx(myItem.node, "tab view", true);
Hope this helps!
Eli
Eli Donahue
Aras Labs Software Engineer