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.

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

  • 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

  • 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 in Changing the Query of LOV using Forms Personalisation

    Hi all,
    I have a problem while trying to change the LOV of job field in the people--> assignment form. I am trying to do through forms personalisation. I defined all the rquired fields:
    Following are the description of fields Idescribed in the form Personalisation:
    Trigger Event: WHEN-NEW-FORM-INSTANCE
    in actions tab:
    10-- Built In--Create Record Group With Query
    11-Property----LOV
    Target Object--JOBS
    Property Name--GROUP_NAME
    vALUE--jobs(rECORD gROUP NAME created above)
    It is validated successfully,
    but when trying to open the form it is giving an error 'cannot create record group jobs'..
    Can anybody help me with this..
    Thanks and Regards
    Raj

    I found that there is no problem with code. My problem is not technical, its a functional problem.
    It is related to Inventory's "System Items" KFF.
    Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming?

  • 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

  • How to change the print page setup in IE using javascript

    dear all,
    I want to take print out envelope paper size, so i want to chnage the page setup in IE
    i want to change the print page setup in IE using javascript

    I think, you can do this using CSS.
    http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html

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

  • 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 width and height of the visible part of the of the report

    I have define a report with paper size 'Letter', orientation 'landscape' and 30 columns. Dynamically I am changing width of columns and suppressing many columns of the report.
    Mostly using first 16-20 columns and others get suppressed.
    Now problem is that when navigating the report thru crystal viewer, a huge blank spaces getting display on right of the report. When we take jump to some part of report thru navigation tree, the whole report gets shifted to left and only blank part is visible and it is required to scroll left.
    Even printing is not working correctly.
    Is there any way to change the width and height of the visible part of the report in the viewer thru .net classes? Setting the width and height of the report in Load event handler doesn't help.  
    Example: CrystalReportViewer1.Width = 200; - is not helping.
    Is there any other solution?
    Please let me know.
    Thanks
    Mahesh Patel

    Hi Yogesh,
    Your suggestion 'reportDocument.PrintOptions.PaperSize=PaperSize.PaperLedger;' along with 'PaperOrientation' setting as follow works fine. I tried to switch between Landscape and Portrait depending on report width.
    reportDocument.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    But problem with crystal viewer remain as it is.
    While navigating report thru crystal viewer, when we take jump to some part of report thru navigation tree, the whole report gets shifted to left and it is required to scroll left.
    Thanks for your very good suggestion.
    Mahesh Patel

  • 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

  • Problem while changing the width of the Indesign document through inx.

    Hi Guys,
    I am facing a problem related to the width of InDesign documents. Description of the problem is as follows:-
    I have created an InDesign document with height = 700 and width = 500 and export this as an inx file (lets say Doc1.inx).
    As "Doc1.inx" is just an xml file I have made certain changes to the height and width fields of the dcoument in it. (Height =900 and Width = 600)
    For Height changes are made under following tags :- <docu>
                                                                                   <docp>
                                                                                     phgt = "U_900" ;
    For Width changes are made under tags :- <docu>
                                                                    <docp>
                                                                      pwdt = "U_600";
    Now when I opened the modified "Doc1.inx" file with InDesign the modifications for height are correctly reflected, but the width of the column doesn't gets changed. Please open the attachments to see the difference.
    Attachment contains the snap shots of documents created at step 1(Initial_Doc1.indd) and step 3(Modified_Doc1.indd).
    What should be the modifications we have to do in inx file to reflect the correct modified width of the document. Also is there any document or article which gives the correct understanding of the tags used in inx files.
    Any help will be appreciable.

    I'm having troubles getting any sensible values at all using CS -- on the other hand, you forgot to mention your version, so I figgered I could try.
    (Just as an example, setting width & height to 600 pt and 900 pt -- you don't mention your units of measure either, is it meters? inches? -- I get "phgt="u_408c2000~0" pwdt="u_4082c000~0"", which doesn't make sense. Cicero's!? [*])
    But further below, I can see some definitions for columns: count (colc="l_1") and some measurements in that same system, which I suspect to be the width and height you are looking for. You switch between describing you succesfully changed the width and height of the document, and complaining the column does not change. Apparently, the column width is defined in itself, rather than using the "document marges" you are used to in the interface itself.
    [*] On second look, I can see more hexadecimal digits in other 'numbers'. It must be hexadecimally encoded IEEE floating point numbers -- "408c2000" decodes to 4.378906, and 4082c000 to 4.085938 -- both valid floating point numbers, but still I wouldn't know in what system.
    I hope your version uses regular decimal notation!

  • How to display the master TOC when using Context help in a merged document

    I use Robohelp 10. I have created a large Merged Webhelp project and I have set out the project master with nothing in it other than merged projects place markers.
    This is the layout of the generated projects etc.
    Generate
              Master.htm
                   Redirect.htm  (Home page is a redirect to Project 1 Home Page - not in TOC)
    mergedProjects
              Project1
                  Home Page.htm
              Project2
                   Redirect.htm  (Home page is a redirect to Project 1 Home Page - not in TOC)
              Project3 etc.
                    Redirect.htm  (Home page is a redirect to Project 1 Home Page - not in TOC)
    I can get the help to work great when I call up the master page, which shows the TOC for the whole project and the default home page. And from the breadcrumb the home link goes to the home page and shows the Main TOC
    However when I call a page using context help ID I get a single frame with the selected page. The link to show the TOC shows the TOC but it is the top of the merged project and not the master TOC. The home link in the does display the home page but again the displayed TOC is the one of the current merged project.
    The question is :
    How can I get the Master TOC to show all the time regardless of what page I call using a context ID or how can I create a link that will take me back to the Master TOC?
    I remember when I created a previous help file for chm output I had to modify all the ali files in order for the redirect to work throught the master chm. Surely this is not the case with webhelp?
    TonyC

    I am sorry that I didn't get back to all you guys that took to answering my very promptly. Unfortunately I was not in a position to answer to the suggestions made. as I was away from my computer which had Robohelp on.
    Anyway, I did try a couple of scripts mentioned, but didn't really have any success i achieving what I need to do.
    I set up a redirect which redirected to the main home page. I tried setting the home page in a  main sub-project - so the redirect when from any sub project
    Generate
         Master-project.htm (Home Page = Help_Welcome.htm)
    merged Projects
    SubProject1
                [Home Page =  home_redirect.htm (a redirect see below) ]
         SubProject 2
                [Home Page =  home_redirect.htm (a redirect see below) ]
         SubProject 3
                [Home Page =  home_redirect.htm (a redirect see below) ]
    home_redirect.htm  (a redirect use by sub-topics)
    <!--
       window.location="../../ Help_Welcome.htm ";
    //-->
    //]]></script>
    This setup works fine as long as I call the master page. The TOC is as I would want. However if I call an ID from my application I get the required page to display and I can get the TOC to show. The problem is that the TOC is from the current sub-project and not the master project as I would want.

  • CSS issue when changing the table row height to 16px

    Hello,
    After changing the table row height through css like this:
    .table-row-cell, .table-cell {
    -fx-cell-size: 16;
    the table rows are correctly displayed with a 16px height but the cell bottoms seem to be incorrectly set.
    For example the following css style (a red 3px bottom border):
    .table-cell {
    -fx-border-width: 0 0 3 0;
    -fx-border-color: red;
    doesn't work anymore with the new row height whereas it works with the 24px standard row height.
    While investigating with Scenic View, I noticed that changing the row height changes the TableRow layoutBounds height (from 24px to 16px so that's ok) but not the boundsInParent height which remains to 27px. I think it should become 19px (16 + 1.5 + 1.5). I don't know if it's a bug.
    Anyway, any help making the css red border working for a 16px row height would be greatly appreciated.
    Regards,
    Bruno.

    Q: Would this help to just use absolute div tags and give me 'ABSOLUTELY ABSOLUTE' positioning?
    No.  APDivs are not a good primary layout method.  Use default CSS positioning (which is no positioning at all).  Align page elements with margins, floats and padding.
    See example -- 2-Column CSS Layout with Grids
    (View Page Source in your browser to see the code)
    http://alt-web.com/TEMPLATES/2-col-fixed-with-grid.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

Maybe you are looking for

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home- and a new window would open. Now I have to manually open a new window to avoid loosing my existing window. Is there a way to open a new w

  • Re Tek Bright 50D - PV2007E Video Display Driver

    Hi, This display monitor came with its own Toshiba board. I need a Windows 98 Driver for it as a matter of some urgency. I can only find reference to a Tek Bright 50A. Is this suitable - or what should I use. Regards Dave

  • Can we call a analysis view from a Dashboard

    Hi, Is it possible to call an Analysis View(ex Table, pivot view etc) from a dashboard. I am trying to call Summary and Detail View of an Analysis in a dashboard, when I click on Summary, Summary view should be called and when I click on Detail, Deta

  • Sharepoint- Error Code 52068

    Hi, I am at a client site trying to create a dashboard in Sharepoint PPS. I have configured Performance Point Service Application and Secure Store Service, so that I can use unattended service to connect to my SSAS cube. I could create a site and run

  • Pages practically unusable after Lion Update

    After installing Lion Pages is practically unusable as most documents can only be edited frequently - regardless if new ones or old ones. Pages constantly looses the abilty to type and only if you shift focus to another application like Safari and th