Hello All,
I Need some help with Substr() function. I am on BoXi 3.1 SP5 and the below scenario is in a webi doc.
I have to capture user responses for a prompt and display them on the report header. This prompt can take multi values and I have to show the substrings of the chosen prompts. All prompts will have same string at the beginning and I have to get rid of that part
For example:
If the chosen prompts are Report_abcd, Report_xy, then I have to display abcd;xy in the report header.
I used substr() function, but it is being applied just for the first prompt., and giving output as abcd;Report_xy
How to make substr() apply for the second prompt as well?
if you have two prompts you can get the value for each one at a time by using the userresponse() function. However, you’d have to substring or use replace as suggested above around each userresponse. if you got the first one OK then just do the same thing on the second one.
are you saying that you have the same prompt text but have two different values depending on the data provider? I know that you could also use as an input the dataprovider (query) name before the prompt text to be more specific. Usually what I do is something like this:
Yes, but the result of the UserResponse() function is a single string that contains all values selected in the prompt. So the Replace() function applied on the result of the UserResponse() function should work.