on 05-11-2010 2:14 AM
Hi Experts,
I have a requirement where I need to hide/display a field based on a certain condition at runtime. I am trying to use get_a method available for context node attributes in CRM 7.0. But unfortunately, its not stopping there at the breakpoint.
If anyone has ever used get_a method, please share your experience how did you use get_a method.
Thanks
Vishal
Hello Vishal,
You need to set the attribute to be Read-Only(hidden) or Editable in Get_A method may be by calling appropriate
SET_ATTRIBUTE method if present already, before you set the field type.
Hope this helps!
Best Regards,
Shanthala Kudva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
A-Getter is meant to be used for showing or hiding field based on Switch ID. If you see the return parameter, it returns also switch ID. Using A-Getter to showing and hiding field not based on Switch ID is not recommended.
A-Getter is already exists in CRM 7.0 but it is not used. It is used for the Enhancement Package release of CRM.
GET_A is mostly used by SAP developer to switch(show/hide) a field based on which Switch active or inactive. The switch can be activated or deactivated by its Business Function.
Please revert back if you have any further questions.
Sree.
Hi Sree,
Thanks for the explanation. I am aware of the functionality of Switch ID but unfortunately, its not taking me to the get_a method in the debug mode where I can dynamically try to show/hide a field based on switch id.
Is there something I need to do so that this get_a method gets called.
Thanks
Vishal
Hi Vishal ,
As explained earlier the Get_A method is used for SAP Enhancement packages and I am not sure if you can add anything in that method.
For dynamic availability of a field you can change screen configuration depending on the requirement.
You can use DO_CONFIG_DETERMINATION method to call the configuration depending upon the condition.
You can also see the explanation given in the above link.
Thanks,
Sree.
User | Count |
---|---|
7 | |
1 | |
1 | |
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.