Interactive form - Retrieve table inputs

Hi,
I am working on interactive form where user needs to enter data in table which has 2 columns.
How can I retreive this whole table data in ONCLICK method.My cardinality is 1...n
I am only able to  get first row using following code.
DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
  DATA lo_nd_item TYPE REF TO if_wd_context_node.
  DATA lo_el_item TYPE REF TO if_wd_context_element.
  DATA ls_item1 TYPE IF_MAIN=>element_item.
* navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
  lo_nd_adobe_data = wd_context->get_child_node( name = IF_MAIN=>wdctx_adobe_data ).
* navigate from <ADOBE_DATA> to <ITEM> via lead selection
  lo_nd_item = lo_nd_adobe_data->get_child_node( name = IF_MAIN=>wdctx_item ).
* get element via lead selection
  lo_el_item = lo_nd_item->get_element(  ).
* get all declared attributes
  lo_el_item->get_static_attributes(
    IMPORTING
      static_attributes = ls_item1 ).
Rgds
Praveen

Hi Praveen,
In the On Submit Event use the following code. just change the Last Lines of your code so that the table can be read to an local internal table.
  DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
  DATA lo_nd_item TYPE REF TO if_wd_context_node.
  DATA lo_el_item TYPE REF TO if_wd_context_element.
  DATA ls_item1 TYPE STANDARD TABLE OF IF_MAIN=>element_item INITIAL SIZE 0.
* navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
  lo_nd_adobe_data = wd_context->get_child_node( name = IF_MAIN=>wdctx_adobe_data ).
* navigate from <ADOBE_DATA> to <ITEM> via lead selection
  lo_nd_item = lo_nd_adobe_data->get_child_node( name = IF_MAIN=>wdctx_item ).
* get element via lead selection
  lo_el_item = lo_nd_item->get_element(  ).
* get all declared attributes
lo_nd_item->get_static_attributes_table(
    IMPORTING
      table = ls_item1 ).
Regards
Pradeep Goli
Edited by: Pradeep Goli on Mar 13, 2009 4:43 PM

