Hi,
I have a record type whose structutre is:
Start:
local!RecordA ( - field 1, - field n, - Relationship: Record b1 ( --- field 1, --- field 2 )
Record a --> b 1:m relationship.
After some manipulation, I want record a to become:
End
local!recordA ( - field 1, - field n, - Relationship: { record b1 (field 1, field2), record b2 (field 1: null, field2: null)}
How can i go from start to End? Could you help me?
I hope the aim is clear.
Thanks a lot
Discussion posts and replies are publicly visible
Hi Alessandro ,
You can have record b1 and b2 as the relationship for record A as one to Many relationship.
It will helpful if you share the common relation between the 3 records.
I know I can, but how can i add a new item Record b2 to record a? I'm looking for functions and syntax to do it.
What do you mean by sharing common relations among 3 records?
I am not clear with your requirements. Let's start with where are you using this record (which object) and what are you willing to do there?
Im' on an interface, i'm populating fields from record A and i want to add items on recordA that have a cardinality of M.
Let's say, my record A is an order, record b contains products related to the order.
What i want to do is to polulate record A (and i'm ok with it), populate record b1 (and still it's ok), then i want to add a new line to add a new product and populate it. What i cannot do so far, is to add a new record (b2) to insert a new product.
That should give you a hint
you have to append the value in the relationship of the recordtry this ->
{ a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "OUTLINE", saveInto: {a!save(ri!temp2['recordType!{198b8d86-5c88-48ab-bd28-2eac7c64e68e}DCT temp2.relationships.{9bdadcd1-263c-47c9-9338-3c75d50b1519}tempp'],append(ri!temp2['recordType!{198b8d86-5c88-48ab-bd28-2eac7c64e68e}DCT temp2.relationships.{9bdadcd1-263c-47c9-9338-3c75d50b1519}tempp'],'recordType!{ccc00773-778b-4f61-a0e4-1a05ae874a50}DCT tempp'('recordType!{ccc00773-778b-4f61-a0e4-1a05ae874a50}DCT tempp.fields.{0c3125cd-4950-484e-9f8e-236576fbe768}id': 1)))} ) }, align: "START", marginBelow: "NONE" ) }
Yes, in that case, you can add new items in your related record under the same base record using the append function.
Refer from the image below.
balti
Thanks,
This is what i was looking for and it works!.
My mistake was starting always from the root record.
Harshit Bumb (Appyzie) , , JayaPrakash Ravipati
Thanks for supporting!