Skip to Content
author's profile photo
Former Member

OR condition in smartforms

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...

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

7 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 11, 2007 at 04:05 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 11, 2007 at 04:00 PM

    folks...plz help me out...

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 11, 2007 at 04:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 11, 2007 at 04:05 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Oct 12, 2007 at 02:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 12, 2007 at 07:46 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 12, 2007 at 08:29 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded