Script works only on the first occurrence of a masterpage

I adopted a dynamic shape on LiveCycle to maintain and update. I have no programming experience, but are working with LiveCycle for over three months to know that I'm going every day.

I have a problem of script that I don't know how to handle. I use javascript. I currently have a script that will look at the < State > tag to an xdp. If the value < status > is a certain State, then a text in the subform 'footer' of a master page will be hidden while another text with a larger font becomes visible.

if (xfa.datasets.data.job.data.state.value, == , "NJ") { }

jobs. MasterPages.Liability_Continued.footer.liabilityFooterBig.presence = 'visible ';

jobs. MasterPages.Liability_Continued.footer.liabilityFooter.presence = "invisible";

}

My problem is that the script only works on the first instance of the master page. On all other occurrences, it always displays the text smaller.

I tried the script on initialization, enter, exit, calculate, validate, validation status, presave, postsave, preprint, post-press, presubmit, postsubmit, docready, docclose, form ready, ready, available and index change the subform "footer" events, but these events have not worked at all, or only worked on the first occurrence of the subform.

How can I get the visibility of these text objects to change all occurrences of the subform?

Hello

There are two possible options. We need to loop through all instances of the Master Page and change the presence of objects on each instance. The other would be to have the script in the event layout: ready for each of the objects referring to this.presence = "invisible";

Thus, for example, if your Master Page named Page1, then this should work:

var oMaster = xfa.resolveNodes("Page1"); 

