Bryanjscott777 - Tuesday, June 14, 2016 3:19 PM:
Normal 0 false false false false EN-US X-NONE X-NONE
if (top.aras.setup_query.StartItem == 'inbasket')
return 'InBasket Task';
var arr = top.aras.setup_query.StartItem.split(":");
var type = arr[0];
var id = arr[1];
if (type && !id) return type;
if (aras.setup_query.StartItem == 'inbasket')
return 'InBasket Task';
var arr = aras.setup_query.StartItem.split(":");
var type = arr[0];
var id = arr[1];
if (type && !id) return type;
“runStartPage”
11 build 6073:
if (!top.aras.setup_query.StartItem) return;
var arr = top.aras.setup_query.StartItem.split(":");
var type = arr[0];
var id = arr[1];
if (!type || !id) return;
var itm = top.aras.getItemById(type, id, 0);
if (itm) top.aras.uiShowItemEx(itm, undefined);
11 sp5 build 6296:
if (!aras.setup_query.StartItem) return;
var arr = aras.setup_query.StartItem.split(":");
var type = arr[0];
var id = arr[1];
if (!type || !id) return;
var itm = aras.getItemById(type, id, 0);
if (itm) aras.uiShowItemEx(itm, undefined);
Am I missing something stupid here?
Can anyone help with a fix of provide guidance?
edonahue - Wednesday, June 15, 2016 11:05 AM:
Hi Bryan,
This is a known issue in Innovator 11.0 SP5 that will be resolved in a future version of Aras Innovator.
However, the following workaround may resolve this issue for you:
- Navigate to your code tree in a file browser (the root installation directory, default C:Program Files (x86)ArasInnovator)
- Open InnovatorClientscriptsmainTree.html for editing.
- Insert the highlighted lines code and save the file.
. . .
topWindow.arasMainWindowInfo.arasMainWindowLoading = false;
var startItem = topWindow.aras.setup_query["StartItem"];
if (startItem) {
// Workaround for StartItem
startItem = typeof(startItem)=="object" ? startItem[0] : startItem;
var itemInfo = startItem.split(":");
topWindow.aras.uiShowItem(itemInfo[0], itemInfo[1], "tab view");
}
. . .
Please be sure to clear your browser cache after making these changes.
Bryanjscott777 - Wednesday, June 15, 2016 11:38 AM:
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
edonahue - Monday, June 20, 2016 10:24 AM:
Hi Bryan,
You should be able to prevent those errors if you explicitly convert StartItem to a string before the .split() function. You will need to do so in both the selectStartPage and runStartPage Method items in the database.
Replace: aras.setup_query.StartItem.split(":")
With: aras.setup_query.StartItem.toString().split(":")
Bryanjscott777 - Monday, June 20, 2016 10:35 AM: