I want to add the following functionality:
When I am looking at the detailpage of a customer and I click on 'add address' a sidepanel opens to insert the address.
This sidepanel contains the 'LogisticsPostalAddress' form. I want to simply, on the opening of the form, copy the customers' name into the name field of the new address.
For this I tried to extend the init, run and initializeViewOpenMode functions, but to non avail.
Example:
public void init()
{
next init();
CustTable custTable;
select custTable where custTable.AccountNum == this.custAccount;
Details_Description.Text(custTable.name());
}
I can see in a breakpoint that custTable.name() returns the correct value, but the field stays empty in each extension.
I do notice that all the functions are called before I can visually see the form, so maybe that is the problem?
Could someone advice how to correctly implement this functionality?