Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8554

Re: How to get rid of blank space using templates in smartforms

$
0
0

Hello

 

One of the solutions which I got from your problem is using ALTERNATIVE inside the Template.

For your example need to put 4 ALTERNATIVE based on the combination of your respective 3 Fields.

 

Combinations are:

  • Tot Prod +Tot TAX + Total VAT
  • Tot Prod +Tot TAX
  • Tot Prod +Total VAT
  • Tot TAX + Total VAT

Above combination is the values which you are getting inside the template like for Total Prod = &wa_TotProd&, for Tot Tax = &wa_toTax&  and for Total Vat = & wa_ToVAT&.


Now create the 4 conditions and in the general tab put the above combinations. Below images will help you to do so:


Template_cond.png

Now in the General Attribute Tab in CONDITION 1 (ALTERNATIVE) put condition as shown below:

Template_cond1.png

This condition will trigger when all 3 fields are not initial.


Inside Alternate Node create text field in TRUE like below :

Template_cond8.png

In the Output option tab of above text mention , in the Output structure put Line = 1 & Column = 2.

Template_cond9.png

 

This will print the text in 1st Row & in 2st Column.

 

For Second text Total Tax, in the output structure put Line = 2 & Column = 2

For Third text Total VAT, in the output structure put Line = 3 & Column = 3.


--------------------------------------------------------------------------------------------------------------------------------

Now same for rest of the ALTERNATIVE:

For CONDITION2 parameters are:

Template_cond2.png

This condition will only trigger when TOTAL PROD & TOTALTAX fields are not initial & will display same

 


Inside this Alternative put two text field which is shown as below:Template_cond5.png

Mention same as mentioned for the CONDITION 1 text.

For 1st text it will be Line 1 & Column 1, for second text it will be Line 2 & column 2.

---------------------------------------------------------------------------------------------------------------------------------


For Condition3


Template_cond3.png


This condition will only trigger when TOTAL PROD & TOTAVAT fields are not INITIAL & will display same.

 

Inside the Alternative put two text fields which is shown as below :

Template_cond6.png

 

Mention same as mentioned for the CONDITION 1 text.

For 1st text it will be Line 1 & Column 1, for second text it will be Line 2 & column 2.


---------------------------------------------------------------------------------------------------------------------------------

For Condition4

Template_cond4.png


This condition will only trigger when TOTAL TAX & TOTAVAT fields are not initial & will display same.



Inside the Alternative put two text fields which are shown as below:

Template_cond7.png

Mention same as mentioned for the CONDITION 1 text.


For 1st text it will be Line 1 & Column 1, for second text it will be Line 2 & column 2.





Yes this is long process but once yo understand this will solve your problem, let me know if you have any question.



Thanks

Romit Raina


Viewing all articles
Browse latest Browse all 8554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>