Getting and setting fields on a PNR or PNCR.

If I can use the code below to get and set fields on an SWB, what line can I use to do the same for a PNR or PNCR?

IItem item = (IItem)session.getObject(ItemConstants.CLASS_PART, "P0001")

Help is very much appreciated.

Add Comment
3 Answer(s)

Joe, please elaborate on the below acronyms.
SWB?
PNR?
PNCR?

Agile Angel Answered on July 17, 2015.
Add Comment

Hi Patrick, I’m new to Agile and was not sure if those terms were industry standard or local lingo.  An SWB is what we call our objects (each part we ship has an ‘SWB’.)  A PNR or PNCR is what we call the document we submit when we get a new revision of that part.  A PNR or PNCR increases the rev by one.  Those change orders have to be submitted and released after they get created.  Goal is to programmatically fill in the fields of that PNR or PNCR title page just like I can with the SWB title page.

Agile User Answered on July 20, 2015.
Add Comment

OK, SWB is an item (document or part) and the PNCR is a request I believe and the PNR is a change order.  Gotcha!  So you wish to automatically fill in the fields of the PNR or PNCR based on the SWB that is attached as an affected item.  Correct?  If that is true then the command line you show above should be pointed to the request or change rather than the item.  I am not a strong PX guy but have spent a considerable amount of time in the tables looking for data.

IItem item = (IItem)session.getObject(ItemConstants.CLASS_PART, "P0001")

Item will be Change
Part with be either Request or Change Order

Agile Angel Answered on July 20, 2015.
Add Comment

Your Answer

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