Unable to display action menu items in the search results page based on conditions
Hi,We need to add some extra items to the Action Popup Menu in the search results page. We are able to do so using extra_setup_search_results_action_popups as given below.
@dynamichtml extra_setup_search_results_action_popups@>
<$include super.extra_setup_search_results_action_popups$>
<$exec rsAppendNewRow("PopupProps")$>
<$exec setValue("PopupProps", "label", "Cancel Item")$>
<$exec setValue("PopupProps", "function", "javascript:CancelItem('<$dID$>','<$dDocName$>'$>
<$exec setValue("PopupProps", "ifClause", "not isExternallyManagedDoc")$>
<$exec setValue("PopupProps", "linkTarget", "<$docLinkTarget$>")$>
<$exec setValue("PopupProps", "class", "document")$>
<$exec setValue("PopupProps", "id", "CanceItem")$>
<@end@>
With this we are able to see the 'Cancel Item' option available in the Action Menu for each content appearing in the search results.
@dynamichtml extra_setup_search_results_action_popups@>
<$include super.extra_setup_search_results_action_popups$>
<$exec rsAppendNewRow("PopupProps")$>
<$exec setValue("PopupProps", "label", "Cancel Item")$>
<$exec setValue("PopupProps", "function", "javascript:CancelItem('<$dID$>','<$dDocName$>'$>
<$exec setValue("PopupProps", "ifClause", "not isExternallyManagedDoc")$>
<$exec setValue("PopupProps", "linkTarget", "<$docLinkTarget$>")$>
<$exec setValue("PopupProps", "class", "document")$>
<$exec setValue("PopupProps", "id", "CanceItem")$>
<@end@>
With this we are able to see the 'Cancel Item' option available in the Action Menu for each content appearing in the search results.
0