Skip to Content
author's profile photo Former Member
Former Member

Smart Forms

Hi Friends,

I have a requirement where i have to fetch two values a and b from a table ( a= lower limit value and b = upper limit value).

if both a and b have values then i have to print both values

else if any one of them has a value

then i have to print only one data ( either a or b)

how can be it done using smartforms?

Kindly reply asap..

Regards

Yamini.A

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Sep 27, 2005 at 01:14 PM

    Hai!

    I didnt get your problem, explain me bit more.

    Alex

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 01:16 PM

    Hi

    you can insert a node for code where you fill a flag in order of values of A e B:

    IF A is initial and B is initial.

    FLAG = 0.

    ENDIF.

    IF A is initial and not B is initial.

    FLAG = 1.

    endif.

    and so

    after this node you insert the text elements nodes with condition where you check the value of the flag:

    TEXTO (IF FLAG = 0).

    TEXT1 (IF FLAG = 1).

    .......

    Max

    Message was edited by: max bianchi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 01:17 PM

    hi,

    in the window Create - > Flow Logic - > alternative

    then fill the condition

    fld1 <> initial

    fld2 <> initial

    true

    insert text element and print fld1 and fld2

    false

    insert alternative

    condition fld1 <> initial

    true

    insert - text element (field1)

    false

    nothing

    insert alternative

    condition fld2 <> initial

    true

    insert - text element (field2)

    false

    nothing

    that is ( alternative is like if statement)

    this can be achieved via program line also

    cheers

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 01:17 PM

    Can you please explain it in more detail?

    Can't figure out what exactly is your requirement?

    Anyway, you can code data fetching logic in the smartform also.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.