Similar Messages

  • How to do an interactive form with tables

    I've been asked to recreate an interactive form that was created using several tables. The tables are made up of cells that contain labels of what information is required, followed by blank cells where the user can put the information (text fields). A few of the cells are to contain drop down menus that will contain a list of answers to choose from (combo boxes). I kind of like the idea of doing it in a table just because it keeps everything lined up automatically.
    I am a Lynda.com subscriber, and I found a course on that site that shows how to create interactive forms with InDesign, but it just breezes past doing it with tables. It says you can do it, but doesn't show how. The problem is, one table can contain all three types of cells that I plan to use. I can select the whole table and then choose "Type" in the Buttons and Forms panel, but I would think that would turn the whole table into just one type of field. I can't seem to figure out how to select individual cells of the table to choose different types.
    Is there a way to do that?

    This is work around
    1- Draw a rectangle frame, and without release mouse use up and right arrow key to define rows and columns count and use Ctrld+ down arrow key to reduce space between rows and Ctrl+left arrow key to reduce space between column.
    2- Covert frames to Buttons.

  • WEBDYNPRO ADOBE INTERACTIVE FORMS INTERNAL TABLE BINDING

    Hello Firends,
    I have created one table in the WebDynpro Program with Context NODE_RESULT having Cardinality 0...n in the View ADOBE_VIEW. In this view I have created the Interactive Form and specified the properties: data source as NODE_RESULT, Template Source as Z_XX_ADOBE_FORM.
    Also I have made an supply function for the context NODE_RESULT as GET_RESULT.
    In the Supply Function I have used the BAPI to fill the contents of Internal table (itab_data). And have binded the itab_data using node->bind_elements... (ALSO Tried node->bind_table...).
    Also I have coded the HANDLE_IN method.
    Here the point is that I can see the table in the interactive form layout and have successfuly binded all the elements and when  I have tested the form, the Adobe form is showing the blank table. i.e. it is showing up only the design of table, not the internal table values what I have binded.
    I have made every check like ADS is working fine as I can run the Interactive form through the ABAP program (i.e. through se38, where the form is allowing me to save the data in the PDF).
    Have installed the ACF.
    Also checked that the form is XML based schema and it Generated.
    Here everything is fine but I am unable to bind the internal table from webdynpro to Adobe Interative form.
    Friends plz help me in resolving this issue.
    Thanking You
    Regards
    Pradeep Goli

    Hi Vaibhav,
    Sorry for replying late.. I have done debugging on the node and found values are being populated to the internal table which i have created, and also as you said i have dragged the node and found the table icon is appearing and in form object pallette of that table the poperty of binding is "....[*]" is also creating but the vvalues are not being reflected to the PDF output.
    Also i have tried many approaches like first creating the form and then creating the webdynpro program and by linking the form to the wendunprro. But the result is same i.e. no values are being found in output.
    But i have a doubt that what are the system requirements to get this binding done properly. i.e. I am using Netweaver 2004 with SPS release 7 and Adobe 8 and ACF is being installed in the system. And also I can see the values if I am using the structure but the problem is with table. And I can work with the ABAP ADOBE where if I am coding using se38 and executing the values are excellently displaying in the PDF output(Similar case with interactive forms) Also ADS is properly configured.
    Is it compulsary to have SPS GREATER than 8 for NETWEAVER 2004.
    Please kindly help me in this regard. Thanking you at the earliest.
    Regards
    Pradeep Goli

  • Interactive Form - Dynamic Table - OVS

    Hi,
    I have an interactive form with dynamic table. I have few other fields which are not part of the table, but do participate in Object Value Selection. The table fields are bound to context variables. I am able to add more rows to the table. However, the moment I use OVS on the other fields, my table rows are getting lost.
    I tried with both "Generate PDF" and "Update PDF" mode. Both have the same behaviour. Why are my table rows getting lost when I am using OVS?
    Any idea?
    Thanks
    Ram

    Hi,
    Select the InputField1 and goto Script Editor and select the Event type: "Change" and Language as "FormCalc" and in editor write the below code:
    InputField2.rawValue = Num2Date(IsoDate2Num($.rawValue)+7,"DD/MM/YYYY")
    Based on your requirement change the display pattern of both the date fields in the object pallette.
    Note: Make both the fields as Date/Time Fields and not TextFields.
    Regards
    Pradeep Goli

  • Adobe interactive form with table in webdynpro

    Hi Experts,
    My requirement is getting the data from adobe form table to my context node where I 've used 0..n cardinality to my table. what I did is when I use 0..1/1..1 cardinality to pass the data from adobe to context node am getting the data, as per my req. I 've to pass more than 1 record at a time so I set the cardinality to 0..n/1..n for the context node in this case am not getting the data to my context node. all the settings and the mappings are done properly. can anybody suggest me how to proceed in this case.

    What SP level is your NetWeaver system?  I've seen at least two other threads describing the same problem in the last few days.  I can not recreate the problem on my SP15 system, but I suspect since several people are having the same problem that there is a bug in the runtime at some SP level. I suggest that you enter a support ticket and/or search OSS for possible notes.

  • Save an image from interactive form to R/3 system table

    Hi to all,
    my scenario is this: Web AS 7.0 (probably patched to the last available patch), NWDS 7.0 and, at the moment, a 4.6c R/3 backend system (within some months we will upgrade to ECC 6.0). I have an online interactive form with some input fields and a user, logged in, fills these fields and pressing the "Submit to SAP" button will save the datas to a custom table on 4.6c backend. All this is simple and is working, but my problem is that one of these fields is an image. The purpose is that the user click on the image field and load an image from local PC and then, pressing submit to SAP button, will save the image on the custom table.
    How can I make this? Which kind of context I have to bind to the image field? I have to add a java script/form calc code to image field? And to backend side, how can I do?
    Thank you very much in advance,
    Enrico

    Hi,
    In your forms you got the image or a link to the image ? If it's the image the field is define as an XSTRING is supposed. If yes you can add it easily in a database table.
    If it's a link, your SAP system ( 4.6 C ) need to the the repository where the image is and then you can add it in the database.If you SAP system doesn't see the repository it's impossible to do so.
    Hope this help you.
    Best regards

  • Adobe Interactive Forms displaying returned tables

    can anyone help me display returned tables in adobe
    interactive forms
    i have an 2 adobe interactive forms, one for input
    the other for output on 2 different views
    the input form takes a few parameters, calls the
    back end RFC and the
    output form displays okay, but i just get the last
    row from the table
    i've tried binding 1 of the output table parameters to a drop down box and subform,the drop down box displays
    one of the return parameters but will not drop down
    whenever i include a subform i get a java error on
    the output form with no display
    i know there are several rows returned from testing the rfc inside abap workbench

    Hi Dennis,
    To display table in Adobe forms.
    Follow these steps :
    1. Insert one sub furm.
    2. make its type to flow content and flow direction to Table in object property.
    3. Insert another subform in above sub form and makes its type to flow content and flow direction  to Table row.
    4.In binding tab for this subform check the checkbox for "Repeat subform for each Data Item" and in min count you can specify at a time how much rows you want to display.
    5. Now place your UI Elements for Data view into this sub form.
    6. format these ui elements as you required.
    Run application now u can see multiple rows in adobe forms, if you have multiple elements in your table node.
    Let me know the status.
    Regards,
    Bhavik

  • Dynamic table in webdynpro interactive form not working. Urgent

    Hi guys,
    I am facing a problem when trying to retreive data entered in interactive form dynamic table.i can get the data entered in non dynamic fields no problem.
    I have a node structure like this
    Root
       Data 1...1 singleton and non tried both
           Table 1...n singleton and non tried both
    In my adobe form i tried adding rows using add instance, and also using add button in webdynpro native. In the same method that adds row i simulated the submit button to create row in WD context! It adds rows but any data entered later is lost. One more thing i have noticed is it sometimes works after adding just one row! Data is passed to context but from next row it doesnt work! What am i missing?
    I also tried adding a button in webdynpro tray and adding the row directly to the context. new row is created in form but any data entered in new rows is lost!
    I am unable to obtain the data entered in Dynamic fields. I thought i would try the xml reading method but the problem is after crating a couple of rows dynamically if i go save pdf locally the new rows are not showing up in the pdf!
    I have seen a post which said using the if_wd_iactive handler to set the form as dynamic but that method is not available in our system! Sorry i am not in front of an SAP system so i cant type exact names!
    I tried using zci update program/ etc etc but i am still struggling at the moment. Any help would be much appreciated! Pls ask if you need more info.
    Regards
    Naresh
    Edited by: naresh dwadasi on Oct 7, 2011 9:05 PM

    problem solved! I had to recreate the form. not sure if i corrupted the webdynpro scripts etc by mistake.

  • Binding context node  to table in adobe interactive form

    Hi All,
             I have an interactive form with table inside that. Mapping to the row of the table is giving some error. Can anybody tell how to create a context node in wdj, so that i can map to table.
    Regards
    Sowmya

    Hi Sowmya,
    Go through the following links in order to use Table in Interactive Form:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cacb9a7d-0c01-0010-1281-be4962c9ab3e
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b41fd790-0201-0010-f9ad-b4c9582a83e9
    Thanks n Regards,
    Jhansi Miryala

  • Need input on Interactive Forms

    Hello,
    Can anyone give idea on below info.
    ( As per my knowledge the following are not possible, any alternatives are welcome! ).
    1. Suppose the interactive form contians some input fields and submit button. When the user enters data and click on submit button, the data should be validated in SAP and the status and some other data should come back Adobe layout.Is this possible?
    2. If the above step possible,Based on the return values new form (interactive) should be generated and display the user. I should say this can be dynamic .
    Thanks in advance.
    pavan meda

    Pavan,
      Use two different Webdynpro views and define outbound and inbound plug between these two and share the session data with the component controller. Once the user submits the data validate it with the back end and if it is validated call fire the outbound plug and your second view would display the new adobe form. Hope this would solve your problem. I have designed few applications as I described above. If it doesn't work for you please let me know.
    Thanks!
    Surya.

  • Error message while clicking PDF Preview of a ADOBE interactive form

    Hi -
    I am creating an ADOBE interactive form having Tables, few text fields and E-mail submit button. The scripting language used is FormCalc.
    Whenever I am clicking on PDF Preview to see the form layout and to check other functionality, I am getting an error message:
    Error message -
    Error: syntax error near token '|' on line 1, column 14.
    Script failed (language is formcalc; context is xfa[0].form[0].data[0].Mainpage[0].Subform3[0].Table2[0].Row1[0].RATING[0])
    script=this.isnull || (this.rawvalue >= -32768 && this.rawvalue <= 32767
    I checked my scripts and there is no syntax error in that. My form is also working absolutely fine except getting this error message pop up whenever I try previewing my form.
    Can you please tell me, what can be the possible reason.

    I tried everything, but couldn't figure out the reason for error. I wrote the script again, but the error is still coming.
    Here is a part of my script. I have written this script on Email submit button in preSubmit event, to check if the RATING field value is less than or equal to 3. depending upon this condition, I am making the COMMENT field as mandatory. The same script is repeated for all the RATING & COMMENT fields.
    if (data.GyanMainBodyPage.Subform2.Table1.Row1.RATING1 <= 3)
    then
                  data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatory = "error"
                  data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatoryMessage = "Please fill corresponding comment"
    else
                  data.GyanMainBodyPage.Subform2.Table1.Row1.COMMENT1.mandatory = "disabled" 
    endif

  • Interactive Form in webdynpro

    hi all,
    I have created a interactive form with 1 input field and 1 submit button. On click of submit button 1 want to print some message. I dragged the "Submit to sap button" in the form. On the view, i created a action and mapped the action to the pdf properties - onsubmit action.
    But after deploying i am unable to print any message.That action is not getting called. Where could be the error? What has to be done for this? Acl 9.0 is installed abode 8.0 is also there.
    Can any one please help me out in this issue?
    Thanx and Regards,
    Divya

    Divya,
    What is ACL 9.0? Did you mean Live CycleDesigner here?
    Also check my reply [here|Re: Communication problem between Adobe Form and WebDynpro; for your posting.
    Chintan

  • Unable to toggle a Radiobutton in an adobe interactive form

    Hello experts,
    I am populating a table in adobe interactive form and table is bound the context node of Wedbynpro java. I want first column of table to be with radio button and at a time only one radio button should be active.
    But problem is i can put active all the radio buttons in that column when only one should be active.
    What would be an issue ?
    Thanks in advance.
    Swami

    Hi Swami,
    Unless and untill the radio buttons are in a group you can select all of them.
    Since each record in the table is comnpletely independent with other you have this behaviour.
    Is the requirement is something like you will have a dynamic table on the form.
    user can select only one row at any instance, if so I would simply write a on click event script.
    Onclick get the instance Index of that row.
    loop through all the instances of the table and set the coulmn (radio button value) to null / off when the index is same as the selected index set it to on.
    Hope this gives you an approach.
    Cheers,
    Sai

  • Settings in WAS for ADOBE Interactive Form

    Hi all,
    What settings need to be done on server(WAS) side so that adobe interactive form can be used in the application.
    Actually i have developed an application, first view of it is an adobe interactive form having 4 input fields and i am displaying this inputs in textview in next view after navigation.
    But I am getting the following error when i run the program and try to diplay the adobe form.
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  UPDATEDATAINPDF
    Experts please help me  in this regards
    Thanks & Regards
    Sagar Ingalwar

    Hi,
    Check page 26 in following document https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30a9630b-4f89-2a10-6fab-e311b3ffd9a6
    it says prerequisites as below
    You change the user settings in the J2EE Engine.
    1. Log on to the Visual Administrator. (See How to Start the Visual Administrator [Page 57].)
    2. On the Cluster tab, choose Server <x> u2192 Services u2192 Security Provider.
    3. Choose User Management and then the Tree tab in the left panel.
    4. Select ADSCallers u2192 ADSUser.
    5. In the Authentication area, choose Add.
    6. In the Add Certificates dialog box, from the Select view drop-down list box, select the ADSCerts view.
    7. From the Select entries list, select the certificate that you want to associate with this user, and then choose OK.
    8. In the Authentication area, select No password change required.
    PradeeP

  • How to get the values enterd in the interactive form and store it in table.

    Hi Experts,
    I have a requirement, i want to display the editable fields in Adobe form and have a button.If i click the button what i enter in the fields that will be store in the table.
    I tried but the button action is not going....
    In the Form i put the layout type as : xACFLayout.
    and in the webdynpro the enabled property checked and display type put the activeX still the form in the fields are in non-editable....
    Can you please give me step by step procedure for the same.
    Thank you in advacne..
    Thanks.
    Rrrr.

    Hi,
    I put the form layout is ZCI.
    When i click the button the acion was not trigerring.
    Please help me in this ASAP. It's imp for me..
    For your understand;
    My Requirement:
    I have a interactive form in that 2 input fields 1. First name 2.Last name and one button .
    If i clcik the button what i enterd in the above 2 inputfields i have to get store it in R/3 table.
    I tried this one.
    1. Created the view in the context created the node "adobe" cardinality... (1..1) and below created the child node "input" cardinality(1..1) and 2 attributes first name and last name.and other attribute pdfsource type xstring.
    created the UI element Interactive form, and chekc the enabled checkbox, and display type "native" and binding the  data source property to node  "adobe" cardinality... (1..1) and pdf source to pdfsource node. and templet  gave  "ZFORM" and gave the interface name "ZINTERFACE" and drag and drop the node elements into layout
    and created the webdybnpro button and webdynpro event gave *clcik and javascript and save activated the form.
    2. In the Ui elemt in view action onsubmit wrote the code to get the context element values and insert  that int0o table.
    But here the Submit button action was not trigerring.....................
    can you please help me in the same..... ASAP give any sugesstion what i have to change in this scenario.....

Maybe you are looking for

  • Logging open and close of documents?

    I'd like to have a record of when I open and close documents, so that I can support my diary notes of jobs I've been working on. So I need to have the filename recorded. I can find an app' to log application usage; is there one for file usage ? regar

  • When I try back up my ipod it says error cant back up

    I connected my ipod to itunes and pressed the backup button on it and it started and stoped and said error so i restored it that didnt work reinstaled itunes but still it didnt work please help

  • How do you crete an "unrendered look" in Final Cut Pro 7?

    Hi guys, Does anybody know how to crete an "unrendered look" in Final Cut Pro 7? What video filter do you apply? I'm trying to create a security Camera Look and I can't find the right filter. Any help ? Thanks.

  • Weird Firefox Happening Please Help!

    When I minimize Firefox 8.0.1 to work in my windows 7 computer it won't stay minimized but about 30seconds then it maximizes all by itself without any intervention from me. I minimize it and it starts all over again. Has anyone had this problem? Than

  • CCMS Solution Manager

    Hi, I am trying first time configuration of CCMS auto alerts through Solution Manager 4, I would like to knows step by step configration with screenshots, using NW2004s 4.6C SP20 WA620 under Unix... If anyone provide me information or URL I will be r