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

No blank lines in smartforms

Hi,

I am printing the adreess information in a window . but when there is no addreess data then no blank space should be printed.Does anyone have any options?

In other words assume I have the following:

&LINE1&

&LINE2&

&LINE3&

&LINE4&

where &LINE1& = 'A',

&LINE2& = 'B',

&LINE3& = 'C',

&LINE4& = 'D',

If &LINE3& does not contain any values I don't want to see:

A

B

<blank>

D

I want to see:

A

B

D

Correct answers or helpful suggestions will be rewarded.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2007 at 12:43 PM

    Hi friend,

    Try to establish an if-else condition such that if record exists for the line then it will display that line otherwise it will display blank line and if u want not to display blank line and show next line establish a condition such that it will not display that line instead display next line.

    Regards,

    Ameet.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2007 at 11:29 AM

    In the texts, u can specify a condition.

    use command option and specify the condition for that line.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2007 at 12:38 PM

    hi,

    better do one thing,

    create diff text node for each line

    i mean

    line1 in text node 1

    line 2 in text node 2.. etc..

    then goto window -> create -> flow logic -> alternative

    then u got condition node in that general attributes

    give your condition for example field name not equal to ' '

    then place your textnode in true part

    so it will display only that field contain value

    i am sure it will work.

    thank you

    regards

    Murugan.B

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2007 at 12:44 PM

    Hi Neha,

    You can do validation by providing contion

    IF NOT &LINE1& initial.

    &LINE1&.

    ENDIF.

    OR

    In Smartforms you can use address text instead of providing all the variables. There you need to pass only address no & all the address will be prinited & all the blank lines will be ignored automatically.

    Ashven

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 01, 2007 at 11:07 AM

    Hi Neha,

    working on something similar, try

    IF &LINE3& NE ''.

    &LINE3&

    ENDIF.

    liam

    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.