Changing Presence properties of an object on a Master Page

Hi....
Question:  When I change presence of a subform that resides on (Master Pages) Page1 from hidden (default setting) to visible, I only see it on the first page of the form.
ORT_Form.resolveNode("#pageSet[0]").Page1.SubLock.presence = "visible";
I set the subform to visible in the subform tab and then used the code above (changed to hidden) in the subforms initialization event.  This time, page 1 was hidden and the rest were visible.
I presumed that any settings of the subform would be global across all the form pages by being on the master page.  This isnt working out as I expected.
To test further...I placed a button next to the subform with the image on the Master Page, with the same code above.  I set the subform to hidden and then when I tested, I could make the image visible by clicking on the button on each page.
So, how do I click ONE button and get this image to toggle presence on ALL pages?
Any suggestions would be greatly appriciated.  This is not a big deal and if fluff at the end of the day.  I just want to understand it.
Thank you
Chris L

Hi Paul...
Ok, so I see that Page1 has an instance of 0 - 4 for the 5 pages.  I get the For Loop, which I presume needs a varible for the page instance.  Since the number of pages is known (5), I presume I dont need the loop to figure out the number of pages, but incremental the page instance with the known values, started at 0 and +1 until = var=4.
I am stuck on the correct syntax in Java. How to handle the Page1[x] instance.  I was able to get this to work in FormCalc easily.
//Loop through all Page1 instance and toggle SubLock (FormCalc)
var i;
for i=0 upto (4) do
     Page1(i).SubLock.presence="visible";
endfor
My attempt at making this a java scriptObject looks like this:
//Function: LockStat - Toggle SubLock Visible
function LockStat()
var i;
     for (i=0;i<=5;i++)
          Page1[i].SubLock.presence="visible";
After several attempt to resolve Page1[i] (including resolveNode for Page1) I am out of ideas.  So what am I missing here in Java-land that addresses this page instance?
Thanks

