Skip to Content
avatar image
Former Member

Smartform Formatting Under Conditions

Hi All,

I am having a pretty tricky smartform issue at the moment. I have a page with column 1, column 2 and column 3. With data where A is under 1, B is under 2 and C is under 3.

The smartform works fine under normal conditions. However there is a condition where data A might not be displayed. I have stopped the data from being displayed however when I do this the formatting of the page goes wrong.

If I do not display A. The page looks as follows: B is under 1, C is under 2 and there is a blank space under 3.

Is there any way I can stop the data from moving across to the left if I hide the data in column 1?

I am using a data table at the moment and would prefer to be able to keep that logic.

Many thanks for any help provided,

Points awarded,

Colm

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 10, 2007 at 09:58 AM

    Try displaying SPACE under columns which u r hiding.

    Like declare a field with the same domain which u r hiding and make the value blank. and Display that.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 10, 2007 at 10:00 AM

    Hi,

    Have you created a table in the window??

    If not then create table in the window and then in each table line put the field to be displayed.

    So even if there is no data in any of the field , it will display data correctly without disturbing the allignment.

    Regards,

    Bharat.

    • Reward points if helpful.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 10, 2007 at 09:58 AM

    To overcome this kind of situations in smartforms we use templets.

    Follow this link for using templeteswww.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985">templetes>

    Regards,

    SaiRam

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 10:04 AM

    Hi Colm,

    Presumably you're in a 4.6 system? The approach for defining tables in Smartforms changes in later releases and would solve your problem.

    You will need to define an alternative node with your condition on data A, either displaying the data if it is met or a blank text element if it is not.

    Regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 10:40 AM

    Hi All,

    Problem solved. I am using 6.20 release and I didn't want to change how I set up the formatting becuase it took me a long time to get it the way I wanted.

    So what I did was copied Value A and stored the &SPACE& variable in there. I then inversed the logic I was using to exclude the A variable.

    Now whenever my condition is hit it displays the space variable in the column and everything looks fine.

    Thanks all for your help, this seemed to be the best way to go about it this time.

    Regards,

    Colm

    Add comment
    10|10000 characters needed characters exceeded