Change visibility of table in interactive form through scripting

Hi all,
I am designing an interactive form in wd java. I used a table to display records in the interactive form.I want to make the table invisible if there is no data in the node. The table is wrapped in a subform . What scripting I need to do to make the table invisible if there is no data in the table node.
Thanks,
Satish Kumar

Dear Sathish,
I dont think there is direct way to control the visibility property in the Interactive form. Instead, you can create a table inside a subform and change the Subform Content Property to "Flowed".
You will be having a node assigned to the table. Instantiate the node twice, say first time for the heading row and the second time for the table content. and do this under the ciondition if the table is not enpty. This way you can control the visibility of the table and it is so simple.
if(<tablevalues> == null)
<Dont create any nodes>
else
//For Table Heading
IPrivate<>.ITestNode tn = wdcontext.nodeTest();
IPrivate<>.ITestElement tne = wdcontext.createTestElement());
tn.add(tne);
//For Table content
IPrivate<>.ITestNode tn1 = wdcontext.nodeTest();
IPrivate<>.ITestElement tne1 = wdcontext.createTestElement());
tn1.add(tne1);
Thanks,
Vivek.

Similar Messages

  • How to create table in interactive form via Java Web Dynpro

    Hi,
    How to create table in interactive form via Java Web Dynpro ?
    Any online tutorial / example ?
    Thank you.
    Regards,
    Eric

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • Saving values into table from Interactive Form

    Hallo together,
    iam trying to do the example "Include Tables" (SAP Interactive Forms by Adobe - Galileo Press).
    It works, but not as described. When i want to change data in the interactive_forms ui element and press the webdynpro native button send, the value at the webdynpro table does not change. When i change the value at the webdynpro table and press the send button at the form or change the line at the webdynpro, the value in the adobe formular changes too. Thats one problem.
    The other problem is that i want to save the changed/added data from the formular at the database. What to do? The form layout is "ZCI Layout" and i added the script:
    DO NOT MODIFY THE CODE BEYOND THIS POINT - 800.20070708051308.406522.403406 - ContainerFoundation_JS
    I also added this into "wddomodifyview":
    METHOD wddomodifyview .
      DATA: lr_interactive_form TYPE REF TO cl_wd_interactive_form,
                 lr_method_handler TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'FORM' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
    ENDMETHOD.
    I selected also:
    execute at: "Server and Client"
    I dont know what to do anymore.
    Best regards
    Philip

    Hi,
    To make an input enabled table. I would suggest to use TABLE element from the PDF library and then binding the columns from your context.
    Step 1: Library -> Standard ->Table
    Select create using assistance.
    Select body rows vary depending on data .
    Select number of Columns in your case it will be 4.
    Then proceed further and finish as per your need.
    Step 2:
    Select a table Column .
    Select Pallets->Object then chnage the cell type from Text to text field.
    Then click on binding tab and bind it to the respective field from hierarchy.
    Select upgrade the following properties radio button and check only "default value" option.
    This will create binding something like this $record.SCARR.DATA[*].CARRID
    Follow this for all other columns.
    Step 3:
    Now create a button in the View holding your form(you can also use SUBMIT button of form). On action event of this button right the following code to get all the changed values from Table.
    data lt_scarr type wd_this->elements_scarr.
      call method lo_nd_scarr->get_static_attributes_table
        importing
          table = lt_scarr.
    LT_SCARR will contain all the new values from Form. Then use this table to update ur database table.
    Thanks,
    Abhishek

  • Regarding dynamic tables in interactive forms

    Hi All,
            I have designed a webdynpro view which contains a table,i have to generate a pdf format file which also contains
    a table as there in the webdynpro view.
            I  have designed a dynamic table in interactive form and binded the interactive form ui element with the datasource and pdfSource.
    In the interactive form i am getting only one row data of webdynpro view table.In the Object palette, I selected Repeat Row For Each Data Item.
           share with me if u have any idea or send any document regarding table binding(dynamic) in interactive form.
    Thanks & Regards,
    saleem

    Hi saleem..
    Check this link..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59">Dynamic interactive forms an example</a>
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#47
    Urs Gs

  • Creation of table in interactive form

    hai,
    any one can explain me the creation of table in interactive forms transcation code(sfp) 
    or any can send any material because i am  new to  this, how to build interactive forms
    advance thanks.
    regards,
    shravanramidi .

    Hi,
    TRy https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cacb9a7d-0c01-0010-1281-be4962c9ab3e
    Regards,
    Shiva Kumar(Reward if helpful).

  • Adding dynamic size table to Interactive Form

    Hello everyone,
    I have a node with multiple elements that i would like to show in an interactive pdf form.
    I'm using the Adobe LiveCycle Designer to do it, but i'm only managing to bind "solo" variables, not tables.
    How can i associate dynamically a table with several lines to a pdf interactive form ? I tried a list box but i still only get the first element shown in the box. Am i doing anything wrong ?
                 Thank you in advance.
                           Nuno Santos

    Hi,
    Basically the general way to add a table to INteractive form is by adding a subform elemet to a subform element and(i mean subform in a subform), now map the fields u want to be displayed as a table.
    For the fisrt subform set the LayoutType-Flow Content,Flow DirectionTable.
    Then select the allow page breaks within the content option.
    And the binding should be Normal.
    for the second subform:
    LayoutType-Flow Content,Flow DirectionTable row.
    Now also select the option allow page breaks.
    Then for Binding tab: select the Repeat Subform for each data Item, then min count=1.
    And now if ur table columns contain names like abc, def and xyz.
    Then in the script editor code something like this
    abc[*]; under show: initilaze, language: Formcalc and Run at: client
    Hope this should work out for you.
    let me know if u have any more queries.
    Thanks,
    Lohi

  • Changing field values in a Interactive form

    I am trying to modify the fields of a Interactive form after the user presses the go button.  The following code appears in my onSubmit method.
    IPrivateIntPDFv1View.IPDFDataElement element = wdContext.nodePDFData().createPDFDataElement();
    element.setForename("Wrighty08");
    wdContext.nodePDFData().bind(element);
    When I then get the byte[] in the following code it does not have the changes I made above however the changes do appear on screen when the program finishes.  Any ideas?
    IPrivateIntPDFv1View.IContextElement contextElement = wdContext.currentContextElement();
    ByteArrayInputStream byteInput = new ByteArrayInputStream(contextElement.getPDFObject());
    Thanks,
    Ellis

    I am trying to get the byte[] with the new values set.  The implementation of the byte[] retrieval is in the submit-method.  But just before I get the byte[] I am trying to change some values in the interactive form.
    So first I run this code to change the value of a given field in the interactive form.
    IPrivateIntPDFv1View.IPDFDataElement element = wdContext.nodePDFData().createPDFDataElement();
    element.setForename("Wrighty08");
    wdContext.nodePDFData().bind(element);
    Then I get the byte array as follows.
    IPrivateIntPDFv1View.IContextElement contextElement = wdContext.currentContextElement();
    ByteArrayInputStream byteInput = new ByteArrayInputStream(contextElement.getPDFObject());
    The problem is that the changed values are not in the byte[].
    Thanks,
    Ellis

  • Sending the adobe interactive form as non-interactive form through email

    Hi ,
              I am trying to send the interactive adobe form as non-interactive form  through email.The interactive form size is very large because of the interactivity.
    Can anybody suggest how to do this.
    Regards,
    Debasis

    Dear Antony,
    Thanks for the reply.
           I got you but can you pls guide me how to go about it.
    I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
    Regards,
    Debasis Nayak

  • Capturing the changed data in the interactive forms through HTML Viewer

    Dear all,
    I'm showing the Interactive Adobe form in the HTML Viewer and I want to capture it back after the user enters data in the form and save it to application server.
    Can I get some help on this. Please attach supporting documents if any.
    Regards
    Aravind

    sorry i've got no document describing this. under service.sap.com/adobe you'll find a lot of Adobe content.
    But basically use the Adobe Designer from program files\adobe\design 7.0\formdesigner.exe
    create new form based on the CAF tutorials in the Interactive Forms section, add a new data connection to a wsdl, bind input/output parameters to form fields and get a button executing the wsdl operation.
    create your interactive form callable object based on that template, configure the form to start process and as impersonalized form. create the form from the GP administration screen, download it and test it.
    ...And Good Luck!!!

  • How to send Dynamic Interactive Forms through mail?

    Hi all,
    I'm trying to sent Interactive Forms as attachment through mails.
    Everything works fine as long as the Content of this Interactive Form stays static.
    When I add dynamic elements and test this in SFP, they work.
    However when they get sent by mail, the dynamic content is lost and gets back Static.
    Does anyone has ABAP code or any other solutions so that the PDF gets send as an Dynamic Form?
    Thanks in advance.
    Kind Regards,
    Maarten

    Hi,
    I'm working from the Web UI. This is BSP. Here I add 2 Methods (GET_PDF and SEND_MAIL).
    The GET_PDF gets all data for the form and then sends the FORMOUTPUT to the SEND_MAIL method.
    Here I add the PDF as following:
    First I convert it to BINARY and then I add it as attachment.
    Do I need to add it as another TYPE or ....
    +  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = ip_formoutput-PDF "PDF file from function module
        APPEND_TO_TABLE       = ' '
      IMPORTING
        OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = lt_att_content_hex
      lo_document->add_attachment(
        EXPORTING
          i_attachment_type    = 'PDF'
          i_attachment_subject = 'Your appointment Details'
          i_att_content_hex    = lt_att_content_hex ).+
    Kind Regards,
    Maarten

  • Dynamic table in interactive form & WD ABAP

    Hi,
          I have created a adobe interactive form adding the rows dynamically when pressing add button. The form works fine in Life cycle designer preview. But it doesnot work in Webdynpro ABAP runtime.
    Please let me know if any of you have a solution for the same.
    Regards,
    Vimal

    >
    Abhimanyu Lagishetti wrote:
    > change the displayType property of the interactive form and try
    > I had this problem long back, submit button was not working when changed this property it started working
    >
    > i hope it is helpful
    >
    > Abhi
    Actually be careful. Just changing the displayType probably isn't enough.  If you change from ActiveX to Native, you also must adjust the form itself - converting the form type and adding the JavaScript Header. And also Native (or ZCI) based forms are only available after SP12. If your system patch level is older than that release you might still have problems. 
    The ACF based forms do require an ActiveX control that gets pushed to the frontend. So this limits their browser support and also requires a version of the ACF control that matches your server.  So sometimes you get an ACF version mismatch if you work with multiple servers on different release levels.  ActiveX controls can also be blocked in IE depending upon the security settings that your company imposes.
    So first of all - do the SAP example ACF form applications work for you?  If they work, but this form doesn't then the problem may still be in the form itself.
    Two - are you at a release level where you can use Native forms instead?  If so you might consider going back to your Forms team and have them conver the form for you and use the Native display type.  This will reduce the complixity of having to rely on an ActiveX control. Finally if you are stuck with ACF then you need to start troubleshooting your security browser settings and/or the version of the ACF control that is installed on your desktop.

  • Table in interactive form using webynpro for abap

    Hi All,
    I am working on itercative form in adobe forms.I had a problem.
    I have one field in webdynpro and interactive form in my view.
    In interiae form layout i have a table which should be populated based on the input given in the field context attribute.
    in layout i have 5 fields from 2 fields should poulated based on the input 3 fields user can enter anything i.e these three fields should be interactive.
    I am able to sucessfully fill the data if i set 'Enabled' property to space in element interactive form.If i set enabled property i am not able see any data i my form.
    How can i do this happen.I am very confused.I searched in many forums everybody says that if you put 'Enbaled' check box in interactive that will became a interactive form.
    Thanks,
    Thragini

    Hi..
    use normal wedynpro codeings for table also..
    interactive form is a one of the GUI element in WD.so asual just  create one attribute for input.
    and one node for table bind the node to table. create action for input inside the action write select query in where condition give the readed value  and  once you create the inteactive form throuth the interface values will be shared automatically ..
    regards
    jayaprakash T

  • Problem with saving duplicated tables in interactive form

    Hi,
    I have an interactive form that contain a table with a row that contain "insert remove move " object .
    when i press the add button, it duplicate the table, but if i save the PDF and then open it again, the extra table does not appear,
    it seems like it never been save.
    do you knoe what is the problem? why the tables are not saved properly?
    thanks, Noa

    Hi,
    Try doing the following
    try using the simple 'Button'. In the button's object properties, in the tab named 'field', select 'Control Type: submit'.
    Then, in the 'submit' tab in the object properties, choose PDF in the 'submit format' dropdown field.
    In the 'submit to URL field' type:
    mailto:nameataddress.com?subject=mySubject&body=Done
    You may need to adjust the e-mail address, subject and body text.
    Regards
    Ayyapparaj

  • Dynamically increasing the rows of a table in interactive forms.

    Hi All,
       I am new to adobe forms.I am developing an interactive form in webdynpro abap.I have a requirement such that i have 3 columns in a table and the first 5 rows are default i.e, i will add it during design time.when we enter something in the 5th row,6th row should automatically be created which wil be empty.I also need to retrieve the data back into the webdynpro component when user enters something in it and clicks the submit button.can anyone tel me how wil i generate this table and when someone enters something into the form how wil i store the data back in the component.
    my context node has hours ,minutes and call code as attributes which wil be the column names.
    Thanks in advance.
    Regards,
    Srividya.

    Hi Srividya,
    For flow of data from the form to webdynpro. Do the follwing:
    Suppose you have a table on the form and you want to pass data from this form to web dynpro.
    1. Create a node of cardinality 0...n or 1.....n. Add attributes to this. Now this node is as a internal table and the attributes are like intenal table fields.
    2. When creating the form. Use This node as the data source for the form.
    3. Now its easy in webdynpro ABAP to create a table on the Adobe form. Just drag and drop the Data node(from which you want to create table) from the data view on the designer on to the form.
    4. Now its already bound to the node you have created and whatever data you will enter in the table that will be reflected to the node. and you can check it by creating a table on the view from the same node.
    5. After you will click on submit button the data will reflect to table on  webdynpro view.
    If its not works then problem could be that the ACF is not installed on your system due to which button is not processing and fields are not reflecting data.
    For ACF you can search it on SAP service market place.
    Hope it will help.
    Regards,
    Vaibhav Tiwari.

  • How we can attach documents in interactive form through GP

    Hi,
    I am creating a Callable Object(CO) for Interactive Form(IF) through GP. This IF is designed in Adobe Live Cycle Designer 8.  I am unable to get reader rights for this PDF which is downloaded as normal form/Impersonalized form. I am having default value for  Document Handling as Acrobat 8 (Dynamic) XML Form in Adobe Live Cycle Designer 8
    I created a NWDS project to test the reader rights which consists an IF. I tried with NWDS 7. When I run the application, I am getting reader rights, and able to attach documents, and able to sign the document.
    I am unable to get these features when I try with GP.
    Do I need to do any thing when I am doing with GP?
    Can any one suggest what needs to be done.
    Thanks in advance.

    Hi ,
    Check this link.Hope this might help.
    http://help.sap.com/SAPHELP_NW04S/helpdata/EN/0f/619fd378a641b29386063019c24fc4/frameset.htm
    Regards,

