'); var rowResult = doActionBDO ('DATA_GETCONFIGROW', 'ObjectName', prodObj.CabinetObject, 'RowName', drawer); function getIndex (imageName) { for (var a = 0;; a++)//> { var tempImage = "Image" + (a+1); if (!rowResult[tempImage]) return -1; else if (imageName == rowResult[tempImage]) return (a+1); } return -1; } var DataAPIAlias = doAction('DATA_GETCONFIGDATA', 'ObjectName', prodObj.CabinetObject, 'ColName', 'DataAPICFG', 'RowName', drawer); var wizstate = doAction('DATA_GETCONFIGDATA', 'ObjectName', DataAPIAlias, 'RowName', 'WizardState', 'ColName', 'Value'); if (!wizstate || wizstate == 0) wizstate = 1; var max_wizstate = doAction('DATA_GETCONFIGDATA', 'ObjectName', DataAPIAlias, 'RowName', 'WizardNumPages', 'ColName', 'Value'); if (max_wizstate) { var WizCompleted = (parseInt(wizstate) > parseInt(max_wizstate)); max_wizstate = parseInt(max_wizstate)+1; // numbering starts at 1 and not 0, so incrementing this value will get us what we need. } else var WizCompleted = true; if (!WizCompleted) { var fileName = doAction('DATA_GETCONFIGDATA', 'ObjectName', DataAPIAlias, 'ColName', 'Value', 'RowName', 'WizardFilePrefix'); fileName = fileName + wizstate + ".htm"; write(''); } else { var indexSelected = -1; var Action1="", Page1=""; var tabSelected = doAction ('REQ_GET_FORMVALUE', 'TabSelected', 'TabSelected'); if (tabSelected) { indexSelected = getIndex (tabSelected); } if (indexSelected > 0) { Action1 = doAction ('DATA_GETCONFIGDATA', 'ObjectName', prodObj.CabinetObject, 'RowName', drawer, 'ColName', ('Action'+indexSelected.toString())); Page1 = doAction ('DATA_GETCONFIGDATA', 'ObjectName', prodObj.CabinetObject, 'RowName', drawer, 'ColName', ('Page'+indexSelected.toString())); } else { Action1 = doAction ('DATA_GETCONFIGDATA', 'ObjectName', prodObj.CabinetObject, 'RowName', drawer, 'ColName', 'Action1'); tabSelected = doAction ('DATA_GETCONFIGDATA', 'ObjectName', prodObj.CabinetObject, 'RowName', drawer, 'ColName', 'Image1'); Page1 = doAction ('DATA_GETCONFIGDATA', 'ObjectName', prodObj.CabinetObject, 'RowName', drawer, 'ColName', 'Page1'); } write(''); }