on 05-21-2009 11:15 AM
Hi All,
I have generated an interactive PDF form. I want to uplaod it in KM and also send it through e-mail. I suppose the PdfSource property should contain the binary data of the form through which I can upload it in KM.
But at runtime I am getting PdfSource value as null.
Further I also need to email it.
Please help.
Thanks!
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anubhav,
Try this..
Make sure pdfsourcce is type XSTRING.
You have checked enabled on Interactive form .
display type: native
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_pdfsource LIKE ls_context-pdfsource.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `PDFSOURCE`
IMPORTING
value = lv_pdfsource ).
Now use FM 'SCMS_XSTRING_TO_BINARY' to change it to binary
and finally save this in KM.
cheers
Vara
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anubha,
Please check whether the attribute is under any Value Node and the cardinality of the node is Okay??? Otherwise try creating the attribute as a value attribute alone without any value node over it and then give the property as binary and bind it to the dataSource property then...I believe that should work..
In case both doesn't works simply recreate... I don't think anything else could be wrong then..
Hope it helps
Regards,
Gaurav
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.