cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

OIR to set Context (Library)?

lgrant
15-Moonstone

OIR to set Context (Library)?

Hay Everyone,

Is it possible to set the Library location within the OIR for a Change Request?

Currently, I have the OIR place the CR in a folder called 'Change Requests' but I would like all CR's created in any Library or Product context to be placed in that one Library / Folder.

Possible?

Arg>/Default/Change Requests</Arg>

6 REPLIES 6
lgrant
15-Moonstone
(To:lgrant)

PTC says no, can't do it

LG_10096154
14-Alexandrite
(To:lgrant)

Hi @LG_10096154 

The thread describes how to test the context name not how to set it.

So there is no way how to set the product/library name in the OIR

 

You can create a listener customization that sets the context post save 

 

PetrH

Fadel
22-Sapphire I
(To:lgrant)

Not possible OOTB , OIR is within context  scope , you need a listener on CR creation and move them by APIs to that library 

Fede
HelesicPetr
22-Sapphire I
(To:Fadel)

Hi @Fadel 

 Library location is a context not the folder. 

PetrH

Fadel
22-Sapphire I
(To:lgrant)

@lgrant 

you can set location to your target context in a workflow expression robot, and tie the Workflow to your object using OIR to assign an advanced Lifecycle, calling the WF .  

 

something like below , where I will create a document in a library and it will b e 'Auto Moved' to a product  

//get 'Product AllDocs/Docs' folder
ObjectIdentifier oidF = ObjectIdentifier.newObjectIdentifier("wt.folder.SubFolder:5654784");
wt.folder.Folder f = (wt.folder.Folder) wt.fc.PersistenceHelper.manager.refresh(oidF);
//move the PBO to the 'Product AllDocs/Docs' folder
wt.folder.FolderHelper.service.changeFolder((wt.folder.FolderEntry )primaryBusinessObject, f );
System.out.println( "Moved !");

 

Fede
Announcements


Top Tags