cancel
Showing results for 
Search instead for 
Did you mean: 

UserResponse with Variable

Former Member
0 Kudos

Hello,

I'm working on some automation process for our BO reporting. Each Webi Document in our project has some info page that has many different information about document. Till now it was all written by hand by developer - the idea is to make it automatically generated by BO.

I've made almost whole info page, but I have problems with one element - info page contains info about what prompts were used in report (like Prompt: User response).

Problem is that UserResponse function can work only with string written in "" - like UserResponse("Put correct date") and so one. I have additional group of scripts that are using BOSDK to retrieve what prompts are used in each report and then those are stored in DB. I can retrieve those "strings" that appears in Prompts in current report and access it via some object, but UserResponse is not working with that object. It gives #DATATYPE

Even if I put Prompt string into variable - it is not possible to use this variable with UserResponse function

Any ideas?

Thanks and regards!

Accepted Solutions (0)

Answers (1)

Answers (1)

mhmohammed
Active Contributor
0 Kudos

Hey Maciej,

I don't think it's possible. The UserResponse syntax specifically needs the Prompt text (string) and not a variable in which you've saved that prompt text.

string UserResponse([dp;]prompt_string[;Index])

I tried creating it, and got the same error as you did. It doesn't give us an error while parsing though, which is surprising.

Thanks,

Mahboob Mohammed