Maybe you are looking for

  • How do I restrict Adobe CC to just my user account (Mac)?

    Can anyone help with this please ... I'm running Adobe CC on a 2010 iMac (OS X Yosemite).  I'm delighted with it, however ... Several family members share the same iMac using separate user accounts.  Adobe CC seems to run for all of them which is ann

  • I'm in need of a rubberized case for a late 2007 macbook pro 15.4 silver keys help please

    please help me out I'm in need of a rubberized case for a late 2007 macbook pro 15.4 (silver keys) cd in front.  Please help me out.  here is my personal email: *****@gmail.com I also have just purchased a 2006 macbook pro 17 inch and would like a ca

  • Anyone had problems with jFilechooser?

    I have problems with JFilechooser freezes when invoking returnVal = chooser.showDialog(this, "Select"); For some reason it freezes the entire program, allthough sometimes (rarely), it doesn't freeze. Are there currently any problems with JFileChooser

  • How to use estimation rule in MDM2.0.1

    Hi, I am trying to use the existing estimation(interval interpolation estimation) in MDM2.0.1 for interval data.But while performing validation it is nt estimating the meter data and status is showing "exception" not finalized. can anybody help me in

  • Can't throw exception inside try block!

    Hi, I'm having a problem trying to throw an error inside a try block. To illustrate: public class TestException { public TestException() { try { int ret = foo(); System.out.println("ret is " + ret); } catch (Exception ex) { System.out.println("except