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

Similar Messages

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

  • 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 pack image files in jar and reference them

    I have a utility project that is used by other applications. I am wrapping the package up in a jar file. The project that is wrapped in the jar file references some jpg file. Can I put those files in the jar? If so, how do I reference them in the code?

    Can I put those files in the jar? Yes.
    If so, how do I reference them in the code?I bet nobody has asked that question before.
    HINT- search.
    EXTRA HINTS - getResource, getResourceAsStream

  • Duplicate column ids in reports on the same page, how can I reference them?

    I have 4 reports on the same page.
    I have added a checkbox column to each one.
    On clicking I want to populate a collection with the value of the id of the corresponding row and then have a button acting on the whole list.
    My code to get the id of the item that contains the value I want is this
    id = 'f02_' + $(this.triggeringElement ).attr('id').substr(4,4);
    But there is an f02_0001 for each report, and the code just finds the first one, rather than the one in the context of the report being clicked.
    <input name="f02" id="f02_0001" type="hidden" value="2072"/>
    <input name="f02" id="f02_0001" type="hidden" value="2052"/>
    etc etc.
    All that is ever picked up is 2072
    They have different table ids but I don't know how to reference the correct ones in my code
    I'm sure it must be something simple, can anyone help
    Cheers
    Mark

    It looks like this:
    I want to click on the check box and get the corresponding value for f02_000X (or could I refer to the class name if I gave it a class)
    There are several tables with the same format as below so it needs to work out the table id in the reference.
    <table id="report_R1641794306363434600" cellspacing="0" cellpadding="0" border="0" summary="">
    <tbody>
    <tr>
    <td></td>
    </tr>
    <tr>
    <th id="BOX"></th>
    <th id="Name"> </th>
    </tr>
    <tr>
    <td colspan="11">
    <table width="100%" cellspacing="0" cellpadding="1" summary="" style="border-bottom:1px #959562 dotted;">
    <tbody>
    <tr>
    <td valign="top" nowrap="nowrap" style="padding:1px;"></td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td headers="BOX">
    <label class="hideMeButHearMe" for="f01_0001"> </label>
    <input id="f01_0001_01" class="boxhop" type="checkbox" onclick="if (this.checked) {apex.jQuery('#f01_0001').val('Y');} else {apex.jQuery('#f01_0001').val('');}" value="Y" name="f01_NOSUBMIT">
    <input id="f01_0001" class="boxhop" type="hidden" value="" name="f01">
    </td>
    <td headers="Name">
    Administrator
    <input id="f02_0001" type="hidden" value="2072" name="f02">
    </td>
    </tr>
    <tr>
    <td colspan="11">
    <table width="100%" cellspacing="0" cellpadding="1" summary="" style="border-bottom:1px #959562 dotted;">
    </td>
    </tr>
    <tr>
    <td headers="BOX">
    <td headers="Name">
    Angela Murray
    <input id="f02_0002" type="hidden" value="2082" name="f02">
    </td>
    </tr>
    <tr>
    </tbody>
    </table>

  • Dead links - not another "how to remove them" thread

    I know this question has been answered a few times but the question is not a "how to remove them" or "what do they mean" question.
    I would like to know how this happens other than changing the file directory or information outside of iTunes. Here is a couple things I could think of that I would like some input on.
    1. All of my songs that have a ! by them were downloaded off of the internet for free (no shareware, just an actual web site).
    2. These songs were already in mp3 format prior to importing them.
    3. I made a copy of my iTunes folder on another harddrive, but still run iTunes from the orginal drive.
    4. Since I have 2 copies of iTunes song files, I deleted the original source of these files in My Music, which were in WMA format.
    Again, I did not change the file information to any of these songs. Any help would be great! Thanks!

    Thanks for the information.
    This is where you created the '!' links:
    "I have 2 harddrive in my PC. "C" is my main drive and "D" is my backup drive. iTunes stores everything on my C drive. I copied this iTunes folder (including songs, playlist info, etc) and pasted it on my D drive."
    iTunes operates as a database of information for your music files. The actual music files are stored on your PC, not within iTunes. iTunes keeps absolute references of the music file location and other information in its database file. This allows iTunes to use music files from any location on the PC: different directories/folders on the main HD, another internal drive, an external drive, or a network drive (or any combination of the above). Each song reference has a specific and hardcoded path so iTunes can find and play (or sync) it. Move the file, change the path, re-map the drive it is on, and iTunes will lose the file (giving you the '!' of a ‘Broken Link’). Lose, move or corrupt the ‘iTunes Music.itl’ file and your complete Library will ‘vanish’.
    Changing (or designating) the 'iTunes Music folder' location in the Preferences does not instruct iTunes where to look for existing songs it currently knows about. It directs iTunes where to store any new songs it Imports, or 'Adds' and copies to its Library organization (if that attribute is selected). This is an important distinction.
    You can do one of two things:
    1) Move all the files back to the C: drive where the iTunes program expect them to be, and then move them to the D: drive using iTunes
    OR
    2) Delete all the broken song references within iTunes and Rebuild the Library
    The first method will preserve your Library information: Playlists, Ratings, Last Played, Play Count. The second method will lose these attributes.
    Song attributes stored directly in each music file are as follows: Artist, Album, Song Title, Year, Comments, Compilation tag, Lyrics, Genre , Grouping, Composer, BPM, Album Artwork, Bit Rate & Kind (Both not tags - inherent to the file itself). You will not lose any of these attributes regardless of the method used to recover your Library.
    Either method should be relatively easy to accomplish as long as you can maintain some control over the file moving (it's not rocket science). If your C: drive cannot accept the temporary move of your files, you may be stuck with option 2. If you do not have many important playlists, or care about ratings, playcounts, etc., then option 2 is a bit easier.
    Post back with more questions...or with your 'choice'. We'll go from there.

  • How to reference table rows added using addInstance?

    OK, this one's probably quite simple, but I'm at wit's end . . . .
    I have a table with body rows that can be added using addInstance.  what I can't figure out is how to reference the newly added rows and teh fields within them.  If the row reference for the inital row before addInstance is:
    Table.Row1.CellName before the addInstance, after the addInstance wouldn't it be Table1.Row1[0].CellName and the newly added row be Table1.Row[1].CellName?  I try that and the debugger tells me that Table1.Row1[1].CellName has no properties.
    I basically need to determine whether the user has filled out anything in the added rows and I'm having a devil of time figuring out how to reference the added rows and their cells.  Thanks in advance!

    Your logic is correct but to reference that som expression you woudl have to use this notation:
    xfa.resolveNode("Table1.Row[1].CellName").method or property
    The reason for this is the use of the square brackets. Javascript interprets this an an array. When you use the resolveNode method you can pass a string and hence the square brackets get interpretted correctly.
    Paul

  • My all voice memos are deleted,how to retrieve them

    my all voice memos are deleted after syncing it with itunes...how to retrieve them ??

    Thanks Bro. I have backup. and I did the same thing twice but only 26 contacts appear on the device. Now again yesterday after your suggestion again I restored the device but the result was same. Then I thought a new thing. I restored the device one more time but after restoring I didn't configure the icloud account. Surprisingly all my old contacts are there in the device but those 26 contacts are not there. Now I will tell you how this must have happened? I had 3gs earlier. that was stolen 3 months ago. I put the device in lost mode. I purchased new iphone4. I restored with itune. All my data came back. After that I saved these 26 new contacts to my device which also saved in icloud but when I tried to backup on my pc it was not happening. the messege coming device disconnected. 2 days back my stolen device came online. Lost mode was activated by icloud. But what I think in between that time the other fellow must have deleted the phone contacts. And as per icloud also deleted the same. Only the 26 contacts which I saved in these 3 months remained in icloud. Now bro can u help me out? What I should do? I have 26 contacts in icloud and < 500 in my device. I don't understand when all other Co's mobile you can import contacts from any backup file iphone can not. This is the DRAWBACK OF IPHONE.

  • I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some but not all are also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    I just got a new iPad air and also own an iPhone 5. I'm receiving most of my text messages on the iPhone, but some are now also showing up on my iPad. I don't want them on my iPad, any suggestions on how to get them to stop showing up n my iPad?

    Go to settings>messages>send and receive at>you can be reached by iMessages at> Uncheck your phone number and you can select your Apple ID emal address if you want to use that for messages.

  • Anyone still up? I just purchased from the itunes store for the first time, and don't know how to get them downloaded to my ipod.

    Sigh.....really late and I want to go to sleep, but I just purchased some Itunes online for the first time, and I don't know how to download them to my ipod. I've never done it before, and it shouldn't be rocket science, but I can't find anything that tells me where to go to download my songs. It said something about check purchases, but I can't even find that screen.  I connected my ipod to the computer, and now it says CONNECTED...EJECT BEFORE DISCONNECTING. My BF set up the acct when he bought my ipod as a gift, and as I bought these songs for a special weekend I have planned I can't ask him how to do it.  HELP!  For some reason the password I always use is not recognized for my account... and since I can't get anyone from itunes without a proper log-in I'm at the mercy of all of you more versed in tech and itunes than I.  Is anyone still up that can help me out?

    It should keep asking for the password, because it's trying to check for purchases... As soon as you login, it will see you have pending downloads and create the downloads section on the left below Purchases under the Store section. Then it will start the music downloads there, as they will be listed one below the other.
    You could just try to check your account balance or view your account and that will trigger a password request too. You can just click on that and say that now iTunes keeps asking for the password and ask him to help you with that. Trick would be to interrupt him so that he carries on with another task after, so he doesn't notice the download. Or you carry on with email or browsing which you were "busy" with when iTunes interrupted you for the password (stupid iTunes)

  • I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    The pdf is loading as html code. If you save it, it will download as :
    605124.pdf.html
    Change the extension to .pdf
    And it opens and works perfectly, I just tested it:
    Use this link to download it automatically:
    http://saladeaula.estacio.br/arquivo.asp?dir=00/1020624/605124.pdf&num_seq=59828 4

  • When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?!

    When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?! and then I'd like to erase the original files since the space requirement is huge!!!! Why is upgrading software iPhoto such a pain. I've gotta get a presentation done and all I get for my money is roadblock!!!

    hello, it sounds like the library is damaged.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • How to prevent ipad apps from being stored in the iCloud and how to bring them back to the iPad

    I have an iPad Mini Retina with 128GB of storage.  I purchased about a dozen apps and it gets stored in the iCloud and I don't know how to access them on the cloud storage.  Plus I have many apps from me itouch that I use and they are also stored on the iCloud. 
    How can I prevent further apps that I buy from gettting transfer to the iCloud?
    How can I download my existing apps that I purchase and that are from my itouch that are stored in the iCloud into my iPad?
    How do I access my iCloud storage from my iPad?
    Thanks.

    You make it sound like apps are disappearing from your iPad and uploading to iCloud. That's not how it works. Maybe somebody (or you) deleted the apps and you don't realize it.
    You cannot prevent apps from being stored in iCloud. That is one of the reasons for using iCloud. It will store all of your purchased apps and you will be able to download them if you delete them, or if you buy another device that you want to use the apps on.
    If you have apps that are in iCloud, just go to the Purchased Tab in the app store, tap on the Not on this iPad button at the top. Look for any of the apps that you want to download and then tap the cloud icon in order to download them to the iPad. You access your iCloud storage in the purchased tabs of the different stores or in the apps themselves. Any data that is being backed up in iCloud is on the device in the corresponding apps and you don't need to access that data in iCloud. It's at your fingertips already,
    Purchased apps do NOT count against your iCloud storage. If you have 60GB of apps, they do not take up the alloted 5GB of free storage that you get. The app data would count against the storage but not the apps themselves.

  • I have 0,3€ credits. How can remove them so that I can change to the app store of another country?

    I have 0,3€ credits. How can remove them so that I can change to the app store of another country? I need to change to the Chinese app store as the apps I am looking for can be only found there. Thanks for all answer in advance!

    Click here and ask the iTunes Store staff to zero your account balance. Note that if you're not in China, you won't be able to use the Chinese App Store.
    (125951)

Maybe you are looking for