for (var i=0; i

The exact reference in the script would be according to your hierarchy.

Niall

Tags: Adobe LiveCycle

Similar Questions

  • showPopupBehavior works only on the first attempt

    Hi all, I am using JDeveloper 12 c and have a problem with the popup component.

    I'm passing a value from the context menu with the type of trigger being 'sender '.  When I go for the first time, the pop-up appears worthless.  When I try once again in a hover, the value appears correctly.

    I tried to change the attribute contentDelivery to all 3 different values, but nothing seems to help.

    Any ideas?  The code is below:

    Thank you

    Mike

    < af:outputText inlineStyle = "make-size: 14px;" Police-weight: normal; Color: #333; white-space: pre wrap. "truncateAt ="80 ".
    "ID ="desc"value =" #{rowItem.description} "shortDesc =" "clientComponent ="true">
    "" < af:showPopupBehavior popupId = ": fullDescription" triggerType = 'sender' align = "endAfter" alignId = "desc" / >
    < af:clientAttribute = name value = "#{rowItem.description"showDescription"}" / > "
    < / af:outputText >

    < af:popup launcherVar = 'source' eventContext = "pitcher" contentDelivery = "lazyUncached" childCreation = "deferred" id = "fullDescription" clientComponent = "true" >
    < af:noteWindow id = 'nw1' inlineStyle = "" width: 350px; "clientComponent ="true">"
    < af:panelGroupLayout layout = "vertical" >
    < af:outputText inlineStyle = "make-size: 14px;" make-weight: bold; color: #666; "value ="Description"/ >
    < af:spacer height = "5" / >
    < af:outputText inlineStyle = "make-size: 14px;" color: # value = "#{viewScope.showDescription 666"} "/ >"
    < / af:panelGroupLayout >
    < / af:noteWindow >
    "< af:setPropertyListener from =" #{source.attributes.showDescription} "to =" #{viewScope.showDescription} "type ="popupFetch"/ >

    < / af:popup >

    childCreation = 'immediate', did the trick.

  • DNxHD works only with the first in my PC? Desperately need help!

    Hi all

    So I have 3 questions. I'm absolutely tired of trying to figure out what codec to transcode my images in my PC for AP (I shoot canon 5 d, sends h264 files). I've edited never with h264 (even if AP edit natively), no questions about it!

    To make my story short, I migrated Adobe Final Cut Pro in my MAC, first in my PC (no more MAC). Reasons are a long history. in any case, I read everywhere that the most similar ProRes codec is possible in PC Adobe Premiere and Cineform DNxHD.

    (1) cool, I downloaded DNxHD, and when I go to Media Encoder, it shows what we call 'dnxhd, mxf op1a. When I transcode, it gives me a .mxf file that is not readable by my pc, and when I hang out in the AP, it gives me an error message. What is going on? How is it is not .mov?  What should I do next?  I read there is a converter, .mxf to .mov, but this process will not go any lower the quality of my images? Help, please! Which then becomes the workflow? I read everywhere that many people edit in AP in the PC using DNxHD. How is it, I can't?

    (2) in the research, very frustrated, I read about codec Cineform as a 3rd possibility, which fortunately it comes with Adobe for free. I have transcoded to that in the SOUL and it changes the contrast much, he washes the sequences to very bright research. In fact, h264 is much better! (how is it possible?) I'm doing something wrong?

    (3) Please I would really appreciate responses and, in this case, step-by-step workflows. Maybe I do something wrong in the process or miss me a step, and I need to understand. Please, I'd appreciate it really all the suggestions for a film of transcoding in a PC before you import it to Adobe Premiere. This cannot be the end of the road!

    Thank you very much!

    Elaine. -.

    so that. MXF.XMP file is a metadata file. It's like a text file that contains the information of the camera or on the computer. .mxf files must be separated from this .xmp file and import. If you do not need these .xmp files you can disable metadata in preferences, uncheck the write xmp IDs and the export of setting to zero.

  • Place items only on the first page

    Hi Forum,

    I m wondering if I can place my library assets.item (0) only on the first page.

    Because the script below place assets in the library, when I click on a particular page...

    Instead, when I run the script, the assets must be placed on the first page...

    Is this possible... I tried this way... but does not work...

    PG = app.activeDocument.pages.item (0);

    myRect = pg.rectangles.add (); (I tested with the addition of rectangles on the first page, it works)

    var Lib = app.libraries [0] .assets [0] .placeAsset [pg] [0];

    Thanks for the help forum...

    Shil...

    need to select as you have already saved the obj in myObj

    var currDoc = app.activeDocument;

    var myObj = app.libraries [0] .assets [0] .placeAsset (currDoc) [0];

    myObj.move(currDoc.pages[0]);

  • Find the first occurrence of a Word

    I have a script which detects and counts all occurrences of a Word.

    I need the script to find the FIRST occurrence of a Word only.

    Can any advise please how do I change the script to find the first occurrence of the word?

    Script as follows:

    {

    numWords = this.getPageNumWords var (0);

    for (var i = 0; i < numWords; i ++)

    {

    var ckWord = this.getPageNthWord(0,i);

    If (ckWord is 'MATERIAL')

    {

    / * Script going here based on the finds the first occurrence of the word 'MATTER ' * /.

    }

    }

    }

    I tried var CKWord = this.getPageNthWord (0,0); but reports from the rear console is UNDEFINED?

    numWords = this.getPageNumWords var (0);

    var number = 0;

    for (var i = 0; i)
    var ckWord = this.getPageNthWord(0,i);
    If (ckWord == "ISSUED") {}
    Count ++;
    If (count == 2) {}
    var = this.mouseX Coord.

    var annot = this.addAnnot({)
    page: 0.
    type: "Stamp."
    name: "AppStamp."
    Rect: [coord + 1000, 2300, 30, 2820]
    rotation: 90,.
    ({AP: '#C94cHAFFa42U1gTH5Tug5C'});
               
    break;
    / * this.flattenPages (); */
    }
    }
    }

  • iPhone5 only showing the first 8 digits of the wi - fi address

    Address wi - fi is only showing the first 8 digits, then... How do I access the other 4?  Even when I turn the phone on its side for more space it does not when you view the settings screen.  I try to connect to a secure wireless network and may not without the entire address.  Any help appreciated.

    I go in settings/general/to say and it displays all my WiFi address. Yours does not work?

  • All-in-One printer, V313 All in One Printer, W7 only prints the first Doc.

    Hello

    My apologies if this has been answered in the past (but I'm not).

    I just swapped from a Win XP machine on a W7 machine and now my AIO Printer Printer Dell v313 only prints the first document.

    The second honored document Mile makes the hiccups of the printer, but nothing happens.

    I have uninstalled and installed the software from the Dell website, and I'm at a complete loss as to why the pilot does not print the second document.

    Fortunately, I still have the XP machine and it has no problem printing of any document sent to the printer.

    I thought I'd be cleaver and tried to copy the folder I thought that contain the driver files anywhere in the W7 machine but that no longer works.

    Help, please.

    Stephen,

    IE11 withdrawal is the best solution.

    The other solution is to disable the ToolTips for the printer, but then you can't see if the printer is printing, ink status, etc..

    Start, Control Panel, devices and printers, click with the right button on your printer, left, click Printing Preferences, advanced, more options.

    Click never see the.

    Rick

  • Topics by opening the first occurrence in the table of contents

    Background: I created HTML5 Responsive help using HR 2015 for a web application. I organized the Hep role, then pages with these roles, users can access, and then by the tasks users can perform on this page. In many cases, a subject is listed under multiple roles and reuse and efficiency, I just dragged the same theme in the list of the topic in the table of contents as appropriate.

    I also used the text conditionalized on table of contents by role level. Using the example below, I have conditions for physician, nurse, and Patient, but I don't think that this is part of the issue well. Conditionalized roles were created for filtering purposes.

    Question: I have the overview topics that include hyperlinks to headings in red in the example below for each role. When a user clicks the hyperlink in this topic of presentation, he brings them to the FIRST occurrence of this topic in the table of contents, not the link that is associated with their role. When a user with the role of the Patient is in the topic view of their role and click the hyperlink 'Research for patients', help opens on this subject, but the "Searching for patients" in the topic role of physician in the table of contents on the left is highlighted.  Not a show-stopper, but it is confusing for users.

    Also, we had originally planned to use the filter feature to filter role help topics. When I filter to view only a specific role (nurse) and do the steps above, by clicking on the Preview 'Search for patients' hyperlink opens but there is no highlighting in the table of contents because this first occurrence is hidden in all the subjects physician.

    Note: This problem does not occur when I generate the content as WebHelp.

    What I want to do: When the nurse click on the hyperlink for 'Research for patients' of their overview topic, researching topic of patients is open and the search for patients is highlighted in the table of contents under the nurse, not the first occurrence (doctor).

    Questions: Is this a bug or is it repairable? And is it possible to fix it without creating the specific role of topics such as finding doctors for Patients, nursing research for Patients and so forth? I tried to delete the table of contents and start again, but the problem persists.

    Here is an example:

    Doctor

    Patient portal page

    Overview (contains links to sections below - view patient demograhic data, looking for patients, to renew orders)

    Display of the demographics of the patients

    Looking for patients

    Renewal of prescriptions

    Nurse

    Patient portal page

    Overview (contains links to sections below)

    Display of the demographics of the patients

    Looking for patients

    Display of orders

    Patient

    Patient portal page

    Overview (contains links to sections below)

    Update your demographic data

    Display of your prescrpitions

    My opinion would be that this is the expected behavior. My theory is that there is no information within the syntax of hyperlinks. A hypertext link is encoded such that when you click on it, you are taken to the landing page, as if sending the message "find the page named and post it by the specified parameters. What is happening is that the hyperlink goes to the first instance of the HTML page in your table of contents (.hhc file). There is no intelligence, he doesn't "know" that you are in the doctor or the nurse section - section he knows only that the page specified in the table of contents is listed in the file and thus, it only takes you there. The syntax of hyperlinks don't "know" where you are in the help system.

    I just also wanted to report the fault of strike in the Patient section, look a your orders of your example, assuming that you have copied and pasted into this thread.

  • Hi all. How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Hi all. I am new and on a free trial right now.

    How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Monthly payment included cloud storage?

    Peut I manage backups? And how?


    -Amir

    Hi amireos,

    Yes, you can create your workflow where you can keep all your images on the external hard drive and the Lightroom catalog file as well.

    If you start with Lightroom and then use the Destination location as external hard drive when you import your image of the external source such as a camera or SD.

    If you already have your Images on the Mac HD drive, then play all your Image on the external hard drive first and then import images directly from there.

    Finally, you can change the location of the Lightroom Catalog as well.

    Default location: folder on the Mac Drive HD, there is folder called Lightroom that you can move on the external drive too (however catalog Lightroom can't memory space as its only import previews of the images is not the real image and full)

    Once you move the file catalog Lightroom external hard disk, then you need to browse the catalog file when you launch Lightroom only once.

    See thread: LR catalog moving on external hard drive

    Let us know if it helps.

    Kind regards

    ~ Mohit

  • How can I add a style "BOLD" grep on the first occurrence of a Word?

    Hi all

    I need help on adding a style "BOLD" grep on the first occurrence of a Word.

    I can add the "BOLD" to the word, but it adds to all occurrences, see below:

    GREP style (Incorrect)

    Apply Style: "BOLD"

    Text: \ < Lorem Ipsum\ >

    Nam Lorem Ipsum semper pellentesque tincidunt. UT nisi sit amet arcu nulla tristique dictum. SED commodo total non mauris cursus pretium. Lorem Ipsum Aliquam erat volutpat. Morbi id pretium justo. Nam lorem quis facilisis molestie risus fermentum. Vestibule ut sem elit. Nunc eget neque Sed elementum augue EU outbound.

    I need only the "BOLD" to add to the first occurrence of the word, as below:

    Nam Lorem Ipsum semper pellentesque tincidunt. UT nisi sit amet arcu nulla tristique dictum. SED commodo total non mauris cursus pretium. Lorem Ipsum Aliquam erat volutpat. Morbi id pretium justo. Nam lorem quis facilisis molestie risus fermentum. Vestibule ut sem elit. Nunc eget neque Sed elementum augue EU outbound.


    Thanks in advance for the help!

    This should do it for you

    Apply style

    "BOLD"

    text (? i) ^(.+?) Lorem Ipsum

    apply the stye

    Book

    text: ^. * ? (? = Lorem Ipsum)

    The first expression search all the text from the beginning of the parapgrah through the Lorem Ipsum

    The other defines the rest of the text before the Lorem Ipsum to the base style (book, novel, or whatever your basic style)

  • Run the second sql statement only if the first sql statement is set to zero.

    Hey guys I seem to have a mental block here. I have two sql statements. I would like to than the second to run only if the first sql statement is set to zero. I know that I can use PLsql but I would really like to see if I can do this with sql upward. Your answers are very much appreciated.
    This is the first sql
      Select     ft.fund_code, 
                 ft.orgn_code, 
                 ft.acct_code, 
                 ft.amount, 
                 fb.owner_pidm, 
                 ft.prog_code      
          from ftrbremb fb , ftcractg ft
          where fb.doc_code = 'TR000038'
          and fb.ftpbport_id = ft.ftpbport_id
    second sql statement
         Select ft.fund_code, 
                 ft.orgn_code, 
                 ft.acct_code, 
                 ft.amount, 
                 fb.owner_pidm, 
                 ft.prog_code      
          from ftrbremb fb , ftcractg ft, ftprexps fx
          where fb.doc_code = 'TR000038'
          --and fb.ftpbport_id = ft.ftpbport_id
          and fx.ftrbremb_id = fb.id
          and ft.ftprexps_id = fx.id;
    How can I combine these two statements together so that when the first is null the second run. As a bonus, I want to get just the first line as well.
    Any help would be greatly appreciated. I tried to accomplish with the case statement but it dosent everything seems to work for me.
    Thank you

    Miguel,

    the idea is simple: join the two queries (via the union of all) and to change the second part as to return only the rows if the first query returns no rows by changing the NOT EXISTS (first request). Hope I made it clear... ;)

  • NEITHER Spy works only in the development environment?

    NEITHER Spy works on LabView (executables) stand-alone applications deployed (using VISA vi), or NI Spy works only in the development environment? It might be useful for debugging of deployed applications.

    If the answer is Yes (which I doubt), OR would have to create an installer for it since currently it is no longer available as an add-on.

    Thank you

    Ed

    Edjsch,

    You can install VISA as a standalone w/o LabVIEW. Spy is not a stand-alone installer because it does nothing in itself. That's why we always package it with a driver or application software.

  • Printer works only after the reboot or shutdown

    I use win xp sp3 computer. My only works only after the restart or shutdown. If I reinstall the printer driver, then it will work. I have reinstall win xp but similer happen again. I scanned my system with kaspersky. But no change. I need a permanent solution. Please help me...

    Hi Pierre,.

    1. what exactly happens when you try to use the printer?

    2. you receive messages or error codes?

    3. What is the brand and model of your printer?

    Method 1:

    You can try to start the fixit printer and check if it helps:

    Diagnose and automatically fix problems printing and printer

    Also see the article and check:

    Resources for the resolution of the printer in Windows XP problems

    Method 2:

    You can check the event viewer to learn more about the problem.

    Procedure to view and manage event logs in Event Viewer in Windows XP

  • why there are four drives in the Fable: The Lost Chapters pack but we can only use the first to play?

    original title: fable: the lost chapters
    Hello! I wonder why there are four drives in the Fable: The Lost Chapters pack but we can only use the first to play?

    My guess would be that the other 3 drives are required for installation, because they contain the installation files, but actually the game startup files are only on the 1st disk.

  • I want to create an icon on my desktop to load 2 programs. I tried a .bat file, but it only loads the first program.

    I want to create an icon on my desktop to load 2 programs.  I tried a .bat file, but it only loads the first program.

    This helps you in some way?
    Microsoft® Security MVP, 2004-2009

Maybe you are looking for

  • Lack of "automatically hide and show the menu bar.

    Hi all, I want to hide my menu bar. I watched how disappear - it turns out that the checkbox "automatically hide / show menu bar" is missing. It is supposed to be under "use donkere menubalk en donker Dock. Why is it missing?  Thank you very much!

  • Windows could not find error code 80070424 updates.

    Not able to control windows updates code error 80070424. My system is 32 bit. Tried various attempts to solve the problem without success, including copy & paste a list of steps ranging from office & posted on the forum. Can anyone help me please wit

  • ox80240036-error pops up saying could not find page

    just try to install automatically dates and get this pop up

  • Filed on a backup DVD

    I have Windows XP.  How to make a manual backup on a DVD?  Because I don't have MS One Care, I can't figure out how to back up my files.

  • PSProvider XPS 9550

    I think I'm having a problem installing with DellBIOSProvider a XPS9550 I am not able to directly target the DellSmbios path or a mapped drive PS. I'm on Windows 10 1511 x 64 enterprise on a XPS 9550 with firmware A06. I installed the following:VC ++