on 10-16-2008 8:34 AM
Hi Experts,
I want to display images of the respective employees from the R3 system. How can i do it? In what format the image will be sent from R3?
Thanks & Regards,
Mugundhan.A
Hi,
BAPI can send image as binary stream.
You can save binary stream, create an instance of IResource from the steam and use it to display image.
Regards,
Deepti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Create an attribute 'BinImg' of type 'binary' in context. Save binary stream returned from BAPI in this attribute.
2. Create another attribute 'MyImage' of type String.
3. Go to view layout. Create an UI element image. Map its source property to MyImage attribute.
4. Once you have saved binary stream from BAPI, use following code to display image:
byte b[]=wdContext.currentContextElement().getBinImg();
IWDResource res=WDResourceFactory.createCachedResource(b,"R3Image",WDWebResourceType.JPG_IMAGE);
String imgStr= res.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
wdContext.currentContextElement().setMyImage(imgStr);
Regards,
Deepti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Please go through this pdf do
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.