BusinessObjects Board

How to Validate @prompts in business objects 6.1?

Hi Friends,
i am Calling Stored Procedure with Free Hand SQL in Teradata using
TeradataODBC DSN here i am using 5(five) @prompt to accept user input to
stored procedure in which
2 are must and in remaining three either 2 or one, please dont confuse
let me write code below:

CALL StoredProcedureName (
@prompt(‘EnterOne’,‘N’,mono,free),
@prompt(‘enterTwo’,‘N’,mono,free),
@prompt(‘EnterThree’,‘N’,mono,free),
@prompt(‘EnterFour’,‘N’,mono,free),
@prompt(‘EnterFive’,‘N’,mono,free),
)

Here first two are must and in next three either (Enter three )or
(Enter four and Enter five)

if user want to enter date in three then he should enter four and five
as zero(0)
if user want to enter data in four and five then he should enter three
as zero (0)

i want to validate user input in business objects b4 going to Database
Teradata

Can any one help me how to do that ?

Thanx a lot,
Kumar


Kumar3000 (BOB member since 2003-11-04)

When you say:

…can you give a little more detail. Do you really need to have the other prompts appear if they are zeros? If not, you can follow this thread https://bobj-board.org/t/24319 and do your coding from VB.

Hope this helps!


MayhewM :us: (BOB member since 2003-10-22)

Micheal,

yes, i want them to be displayed when they are ZERO


Kumar3000 (BOB member since 2003-11-04)

Sorry for the long delay in getting back to, I’ve been traveling.

Why don’t you just build your logic into your stored procedure using nested if statements as in. Although you will need to change your prompt type.

‘N’ is number, I believe you stated date for this field.

In any case, you should be able to build your validation into your SP.

If isdate then =0 and =0… so on and so forth.

I’m not sure what your backend is so you may need to change the syntax to meet your needs. You may even need to write a function for user input and then call the function from the BO object in the universe.

The only other choice I can see is to write a vb variation of the thread I sent you, where the input box is displayed first and then other prompts can be filled in with a select case statement in your code.

Hope this helps.
Have a great day!


MayhewM :us: (BOB member since 2003-10-22)