There is something I still don't understand with c...
# suitescript
m
There is something I still don't understand with custom child record sublists. Now the Electronic Invoice bundle creates a custom record "Customer E-Document Email Recipient"
customrecord_psg_ei_email_recipient
Which has a field called Customer
custrecord_psg_ei_email_recipient_cust
which has the
Record is Parent
checkbox checked. (so this is the field that establishes the parent/child relationship between "Customer" and "Customer E-Document Email Recipient") And another field called Contact
custrecord_psg_ei_email_recipient_cont
which is a List/Record of the standard record
contact
Now if I click + on a new line of that sublist, it opens the Contact form... how did the system know that this if the form it should open? It just open the record of the other field that the one which establishes the parent/child relationship? That would be super weird? What if the custom child record had more than two fields?
b
are you asking why there is a button to add a new contact
or are you asking why is there a contact field
m
I am asking why it opens the Contact form specifically? How did the system know that this is the form that it should open?
b
what kind of form would you expect a contact to be created in?
the contact field is a list of contacts, adding to that list would be a contact
m
How did it know that it should create a contact in the first place?
b
custrecord_psg_ei_email_recipient_cont
is a contact field, that new button adds a contact to that list
m
Let's say the child record had another field that is a List/Record of Address for example... now, which form will be opened?
b
none, you cant add addresses
m
It is not the point
b
if your question is
Copy code
Let's say the child record had another field that is a List/Record of x for example... now, which form will be opened?
the the answer is that it will add a new x
m
x and Contact
e
There would be another column in the sublist that would have the Address field from the child record
m
Which one then?
b
you will have two fields
one of type x and one of type contact
☝️ 1
if you press the new button the the x field, it will add a new x
m
aha, and each field will open its form
ok
I was understanding this wrong.
I was thinking of contact to be the child record.
While Customer E-Document Email Recipient is the child record, with one field establishing the parent/child relationship, and it can have many fields that they themselves reference other records.
Hmm, not that complex, but for some reason it toke time to get right.
Thanks everyone ❤️