Skip to Content
avatar image
Former Member

How to make the text_field to editable in the adobe document?

Hi, expert,

I meet a problem when I develop a WDA. I hope to get your help. Thanks a lot. The following is my action:

Action:

1. I am using "Text Field" control rather "Text" Control in the pfd form by transfer code "sfp". I make sure in Object Palette under value tab type is : user entered - optional in the layout tab in the pfd form. The textfield is editable in the PDF preview.

2. Add the pdf forms to webdynpro application and set "sss" to the inputfield("Text Field") through context in the WDA.

3. Run the WDA. In the IE, I found the textfield in the PDF is not editable. How can I make the textfield to editable?

Whether I need change the code or others to make text_field to editable?

Do you give me some hints? Thank you very much.

The following is my code in the WDA:

method WDDOMODIFYVIEW .

********Make INTERACTIVE_FORM to editable。******

data:

lr_interactive_form type ref to cl_wd_interactive_form,

lr_method_handler type ref to if_wd_iactive_form_method_hndl.

lr_interactive_form ?= view->get_element( 'INTERACTIVE_FORM' ).

lr_method_handler ?= lr_interactive_form->_method_handler.

lr_method_handler->set_legacy_editing_enabled( abap_true ).

**************************************************

data:

Node_Zz_00_Test_Form_000 type ref to If_Wd_Context_Node,

Elem_Zz_00_Test_Form_000 type ref to If_Wd_Context_Element,

Stru_Zz_00_Test_Form_000 type Wd_This->Element_Zz_00_Test_Form_000 ,

Item_TEST1 like Stru_Zz_00_Test_Form_000-TEST1.

  • navigate from <CONTEXT> to <ZZ_00_TEST_FORM_000> via lead selection

Node_Zz_00_Test_Form_000 = wd_Context->get_Child_Node( Name = wd_This->wdctx_Zz_00_Test_Form_000 ).

  • get element via lead selection

Elem_Zz_00_Test_Form_000 = Node_Zz_00_Test_Form_000->get_Element( ).

  • get single attribute

Elem_Zz_00_Test_Form_000->set_Attribute(

exporting

Name = `TEST1`

Value = 'sss' ).

endmethod.

Best regards,

tao

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 03, 2007 at 09:49 AM

    Hi!

    As far as I know you need a Java Stack in order to use Interactive Forms within WDA; which is not needed when you only use "Non-interactive" Forms.

    What about your coding? Did you debug it? Is the set_attribute successful?

    Do you have such a java stack?

    Regards,

    Volker

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi, Volker,

      I think I have know why the problem had occured. I will ask basis how to get credential of the Adobe reader8.0. Thanks for your help again. Thanks a lot for your help.:-)

      Best regards,

      tao