Right now I am not looking at the Java API code, but this is what I think you need to do...
You need to add two references not just one. One which is a placeholder to indicate Actlinkguides are coming next, then the next actual reference with the name of actlink guide. Thus to add 'n' number of alguides, you will first insert one marker reference (ExternalReference instance with ref type value as ReferenceType.PACKINGLIST_GUIDE) followed by 'n' number of Reference instances for all actlinkguides. [So, n+1 references is what you need to add to the reference list. packingList.add(new ExternalReference(null, null, ReferenceType.PACKINGLIST_GUIDE, null)); packingList.add(new Reference(label, null, ReferenceType.CONTAINER, name)); <== one of label/name you need to fill with your alguide name. Need to check from driver. //... may be more alguides also added to the packing list here Same model pretty much applies to other objects that you want to add to packing list. HTH Appajee -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:arslist@ARSLIST.ORG] On Behalf Of Nicholas Mitchell Sent: Monday, May 16, 2011 2:40 PM To: arslist@ARSLIST.ORG Subject: Problems with adding Active Link Guides to a Packing List using java API Hi, I have tried to put this post up a couple of times, so apologies if people ave already seen it. I am trying to create Packing Lists using the java api. I have been able to do this but I am having problems adding Active Link Gides and Filter Guides. The ReferenceType for both of these falls under the Container bucket. ReferenceType.CONTAINER, which resolves to the integer 6. When I try and add the Active Link Guide as 6 it does not show up in the Packing List. After further investigation I decided to get the References and print them to screen for a Packing List that already had an Active Link Guide. The output was as follows. Reference Name: null ReferenceType: 32783 Reference Name: <Active Link Guide> ReferenceType: 6 When I saw this, I tried to add the active link guide as ReferenceType.PACKINGLIST_GUIDE which resolves to 32783. I received and Illegal Reference Type error for 32783. So I tried to do as in the above example but the Packing List would not accept a null value for the Reference Label. I have also tried to run the driver program and it cannot add an Active Link Guide. When I had a look at JavaDriver it looks like my code so it will not do it either. Thanks Nick _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"