Changing the property of the presence of several elements failure

Hello

I am trying to execute the following code, only one item of a button, click on event, but it fails, with only the section step 2 and SAVE AS executed correctly:

form.frmMaster.Master1.FileStampButtons.RejectButton::click - (JavaScript, client)

/ * - STEP 1 - disable/hide all buttons except PRINT * /.

This.Presence = "invisible";

AcceptButton.presence = "invisible";

/ * - STEP 2 - stamp file exchange to reflect the REJECTED; IOW, delete folder stamp * /.

PG1.sfCap.sfCapLower.Text25.presence = "invisible";

PG1.sfCap.sfCapLower.Text26.presence = "invisible";

PG1.sfCap.sfCapLower.TextDeputy.presence = "invisible";

PG1.sfCap.sfCapLower.Text28.presence = "invisible";

PG1.sfCap.sfCapLower.CurrentDate.presence = "invisible";

PG1.sfCap.sfCapLower.LINE1.presence = "invisible";

/ * Quick-Auto-save form to share drive - Note must register UNDER the Adobe Reader security constraints * /.

app.execMenuItem ("SaveAs");

--------------------------------------------------------------------

The strange thing is that if I turn off the code for STEP 2, and then the code for STEP 1 works fine, while they seem to not be able to coexist.  Is there a limit on the number of items can be manipulated at a time or in a section of the form?  (The RejectButton is in a master page, while the STEP2 items are in the home page).  Thanks for your help.

Veni-

Hello

I had a glance on the form that you send me.

There are several reasons why my suggested method does not work.

1. the console displays the errors I don't know how many for lack of references on several pages. This must really be corrected before you add other functions of the form.

2. you have 2 masterpages in your form, so the code for ()var I = 0 i xfa. host . numPages ; i ++ )... can not be used.

3. the masterpage with the buttons doesn't occur only once, I suggest you put the buttons directly on this page of body, where you need it and then completely remove the 1st master page. You can then use the same method to hide the buttons you used for the textfields.

4, pagination settings you chose for the body pages is odd. For all pages except the first body you chose 'go to the next Page. This is not necessary when you want to switch from one to another master page. The following pages can use 'Previous next'.

Tags: Adobe LiveCycle

