Unnamed fields in a form: how to reference them in a dataset

Hi all,
I am trying to programmatically fill out an XFA form. The form contains a table in which rows can be added dynamically. This is what the relevant template segment (in a simplified form) looks like:
               <subform name="page6">
                     <subform name="headerSF">
                          <field name="TextField13">
                          <field name="TextField15">
                          <field name="TextField14">
                     <subform name="Table1">
                          <subform name="HeaderRow">
                               <field>
                          <subform name="Row1">
                               <subform name="buttons">
                                    <field name="addRow">
                                    <field name="DeleteRow">
                                    <field name="moveUp">
                                    <field name="moveDown">
                               <field>
                               <field name="quantity">
                               <field name="unitPrice">
                               <field>
                               <field>
                               <field>
                               <field>
                               <field>
                               <field>
                               <field>
                               <field>
                               <field>
As you can see, quantity and unitPrice are named, but the other fields in the table row are not.
So, I can easily specify the quantity and unitPrice via the following dataset XML:
<page6>
          <headerSF>
                    <TextField13/>
                    <TextField15/>
                    <TextField14/>
          </headerSF>
          <Table1>
                    <HeaderRow xfa:dataNode="dataGroup"/>
                    <Row1>
                              <buttons xfa:dataNode="dataGroup"/>
                              <quantity>12</quantity>
                              <unitPrice>3242.11</unitPrice>
                    </Row1>
but how do I specify the other, unnamed, fields for the table row?
Thanks a lot in advance.
-- DC Dweller

Hi,
the data of the unnamed fields won't get saved in the data DOM, because of the missing namings.
You can easily check how the data DOM looks like.
Add a text field with this script in it's calculate event to show the data DOM's structure.
var dump = xfa.data.saveXML("pretty");
this.rawValue = dump;
You'll see something like:
<?xml version="1.0" encoding="UTF-8"?>
<xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
   <Form1>
      <Table1>
         <Row1>
            <quantity/>
            <unitPrice/>
         </Row1>
      </Table1>
   </Form1>
</xfa:data>

