cancel
Showing results for 
Search instead for 
Did you mean: 

OR condition in smartforms

Former Member
0 Kudos

hey folks...

i need to use OR condition in smartforms...as in...

i have a field

HD_GEN-BIL_VBTYP = 'M' or 'P'

then print a text element ....can i use them CONDITIONS tab....without creating code lines???

or else how can we serve this purpose?? suggest me the better way...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes, you can print a text element with out using code lines

give the fieldname and comparision values in the conditions tab of the text node

make use 2nd button from the extreme right(button to the left of syntax check button) to insert a OR condition

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Or condition will not work in the smartform.

U try put u r conditions in the CONDITION TAB of the text.

If that doesn't workout . Create a program lines and try to put

case condition

case xxxx

when yyy

endcase.

I have done like this for 1 requirement.

Assign points if useful.

Former Member
0 Kudos

Hi,

Do this

where you had to provide the condition right click on before it

->select the create the alternative and in that provide the contions

a = 1

or

a = 2.

Thanks,

Nethaji.

former_member196280
Active Contributor
0 Kudos

Alternative is nothing but or condition is SMARTFORM, it contains true or false, so you can place your condition in true and false.

Regards,

SaiRam

Former Member
0 Kudos

Create a condition node.

RightClick on the node under which you want this condition to be>Create>Flow Logic-->Alternative.

There you can have your condition statements.

Regards

Aneesh.

Former Member
0 Kudos

To add to what Aneesh said this is what you have to do. Follow Aneesh's advice then put your condition in. In the next line type <b>OR</b> then on the next line type the condition again but giving it the alternative value. In the end a line like:

 if temp = 1 or temp = 2

will have three lines:

temp = 1

or

temp = 2

Davis

Former Member
0 Kudos

Hi,

In this case where ever you mention the text in tht text you have a condition tab and you can put your condition in tht tab but i doubt you cannot take or condition.You just have relational operators so you can code accordingly.

Hope i am clear.

<b><REMOVED BY MODERATOR></b>

Regards,

Harini.S

Message was edited by:

Alvaro Tejada Galindo

Former Member
0 Kudos

folks...plz help me out...