cancel
Showing results for 
Search instead for 
Did you mean: 

Reset collection in agentry

Former Member
0 Kudos

Hi,

I have a workorder object which has a collection property of hold object. On click of a pause button an add transaction gets triggered which will add hold objects under workorder object.

Now on click of stop button a edit transaction gets triggered which will set the values and send all the added hold objects to backend.

My requirement is to reset the hold object on click of stop button after edit transaction is triggered and all the values are sent.

Please suggest a solution.

Accepted Solutions (1)

Accepted Solutions (1)

jason_latko
Advisor
Advisor

Madhuri,

Create another edit transaction against the workorder object.  Add the hold collection property as the only property in the transaction.  Set it to Initial Value of "Auto initialize".  That will empty the object collection.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Thanks for the solution Jason. It was working fine.

Answers (2)

Answers (2)

sravanthi_polu
Contributor
0 Kudos

Hi,

If your requirement is to empty the collection after edit transaction, then set the update step client Response to 'Delete client Object' ,it will delete the object targeted by transaction from client.

Note that if a read step is defined,then the collection will be downloaded again after reset of client .

Regards,

Sravanthi

Former Member
0 Kudos

On the same action that calls the edit transaction you can call a second transaction with the property that points to your hold object, and with the inital value set to "Constant" and leave the constant field empty.