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

Similar Messages

  • How to handle Adobe Form - Dynamic Tables.

    Experts:
    I am new to Web DynPro for ABAP and Adobe Interactive forms.
    I have created a Adobe form with dynamic table. When I submit the form, WD4A is able to read only the first row of the table. Other rows are getting lost.
    I thought just binding with the context will trasfer data from Adobe to WD4A. But it is not happending.
    Do I need to write any code in WD4A and any script in Adobe Designer?
    Can any one send me a sample code (ABAP and JavaScript). Even link to that will be very useful.
    Thanks,
    Vijai

    Thomas:
    My context is as follows.
    <CHANGING>
      <REQUISITION_ITEMS>
        <ELEMENT..1>
        <ELEMENT..2>
        <ELEMENT..3>
    The cardinality of <CHANGING> node is 1..1 and the cardinality of  <Requisition_items> is 1..n.
    Thanks
    Vijai

  • 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.

  • 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

  • How to make Offline Interactive form Dynamic in nature?

    Hi,
    I am using SFP to create Interactive forms. In Form properties -> Defaults, I have set "Interactive Form" and "Dynamic Form" in Preview box... Data is read from XML and in the preview tab of SFP, form works just fine.
    In the function module call, I have set Fillable = 'X' and also Dynamic = 'X' for docparams.
    When I run the program and create the form, drop down list is not displayed properly.. when I had not set dynamic = 'X', I could not see any value at all in the drop-down field.. after setting dynamic = 'X', I just see one (first) value populated in the drop-down field, but the field does not show any drop-down to choose other values from..
    am i missing any setting or doing anything wrong?
    thanks.

    Hi,
    I am using SFP to create Interactive forms. In Form properties -> Defaults, I have set "Interactive Form" and "Dynamic Form" in Preview box... Data is read from XML and in the preview tab of SFP, form works just fine.
    In the function module call, I have set Fillable = 'X' and also Dynamic = 'X' for docparams.
    When I run the program and create the form, drop down list is not displayed properly.. when I had not set dynamic = 'X', I could not see any value at all in the drop-down field.. after setting dynamic = 'X', I just see one (first) value populated in the drop-down field, but the field does not show any drop-down to choose other values from..
    am i missing any setting or doing anything wrong?
    thanks.

  • 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 input fields

    Hi,
    I am working with an interactive form.
    After Userinputs a InputField1 it should populate Inputfield2 dynamically.
    Lets Say if I enter a 01/01/2009 in input field1, second input field should be a week after date 01/07/2009.
    How do we handle this ?
    rgds
    Vara

    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.

  • 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

  • Retreival of Dynamic Table Datas from Adobe to WebDynpro- ABAP

    Dear Friends,
    I have Developed an application in Webdynpro-ABAP, where i have integrated Adobe form in the webdynpro.
    In the adobe form, dynamic table is there where we can add and delete the rows at runtime.
    I am trying to retreive the table datas at runtime from the adobe.
    I can able to retreive only the first record from the table, even if the table contain more than one rows.
    As per the below code i have retreived the count, where it is showing the count as 1.
    using the method get_static_attributes_table i am trying to fetch all the records, but i can able to retreive only the first record.
    lo_nd_zsm_fm_transport_tra = wd_context->get_child_node( name = wd_this->wdctx_zsm_fm_transport_tra ).
      lo_nd_tr_details_i = lo_nd_zsm_fm_transport_tra->get_child_node( name = wd_this->wdctx_tr_details_i ).
    count = lo_nd_tr_details_i->GET_ELEMENT_COUNT( ).
    elems_bank_table = lo_nd_tr_details_i->get_elements( ).
    lo_nd_tr_details_i->get_static_attributes_table(
      importing
        table = ls_tr_details_i ).
    Even Cardinality i have maintained as 1.N for the node.
    Kindly provide me the solution.
    Thanks and Regards,
    Sathish,,

    Hi, I have solution for read data from dynamic table and add these added row to WD4A context (and then save them to DB) (in ONACTIONPROCESS_SUBMIT event):
    DATA: l_fp TYPE REF TO if_fp.
    l_fp = cl_fp=>get_reference( ).
    DATA: l_pdfobj TYPE REF TO if_fp_pdf_object.
    l_pdfobj = l_fp->create_pdf_object( ).
    l_pdfobj->set_document( pdfdata = lv_pdfsource ).
    l_pdfobj->set_extractdata( ).
    l_pdfobj->execute( ).
    DATA: pdf_form_data TYPE xstring.
    l_pdfobj->get_data( IMPORTING formdata = pdf_form_data ).
    DATA: converter TYPE REF TO cl_abap_conv_in_ce, formxml TYPE string.
    Converter = cl_abap_conv_in_ce=>create( input = pdf_form_data ).
    Converter->read( IMPORTING data = formxml ).
    TYPE-POOLS: ixml.
    DATA: l_ixml TYPE REF TO if_ixml.
    l_ixml = cl_ixml=>create( ).
    DATA: streamfactory TYPE REF TO if_ixml_stream_factory,
    istream TYPE REF TO if_ixml_istream.
    streamfactory = l_ixml->create_stream_factory( ).
    istream = streamfactory->create_istream_string( formxml ).
    DATA: document TYPE REF TO if_ixml_document.
    Document = l_ixml->create_document( ).
    DATA: parser TYPE REF TO if_ixml_parser.
    parser = l_ixml->create_parser( stream_factory = streamfactory
                                               istream = istream
                                               document = document ).
    Parser->parse( ).
    the code above allows you to read xml data from pdf file, then you need only to read xml and adding rows to your context:
    data : item type string.  DATA: nodechild TYPE REF TO if_ixml_node,
            Childschild TYPE REF TO if_ixml_node.
        data: num_of_children type i,
              x type i,
              y type i,
              num_of_attribute.
    node = document->find_from_name('ZAM_PROTSTROJF').
    num_of_children = node->num_children( ).
    nodechild = node->get_first_child( ).
    data: wa_strojdetail type ZAM_PROTSTROJF,
          wa_strojdetail_tab TYPE TABLE OF ZAM_PROTSTROJF.
    wa_strojdetail-docnum = ls_zam_protstroj-docnum.
    wa_strojdetail-bukrs = 'VVS'.
    wa_strojdetail-mandt = sy-mandt.
    y = 1.
    do Num_of_children times.
           num_of_attribute = nodechild->num_children( ).  " Childschild->num_children( )." Getting the number of attributes
           Childschild = nodechild->get_first_child( ).
           wa_strojdetail-itemnum  = y.
           x = 1.
           do num_of_attribute times.
              item = Childschild->GET_value( ).
              CASE x.
                WHEN 4.
                  wa_strojdetail-anln1 = item.
                WHEN 5.
                  wa_strojdetail-anln2 = item.
                WHEN 6.
                  wa_strojdetail-bubtr = item.
                WHEN 7.
                  wa_strojdetail-belnr = item.
              ENDCASE.
              Childschild = Childschild->get_next( ).
              x = x + 1.
          enddo.
          y = y + 1.
          APPEND wa_strojdetail to wa_strojdetail_tab.
          nodechild = nodechild->get_next( ).
    enddo.
    This is complete solution for adding rows in interactive forms and working with them in WD4A!
    Regards Jiri
    Edited by: Jiri Neuzil on Jun 10, 2009 8:13 AM
    Sorry for formatting, but I don't know, how to format text correctly on this site in plain text I have all text correctly formatted, but in preview....

  • 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

  • Changing the background of a text field in adobe interactive forms

    Hello All,
    Is there any way to change the background colour of text field in interactive form dynamically.??
    Thanks,

    Naresh,
    Change the language to JavaScipt in Script Editor of LiveCycle Designer and use the following code to highlight the area of TextField where R,G,B means that you have to give the RGB values of the color you want.
    <YourTextFieldName>.border.edge.color.value = "R,G,B";
    For eg:- If you have a textfield with name TextField1 then this will highlight the TextField1 area in red color.
    if ((TextField1.rawValue==null) || (TextField1.rawValue==""))
      TextField1.border.edge.color.value = "255,0,0";
    You can use this on exit event of Textfield1 or at the submit button where you check the form data.
    Chintan

  • 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

  • How to make a form Dynamic(Serious Issue)

    Hi,
    I have a problem.
    How to make an Interactive form Dynamic while saving it in NWDS(NetweaverDeveloperStudio).
    Helpful answer is highly rewarded and Highly Appreciated.

    Hello Sankar,
    Do the following:
    1) In your Adobe Livecycle Designer, Select, Edit > Form Properties, in the Default tab, set u201CPreview Typeu201D to u201CInteractive formu201D
    2)
    Assuming you are using Web Dynpro application, then do the following also:
    Place the following code in the wdDoModifyView method of the View where the form is placed.
              IWDInteractiveForm iForm1 = (IWDInteractiveForm) view.getElement("<name of your form here");
              iForm1.setDynamicPDF(true);
    Hope this helps,
    Harman

Maybe you are looking for

  • Error in german language for sap cube,

    getting below error when selected only single column form the sap cube. Error Details Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. URL: http://IPnumber:

  • Can a physical standby propagate data to a logical standby?

    Here is my situation. I have a RAC database that currently has a physical standby (also RAC cluster) for disaster recovery (DR) and I am about to create an additional logical standby for real-time reporting. My customer is asking if I can also create

  • WD ABAP. set context noe for an inputField

    Hello community, Does anybody know how to set a context attribute that mapped to an inputField? node = wd_context->get_child_node( 'NodeName' ). node->bind_elements( new_items = ANY_TABLE ). It seems to be very inconvenient to pass any table (ANY_TAB

  • .bundle files...can I change them?

    Hi, I have a file that is a .bundle file...I would like to change its contents...is this possible and how do I change it? Thank you in advance...

  • HDD Crashed, can't find my disk

    We'll my old MB Late 2007 HDD crashed a year and a half or so ago, and I still haven't found my disk to re-install Leopard.  I want to toss in a new HDD, switch my new RAM from my MBP to my old MB when I upgrade my RAM, and use it as a dedicated comp