cancel
Showing results for 
Search instead for 
Did you mean: 

Header label and values printing dynamically in smartforms

Former Member
0 Kudos

Hi experts

I have requirement like this while printing header in smartform

my header labels are dynamically print if value are not empty in header labels value field

pls any one tell me how to do that and sample code pls.

Thanks

sri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Put a condition for the header labels in the conditions tab...for the fields you are displaying in the smartform.

In condition tab, just say header field is not equal to initial.

Vishwa.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

thank u hari, prashanti, jayanthi

its working but my user wants like this

in between fields it displaying gaps user wnat dynamically printing continuous in the output

with out gaps

example: In table

slno. name1 m1 m2 m3 total

1 abc 50 50 160

if value empty in m3 it showing gaps in between m2 total

slno. name1 m1 m2 gap displaying total

1 abc 50 50 gap 160

my final output like this

slno. name1 m1 m2 total

1 abc 50 50 160

This problem sloved my slef , thank you all

thanks & regards

sri

Edited by: k srinivas on Jan 20, 2009 9:12 AM

Former Member
0 Kudos

slno. name1 m1 m2 m3 total

1 abc 50 50 160

for column M3

create 2 text node.

1. in condition tab of text node specify M3 ne ' '.(for getting details if value of M3 is present)

in editor &M3&

2. in condition tab of text node specify M3 eq ' '.(for getting details of TOTAL).

in editor &TOTAL&

for column TOTAL.

in condition tab of text node specify condition M3 ne ' '.

Former Member
0 Kudos

thank u all

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Create alternative node.Mention the condition in General attributes.

Keep the value only in the required True/False based on condition.

Ex:

Condition: field = space

Keep the value in false block.

Former Member
0 Kudos

hi Srinivas,

before printing the variables ..

assign whatever u want to display to some variables ..

SAY var and den in text elements in general attributes write &var& , in output options write the column and row number where u want to display if u have created a template for the same .

then in condition check var not equal to initial .

if the variable contains value then only it will get displayed .

hope it helps u !!!!!!

reagards,

prashanti