Click a button to change the Master Page

Hi everybody,
I have a LiveCycle Designer question…
Is it possible to have a button onclick event to change the Pagination “Place” property of a subform?  I would like to change the Master Page that a subform is placed on using a script on an onclick event. I’m not sure if this is possible… wondering if you knew a way…
Thanks a lot.
Jing

Hi Jing,
I don't think it is easy, here is a sample that allows you to choose the page size and orientation (which are different master pages), Adobe LiveCycle Designer Cookbooks by BR001: Season Planner (or Year Planner) PDF Template
It effectively defines the form against each master page and recalculates the widths and heights when the page selected is made, but I don't know of another way.
Regards
Bruce

Similar Messages

  • Can't change the master page after upgrading to SharePoint 2013.

    After upgrading our farm to SharePoint 2013 we are having trouble changing the master page for sites that don't have sub-sites. We are still using the v4 UI version, and that appears to be what is causing the problem. The error we get when going to /_layouts/ChangeSiteMasterPage.aspx
    is:
    System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaChromeSettingsPage.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()    
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    I took a peek at the source code for AreaChromeSettingsPage.OnLoad and found that it references a CheckBox control that does not exist in the v4 ChangeSiteMasterPage.aspx:
    protected override void OnLoad(EventArgs e)
    base.OnLoad(e);
    this.EnsureChildControls();
    if (!this.Page.IsPostBack)
    this.LoadValues();
    if (base.Web.Webs.Count == 0)
    this.resetSystemMasterPageSubSitesCheckBox.Visible = false;
    this.resetSubSitesCheckBox.Visible = false;
    this.resetAlternateCssSubSitesCheckBox.Visible = false;
    this.resetThemeSubSitesCheckBox.Visible = false;
    base.ConfigureCancelButton(this.BtnCancel);
    If I manually add a checkbox control with the ID "resetThemeSubSitesCheckBox" to a hidden panel in the v4 copy of ChangeSiteMasterPage.aspx the page works, but obviously this is not a best practice. How can we fix this without upgrading the UI version, which
    we are not yet ready to do?

    Thanks Mike - Could you please share what is your next step then? I also have custom master pages and layout but I am going to make new master page and layout in 2013 as we need to change the existing branding too. so, i upgrade the site collection. I understand
    the Look and Feel will not persist after the upgrade but I am concern that at least the page should show the content on the page after the upgrade. The page had Calendar webppart on it but after the upgrade it is coming blank.
    any suggestion?
    Regards,
    Khushi
    Khushi

  • How to change the master page and theme dynamically in sharepoint2013 anonymous site

    hi
    I have to change the master page and theme dynamically in sharepoint2013 anonymous site. i have to show one master page to authenticated user  another master page to anonymous user through code
    Srinivas

    Hi Srinivas,
    According to your description, my understanding is that you want to change the master page and theme dynamically based on the anonymous users or authenticated users.
    Per my knowledge, there is not an OOB way to change the master page and theme dynamically.
    SharePoint is based on Asp.net, as we know Asp.Net request processing is based on pipeline model, so we can delevlop a custom HttpModule to dynamic change the master page based on current logon user profile(using SP Object Model to get).
    Another solution could be to use the SecurityTrimmed control that injects the CSS depending on global user permissions, more information, please refer to
    it.
    Some similar posts for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/c2b2d0da-c752-4aea-9c2d-e31a5b1a2988/sharepoint-2010-dynamic-masterpage-based-on-userprofile-property
    http://johanleino.wordpress.com/2011/10/20/using-a-different-master-page-for-authenticated-users-in-sharepoint/
    http://sharepoint.stackexchange.com/questions/21679/how-can-we-use-a-different-masterpage-for-annoymous-and-authenticated-users
    http://sivarajan.me/post/How-to-customize-the-SharePoint-2013-Master-Page-for-Anonymous-Users
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Problem to change the master page height using javascript

    Hi everyone,
    I've been trying it but no luck... appreciate any helps possible.. Thanks!
    I've a masterpage called 'UILayout':
    Long(Height)=100mm, Short(Width)=100mm
    I've a button click event with the script to set the Long to 160mm:
    ====================================
    //display current height
    var curHeight = xfa.form.form1.pageSet.UILayout.medium["long"];
    xfa.host.messageBox("Current Height = " + curHeight);
    //set height to 160mm
    xfa.form.form1.pageSet.UILayout.medium["long"]="160mm";
    //relayout the pageArea
    xfa.layout.relayoutPageArea(0);
    ====================================
    Doesn't work, I wrote another button click event to retrieve the height, and it returned 160mm. But the layout just doesn't refresh with the changed height....i'm using LC Designer 8.2, form saved as Dynamic XML PDF , compability set to 7.0.5, view in Acrobat Pro 7.1. Thanks...

    I do not think you will be able to adjust the Master page size as it is tied to the Content Area size as well. I tried to adjust the pageisze and the content size but it was ignored. I can get at the properties to change them but that is it.

  • An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery or directly typing its URL

    I apply theme before singing all users into application ,now  visitor/member are not affected color text so we are reapplying themes 
    I am not able to reapplying SPColor /my site Host template "  An error occurred during translation of your HTML master page. For more information, please navigate to the master page by clicking the preview button in the Master Page Gallery
    or directly typing its URL" while applying theme i am getting error
     

    is it your public site/ community site or team site?
    what level of subscription you have?i would say try to delete the site and try to create a new.
    http://community.office365.com/en-us/forums/154/t/147705.aspx
    are you able to open the site in the sharepoint designer?
    or try to send them the private message to the support team.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • "New Document" button on ribbon not working in the "Master Page Gallery" in Internet Explorer 10 & 11

    I'm trying to add a "JavaScript Display Template" to my "Master Page Gallery" but when I click on the "New Document" button and select "JavaScript Display Template" it opens the "Add a master page" dialog
    and prompts me to upload a file.  I've ran into this problem with "Compatibility View" set to both "On" or "Off".  I'm able to upload files but I can't get the new forms to show up.
    This happens on the root site collection site.  For subsites, the "New Document" button is completely grayed out.  
    FYI - I am a site collection admin and in the "Owners" group for each site.
    How can I fix this?

    Hi,
    According to your post, my understanding is that "New Document" button on ribbon falied to work in the "Master Page Gallery".
    In the root site, please make sure you enter all the necessary information when you upload file.
    In the other word, you need to make sure the save the “JavaScript Display Template" successfully.
    In the subsites, when you click the “Master Page” under Master Page Gallery in the sub site site setting page, the "New Document" button is completely grayed out.
    If you want to add the template, you need to active the “SharePoint Server Publishing” feature in the Site sitting->Manage site features.
    However, the “Master Page” under Master Page Gallery will become to “Master pages and page layouts”.
    If you click the Master pages and page layouts”, you will go to the
    Master Page Gallery of the root site, and then you can add Document.
    Thank you for your understanding.
    Thanks,
    Linda Li
    Linda Li
    TechNet Community Support

  • Change the home page buttons

    is there any way to change the home page buttons with other buttons from the menu?
    Solved!
    Go to Solution.

    Yes, there is.
    Scroll to and choose (don't click on it, just have it highlighted) the icon you wish to move around and press the Menu key > Move. Scroll it to where you want it to be on the homescreen.
    If the icon you want to be on the homscreen is now located in another folder, scroll to it and choose Menu > Move to Folder > Homescreen.
    You would benefit well from reading and practicing the 8300 (very similar features to the 8500) tips from my buddy Mr. Stinsonddog.
    Look at this link for them, download and print out the PDF file and practice the tips while using your device. You'll be amazed at all the cool things your BlackBerry can do.
    http://www.stinsonddog.com/
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My location bar, tool bar (file, edit, tools, bookmarks, help) disappeared and cannot be restored. I have no back button, home button etc. the top of the screen is just an empty blue bar. Internet still works if I click on a hyperlink on the main page.

    My location bar, tool bar (file, edit, tools, bookmarks, help) all disappeared and cannot be restored. I have no back button, home button etc. the top of the screen is just an empty blue bar. Internet still works if I click on a hyperlink on the main page.
    The problem started when I turned on the computer this morning. I tried to install Mozilla 4 from your website and that installed but I still have nothing on the top.

    It may be due to Firebug. Seeing as how you're a web developer, it's very possible you have this installed. The latest version, 1.7X a10, appears to cause everything you described. I downgraded to "a8" and that seems to have fixed everything.
    I also recreated a profile from scratch before trying this out, so I can't guarantee it's definitely Firebug.
    Similar issue: https://support.mozilla.com/en-US/questions/783078
    edit: If you go to the Firebug forums, you'll see this is now a known problem. http://code.google.com/p/fbug/issues/detail?id=4012 for the issue tracker.

  • I am writing a book and need to have the margins alternating left and right pages, so that there is sufficient margin for the binding. I have tried different inside and outside margins, the same inside and outside margins, facing pages, changing the maste

    I am writing a book and need to have the margins alternating left and right pages, so that there is sufficient margin for the binding. I have tried different inside and outside margins, the same inside and outside margins, facing pages, changing the master, and I cannot get the margins to alternate at print time. The larger margin is always on the left. Can anyone please help me on this, as I have spent hours and lots of ink.

    Set up as facing pages with a larger inside margin.

  • Changing pie chart to 3D pie causes it to lose the master page scheme and become rock patterns instead.

    When I change my Keynote pie chart to a 3D pie chart it loses the master page color scheme, becoming rock patterns instead. I haven't been able to get it to return to the original color scheme.

    Thanks for the response.
    On the first issue, unfortunately formatting the legend using that technique results in no change to the legend. The only way I was able to get it to resize was by resizing the entire chart area.
    On the second point, I must be missing something. Do you mean that there is no way to format a chart such that all slices have the desired formatting at runtime unless the report is always run with the same parameters? I might as well just draw a static picture :/

  • Editing the master page of My Site - Changes not visible to all users

    Hi!
    I opened the mysite.mydomain.com site on my SP designer and made some changes in a master page located in the Master Pages library. I checked in the changes and now I can see them when I open the site on my browser.
    But only when I use the account that made the changes using the designer.
    How can I propagate these changes to be visible to all my users?
    Publishing features in are enabled already.
    Thanks!
    Dimitris Papadimitriou, Software Development Professional

    No! Duh!
    I forgot about that part! Actually I don't see this option in the designer. I had to go to the browser to do it. Anyway, now it works! Thanks!
    Dimitris Papadimitriou, Software Development Professional

  • Button to go from the Master page to the "New" Detail page

    Hi,
    I have an application with some Master/Detail pages, on one of the Master/Details the client wants a button on the Master page to go directly to create a new Detail, instead of enter on the Detail page and then press the New button.
    Is it possible? Can I make this kind of button?
    Thanks
    Tony

    Tony,
    Add the button with drag and drop post-generation and test it, then move the button code to a custom template, and uncheck group-level check box "Clear Page Definition Before Generation".
    Steven Davelaar,
    JHeadstart Team.

  • Applying Changes to Master Pages

    Is there any way to apply a change to a master page to a topic that is already linked to that master page? I tried removing the link, making the change to the master page, and then re-linking the topic, but it the "old" version of the master page gets applied. I also tried making a change to the master page and then using the Apply To All feature when generating, but again, the version applied is the "old" master page.

    Hello again Paul
    Okay, so the fact you are referring to them as Master Pages would seem to imply you are using RoboHelp 8. When you edit a Master Page in this version you note that there are "Placeholders" on the page. There is a Placeholder for the Body text. You may also add other Placeholders as well as Headers and Footers.
    If you inserted the button bar inside the Body placeholder, it would only be related to topics you created using the Master Page as a template. If you later changed this in some way, for example removing or adding a button, it would only be reflected in topics you later created after making the change. Topics created prior to the change will be unfazed.
    You can change this behavior by inserting the element just above the Body Placeholder. When content is outside the Placeholder, it gets copied to any topic associated with the Master Page.
    As for RoboHelp being "helpful" and leaving the code alone, you are on your own with that. Trial and error will tell you whether RoboHelp will clobber the changes to the code. About the only way to ensure that doesn't happen is by using some custom JavaScript to "write in" the desired code.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!

    I am having major issues with links in keynote! Even though the links (a navigation system) are on the master page, they are only working on some of my slides. Anyone have ideas on how to fix this or similar issues? Help!
    I have created a navigation system on the master pages and set the presentation to links only mode. I also have other links scattered throughout the program, like a linkable table of contents, etc. Some of them work, some of them don't. Not sure why. Anyone out there having similar issues? Or have any idea on how I can solve this issue? Any help would be appreciated!
    Thanks!

    Links should not create any problems in Keynote.  If they are set up correctly on text, the text will be underlined. Objects that have links will have a curved arrow bottom right, if you click the arrow a popup will display the link information.
    Try this repair for Keynote,  ensure you complete all the tasks and in the order shown:

    delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update, its a freeware application

    empty the trash:  Finder > Empty Trash

    Shut down your Mac, wait 30 seconds, then power on the Mac, immediately after the start chime, hold down the Shift key
    When you see the grey Apple symbol and progress indicator (a spinning gear), release the Shift key.
    If you are prompted to log in, type your password, then hold down the Shift key again as you click Log in.
    4  
    Let the Mac fully boot up, it will take longer as the OS is repairing the drive

    when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive then First Aid tab and click  repair disc permissions

    when complete, restart the Mac normally, Apple menu > Restart

    install Keynote from the Mac App Store
    let us know if this helped

  • How to change the initial page without open safari

    Hi everybody,
    I have problems opening my safari because of the plugin silverlight. I defined a tvair.swisscom.ch page as initial and it makes an error open it. it means that my safari doesn't work at all.
    i want to know if somebody knows how to change the initial page from safari without open safari and solve this problem.
    thx
    cheers
    nun

    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Preferences/com.apple.Safari.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Quit the application if it's running. Move the selected item to the Trash. Relaunch the application and test. Optionally, restore the file from a backup that predates the problem.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • Can i use home sharing if me and my wife have different apple ID accounts?

    can i use home sharing if me and my wife have different apple ID accounts?

  • Rman Backupset size is exceeding the database size

    Hi my rman backup size is exceeding the database backup size and occupying the full mountpoint. and finally due to space issue, backup is failing. Below is the RMAN script run { backup incremental level 0 tag ASCPLVL0 database plus archivelog ; delet

  • Power on password for compaq 6910p

    How do I find out what the power on password is for a Compaq 6910p This question was solved. View Solution.

  • Example of find itab

    Hi Guru's, can anybody explains me and give me a sample program of below syntax please? i want to know how exactly it works? please can anybody help me? FIND IN TABLE itab Syntax FIND [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF] pattern   IN TABLE itab

  • OmniPortlet

    Hi, i used the SQL with OmniPortlet on webcenter spaces: i written the below SQL statement: select * from MAIL where EMP_NO = ##Param1## ( as Param1 = #{securityContext.userName} ) but when i test this SQL statement, i have the result: Error in execu