[英]Dynamic selection of component configuration in CRM Web UI
I did the following:我做了以下事情:
What should I do to select dynamically the configuration?我该怎么做才能动态选择配置? - Example:
- 例子:
Use DO_CONFIG_DETERMINATION
event of your view, and place something like this:使用视图的
DO_CONFIG_DETERMINATION
事件,并放置如下内容:
IF <ComboBox.Value> EQ "A".
CALL METHOD me->set_config_keys
EXPORTING
iv_object_type = 'your_object_type'
iv_object_sub_type = 'your_sub_obj_type'
iv_propagate_2_children = abap_false.
ELSE.
...config B
ENDIF.
Here object and subobject types are the ones you were prompted while creating custom configuration.这里的对象和子对象类型是您在创建自定义配置时被提示的类型。
The sample implementation of this method one can find in BP_HEAD/AccountDetails
standard WebUI component.该方法的示例实现可以在
BP_HEAD/AccountDetails
标准 WebUI 组件中找到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.