Similar Questions

  • Change the location of several pictures at the same time?

    I see how to change the location of a photo at a time. Is it possible to change the location of several pictures at the same time?

    Thank you

    Phil

    Select the photos and info - enter the location (or any other field of the info) and it is applied to all photos

    This is described in using Photos - a good place to get help with Photos

    View and add information about the photos

    To view or change information for the photos, you select one or more photos, and then open the information window.

    • Open the Info window: Double-click a photo to view it, and then click the Info button in the toolbar or press on command I.
    • Add or change information: Change the following.

      • Title: Enter a name in the title field.
      • Description: In the Description field, type a caption.
      • Favorite: Click the Favorites button to mark the photo as a favorite. Click the button again to deselect.
      • Keywords: Enter the keywords in the keywords field. When you type, Photos suggest keywords that you have used before. Press enter when you have finished a keyword. To remove a keyword, select it and press DELETE.
      • Faces: Click on and type a name to identify a face. Click on several times, and then drag the identifier of the face different faces to identify many faces in a photo.
      • Location: Enter a location in the location field. When you type, Photos suggest places you can choose. To change a location, you can search a different location or change the location by dragging a PIN on the map. To remove location information, delete it or choose Image > location, then choose Remove location or back to the original location. You cannot assign a location if your computer is not connected to the Internet.

    LN

  • How to change the extensions on several files with Windows 7?

    * Original title: Extentions

    How to change the extensions on several files with Windows 7?

    You hear no doubt, is that your movie software will only recognize certain types of image file formats.  If this is the case, you will need to reformat format files to any format PNG is recognizable by the software.

    Rather than we guess, please identify your «film» software

    Download and install IrfanView, which is a free utility for images.  http://www.IrfanView.com/

    IrfanView has the ability to read a great many formats of image files.  It can also convert image files formats.  And even better - for you - it can do all these things on a batch of files.

    As test, after I installed IrfanView, open one of your PNG files.  Now click on file > save as, and select the 'Save as Type' to be little matter the file type of your movie software will accept.  Save the file.  Make sure your movie software can accept the new file.

    Once you are convinced that you can modify files that you have in a format that you can use, use IrfanView

    File > Batch Conversion/Rename command.  If necessary, see IrfanView help on this topic.

  • How can I change the font in several capacities, at the same time?

    Hey guys, quick question. I have a bunch of titles and of lower thirds in my project and my producer decided that he did not like the police that we used previously and wants to change to a new one. It seems to do quite often. Is there a way to "globally" to change the font of several title cards at the same time instead of clicking on each of them separately and do it manually for each of them? And if there is no way to do that does anyone have any ideas on how to make it easier?

    How to upgrade several titles in Premiere Pro using InDesign

  • Change the properties of several fields

    I need to change the properties of corn (i.e., the number) of several fields when I pass the selection and then right-click, Format tab is not there. Help, please.

    Hi rednexhex,

    It is not possible to change the format of several fields at the same time

    You will need to manually change each field.

    Kind regards

    Rave

  • Change the author of several pdf both

    I can easily change the author of a pdf document, but I need to change the author of several pdf and making one is boring.

    Same feature is available in Acrobat X Pro. Before that, you need to use the batch processing tools.

  • How to change the text Boolean unique element of clusters...

    Dear Sir.

    I need to change every single Boolean text element cluster programatially and here attached to my example of program it will change only the text lable, but I need to change the text Boolean cluter element .it posssible or not.

    Your program is not attached.

    What you need to do is right-click on the property node create on that and something specific to change.

  • How to change the color of an element of "xref" existing as a reference?

    How to change the color of an element of "xref" existing as a reference? Now, its color is black, but I want it is blue. Here are the excerpts from the file of ESD. Can anyone help? Thanks in advance. You can also give me your Skype if you have the answer.

    Element (reference): xref

    List of attributes

    Name: See the optional choice

    Choice: new, replace, auto

    Default: automatic

    Name: Ref-text String

    Name: Ref-external-id String

    Name: File-Ref-String

    Name: id-ref - String

    Name: number of the optional choice window

    Choice: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

    Default: 1

    Name: optional string condition

    Name: condition-model String

    Name: Optional String property

    Name: review optional choice

    Choice: modified, added, deleted, off

    Name: anchor id String

    Name: msg-info String

    Format of original reference

    If the context is: * < (list-steps | block)

    Use the reference format: number

    On the other

    Use the reference format: numbers and text

    Hello

    what you need to do is the following:

    -Open your template (not ESD)

    -define a format of characters (i.e. crosslnk) and change the font color of blue

    -Add the tag in front of both of your cross link formats (number and numbers and text)

    -Save the template and open your documents-> cross links are now blue

    have a nice,

    Alex

  • How can I change the text independently copied element?

    Hi, if I copy a text element, and then insert it, change the inserted, also changes the original text element. How can I change the text independently copied element? Thank you! The German Adobe Web site have no idea on the copy and paste text elements

    [title published by mod]

    It's because you copy the title, which creates a clone. Change and it changes the other.

    As I show in my book, Amazon, what you really want to do is title duplicate in right-clicked on it in the components panel of project and selecting two copies.

    A duplicate makes a copy of the title, but this copy is independent and any changes that will make her to this single copy.

  • change the position of several layers

    Hello

    I have tried many and find many things by google, but I can't find a working solution.

    I have about 60 layers in my Composition. They're all the same position at the moment. The idea is to browse through the Articles and change the y-position with an offset value.

    What I've learned so far is that there is a layer.property("Transform").property ('Position'). First I thought that it is a table like [x, y, z], but this seems to be only one... property.

    Now I can check if my layers in the 'Position' property...... but I already knew. I found no way to set or even get all values.

    I know how to set the position when I create a new layer, but this seems to be something different.

    Is there a possibility to change the Position of a layer existing script?

    Best regards

    G

    For the position or any other property in the layer, you must use the method .setValue(theNewValue).

    If the property contains keyframes, or if you want to add a keyframe, it will throw an error, however, to check if the property already has keys, in this case, you can use the method .setValueAtTime(theTime, theNewValue).

    Example:

    Layer.Property ("Transform"). Property ('position'). SetValue ([x, y, z]);

    Layer.Property("Transform") .property ("Position") .setValueAtTime (0, [x, y, z]);

    Check the after effects Scripting guide (pdf) for more information on this.

    Xavier

  • Is it possible to change the State through several buttons?

    If I have already created, say, 100 identical buttons, and I want to change the State 'down' to a new color other than black. is it possible to do it quickly? I use 9 Captivate.

    Because you talked about "buttons" I assumed that you were pointing to the InBuilt States: Normal, rollover and down. The situation with styles is a little confusing IMO concerning States. You cannot set the States in Manager of Style of the object, as was the case of the Captivate 8 buttons. Since 9 Captivate, you will need to define States in the Panel object, for custom reports also state in regard to integrated States. Part of the InBuilt says are really integrated in the style: this is the case for all of the State for the Image buttons, for the background/outline for other types and form buttons. The labels on the buttons (text, system and form) are not part of the style. The exception are the image buttons because you have to put the text in the images. If you add objects in integrated States, they wil not be part of the style.  Even for States custom: they are not part of the style. I have problems with this configuration of confusing. It would be much easier, I think, if everything was recorded in an object style could be edited and changed in the Object styles Manager.

    The button menu "three lines", also called the hamburger or hot dog button, has opportunities to save changes to an existing style, to create a new style to apply a style to objects with a different style by default (as long as you override, leading + sign to appear).

    This no doubt confused answer: the workflow, I proposed with object styles, does that for characteristics that are saved in an object style (there no real explanation to help him as far as I KNOW). Now, I understand your last answer (sorry) that you are talking about a State that isn't integrated, but custom. In this case, you cannot change this State for all buttons at the same time. Only way is to duplicate the buttons. My apologies, I may have to write a blog about the object styles and its Director. I've heard several trainers proclaiming that they never use the OSM.

  • Change the case on several documents

    Hello!

    I'm very new to scripting, and I have the following script that is "Upper" text and change for real uppercase. I work with ID CS 6 on Windows XP.

    The script works on a single document, if there is an open, if not, it asks for a file and process all INDD files in this folder.

    That's what I have:

    if(app.documents.length != 0){
        processDocument(app.activeDocument);
        alert("Done!");
        }
    else {
        _folder = Folder('~/Desktop').selectDlg("Select folder");
        if(_folder == null) exit();
        _files = _folder.getFiles("*.indd");
        if(_files.length == 0){
                alert("No INDD files in the selected folder!");            
            }
        else {
            for (i=0; i<_files.length; i++){
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
            _inddFile = _files[i]
            doc = app.open(_inddFile);
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;      
            processDocument(doc);
            app.activeDocument.close(SaveOptions.yes);
            } 
        alert("Done!");
        }
    }
    
    function processDocument(doc) {    
        app.findGrepPreferences = app.changeGrepPreferences = null;
        app.findGrepPreferences.capitalization = Capitalization.allCaps;
        app.findGrepPreferences.appliedCharacterStyle = 'Red';
        var _results = doc.findGrep();
        app.findGrepPreferences = app.changeGrepPreferences = null;    
        _length = _results.length;
        for (i=0; i<_length; i++) {
            _results[i].texts[0].changecase(ChangecaseMode.uppercase);
            _results[i].texts[0].capitalization = Capitalization.normal;
            _results[i].texts[0].appliedCharacterStyle = 'Blue';
        }
    }
    

    The script works well on a single document, but for some reason any that it does not work on several documents. I try the script on 4 files with this content (the colors are added in the text only to help verify the results):

    Whenever the first or the first two documents are processed correctly, the others are not processed at all. But I get no error message. Where is the problem?

    Any help would be greatly appreciated!

    Luca

    I tried to recreate your problem once again and I don't have something similar. I know it's not normal, but mine started when I changed the variable i in the second. I see that they have a different scope, but somehow she made the difference. Could you try it by chance?

    #target indesign
    if(app.documents.length != 0){
        processDocument();
        alert("Done!");
        }
    else {
        _folder = Folder('~/Desktop').selectDlg("Select folder");
        if(_folder == null) exit();
        _files = _folder.getFiles("*.indd");
        if(_files.length == 0){
                alert("No INDD files in the selected folder!");
            }
        else {
            for (i=0; i<_files.length; i++){
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
            _inddFile = _files[i] ;
            doc = app.open(_inddFile);
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
            processDocument(doc);
            app.activeDocument.close(SaveOptions.yes);
            }
        alert("Done!");
        }
    } 
    
    function processDocument() {
        app.findGrepPreferences = app.changeGrepPreferences = null;
        app.findGrepPreferences.capitalization = Capitalization.allCaps;
        app.findGrepPreferences.appliedCharacterStyle = "Red";
        var _results = app.activeDocument.findGrep();
        $.write(_results);
        app.findGrepPreferences = app.changeGrepPreferences = null;
        _length = _results.length;
        $.write(_length);
        for (s=0; s<_length; s++) {
            _results[s].texts[0].changecase(ChangecaseMode.uppercase);
            _results[s].texts[0].capitalization = Capitalization.normal;
            _results[s].texts[0].appliedCharacterStyle = 'Blue';
        }
    }
    
  • Script to change the presence of objects based on the range of amount

    Hello

    Is it possible to change a presence of objects (a field or a subtitle), from the amount range entered in a numeric field?

    For example:

    -The amount of entered number field is a range between 1 and 49 999, then "Signature subtitle 1" is displayed.

    -The amount of entered number field is a range between 50,000 and 250 000, then 'Signature subtitle 2' is displayed.

    Etc.

    Any advice for this script would be appreciated.

    Thank you!

    Hello

    Try something like this JavaScript in the event of your field digital output (you probably need to change the name of your objects in shape, SignatureSubhead1 and SignatureSubhead2)

    switch (true)
    {
     case this.rawValue >= 1 && this.rawValue <= 49999:
      SignatureSubhead1.presence = "visible";
      SignatureSubhead2.presence = "hidden";
      break;
     case this.rawValue >= 50000 && this.rawValue <= 250000:
      SignatureSubhead1.presence = "hidden";
      SignatureSubhead2.presence = "visible";
      break;
     default:
      SignatureSubhead1.presence = "hidden";
      SignatureSubhead2.presence = "hidden";
    }
    

    Concerning

    Bruce

  • change the "timing" on several video slide

    I have a Captivate multiple sliders and inserted a video synchronized to multiple sliders which was spread over several slides.

    After inserting the video, I had to extend the time of a slide. Now, I want to split the video differently so that the video is the same length as the elongated slide.

    Someone knows how to do or have any suggestions?

    Hi Jay,.

    First, you will need to add slides and specify the time for all slides inserted.

    and then you insert slides synchronized multi video.

    After inserting multi-synchronise video and distributing on the slides, you can increase the duration of the slide, but you cannot change the length of the inserted part of the video.

    Thank you.

  • Change the Description of several photos

    I emphasize the relevant photos and change, the Description field within information (Cmd + I).

    But when I click on out of the box Info, he asks me if I want to change the description of 3 000 photos (pictures of this year, not only the photos that I have highlighted).

    No idea why it does this? Is there another method of updating the Description?

    Thank you

    How you change the descriptions is exactly how it should be done. Select the photos in the browser, open the Info Panel with ⌘I, and enter a new label.

    MacBook Pro with the retina, OS X El Capitan (10.11.5)

    Your profile signature OS X El Capitan is still valid?

    I had a similar problem when running left El Capitan.  Occasionally, Photos would change the description field of all the photos in the album, I was displayed and not only the description of the selected photos. And for the fields title, this would change a title that I had chosen.

    On the Sierra, I noticed that the browser is sometimes loses focus for the cursor. When I use the Trackpad and not by the mouse.  If the Info Panel is opened for a few selected photos, a reckless trackpad gesture can move the focus to another album in the sidebar and the Info Panel passes to this album, and then by typing in a different title or description will show the warning about editing thousands of photos.

Maybe you are looking for

  • where can I buy more ram to my computer

    I need more ram. where can I get it?

  • Printer HP LaserJet CM1415fnw problems

    I have a HP LaserJet CM1415fnw configuration to print on my wi - fi network. I'm on a Dell Latitude E6400 running Windows 7 Professional. I have intermittent problems printing Word document (MS Word 2010). The job is sent to the printer and it will n

  • The graphics card upgrade issues...

    I recently bought this graphics card: http://www.tigerdirect.com/applications/searchtools/item-Details.asp?EdpNo=5660536&sku=A271-5774 Also, I advanced and bought this power supply: http://www.tigerdirect.com/applications/searchtools/item-details.asp

  • Cannot find my dvd - rom on laptop drive.

    I have windows vista on my laptop and I have a dvd - rom drive that used to work, now, he's not even appear on the computer.  How can I reinstall the drive?

  • Bad directsound driver. Error code 88780078 (Windows 7)

    Means - This is a foro Público para as nunca publicar information privada como el correo electronico o phone numbers! Ideas: Programs are having problemas con Error messages Los recent changes made in su equipo What is han intentado did el problema