Similar Messages

  • Custom Fields in Incident form - how to report on ?

    I added a site field and a line of business filed to the incident form.  The fields are not showing up in the DW to be reported on it seems, named the MP Incident Customer ..   How do I get these fields to show ..

    The management pack must be sealed in order to get the extended field to synchronize to the data warehouse.
    www.zgc.se - Sysadmin blog.

  • Fragments - How to reference them in JS?

    Hi,
    We have a subform that is being used in about 20 places in a dynamic PDF form and basically showing/hiding this subform and setting it's internal object values based on user's selection somewhere else in the form.
    Using the normal way of scripting this subform and its objects directly is working perfectly. However, when I converted this subform to Fragment, the current JS does not working any more. Another strange thing is the fragment node is not showing in the auto complete list during scripting!?
    I do appreciate any idea where to look at and if there are any references on how-to?
    PS: using Adobe LC ES Designer 8.1.
    BR,
    Yasser

    Hello,
    are there any ideas how to solve that problem?
    I've got the same problem:
    "var childNodes = startNode.nodes;" found nodes which are fragments themselve. If I want to do a "theNode.access = "readOnly"; " the contained formular elemnts are not found (within LC Designer 8.1, they're greyed out too).
    Is there another naming convention for denote a fragment or doesn't fragments can be manipulated in such a manner :-(( ?
    Regards, Leo

  • Elements of NSScrollView and how to reference them

    Hi,                    (OS X 10.9.4, Xcode 5.5.1)
    using IB I have placed a NSScrollView into the main window of my little app and established an outlet:
    @property (weak) IBOutlet NSScrollView *scrollText;
    I a assume, this scrollview should allow to accept text for display and the screenshot below inforced this idea:
    I have tried all kind of notations to fill in a NSMutableString or an NSString into the Text View. I can not find an explanation on this subject anywhere in the documentation. How would one guess the correct notation from the information visible in the above screenshot? Please help.

    Finally I figured out how to do it. One has to create an outlet to the NSTextView embedded in the NSScrollView and use to to assign the text. I am sure there exist even better way to achieve it, but here is what I did:
    - click on MainMenu.xib, then on Text View in the second column. This selects the text-view area in the picture shown in column 3
    - click the text view in column 3 and cmd-drag it (in the IB) to the AppDelegate.h to create an outlet of NSTextView. I gave it the name myText.
    - in AppDelegate.m, assign the text (alles) to myText:
    [self.myText setString:alles];
    Trivial? Yes, but it needed time to figure it out an even the net did not provide a quick answer.

  • How to copy text from Excel to a text field in the form?

    Hi All,
    I want to copy a text from Excel or Word file and paste it in a text field in the form, How?
    I tried to use ctrl+c for copy and ctrl+v for paste but it doesn't work!

    hi, i've seen this problem before but can't remember what the solution was...
    but just by searching on this forum resulted in this link
    Re: Copy and Paste
    hope it helps

  • Use Javascript to disable fields in tabular form built by wizard

    i know this type of disable question has been asked before and i have searched the forum thoroughly but the solutions always seem to be for items i.e P1_NAME and i do not have these as my form is built by a select statement
    i have worked out the syntax (i think)
    <script language="javascript" type="text/javascript">
    function desactiverElement(item)
    var x = document.getElementById(item);
    if (x)
    x.disabled = true;
    </script>
    to disable and think it goes in the html header or a html region before footer but i cannot work out how to disable the field because i cannot work out how to reference them
    i.e get the value for 'item' in the code
    any help i would be extremely grateful for
    cheers Chris

    the CENTRE_NO field has to be unique , and when i am doing my validation check ,if the user amends the field by accident and then replaces the value it gets an error when it shouldn't
    wish it was as simple as forms just change property to update_allowed = false !!

  • How to reference /inherit property class in form in oracle apps

    Hi
    I had a Form which is register in the oracle apps but now i have another requirement to
    create a tab canvas put all fields of pervoius form(content form) into new tab page canvas
    now i want to know how i can reference/inherit the pervious conent form property class and object to new tab canvas
    since i didn't create with template fom .but i have property class in form module
    is it possible to inherit property classes
    Iam using form 6i,11i apps
    please help me

    It is possible.

  • I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically. Can some one out there help me?

    I am working in Adobe Acrobat 9 Pro and just created a pdf form from a MS Word document. I need to find out how to have a date field in my form which will update automatically.

    Update automatically under which circumstances, exactly?

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • How to show a time field in a form portlet

    Hi,
    I am not familiar with PL/SQL and I was wondering how I could show a time field on a form portlet.
    I have a date column in my database that stores the time and date together, but I do not know how to separate them into date and time fields. I also do not know how to concatenate them when a user inserts a new record, or how to query on a date alone.
    At present, the user has to type the date and time following this format mask hh:mi am DD/Mon/RR
    I also have a problem with one of my hidden id fields. I have set the default to a sequence.nextval (#qtc_app.seq_visitor.nextval) and then hidden it since
    it is irrelevant to my users. However, I can no longer use the query function since the sequence is always generating a new value. How would I only generate
    a new sequence no. when a user inserts a record??
    Thank you!
    cheers, Kim

    Hi,
    Each colunm in the form has a format mask associated with it. For the date column make the format mask like this DD-MON-RR HH.MI. This will show the date along with the hours and minutes.
    Thanks,
    Sharmila

  • How to encrypt the text in password field in Oracle Forms version 6i

    Need help!
    How to encrypt the text in password field in Oracle Forms version 6i?
    one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
    Thanks!

    Hello,
    Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
    Francois

  • How to make a field in adobe form noneditable

    how to make a field in adobe form noneditable. like info keys..
    when this form is sent through worflow the receiver shudnt be able make changes to the field value...(I have a form, which has fields prefilled(like pernr employee name) but these fields are in editable able..(i want only some fields to be uneditable not all)
    Edited by: kumar gaurav on Apr 11, 2008 8:04 AM

    Hi,
    You can make fields non-editable at runtime using this code:
    field.access = "readOnly"
    Hope this helps.
    Amit

  • Creating form - want to change font style and size in more than one field at a time HOW??

    creating form - want to adjust font style and size in more than one field at a time - HOW??

    Select the fields with the mouse, right-click one of them, go to Properties
    and set the settings you'd like them all to have.
    On Wed, Jan 21, 2015 at 8:51 PM, chuckm38840797 <[email protected]>

  • How to move cursor to a particular field in a form when the form opens

    Hi All,
    Using Forms Personalization how to move the cursor to a particular field in a form when the form opens.We are using Oracle Applications 11.5.10.2
    Please let me know as soon as possible.
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Satya,
    Try the following
    Open the forms personalization window
    Seq: 10
    description : Move cursor
    Level : Function
    On Condition Tab-
    Trigger Event : when-new-item-instance
    Trigger Object:- (The field on which the cursor is appearing now when you open the form ) for eg : If I am working on a vendor Master form in that case it would be -VNDR.VENDOR_NAME_MIR.
    Processing Mode : Both
    Context:
    whatever context you want to do it respoansibility level or user level.
    On the Actions Tab
    Seq: 1
    Type: Bulletin
    Bulletin type : GO_ITEM
    Argument : The field to which you want to navigate to. (In my case I want to navigate to Alternate name on the Vendor master form so it would be VNDR.VENDOR_NAME_ALT_MIR).
    see if it works for you.
    cheers,
    Ankur

  • How do I subtract two fields in a form?

    I am working on an expense form and I have everything working except one thing.
    We have to subtract any over payments from previous expense reports on the current expense report. I am looking at the calculate tab of the Text Field Properties.  But I do not see a way to subtract my two fields.
    I then setup a field that contains a negative one, except when I display the field on the form, the negative one is a positive one.  I did enter -1 as the default value to my "subtraction" field.  I was then going to multiple negative 1 against the the over payment amount so I could get a negative over payment amount.  I was then going to add the negative over payment amount to the total due and arrive at a net due,  But this does not work.
    Here is the calculation I am trying to do:
    Total Expenses     (calculated field from all of the preceding fields.)
    Deductible Expense       (user entered)
    Net Expense check          (Total Expense - Deductible expense).
    Can anyone tell me how to do this?
    thanks,
    Dennis

    With Acrobat there are 3 calculations options.
    "The field is the ____ of the following fields:" options are for sum, product, average, min, and max operations or for actions that could be repeated over multiple fields. One does not usually subtract or divide multiple fields in on action.
    "Simplified field notation" uses only field names and values. Field names must start with an alphabetic character and should not have any spaces or special characters. Cannot perform conditional control statements or functions. Special characters or spaces can be in field names if the JavaScript escape character precedes the special character or space. The 4 arithmetic operations can be performed.
    "Custom JavaScript calculation" has no restrictions on field names, control statements, functions or mathematical operations. One needs to access the field object and the value property of the field object.

Maybe you are looking for

  • IDOC to WS && WS to IDOC

    Hi, I have requirement for distributing master data(customers, vendors....) to third party systems. I planed to use an IDOC on SAP side. Other side is capable to establish communication over WSs. So IDOC is async and WS could be sync communication. I

  • Re: When will the YOUTUBE problem for SONY Model XBR65X900A be fixed?

    Will someone from SONY please read what I wrote and write me an answer? I'm also curious whether messages are just passed around in a circle by a computer..............or.......do human beings actually see them. Are there any human beings there? Is t

  • LabView doesn't see USB device

    Hallo, I have LabView 8.5 installed and two LogicBoxes (NIMbox NDL8 and NAD4) via USB connected. By typing in the proper USB-ID of NIMbox NDL8 in the VISA everything just worked fine. Then I realized this doesn't work for the other modul, so I tried

  • HELP!! CANNOT download FLASH @ all

    My mom (a Mac user) did something to my computer a PC when she was here last week... loaded some mapping program and when she was done she deleted it... only I think she got carried away. My Flash Player is no longer on my computer. I have Adobe Read

  • Button code to create new record

    I know that there is a button on the default toolbar when your first run a form, but i do not want this toolbar on my form, however, i need a button that does the same function (to blank the input items in preparation for a new record). How is this d