Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Logos in single smartform..

Former Member
0 Kudos

Hi,

Is it possible to have multiple logos in single smartform?.

the requirement is, based on the company code logo needs to be display dynamically

please give me some hints.

thanks,

john.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In the graphic node you can use the conditions tab to decide whether to print the graphic or not based on the company code.

Or, in your print program you can set the name of the graphic into a variable based on the company code. Then pass this variable to the smartform and use it in the graphic node.

3 REPLIES 3

Former Member
0 Kudos

In the graphic node you can use the conditions tab to decide whether to print the graphic or not based on the company code.

Or, in your print program you can set the name of the graphic into a variable based on the company code. Then pass this variable to the smartform and use it in the graphic node.

Former Member
0 Kudos

Hi John,

In the Graphic Window, you will have <b>Conditions tab</b> click that one, you will find the output conditions, there give the field name, Relational operator and the Value of that field, so if the condition is satisfied then only the Logo will be appear in the output,

Thanks

Sudheer

Former Member
0 Kudos

Hi,

For the logo to be dynamic, in Genaral attributes of the Graphics, give the logo name as a place holder(eg: &W_LOGO&) instead of a static name and select this field as "Dynamic value". Just before calling the Graphics node, have a program lines node and here pass the desired logo(eg: LOGO1) you need to W_LOGO based on the validation(i.e., based on the Company code).

Define W_LOGO in Global definitions and pass this in both Input and Output parameters of the Program lines.

When the smartform processes this code, it assigns the logo name(LOGO1) to the variable W_LOGO. When it comes to Graphics node, it replaces &W_LOGO& with LOGO1 and the logo is printed.

Easiest way is to put an IF condition to print logo based on the Company code.

Hope this helps

Thanks

Vamsi