Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

How can we restrict a user to write only numbers in the text fields in obiee 12c reports?

Received Response
1
Views
6
Comments
3754031
3754031 Rank 1 - Community Starter

How can we restrict a user to write only numbers in the text fields in obiee 12c reports?

Answers

  • What do you mean?

    Are you talking about BI Publisher reports? About OBI Answers analysis?

    What is a text field in your mind?

  • 3754031
    3754031 Rank 1 - Community Starter

    its regarding BI Publisher report

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    a) You didn't answer Gianni's other question.

    b) With a "problem description" like that you won't get much in terms of usable answers. What do you mean "write only numbers"? Input validation? For what? A prompt?

  • Thomas Dodds
    Thomas Dodds Rank 8 - Analytics Strategist

    force the prompt to be a searchable lookup and selection instead of free-form text ... if you have too many values, then you need additional restricting prompts to narrow down the scope of the final list

    example:

    if you have 600,00 customers maybe you need a City prompt to narrow the search down to 100,000 then you need an additional one to maybe filter by ZIP Code and now you get 30-50,000 in a zip code and then maybe filtering those by sales rep to get the 10-15 to pick from...

    free-form is ungoverned (free of any form)...

  • 3754031
    3754031 Rank 1 - Community Starter

    And, to keep it simple - i have an Employee ID prompt - which is text field prompt.

    I cannot use drop down or choice list as i have millions of employees.

    And, employee id values in database are numeric.  (which is good)

    However, we have few users - who may enter some string values unknowingly in the text field prompt.

    Can we have integrate any customization - so, that when users enter any characters other than numeric it should say - enter only numeric values.

  • Jerry Casey
    Jerry Casey Rank 6 - Analytics Lead

    My solution to this is to set a presentation variable in the employee ID prompt, say "varID".
    Then, in the filter of the query, insert: UPPER('@{varID}')=LOWER('@{varID}').
    In the 'No Results' view, type the custom message "Invalid Employee ID - Numbers Only!"

    This only works as a test for unwanted alpha characters, (and maybe only in English?)