Skip to Content
avatar image
Former Member

display prompt values in report

Hi,

We have variable 'Test(X_TEST)' in BEx and when user selects values in prompt then I want to display its key values (Not Text) in report.-

it is displaying its text with Userresponse("X_TEST"), so i tried something like below.

=If(Userresponse("X_TEST")="TextA";"1001";If(Userresponse("X_TEST")="TextB";"2001"))


Above formula is fine if user selects single value, but user can select multiple values with any combination. So could you please help me how to handle this to display key values.

Thank you,

Suri

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 18, 2015 at 11:28 AM

    Hi,

    ideally if you have key value object in theĀ  webi query then in webi report you will get the key values only based on the selection of user prompt values.

    If you are displaying hard coded key values by variable in webi then use match function.

    =If(match(Userresponse("X_TEST");"*TextA*")) then "1001"elseIf (match(Userresponse("X_TEST");"*TextB*" then "2001"))

    Amit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Suri Babu,

      I just want to make it clear, you cannot pass multiple keys to detail report from your Master report on Bex keys. WebI on bex can only take 1 key and can pass one value. Correct me if I understood you wrong!

      We are on 4.1 sp2 patch 5 and no we cannot pass multiple keys to detail report.

      What does the detail object have in it(Keys?) from the user selection? If users selects inlist values "TEXT1" , "TEXT2" it correspoding keys would be "KEY1" , "KEY2".

      Your detail object holds what?

      Regards

      Venkat