on 2023 Dec 01 7:56 PM
Hi Everyone ,
I have business use case where. I want to execute a logic on drop-down attribute change .
My logic needs to know old value when user changes to new ..
Issue I'm facing , when I changed the attribute it always give newValue .
I'm running the logic on. Attribute change trigger
Thanks
Dhirendra
Request clarification before answering.
This is not available on a Change Trigger for a normal attribute, but it is available inside containers using EventArgs.ChangedCell.OldValue
I see you already found a solution with global variable, but you could likely come up with a workaround involving containers. Either allow the user to control the attribute directly in the container, or copy the value into the container in order to trigger your logic (something that would be required in Quote 2.0 since it doesn't support global variables).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If I understand correctly, you are trying to implement product rules using IronPython scripts attached to Attribute Change Trigger. Please try using a hidden dummy attribute to save the selected value of the attribute which the rules will apply to. Every time when the user changes the attribute value, the script can first get the previous selected value from the dummy attribute, execute the rule logic, and update the dummy attribute value with the latest selected value.
Best Regards
Fancy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi tdhirendra3221,
May you please login All Improvement Request Lists - Customer Influence (sap.com) using your SUser to submit your idea a feature request? I agree with you that is a very valid feature request and hope the product team can see it.
Best Regards
Fancy
Hi Dhirendra,
You can check the previous value of attribute in the audit trail. For more reference, please check the following link.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
10 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.