Select all instances of cells form a dynamic table

HI,
I've an issue with a table.
I've found some answers here : http://forums.adobe.com/thread/849841 but don't work.
Let me explain.
I've got a dynamic table (with addInstance button and remove one).
There is 4 columns: 2 open and 2 readOnly.
Some users are allowed to change the readOnly ones.
Then, I've created a password field.
with :
if (formulaire1.titre.pw.pass.rawValue == "123")
and here... I'm bloqued
I've tried :
for (i=0;i<=formulaire1.check.tab1.r1.instanceManager.count;i++){
     xfa.resolveNode{"formulaire1.check.tab1.r1.[" + i + "].materiel").access = "open" ;
but failed (notting happend)
I've tried :
xfa.formulaire1.check.tab1.r1.resolveNodes("materiel[*]").access = "open";
failled, too
I've tried just : formulaire1.check.tab1.r1.materiel.access = "open";
Just open the first instance...
I'm not developper just designer... And here, I'm lost.
Thanks to help me.
Nath_lost

Hi,
The finished version of the SOM Expression example is here: http://assure.ly/kUP02y.
Try this in the exit event of the pass object:
var nMateriel = xfa.resolveNodes("formulaire1.check.tab1.r1[*].materiel");
var nFinishes = xfa.resolveNodes("formulaire1.check.tab1.r1[*].finishes");
if (this.rawValue == "123") {
     for (var i=0; i<nMateriel.length; i++) {
          nMateriel.item(i).access = "open";
          nFinishes.item(i).access = "open";
else  {
     for (var i=0; i<nMateriel.length; i++) {
          nMateriel.item(i).access = "readOnly";
          nFinishes.item(i).access = "readOnly";
This covers the material object and a fictional "finishes" to represent the second object that you want to set to open.
Also in your for script you were using an "i" variable, but you did not declare it, eg "var i=0". This is a hit on performance.
Hope that helps,
Niall
Message was edited by: Niall O'Donovan: there was an extra . in the xfa.resolveNodes. r1.[*] should have read r1[*].

Similar Messages

  • How do I select all instances of a clip in the timeline at once without manually shift clicking each instance?

    Title says it all!
    How do I select all instances of a clip in the timeline at once without manually shift+clicking each instance?
    The reason I want to do this is because I have a music video with MANY quick cuts. So clips are cut up and splattered all over the place. I am colour-correcting now and so I want to be able to select one clip everywhere it exists in the timeline so I can drag the effect onto all them at once, without having to find each instance of the clip in the timeline. This "batch select" would make it so I don't miss any instances of the clip and also saves a ton of time going through the timeline and shift clicking each time the clip turns up.
    I hope PP is smart enough to do this
    Thanks in advance!
    -- Tim

    Pick one instance of the clip, maybe even the first bit ... and use the new Master Clip feature ... here's first a written explanation and then a video tutorial on doing this ... it's a great feature.
    Adobe Premiere Pro Help | Master Clip Effects
    How to apply effects to all instances of a clip | Adobe Premiere Pro CC tutorials
    Neil

  • Merging of cells of a dynamic table in adobe form

    Hi,
    I am trying to Merge 2 columns in a dynamic table in adobe form.The requirement is to merge column 3 and column 4 if column 4 is empty. I used the below javascript code in both "Form ready " and Initialize event of the row.
    if (this.Cell4.rawValue == " ")
    this.Cell3.colSpan = "2";
    this.Cell4.presence = "hidden";
    Note : Since above code was not working , i used the below code in my subform also but it did not returned desired output.
    if(Table22.Row1.Cell1.rawValue == " ")
    Table22.Row1.Cell3.colSpan = "2";
    Table22.Row1.Cell4.presence = "hidden";
    The problem is that in my dynamic table , its the second row where the requirement is fulfilled ie in the 2nd entry of my table the column4 is blank (the exact row number might change depending on input data).
    is there a way to loop in the dynamic table and check if column 4 is empty for a particular row.
    the above code does not help to fulfill my requirements. kindly help.
    Thanks
    Aditi

    Hello Aditi priya,
    Hope you are doing good..
    Please go through my recent blog..
    http://scn.sap.com/community/interactive-forms-by-adobe/blog/2015/01/02/merging-internal-table-cells-dynamically-in-sap-adobe-forms-using-java-script-code
    I hope you will find all answers from this blog..Reward if helpful...
    Thanks & Regards,
    B Raghu Prasad

  • Row selector select all default in Tabular Form

    Hi,
    I am a newbie to APEX using 4.0. I have a tabular form with the default "row selector". Our requirement is to have the checkbox in the row selector column automatically checked when the tabular form is rendered, so that they can uncheck the lines that they do not want to select. The tabular form will have many records displayed on multiple pages. How can I select all in the row selector when the page is rendered?
    Thanks a lot for you help.
    Ed

    Ed,
    Create an on load dynamic action that executes the following javascript code:
    var elm = $x('check-all-rows');
    elm.checked = true;
    checkAll(elm);Cheers,
    Tyson Jouglet
    Edited by: Tyson Jouglet on Jun 24, 2011 7:00 AM

  • Itextsharp using livecycle form with dynamic table

    Hello all, after searching Google for the past two days and not able to find any relevant information, hence this post.
    Some background:
    1) Created a pdf form using Adobe Livecycle designer 9.
    2) It is a dynamic form with textboxes and a table configured to repeat rows dynamically.
    3) Testing form using xml data within designer works just fine.
    Requirement:
    Need to populate form dynamically using data from database.
    Solution:
    Found iTextSharp (free assembly) which assists with populating existing pdf form.
    Issue
    This assembly works without any issue when populating textfields (see sample code below). The problem I am facing is with the dynamic table where in I am not able to reference rows greater than 1. Since the pdf template contains a table with just one row referencing the first row using acrofield works.
    I was under impression since this is a dynamic table with repeat enabled, in asp.net if I referenced row2 onwards the table would grow automatically. Which I have come to realize is not going to be possible.
    So I am looking for ideas on how I can accomplish this. I wish this could have been a fixed row table then reference rows would have been easier. However in this situation the table has to be dynamic.
    Any ideas thoughts would be appreciated.
    Below is my sample code:
    PdfStamper ps = null;
    try {
    // read existing PDF document
    PdfReader r = new PdfReader(
    // optimize memory usage
    new RandomAccessFileOrArray(Request.MapPath("itext.pdf")), null
    ps = new PdfStamper(r, Response.OutputStream);
    // retrieve properties of PDF form w/AcroFields object
    AcroFields af = ps.AcroFields;
    // fill in PDF fields by parameter:
    // 1. field name
    // 2. text to insert
    af.SetField("txtCompany", "Company name");
    af.SetField("txtDateDepartLocation", "date depart location");
    af.SetField("txtDate","test date");
    af.SetField("txtServiceNumber", "Service number");
    af.SetField("Table2.Row1.Cell1", "1test");  this works
    //doesnt work!!!
    af.SetField("Table2.Row2.Cell1", "1test");
    af.SetField("Table2.Row3.Cell1", "1test");
    // make resultant PDF read-only for end-user
    ps.FormFlattening = true;
    // forget to close() PdfStamper, you end up with
    // a corrupted file!
    ps.Close();
    catch { }
    finally { if (ps != null) ps.Close(); }

    Hi FourEyes;
    Try using this.
    Select Col1, Col2, Col3
    into :P1_Field1, :P1_Field2, :P1_Field3
    from Your_Table
    Where (your conditions);

  • QUESTION: How can I locate all instances of a field in mult tables

    Hi all.
    So im just learning Oracle and I have an interesting question.
    I just learned how you can query things from multiple tables by using the tablename.fieldname in the select.
    My question is this. Lets say you have, oh, 100 tables and you have referenced a field like IDNUMBER in ten of the tables.
    Now I want to write a query to pull the ID number from those tables but I dont remember every table I used it in.
    How can you easilly find all instances of where a field is used in multiple tables? Im hoping I explained this right.

    791443 wrote:
    AWESOME!! THANKS!!You should be aware that this solution only works to the degree that columns are consistently named.
    Consider
    CREATE TABLE supplier
    (supplier_id      number       not null,
      supplier_name varchar2(50) not null,
      contact_name      varchar2(50),      
      CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
    CREATE TABLE purchase_order_hdr
      (purchase_order_id      number not null,
       supplier_number      number not null
       CONSTRAINT fk_supplier
       FOREIGN KEY (supplier_number)
       REFERENCES supplier(supplier_id)
    CREATE TABLE purchase_order_line
      (po_number             number not null,
       po_line_item        number not null,
       vendor_product_code number not null,
       CONSTRAINT fk_supplier
       FOREIGN KEY (supplier_number)
       REFERENCES supplier(supplier_id)
        );So, how do you catch that supplier.supplier_id is the same as purchase_order_hdr.supplier_number or purchase_order_line.po_number is the same as purchase_order_hdr.purchase_order_id?
    No, I don't have a solution, just pointing out that you may not be able to depend on a fully automated solution either. It depend on how rigorous your organization is about enforcing naming standards.

  • Delete user and all his related data form the relation table

    HI All,
    I have user and for the user i have 3 more tables with additional fields that relate to the user
    the the user is a key on the 3 tables and relate with foreign key .
    in case i want to delete the user and i want that all the user data from all the related table will be deleted how can i do that ?
    Regards
    Joy

    HI,
    The user is in Z DB tables so i cant delete it with this bapi,
    The problem is when i have 4 table and i want to delete the user from them like that :
      DELETE FROM: (sv_user_table_name) WHERE userid = iv_user_id,
                   (sv_add_fld_table_name) WHERE userid = iv_user_id,
                   (sv_att_table_name) WHERE userid = iv_user_id,
                   (sv_app_attributes_table_name) WHERE userid = iv_user_id.
    IF sy-subrc <> 0.
        RAISE EXCEPTION TYPE .....
    if the user are exist in the first and the second table and not in the third and four
    i get the sy-subrc = 4 despite the user has deleted from the first and seconed tables
    there is nice way to overcome this issue ?
    Regards
    Joy
    Edited by: Joy Stpr on Aug 3, 2009 8:57 AM

  • Reading Dynamic Table Values in interactive form (web Dynpro ABAP)

    Hi All,
    I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
    I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
    In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
    How can I resolve this problem.
    Thanks and Regards,
    Boopathi M

    that means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
    probably addNew() mathos may be useful to you.
    it appends a new record to the record set.
    xfa.sourceSet.dataConnectionName.addNew()
    also when on the exit event of the table field, do the following:
    var i = xfa.parent.index
    $record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
    xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname)

  • 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

  • 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

  • Dynamic table name in an inner join - select statement

    Hi,
    Please can you let me know if is possible to use a Dynamic table name in an inner join?
    Something like the statement below? (It works in a simple select statement but not in an inner join)
    SELECT  *
         INTO CORRESPONDING FIELDS OF <t_itab>
          FROM <Dynamic table name> INNER JOIN pa0050 ON
          ( <Dynamic table name>pernr =  pa0050pernr )
           WHERE <Dynamic table name>~pernr = it_pernr-l_pernr
           AND pa0050~bdegr = f_bdegr.
    Any help would be apprecited very much.
    Thanks & Regards.

    Hi,
    Check this link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/frameset.htm]
    [Re: accessing dynamic internal table's fields??;
    hope it'll help u.
    Regards,
    Sneha.
    Edited by: sneha kumari on Jun 18, 2009 1:57 PM

  • Interactive form in WD4A - dynamic table - adding rows

    Hi,
    I have a problem with dynamic table in WD4A. User can add row to table by clicking a button on form, but added rows are not transfered to mapped context node in my web dynpro application. I have made a lot of searches on SDN and I have found a lots of threads, but no answer.
    Maybe this should be a way:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9121. [original link is broken] [original link is broken] [original link is broken] - Read adobe data manually and create context element manualy too.. But I think this should be a part of webdynpro/interactive forms framework.
    Thanks for any answer!

    Hi, many thanks for your answer, so what do you think is the best solution for adding rows by user to interactive form's dynamic table?
    Manually read xml data during submit by this way: https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9121. [original link is broken] [original link is broken] [original link is broken] ?
    Or is there better solution for this? (any link to some examples, blogs, etc...)
    Many thanks for any answer!

  • What does mean You can include static and dynamic tables into a Smart Form?

    Hi guys,
    If you check the official documentation for Smart forms in the Internet you will read that the initial pharagraphs of the text tell you "Tables - You can include static and dynamic tables into a Smart Form. Dynamic tables enable you to display tables whose size is determined only at the moment of their output by the number of the table items to be displayed". The link is the following: http://help.sap.com/saphelp_nw04/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    I was wondering if this means that I can use field symbols with dynamical number of columns to print a smart form. Because it would be great since the customer wanted a dynamical report depending on the week day it was (If Monday, there was only 12 columns, but if Friday, it will be 52 columns (1 column more for every day elapsed in the current week)). I had to create 5 different forms, but I think using field symbols I had spent less effort. Do you know if it is really possible? If not, then what does mean "You can include static and dynamic tables into a Smart Form"?
    Thank you in advance

    Hi ,
    The concept of static and dynamic tables in smartforms, means you can use template- ( static table as no of rows and columns is fixed). Also you can use table- dynamic as the no of rows will depend on your line items.
    Hope this will help you to close this thread.
    Also, try to find this answer in posted forums. Creating a new forum everytime just increases the network traffic. So please try to avoid it.
    Regards,
    Vinit

  • How to assign values to dynamic table

    Hi All,
    I am working with a dynamic table and an internal table. My internal table looks like this.
    Projno       Cust      Opt         Status
    g1234       kkkkk       p1            I001
    g1234       kkkkk       p2            I004
    g1234       kkkkk       p3            I001
    g1234       kkkkk       p5            I002
    g1256       lmnvw       p1            I003
    g1256       lmnvw       p3            I004
    g1256       lmnvw       p5            I005
    g1256       lmnvw       p7            I001
    My Dynamic table struture looks like this
    Projno  Cust     p1  p2  p3 p4  p5  p6  p7
    I need data in my dynamic table from my internal table as follows
    Projno        Cust        p1    p2    p3     p4    p5     p6    p7
    g1234       kkkkk       I001  I004 I001         I002
    g1256       lmnvw       I003         I004         I005           I001.
    The problem is these operations may vary thats why i am using dynamic table. Even i cannot use case statement as the operations may vary.
    Is it possible to do using Assign component or some other way.
    Thanks

    This program creates dynamic internal table
    copy and paste in your program and test it .. debug it to know how it is creating dynamic internal table and values into that table.
    report z_dynamic.
    type-pools : abap.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: dy_table type ref to data,
          dy_line  type ref to data,
          xfc type lvc_s_fcat,
          ifc type lvc_t_fcat.
    selection-screen begin of block b1 with frame.
    parameters: p_table(30) type c default 'T001'.
    selection-screen end of block b1.
    start-of-selection.
      perform get_structure.
      perform create_dynamic_itab.
      perform get_data.
      perform write_out.
    form get_structure.
    data : idetails type abap_compdescr_tab,
           xdetails type abap_compdescr.
    data : ref_table_des type ref to cl_abap_structdescr.
    Get the structure of the table.
      ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( p_table ).
      idetails[] = ref_table_des->components[].
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype  = xdetails-type_kind.
        xfc-inttype   = xdetails-type_kind.
        xfc-intlen    = xdetails-length.
        xfc-decimals  = xdetails-decimals.
        append xfc to ifc.
      endloop.
    endform.
    form create_dynamic_itab.
    Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = ifc
                   importing
                      ep_table        = dy_table.
      assign dy_table->* to <dyn_table>.
    Create dynamic work area and assign to FS
      create data dy_line like line of <dyn_table>.
      assign dy_line->* to <dyn_wa>.
    endform.
    form get_data.
    Select Data from table.
      select * into table <dyn_table>
                 from (p_table).
    endform.
    form write_out .
    Write out data from table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component  sy-index
             of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          if sy-index = 1.
            write:/ <dyn_field>.
          else.
            write: <dyn_field>.
          endif.
        enddo.
      endloop.
    endform.                    " write_out

  • Dynamic table layout in Smartform

    Hi,
    Is there a way to have a dynamic table layout in smartform?
    The idea is to be able to print any kind of table with fieldsymbols without having to define the table layout/cell layout at design time, or if it's not possible choose one of the predefined line types at runtime. Please don't post how to print out a table using fieldsymbols, this is not the topic of this question.
    So I guess you'd need to choose the table line type at runtime or even better, create a table line type at runtime. Is this even possible?
    Thanks
    Edited by: Stanley Marsh on Oct 16, 2008 12:43 PM

    hi
    good
    Tables
    You can include static and dynamic tables into a Smart Form. Dynamic tables enable you to display tables whose size is determined only at the moment of their output by the number of the table items to be displayed. Table functions are:
    ·        Line feeds in individual table cells
    ·        Event-controlled output of table headings and footers
    ·        Integrated calculation of grand totals and subtotals
    ·        Colored boxes and shadings in tables
    thanks
    mrutyun^

Maybe you are looking for

  • How do i know if my ipad is an ipad 2

    I purchased my iPad from a reputable retailer however it was a customer return and it did not have the original plastic on the package.  I am concerned that the customer may have done a switch and returned an iPad in and iPad 2 box for a bigger refun

  • Executable Program (fileName.exe)

    i want to make my java program as an executable file, i mean by double click on the icon the program will be executed. please give me the steps in details. and thank in advance.

  • Default reference ID in Master Detail form

    Hi, I created a master detail form. When inserting a new record in the detail block, I want that value from the PK item from the master block appears in the FK item of my detail block. This problem was showed long time back in March, 2002. The answer

  • Installing the latest iTunes (9)

    each time I try and upgrade it asks if I want to repair the old iTunes or uninstall it. how do I do this without losing any files? I'm using a windows vista.

  • Please help me in inserting data into table from XML message.

    Hi Experts, Please provide a procedure to implement my below requirement. Since I am new to queue concept. [code]- <MESSAGES> - <MESSAGE ID="3026900">   <MSG_ID>3026900</MSG_ID>   <DT_POSTED>6/20/2013 08:15:48</DT_POSTED>   <POSTED_BY>GPD_MSG_EXTRACT