on 07-28-2014 6:09 AM
Hi
In CRM Web Client UI, I have setup various searches (see below image for example).
In the Results List, you will see a "New" icon...which will allow users to create a new transaction type.
I want to hide or deactive this button. I only want ZMHF and ZMMJ to be created from a ZMCR and not directly (hence the reason for hiding this).
How do I hide this?
Thanks!!!!!!!!!!!!!!
Shaun
Hi Shaun,
This new button will be available in search result component, you can find the component using F2 in web ui.
I would prefer to remove the corresponding process type from the popup after clicking on new button because this new button may contains some other document types as well.
You can use the below code in event of the 'New' buttn to remove the unwanted process type documents.
lr_context_node = gr_proctype_popup->get_context_node( iv_cnode_name = 'PROCTYPE' )."#EC NOTEXT
CHECK lr_context_node IS BOUND.
lr_current = lr_context_node->collection_wrapper->get_first( ).
while lr_current is bound.
*Remove process types. If other transaction types are added in future, they will appear.
lv_proc_type = lr_current->get_property_as_string( 'PROCESS_TYPE' )."#EC NOTEXT
* if lv_proc_type eq lc_phase. "DEMX2D90 25.09.2013 REM lv_proc_type eq lc_offer or
if lv_proc_type eq 'ZMHF' OR lv_proc_type eq ZMML.
lr_context_node->collection_wrapper->remove( lr_current ).
lr_current = lr_context_node->collection_wrapper->get_current( ).
else.
lr_current = lr_context_node->collection_wrapper->get_next( ).
endif.
endwhile.
Best Regards,
Dharmakasi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!!!
Soon after posting, I found a more simple solution:
In customizing, I added consistency check PREDOC_EXISTS when saving. This will throw an error if ZMCR does not exist.
Therefore, the NEW button still exists and users can still click on it.....but they can't do anything with it
Cheers
Shaun
Hi Shaun,
There are two ways to address this problem -
Cheers,
Deepank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
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.