cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Formatting Under Conditions

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member187452
Contributor
0 Kudos

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.

former_member196280
Active Contributor
0 Kudos

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

Follow this link for using <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985">templetes</a>

Regards,

SaiRam