ui action

valli_17
Tera Contributor

Hi,
I have example 1 table and in that i have example 2(m2m) and example 3 related lists tables. Example 2 table is m2m relationship between example 1 and example 5 table. But in example 5 table we have example 1 and example 4 as related lists.



I have a ui action on the example3 table in that table i have field i have users field of list type when click on ui action it creates records for users in example 4 table(if 2 users are there in example 3 table then it creates 2 records in example 4 table). 

but my requirement is
If i click on that ui action on example 3 table in example 3 table I have a field which is reference to example 1 table then in that example 1 table has related list as example 2 and 3 now for ex: example 2 has 2 records and example 3 has 2 records now when I click on ui action of example 3 table then it should create (2*2=4) 4 records in example 4 table based on user field in example 3 table(for example: if 2 users are there then then it should create 4 records for each user)
I need code for this
thank you.


0 REPLIES 0