I got a requirement to add few fields while creating customer and those fields data should be auto populated from customer group.
- To create customer/vendor the standard system will call the DirPartyQuickCreateForm.
- We can't add fields directly to this form. It will not work and we can't get the control's in logic.
Solution :
- From form inti method the below will trigger.
- Here They are calling field groups in table.
- If you open the table you can find that groups.
- You can drag the required fields to the above mentioned groups.
- For my requirement I have add the field in cust table and cust group and dragged in to that group.
- For auto population I have added the below code in modified method
[ExtensionOf(tableStr(CustTable))] final class custTable_Extension { public void modifiedField(FieldId _fieldId) { next modifiedField(_fieldId); switch(_fieldId) { case fieldNum(CustTable, CustGroup): this.MarkGUA = CustGroup::find(this.CustGroup).MarkGUA ; break; } } }
OuptPut :
Keep daxing!!
No comments:
Post a Comment