on 05-20-2008 10:25 AM
Hello all,
I want to place dynamic generated diagram in my PDF Form. Therefor I try to use BusinessGrahics.
How could I store GIF-Image generated from BusinessGrphics to binary context value attribute?
I can get URL of this images. It looks like
../..webdynpro/dispatcher/local/WS_IF/WebService_InteractiveForms/~wd_key2280_1211200432421/.gif?sap-wd-download=1&sap-wd-cltwndid=d618cc02259f11ddbb6a001a4baf5068&sap-wd-appwndid=d618cc03259f11ddb401001a4baf5068&sap-wd-norefresh=X
or
sadly ...
File file = new File(pictureURL);
FileInputStream in = new FileInputStream(file);
ByteArrayOutputStream out = new ByteArrayOutputStream();
//read file in loop
wdContext.nodeSomeNode().currentSomeNodeElement().setDiagram(out.toByteArray());
... doesn't work for pictureURL.
Is there some other possibilities ?
Thank you in advance,
Ivan
Hi,
you must b using LinkToAction..create an action for link with parameter ResouceElement..
public void onActionimageUplaod(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.imageuplaod.wdp.IPrivateUploadCompView.IResourceElement resourceElement )
{
//@@begin onActionimageUplaod(ServerEvent)
if (wdContext.currentResourceElement().getImgResource() != null) {
wdContext.currentResourceElement().setImgURL(
wdContext.currentResourceElement().getImgResource().getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
}
//@@end
}
u can map image UI elemnt wid a attribute to display image..
hope it hlps u....
Regards
Khushboo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ivan,
Did you solve this problem?
Thanks in advance,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.