Notifications
Announcements
No record found.
hi,
I add two fields in sales table custgroup, subgroupid. from--- i change the value of customer group field select 10 custgroup than subgroupid is not selected same cutomergroup.
Hi,
I assume this "sub group" is some customization. Since it's a property of Customer group, it actually doens't necessarily make sense to copy it to the sales order. Otherwise you are duplicating data, and risk having wrong data as you have just described.
But, you can add logic in insert and update methods to always initialize the sub group from CustGroup to solve your problem. But please consider one more time if it is a good idea to duplicate this data.
Hi satendra singh,
Is Sub group Id a customized field? You will need to write your code in Tables\SalesTable\modifiedField method to assign the new sub group Id whenever the customer group is changed.
i modify the custgroup like that i selected coustmergroup 10 than sub groupid field default select first value .
I'm sorry but I don't understand.
Do you want to automatically set subgroup, based on the selected customer group?
Or do you want to only show subgroups related to specific customer group in the lookup?
If you just want to impact the lookup, make sure that you have properly defined table relations between your SalesTable fields and Customer sub group table. The relation should include customer group id and customer sub group id. Then the user can only select such subgroups that are related to the already selected customer group.
Hi Gunjan,
Sub Group Id is Customized field. whenever i changed the customer group that time sub groupid default first value select .
yes.
Ok, then just add your code in the modifiedField method of SalesTable.
If modified field is CustGroupId, select first customer sub group that has the same customer group id, and put that in the sub group field. Is it clear?
Yes
Were you able to get this working? Or are you still facing any issues?
I am writing the code in SalesTable /Methods /ModifiedField. Still I am facing this issue.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 551 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional