Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
466 views

Condition for query in PreRAD in DisplayOption

Jump to solution

I need set query in PreRAD to use it in RAD tab.

How can i to set a condition to check the content of the value in the field

familiar to LIKE operator in SQL  id like '%idci' ?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

After some experiments (looks like it works):

$L.audit.query="idaudit#\"*"+id in $L.filed+"\""

View solution in original post

4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

For RAD, you could try the index function. index( "ldcl", $variable ). If it find "ldcl" in the string variable, the return value will be non zero. You can test the function in the rad debugger until you are comfortable with it.

Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

I need to set query in PreRAD tab to use it in RAD tab (RAD application - se.search.engine)

For now in PreRAD i have query:

$L.audit.query="idaudit=\""+logical.name in $L.filed+"\""

But now i need change it:

$L.audit.query="idaudit=\""+id in $L.filed+"\"" , but i need condition - contains.

idaudit for table audit and id for table device. 

Find all those records that have in the end of idaudit string the value is equal to the value of the id field.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

I found an old query in my notes, Query=name#"%" + operator() +"%" .

So i think this should work for you, $L.audit.query="idaudit#\""+"%ldcl"+"\"" 

I don't have a machine to test it but I hope I got the syntax right and it works for you. Good luck.

Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

After some experiments (looks like it works):

$L.audit.query="idaudit#\"*"+id in $L.filed+"\""

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.