Subform
Subform
Good afternoon,
I am trying to get the list of e-mail addresses from a subform Contact.
Form : g_commande (= means order)
Lookup field : Fournisseur (= means Supplier)
Subform : Contact
I submit the g_commande form for each new order.
In this form, I have a lookup field to get the supplier name from a list.
In the Suppliers form, I have a subform with all the contacts of the suppliers.
When I submit the order, it must get all the e-mail of the suppliers that have the checkbox checked.
I am doing my tests in Field Actions > lookup field Fournisseur > On User input
In order to display the list and see how it appears.
The part 3 of the script does not work. Could you help me ?
// Part 1 - Select the ID of LookupField
get_email_step1 = g_fournisseur[ID = input.Fournisseur];
// Part 2 - Select the Contact subform
get_email_step2 = get_email_step1.Contact;
// Part 3 - Show the list of contact_email if contact_commandes chebock is checked
if (get_email_step2.contact_commandes == true)
{
info get_email_step2.contact_email.getall();
}
// Part 4 - Show the list of contact_email whether contact_commandes checkbox is checked or not
else
{
info get_email_step2.contact_email.getall();
}