cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Design Studio 1.6 - Regular expression for script filtering

02-27-2017 12:29 PM
709 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

There is a way to use regulal expression on Design Studio scripts for filtering text from a dropdwon menu like:

if (element.text != "DO*" ){

   //do something

}

Thanks

Marco

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

MustafaBensan
SAP Champion
SAP Champion

Hi Marco,

You can't apply wildcards as per your example. However, you could simulate this using the indexOf() method to search for the existence of a substring within a string. For example:

if (element.text.indexOf("DO")) = -1 ){

   //do something

}

Regards,

Mustafa.