How to get Affected Item and it’s Redlines for item within Title Block infomation

How to get the affected item’s item number and within Redlines  of Title Block infornation (ex: Number..), using by Script PX.

we want to check the data between item number in affected item and item number in Redlines.

do anyone has sample code, very thanks.

Agile User Asked on May 18, 2020 in Agile PLM (v9).

import com.agile.agileDSL.ScriptObj.AgileDSLException;
import com.agile.agileDSL.ScriptObj.IBaseScriptObj;
import com.agile.agileDSL.ScriptObj.IBaseObjectScriptObj;

import com.agile.api.*;
import com.agile.px.*;

void invokeScript(IBaseScriptObj obj) {

IAgileSession session = obj.getAgileSDKSession();
IEventInfo req = obj.getPXEventInfo();
IDataObject iEco = req.getDataObject();

Iterator titleblock = iEco.getTable(ItemConstants.TABLE_REDLINETITLEBLOCK).iterator();

//start iterating through page two redlines and data
while (titleblock.hasNext()) {
IRow pagetworow = (IRow) titleblock.next();

String important_value = pagetworow.getValue(ItemConstants.ATT_PAGE_TWO_LIST11);
//String item_number = pagetworow.getValue(ItemConstants.ATT_ITEM_ITEM_NUMBER);
throw new Exception(“***”+important_value);
// throw new Exception (item_number);

}

}

 

 

i try this script, i got error

Error code : 60018
Error message : Invalid parameter.

 

what can i do?  thanks

on May 19, 2020.

Did u got the solution

on October 23, 2020.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.