clearoption for optionset in crm business process flow

让人想犯罪 __ 提交于 2020-01-25 03:09:06

问题


I have a business process flow In one of its steps I have added an option set(sub category)

I am trying to clear the options in the optionset using the below code

Xrm.Page.getControl("new_subcategory").removeOption(100000005)
Xrm.Page.getControl("new_subcategory").clearOptions()

This removes the options for the optionset that is inside the form, but it is not removing for the same option set that is in the step of business process flow


回答1:


You need to added header_process_ to the id. So:

Xrm.Page.getControl("header_process_new_subcategory").removeOption(100000005)
Xrm.Page.getControl("header_process_new_subcategory").clearOptions()

SDK reference



来源:https://stackoverflow.com/questions/37432632/clearoption-for-optionset-in-crm-business-process-flow

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