Dynamics CRM swapping text of a Picklist option

…衆ロ難τιáo~ 提交于 2019-12-23 04:51:30

问题


We have one picklist to take action, want to show different text in 2 different forms. Am trying to use the same option instead of creating 2 different options/values as the behavior is exactly the same.

Form A - Permit Issued
Form B - Approved

I referred this and implemented to remove the option & re-adding with same value but different text. Its displaying as expected but on selection the value reverts to original. I know this is coming from original option-set definition.

At least it should retain the newly added option till I submit right? If Product is refreshing the definition, can we stop it till submission?

Am planning to add duplicate items with both options, show/hide required options & mimic the behavior for both options. Any other solution?


回答1:


Still unsure where CRM is caching the original text to display after selection (apart from text/value after removal of options on form load). Ended up with this below workaround as mentioned in my question.

Added both Approved(1) & Permit Issued(2) values in Entity Picklist field physically. Then on form load removed the unnecessary values. (Ex. Approved - removed in Form A picklist)

Then handled the save logic to assume the values are same (1 = 2).

I am open for any better solutions.



来源:https://stackoverflow.com/questions/45513340/dynamics-crm-swapping-text-of-a-picklist-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!