Hello,
I am trying to modify a custom UI that uses a HiddenSearch and fields to fill its values. For one of the fields if a user enters a value ("123" for example) we need to create the search token to look like "source=*\\ID_123\\*". If the field is left blank than nothing is added.
Using the prefix option in stringreplace I am able to get part of what is needed (source=*\\ID_123), but can not find a way to get the "\\*" appended.
See code snippets below. Any suggestions on how this can be done?
Thanks in advance.
<module name="HiddenSearch" layoutPanel="mainSearchControls">
<param name="search">index=aqua $instanceToken$ $reverseToken$</param>
<module name="ExtendedFieldSearch">
<param name="field">Instance</param>
<param name="intention">
<param name="name">stringreplace</param>
<param name="arg">
<param name="instanceToken">
<param name="fillOnEmpty">false</param>
<param name="prefix">source=*\\</param>
</param>
</param>
</param>
<param name="replacementMap">
<param name="arg">
<param name="instanceToken">
<param name="value">$instanceToken$</param>
</param>
</param>
</param>
... View more