Similar Messages

  • Changing font/-size of a text field on master-pages not possible? (field prop)

    Hi,
    I would like to change the font and font-size of a textfield on a master page.
    I wonder if I do anything wrong, because the font-options (size, font etc.) are simple greyed out / not avaliable, when I click on my text field.
    It seems, there is any way to customize the font-properties of a textfield (only) on master-page.
    Well I guess it would work with java script in init-event ...  but really, why the hell it should not be possible simply to use the properties/text properties?!
    Please correct me if I am wrong. Do I do anything wrong or is it really not possible to customize font of a text field on master pages?

    Hi,
    I was just about to post, that I figured it out.
    Actually, I use Livecycle Designer in SAP (transaction SFP). There seems to be a bug (one of hundrets by the way).
    If I click on a field, that does not have text-property e.g. subform, text-option menu greys out.
    Afterwards it stay this way until I click/doubleclick into a simple text (not text field). From that moment on, text/font-option menu is available again, until I click on something without text. => So pay attention and click wisely
    coming soon: "SAP meets Livecycle Designer - a (Bug)Lovestory", hardcover 124 Pages. ; )
    by the way: SAP does not sopport interactive forms higher than Reader 8.1. Its statement "8.1 is fine enough for everything you need in a SAP/Adobe Interactive Form". So beware of using XFA higher than in 8.1. sad, but true ...

  • Change the font typeface of text object in form Master Page

    Dear all,
            I am creating a Adobe Livecycle form with multi-language support. Simply, there is a header title that is a text object in master page. I want that it can be converted to simplified Chinese from English and change its font typeface to “SimSun” when printing begins. I try the following code on its “Initize” event to do this.
    Simply, I configure a print flag(Y/N) in form so that it will convert into simplified Chinese and change the font typeface to ‘SimSun’ when the flag is reset to ‘Y’.
    Int langInt = i ;       
    If (pFlag  == “Y”) {
               PaymentRequisitionApp.pageSet.Page1.MasterSubform. Text1.value.text.value = l_XML.Record[i].TITLE.toString();
               PaymentRequisitionApp.pageSet.Page1.MasterSubform. Text1.font.typeface ="simsun";
    I found that it doesn’t work. There is something else in the form to reset the title to English. So I try to paste the code above in “calculate” event of tex1 object. It’s work!
    Question:
    1.      Anyone can tell me that the implement order of the events in the form?
    2.      Does it exist other better way to do this?
            3.  Which event, function or any else let the master page’s object to be reset?

    this link for downloading the sample is valid:
    http://rapidshare.com/#!download|935|429748707|TEST2.pdf|84.309

  • How do I 'assign a higher layer to the object on the master' (page numbers on master) I understand the layer needs to be at the top to show above placed images on pages but how do I do this?

    I've added the page numbers to my master pages. They are displaying on the pages but I have images on the individual pages that are covering the numbers. I understand I need to assign a higher layer to the object but I don't understand how to do that. Please help me? Please explain a simply clearly as possible, I've read other answers but still don't understand. Wish it was as simple as select object, right click, edit layer!
    Many thanks!

    Layers panel;
    Create new layer
    Switch to Master page
    Make sure new layer is on top in the Layers panel, if not drag the layer on top in the Layers panel.
    Select (click once on) that top layer (pen symbol appears behind that layer in the Layer panel)
    Now draw your page numbers etc on the Mastet page
    From now on, select (click once on) any Layer in the Layers panel that is below the layer you used on your Master page items and create new objects in your document pages.
    If you accidently created objects on a 'wrong' layer:
    Select those objects
    You will see a square behind the layers name in the Layers panel
    Click and hold the mouse on that square and drag it behind the name of the layer you want to move the objects to.
    Buy a book about InDesign and start learning these basic principles!

  • Everytime I copy pages from one ID CS3 doc to another, it re-applies the master page objects!!

    Please Help,
    This is a topic I would really like to get to the bottom of.
    We have InDesign CS3 templates for creating our reports.
    These templates contain around 10 different master pages with grey placeholder image boxes and text boxes with dummy text.
    When we copy pages from one ID document to another, all the master page objects that were originally assigned to the pages are re-applied!!
    Resulting in lots of grey dummy boxes and text boxes re-appearing on top of the page items!!
    It's so annoying because we always customise the pages once we've pulled down master pages to work on, so when we copy pages across to other documents we have to apply the blank master to be able to kick out all the master objects easily.  Then we need to add the page numbers and footers back onto the blank master page.
    My question is, is there a way to switch this off, so when I move or copy pages from one document to another, nothing happens relating to master page objects, the pages simply just copy across as they are?
    Please help!  If not I may have to ask an external developer to write a script to fix this, it drives 900 of us crazy!
    thanks in advance for any help.
    Or am I just being ridiculous and not actually realising you can switch this off, doh!
    G

    Just a bit of further clarification on this issue (very few people really understand what's going on with master pages and overridden master page items):
    When you override a master page item, the object is moved to a local page, but a connection is maintained with the original master page item. This a) allows for the override to be removed (and return the object to its original state). This also, b) allows for changes made to the original master page item (other than the changes made to the local item from the point that it was overridden) to effect the local item as well.
    When the connection to the master page item cannot be maintained, the local item gets disconnected totally from the master page, and becomes a regular, run-of-the-mill page item.
    In light of this, there's three ways you can end up with duplicate master items:
    Reapplying a master page (or applying a new one). When you reapply a master, all overridden master page items get detached from the master, and the original mster page item appears again in its original state. Most of the time this produces unwanted duplication of objects. To fix up your page, you have two options: a) Delete the master page item, and b) copying the contents of the original to the new master page item. The disadvantage of "a" is that you end up with an item which is totally detached from the master, and changing the item on the master will have no effect on the local item. The disadavantage of "b" is that it's a lot of work...
    Moving a page to a different document. When you move a page to a different document which has the same master as the one originally applied, the master in the new doc is applied, and the effects are identical to reapplying a master page (i.e. overridden objects are detached). If the applied master (i.e. a master with the same name) does not exist in the new doc, the master is transferred over to the new doc along with the page, and the connections to the master page are preserved (well, re-created actually...). The workarounds in case #1 apply here as well.
    When page sides change in a document, the objects on the facing page appears.
    What happens here is a bit confusing, but here's an approximate explanation:
    When you apply a master to a page or spread in InDesign, what you are actually doing is applying an entire spread to an individual page. You can thing of a master spread as an overlay (or more precisely: underlay) on the page with a window cut out to the exact page dimensions.
    When the page side changes that "window cut-out" shifts to show the master spread items which correspond to the position within the spread of your current page (i.e. recto or verso). All objects which exist outside the window shift out of view (but still exist!).
    When an object is overridden, the position of the object is defined by its location on the local page, NOT its position on the master spread. When the page then changes sides, the object remains where it was on the page (even though the object it's connected to on the master spread moves out of the window of view). A corresponding object on the facing page of the master (if it exists) will then show in addition to the overridden one.
    Now remember: contrary to the first two cases, both objects are based on master ones: one visible one and one invisible one.
    Dealing with this third case requires much more care than the first two.
    The obvious way to deal with this would be similar to the first two, but if you remove the local object and transfer the content to the new maste object, the invisible master object on the non-visible page was actually removed, so when the page sides change again, the object will now be connected to the now-invisible master page item, and the correct master page item will be gone!
    The "correct" way to deal with this would be to transfer the content to the new master page item and remove overrides (not delete!) on the local item (which will make it disappear, because it moves back to the invisible page). Of course, when page sides change again, it becomes necessary to repeat the entire process.
    If the local object gets deleted, then your master spread is missing objects with no visible indicator of the fact. This can lead to confusion when the document might be edited at some later point in time.
    I believe that this complicated and un-intuitive behavior of master pages is part of the reason people tend to avoid using master page items. Documents tend to get messed up in really odd ways... It's a real shame, because extensive use of master page items has a lot of potential for streamlining workflows and saving an awful lot of time. This behavior really puts a damper on really using master pages as templates.
    Getting master page items to work the way they "should" was a big part of what I was trying to accomplish with AutoFlow Pro... When the master page items are defined as such (i.e. given a unique name), AutoFlow Pro solves all three of the above issues by keeping overridden master page items connected to the master page items on the currently applied master (and when a new master is applied as well!).
    (When I have a bit of spare time, I think I'll write this up on my blog with some visuals to make this easier to grasp...)
    Harbs

  • How to attach an object back to its source in a master page?

    Hello,
    on a content page I can access objects from the assigned master page using the Ctrl+Shift+LeftClick combination. By doing so I detach many attributes of this object from the master page specifications. How to reset an object and attach it back to the source object of the master page?
    If you are a PowerPoint user, the option reapply slide layout may be familiar to you (this function resets all format overrides to the master settings). I am looking for a similar function in InDesign.

    I really looking for a way to change the position of the second and third text boxes relative to other items on the page.
    An overriden master page item will still respond to its master's position if its position on the page after overriding hasn't been changed. So, you can have the "directions" box on the master page, override it, add text, and as long as you don't move its x, y position in the process of adding text, it can be moved via the master page in the future. The key is not to move it in the editing process.
    Same goes for other attributes. If the fill color is red, you can change it to gray from its master later, as long as you don't change the page item's fill to pink in between.
    It's also possible to match a changed page item's attributes to its master via scripting.
    So for example if you had a 3" text box on the master and there was 100 pages with the text box, and in the editing process 50 had their width changed to varying widths and later you decided you needed a 4"width— a simple script could loop through all the pages and reset the changed widths to match the master's new 4" width.

  • Master Page objects

    Bob, I can't find my previous thread, I don't even remember its name. So I am opening a new one, hope I'm not close to spamming by doing this. I had some problems with the objects on the master page, they didn't come out when exporting to PDF. Well, I somehow fixed it, I don't know exactly how, but I think there was another object in front of it, that became visible only on the PDF, covering my object. Maybe you can better guess what happened cause I surely can't.
    As I've already opened a new topic, I'll use this opportunity to ask if there is any possibility to activate the objects placed on the master pages from aleatory pages of the document. I mean, if I want to bring forth a master page object on let's say page 5 and place it on top of something else, but leave the other master page objects where they were, can I do that? Or do I have to apply None on page 5 instead of Master Page, and copy the object from the master and place it on the page I'm working in.
    Hope I didn't piffle to much and was clear enough.

    all objects from MasterPages as always placed beneath of objects placed directly on regular Page from the same Layer
    if you need to bring some object placed on MasterPage above object(s) on regular page - you need to click SHIFT+CTRL+LeftMouseButton on this object and override it on current page
    robin
    www.adobescripts.com

  • InDesign encounters error when locking objects on master page

    I have CS5 and love it. But, after moving objects on my master page between layers (don't ask me why, just thought it might be a good idea) I cannot lock (Ctrl-L) the objects without locking InDesign. It encounters a error and locks up. I have to use the Task Manager to close it and start over. Are you not allowed to move objects on the master page between layers? Do I need my mouse slapped?

    Eugene means that master objects are difficult to select on a live page (you have to Ctrl + Shift Click them to override) so there is really little reason to lock them. You shouldn'ty be getting acrash when you try, though. First step might be Replace Your Preferences

  • How to upload only Master Page changes to server

    Hi guys
    I've been working on a massive website. It started out as a small brochure style website, but has now grown to a multitude of subpages and categories, etc. I exported the Muse site to html and started working in Dreamweaver, creating all the extra subpages, etc.
    The client has now made changes which has to be done on my master page in Muse. I have done these, exported the site to a new location, and thought it will be as simple as uploading the CSS for the master page to the server to see the changes. It's not working.
    Any ideas on how to upload only the changes I made to the master page to the web server?
    Thanks

    Actually, Muse master pages and BC templates and fundamentally different in some key ways. While you can create a BC template using Muse, a Muse master page is not uploaded as a BC template.
    svendextro, as Brad stated, once you edit outside of Muse you give up the ability to further edit within Muse. The content and settings on a master page are part of the code generated for each page. There is no independent master page in the generated code that could be modified in the way you're expecting.

  • Simultaneous change of properties of a large number of objects

    Hi there,
    is there a way to change the properties, especially the qualification, of a large number (>100) of objects in Universe Designer simultaneuosly?
    Or is there another effecient way to import a file that consists of only 5 dimensions and 100 measurements?
    Best regards,
    Uwe

    What exactly do you mena by Qualification ?
    Do you want to change the object definition from
    tablename.columnname
    to
    schema.tablename.columnname ?
    Regards,
    Stratos

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • How to dynamically changes items properties

    How to dynamically changes items properties likes position order in tabular view, width, prompt

    Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
    Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
    The following built-in procedures are available for setting object properties at runtime:
    -     SET_BLOCK_PROPERTY
    -     SET_CANVAS_PROPERTY
    -     SET_FORM_PROPERTY
    -     SET_ITEM_PROPERTY
    -     SET_LOV_PROPERTY
    -     SET_MENU_ITEM_PROPERTY
    -     SET_PARAMETER_ATTR
    -     SET_RADIO_BUTTON_PROPERTY
    -     SET_RECORD_PROPERTY
    -     SET_RELATION_PROPERTY
    -     SET_VIEW_PROPERTY
    -     SET_WINDOW_PROPERTY
    The built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
    Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
    Each built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
    If Get_Window_Property('my_window',VISIBLE) = 'FALSE' THEN
    Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
    To determine if a particular property can be set programmatically, refer to the property descriptions in online Help.

  • Can we change the properties of the Page in Portal?

    Hi,
      Is it possible to change the properties of the Page? I want to change the height and width properties of the page, but i dont see the properties in the list. Can you please guide?
    Regards
    Sai

    Hi Sai
    You can change the page properties. Right click on portal page > object. it will open the page object properties.
    If a page is locked, you can open it in read-only mode. then you need to unlock the page object. refer to [Page Editing|http://help.sap.com/saphelp_nw04/helpdata/en/a3/badf3d48b05d5ae10000000a11405a/content.htm]
    Please check the page properties attributes. [Click here |http://help.sap.com/saphelp_nw70/helpdata/en/13/81a66d100011d7b84b00047582c9f7/content.htm]. this properties list is also applicable for the object type iviews/pages.
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • Problems for change the properties for Primitive shapes?

    Is there a way to change the properties of Cylinder, Sphere, Cone and Box primitives (com.sun.j3d.utils.geometry.Primitive)?
    ie. can you change the radius, height, width, etc after you've already
    created this object to the scene?
    Thanks for any help!

    Hi Anil,
    I did modify the property "SLD.selfregistration.hostName" to a fully qualified domain name, (i.e. fgsappitd.fourlis.net), as mentioned in sap note 804124 (performed also the stop and start of applications mentioned in the sap note. However, I still get the error message, whenever I activate my changes in the Integration Directory,
    "Unable to notify Adapter Engine 'af.fpd.fgsappitd' that is affected by the data changes
    HTTP connection to 'http://fgsappitd:50300/CPACache/invalidate' returns the status code '403' (Forbidden) in response"
    It is strange because although I entered the full qualified host name, the error message still shows, in the message above, only the host name.
    Just to mention here that when I open an interner browser and run URL 'http://fgsappitd:50300/CPACache/invalidate'  it fails. If on the other hand, I open an internet browser an run URL 'http://fgsappitd.fourlis.net:50300/CPACache/invalidate' , it works OK. Therefore, I believe,  the problem I get has to do with the missing full qualified host name.
    Is there something else I need to do? Do I have to restart the system?
    Thanks,
    Filippos

  • My ipod works in itunes but does not appear in "my computer" after I changed the properties

    My ipod works in itunes but does not appear in "my computer" after I changed the properties.
    First off, I'm using Windows XP (and Mac SnowLeopard) Here's how it started. For some reason my ipod started showing up as a camera when I plugged it in. It works fine in itunes, though. But when I tried to access it from "my computer" it only
    showed me the one and only picture I had on my ipod. I deleted that picture hoping it would no longer show up as a camera. When it still did I right-clicked on it in "my computer" and selected "properties". Under "autoplay" I
    chose for it to 'not show up' or 'take no action' or some such deal when I plugged it in. I thought that would stop it from popping up the window that asks whether i want to 'open camera wizard' or 'open camera scanning' or 'open folder to view files' or 'take
    no action' , etc. But now it won't show up in "my computer" at all. I also have a Mac with SnowLeopard. When I plugged my ipod into it my ipod doesn't show up in "finder" either! So basically my problem is not a mechanical one with hardware
    or software; yht ipod still works fine in itunes. I just need to undo the change I made. I've searched all around my preferences, utilities, options, etc. It shows up on my "Device Manager" but not on "Disk Management".
    Any help would be very much appreciated. Thanks.

    Hi,
    To show up in Windows Explorer, you can try placing the iPod into
    disk mode.
    Moreover, i recommend you to
    restore ipod to factory settings.
    If this issue still persists, locate to device manager, uninstall and reinstall USB Mass Storage Device driver.
    Here is an article you can refer to below:
    http://support.apple.com/kb/TS1369
    To get more help, you can also redirect to apple support forum:
    http://www.apple.com/support/ipod/
    Thanks!
    Andy Altmann
    TechNet Community Support

Maybe you are looking for

  • Older accessories work w/ iphone 3GS, then stop working?

    So about a month ago the office moved from samsung smartphones to the iPhone 3Gs. sweet. When I first got it, I did some testing with the existing ipod accessories I have - a sony radio/alarm clock, and the headunit adapter I have for my mazda. The a

  • Numbers of day which can be see on iphone 4s

    Do you know if it's possible to modify the quantity of days which can be seen in the app calendar on an iphone 4s ? I want to see a complete job week. Thanks a lot

  • Create an info record

    hi all, please help me to create an info record Material: M-33, Vendor: V-33 1. info record for purchasing organiztion 1000 (no plant)       Planned delivery time: 10 days       Purchasing group: Z00       standard quatity: 10       Freight per pc: 1

  • Production Premium CS6 Purchase Enquiry

    Hi, I have been told by a prolific user of Adobe products that you can purchase CS6 products by paying monthly, rather that paying the whole lump up front.  Can someone please confirm this, as I am unable to find the answer on the Adobe website. Also

  • Setting IP address by Client?

    Call to getRemoteAddr() method in the body of either doGet(...) or doPost(...) methods of Servlet returns IP address of the client. If the Client is java application, can an arbitrary IP number be set to the request sent to the Servlet?