cancel
Showing results for 
Search instead for 
Did you mean: 

How to Update data to two entityset from single button in mobile development kit

0 Kudos

Hi Everyone,

I have added the button in section page and on that button click I am updating the status as 'CLOS' through update entity odata action for entityset 'A' and it is working fine for me .but on same button click I need to update list of entityset 'B ' also which is the child property(collection) of entityset 'A'.

As Bill shared See Here with the help of success action we can do this but in my case object I need to update multiple record of object 'B' as status 'X' on button click. if In object A entityset Contains 4 array of Object B How to update 4 records of object B thorugh update entity I need to update status as X in all records of object B which is child object A.

Main problem which I am facing is How to pass setActionBinding for multiple list(data).

Thanks in advance

Neha.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

neha.sharma777

Were you able to resolve your issue? If so please post an answer so others might benefit from your findings.

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Neha,

In this case you will probably need to write a rule which you can call in the OnSuccess from your update of object 'A'. In the rule you can loop over the children and call your update action for each one.

--Bill