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: 

Dynamically Change Picture in SmartForm according to employee number

Former Member
0 Kudos

Dear Expert Friends,

I have a requirement where I want the graphic on the smartform to change dynamically.

Its a for HR... the actual requirement is when a print out of employee details is taken from a custom report. The photograph of the employee must appear on the right hand side corner.

Please help me out friends..

Regards,

VIjaya Sankar

1 ACCEPTED SOLUTION

kiran_k8
Active Contributor
0 Kudos

Vijay,

I had done a similar requirement which gets the digital signature of the User based on the Login name.

I guess the same logic can be used here too.

Upload all the photos of the employees in SE78.The photos should be uploaded with the respective empid.ie if there is a employee with empid 12345 then while uploading his photo it should be named as 12345 so that every photo will be unique.

Add the field TDNAME in the structure that you have created in SE11 to populate the data in the smartform.

Now as you might be having some internal table which stores all the empids,using that data select the field tdname from stxbitmaps table.

STXBITMAPS is the table which stores all the logos and the TDNAME is the field which has the logo name.

In the smartform,in the logo node>> general attributes>> give as &itab-tdname&.

K.Kiran.

1 REPLY 1

kiran_k8
Active Contributor
0 Kudos

Vijay,

I had done a similar requirement which gets the digital signature of the User based on the Login name.

I guess the same logic can be used here too.

Upload all the photos of the employees in SE78.The photos should be uploaded with the respective empid.ie if there is a employee with empid 12345 then while uploading his photo it should be named as 12345 so that every photo will be unique.

Add the field TDNAME in the structure that you have created in SE11 to populate the data in the smartform.

Now as you might be having some internal table which stores all the empids,using that data select the field tdname from stxbitmaps table.

STXBITMAPS is the table which stores all the logos and the TDNAME is the field which has the logo name.

In the smartform,in the logo node>> general attributes>> give as &itab-tdname&.

K.Kiran.