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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

How to get Resulting Objects before they are Persisted to database?

hmungekar
1-Newbie

How to get Resulting Objects before they are Persisted to database?

Hi Experts,

I am trying to get resulting Objects added to the change task before they are persisted to the database, as I am trying to put a constraint on the resulting object. I want only the resulting object having design view to be permitted and if other parts are added it should not allow him to create the change notice. So is there a way I can get the resulting object before they are persisted.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Lori,

Thanks a lot. I was able to get the resulting items using your link.

List<NmOid> resultingItems = validationCriteria.getAddedItemsByName("changeTask_resultingItems_table");

I used the getAddedItemsByName("changeTask_resultingItems_table") method of UIValidationCriteria.

View solution in original post

6 REPLIES 6
LoriSood
22-Sapphire II
(To:hmungekar)

Hrishikesh,

The following article provides a way to get the Release Targets from the Resulting Objects table in the Edit Change Task wizard. I believe the steps to get the resulting objects views themselves would be somewhat similar. It would be a matter of finding the appropriate key.

http://support.ptc.com/appserver/cs/view/solution.jsp?n=CS194974

Hi Lori,

Thanks a lot. I was able to get the resulting items using your link.

List<NmOid> resultingItems = validationCriteria.getAddedItemsByName("changeTask_resultingItems_table");

I used the getAddedItemsByName("changeTask_resultingItems_table") method of UIValidationCriteria.

Hi lori,

I want to add resulting objects to session as I want the resulting items in change notice form processor. But I am finding it difficult to get NmCommandBean object from UIValidator. Can you help me out over here or is there any other alternative to get the Resulting Items from every change activity to change notice form processor?

LoriSood
22-Sapphire II
(To:hmungekar)

Hi Hrishikesh,

I'm sorry I haven't had a whole lot of time to look into your question this week. You may want to look into perhaps using a custom form processor. That will allow you to get the NmCommandBean object and you could then validate the data within it.

HI Lori,

no problem lori. I was able to find the other change activities using change notice form processor, not from NmCommandBean but from ObjectBean.

thanks once again lori

Hi Hrishikesh,

 

I am facing the same issue in similar case, need to get the Resultant item release target state on EditCNFormprocessor can you please help me with the API's.

Top Tags