08-01-2006 3:44 PM
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.
08-01-2006 3:48 PM
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.
08-01-2006 3:48 PM
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.
08-01-2006 3:52 PM
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
08-01-2006 6:52 PM
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