Hi there,
I want ot use some of set up table data in my code and validate and take some action on selection particluar values.
e.g. Asset major Group has type as Cars then i need to do some action at code level.
How can i avoid using this type = Cars in my code?
Is there any other approch to use such values in code?
Regards,
Rahul
*This post is locked for comments
Depending on the scenario and meaning of this, we typically use one of three scenarios:
1) make a parameter table, or add a parameter to an existing parameter table where the user can select the type. This assumes that type is mostly static and has a special meaning.
2) on the setup of the asset group, or if the cars type is a lookup and not an enum, add a checkbox where users can indicate which types have that "special meaning". Again, this assumes that type to be used is mostly static
3) if this needs to be dynamics and can change depending on the user's needs at that very moment, prompt a dialog to ask for the type
you can make an enum for the value that is to be matched.
Yasir.
You can use paramteric setup like creating a new field in FA parameter and validating against the value in field rather than hard coding.
Pranav
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156