Set Application Page as Home Page

Hi,
I have tried the below codes to set application page as Home page, but it is not working.
I have called the site as http:/servername:2104, but is redirection to http:/servername:2104/default.aspx instead of http:/servername:2104/_layouts/kpi_plan/kpidashboard.aspx
$site = Get-SPSite http:/servername:2104
$web = $site.RootWeb
$folder = $web.RootFolder
$folder.WelcomePage = "_layouts/kpi_plan/kpidashboard.aspx"
$folder.update()
$web.Dispose()
$site.Dispose()
$assignment=Start-SPAssignment
$web=Get-SPWeb -Identity "http://servername:2104" -AssignmentCollection $assignment
$rootFolder=$web.RootFolder
$rootFolder.WelcomePage= "$rootFolder.ServerRelativeUrl _layouts/kpi_plan/kpidashboard.aspx"
$rootFolder.Update()
Stop-SPAssignment $assignment
$web.Update()
$web.Dispose()
Kindly provide some solutions.
Anandhan.S Remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

Just tried out the code in a C# console application. In principle, the code works, as long as you set the url to a page in the site. Once I replace that page with an application page, it doesn't work anymore so I assume that that's not possible. Here's my
code:
using (var site = new SPSite("[site coll url"))
using (var web = site.RootWeb)
var folder = web.RootFolder;
//folder.WelcomePage = "SitePages/test2.aspx";
folder.WelcomePage = "_layouts/15/quicklnch.aspx";
folder.Update();
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com

Similar Messages

  • Even though set to open to home page, Firefox always opens in a new tab and to the previous tabs. All settings seem correct. I just want it to open in a new window to my home page

    I cannot open Firefox in a clean new window to the home page. Options are set to open to home page and open new window in new tab is deselected. I do not want my history coming up every time I open. All new pages come up in a new tab with the existing one staying put.

    This happens when I have multiple windows open. I have one window minimized on the task bar. I then launch a new firefox window and start surfing, opening multiple tabs in that window. Then I close that window. (My original window is still minimized in the taskbar). Now, I launch a new firefox window and the tabs that I had opened in the window I had just closed are all back.
    If I close all windows and then launch firefox, it goes to my home page.
    FYI, I'm running Windows 7 64-bit.

  • How to set custom master page for sharepoint application page ?

    Hello,
    I need to apply custom master page for the custom application page I created for login purpose.
    Can anyone please let me know how to apply master page for custom application page ?
    Note : I need to set custom master page for application page at web application level.
    thanks,
    Dipti Chhatrapati

    Hi Dipti,
    You can use the same reference as ASP.NET
    Example
    "<%@ Page Language="C#" masterpagefile="../_catalogs/masterpage/minimal.master" title="teste" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full"
    meta:progid="SharePoint.WebPartPage.Document" %>"
    You can use SharePoint Designer 2010
    http://www.microsoft.com/download/en/details.aspx?id=16573 to make the reference from you aspx page to you custom masterpage.
    When you are editing a aspx page you can go to ribbon "Style" and attach the custom Masterpage.
    André Lage Microsoft SharePoint, CRM Consultant
    Blog:http://aaclage.blogspot.com
    Codeplex:http://spupload.codeplex.com/http://simplecamlsearch.codeplex.com/

  • How to Set a page as home page in Oracle portal 10g

    Hi,
    I have one doubt.
    How to set a page (Not Page group) as home page in Oracle portal 10g?
    whether it should be a HTML Portlet or some other?
    Thanks & Regards
    Suthan.Sathya

    Hi,
    Welcome to SDN
    By defining the Sort Sequence of Navigation Nodes, you can do this, check the links:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/92/3e703e632c7937e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/53/89503ede925441e10000000a114084/frameset.htm
    If you need more help, just ping back.
    Greetings,
    Praveen Gudapati
    p.s. Points are always welcome for helpful answers

  • I set YAHOO as my home page, but it is only in the center with a white screen on both sides, how do I set to full page view without loosing my toolbars?

    I set yahoo as my home page, but it only appears in the center with white screen on each side. I have tried to change to full view, but then loose my toolbar. Is there a way to change YAHOO to full screen and keep my toolbars?

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can ignore the RFC 5746, see CVE-2009-3555 error message in the Tools > Error Console<br />
    That message is for site Administrators to alert them to update their server software.

  • I don't understand some of the termology is that a detailed step by step description on how to set firefox as my home page

    I want to fax firefox as my home page. How do I accomplish this?

    Are you referring to this support article?
    * https://support.mozilla.com/kb/How+to+set+the+home+page
    Which steps do you not understand?
    You can set the page in the current tab as only home page if you drag the tab or icon (website's favicon) that you see on the left hand side of the location bar or the toolbar Home button that has been moved to the far right of the Navigation Toolbar.
    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
    * https://support.mozilla.com/kb/Menu+bar+is+missing

  • Associate 2 Standard Tab Sets to the same application page

    Can you associated 2 Standard Tab Sets to the same application page and only have one of the Standard Tab Sets display based on an item value on that application page?
    Thanks,
    Dan

    Hi Dan,
    to my knowledge you can't do that, because you can only assign one tab set with the page property "Standard Tab Set".
    But how about just creating one tab set where you conditionally display the tabs which are matching?
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How can I set the page that will open, when I open a new tab, to be the same as the homepage?

    How can I set the page that will open, when I open a new tab, to be the same as the homepage?
    An app changed it to some other search engine, before installing the app, I the tab that would open was the homepage I set.
    In my case it is Google, and I want my new tabs to open on Google like they did before the installation.
    thank you,
    Asaf Privman.

    You can middle-click or Ctrl left-click the Home button on the Navigation toolbar to open the Home page in a new tab.
    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/new-tab-homepage/

  • Webdynpro Application Page in portal in CE7.1

    Hi,
        I have created a webdynpro application with property u201Csap.canBeSplitInIviewsu201D set to u201Ctrueu201D.I have deployed the application  and in Portal Content I have created a webdynpro page out of this application.So now my webdynpro page is having two iviews.
    Now I want to know the answers for below questions
    1)Can we  embed a url iview it in to the above created Webdynpro Application page in portal.I tried for it but couldnu2019t do so.
    2)So,as an alternative I created a Page,added the above created Webdynpro Application page and a url iview to that page.Now that url iview is displayed along with the Webdynpro iview.Bot the problem is url iview is getting refreshed when ever I click a button in the webdynbpro application view .It even refreshes when I select a table row in webdynpro.
    Please let me know if we can prevent url iview to refresh.
    Regards,
    Sudhir

    Hi,
    >1)Can we embed a url iview it in to the above created Webdynpro Application page in portal.I tried for it but couldnu2019t do so.
    No, I don't think so.
    >Please let me know if we can prevent url iview to refresh.
    For the parent page which hosts both the WD and the URL iview, set the property Isolation Method to URL. You can find this property under the property category Load.
    Regards,
    Satyajit.

  • The Help Link from the Application Pages Does not Work for Peoplesoft Campus Solutions 9.0

    Hi everyone.
    I have a problem, I have been trying to set up the Help Link from the Application Pages for Peoplesoft Campus Solutions 9.0 according to the instructions given in the Document: http://docs.oracle.com/cd/E17566_01/epm91pbr0/eng/psbooks/EnablingtheHelpLinkfromApplicationPages.pdf ,  (referenced in the Doc ID 1289101.1, E-PB: How to Set Up the Context Sensitive Help with Hosted PeopleBooks using Universal Linking).
    I follow the instructions of that document carefully:
    I go to: PeopleTools -> Web Profile -> Web Profile Configuration
        2. Then I choose the Web Profile: "Development".
        3. Then Change the value for the Help URL field by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5 , the ctx parameter selected is the one that correspond to  the Campus Solutions (hrcs90r5) according to the Product Line Code Table (ULinkID) especified in the mentioned document.
        4. Stop the Web Domain and Clear cache.
        5. Start the Web Domain again.
    After setting up the Web Profile Configuration I test the help links, thas is why I click in the Help link in any Peoplesoft CS 9.0 Application Page (modify a person), but the next error message appears: "We're sorry, the topic you requested was not found.".
    I tried many combinations with the ctx parameters URL but it does not work yet. 
    I did the same test, but this time using the Help URL field with a HRMS ctx parameter by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hcm92pbr5 , and It works fine !!!
    According to the previous test you realize that It works with HRMS ctx parameter but not with Campus Solutions 9.0 ctx parameter,  Does anybody know what else can I do ? Am I doing anything wrong or missing? or maybe the Oracle's ctx parameter for Campus Solutions URL It is broken simply.
    Thanks for you help and feedback.

    2799444 - The page you are testing with appears to be a Workforce Administration page. Is that correct?
    The CS PeopleBooks would only work for CS pages, e.g.: try navigating to Main Menu > Campus Community > Personal Information > Add/Update a Person
    Also, you can use multiple ctx parameters:
    E.g.: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5&ctx=hcm92pbr5&ctx=pt852pbh2
    This way the help would work for the HR related pages like Workforce Administration, Campus Solutions pages like Campus Community and also PeopleTools pages like Web Profile Configuration. Hope this clarifies your question. Thanks!

  • How to set the page size and the margins programatically

    Hello,
      I am working with crystal report XI Release2 and asp.net.
    One of my report is having 4 graphs in a single report.In order to display all the graphs in one page i have set  the paper size as A3.(Via Crysta report ->File->Page set up)
    But the page size A3 is not provided by all printers.So problem comes when the application is diployed on a machine which does not support A3 Printer.All the graphs will not be shown on a single page.
    Also Each and Every time ,when the application is diployed on a machine,user has to open the crystal report and adjust the page size accordingly to get all the reports on a single page.
    This is a kind of usability issue also.
    Is it possible to set the page size and the margins programatically say for eg 11 X 17.so that with out doing anything all the 4 graphs will get displayed on a single page ?
    Please let me know if you require more information regarding this issue.
    Thanks in advance.
    smitha.

    Hi Ludek,
    i could solve the issue by using the follwing code.
    report = new ReportDocument();
    PageMargins customPageMargin = report.PrintOptions.PageMargins;
    report.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
    report.PrintOptions.PaperSize = PaperSize.Paper10x14;
    customPageMargin.rightMargin = 1;
    customPageMargin.topMargin = 0;
    customPageMargin.bottomMargin = 0;
    report.PrintOptions.ApplyPageMargins(customPageMargin);
    Thanks for you help.
    Regards,
    smitha.

  • How do I set what page will open up when I click new tab?

    I just downloaded something from the internet and ASK is now my default page when I open up a new tab. I managed to set what page I wanted when I open up the browser, but when I am in the browser and I click NEW TAB it goes back to ASK. Any ideas?

    You may need to remove an Ask extension. You can check on the Add-ons page:
    Tools menu > Add-ons
    In the left column, click Extensions, then disable/remove unwanted (or unrecognized) extensions.
    The actual address for the new tab page is a hidden setting. To adjust it:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box that appears above the list, type or paste '''newtab''' and pause while the list is filtered
    (3) Double-click the '''browser.newtab.url''' preference and enter the desired value:
    * ''Page thumbnails (default)'' => about:newtab
    * ''Blank tab'' => about:blank
    * ''Built-in Firefox home page'' => about:home
    * ''Any other page'' => full URL to the page
    Press Command+t to open a new tab and verify that it worked. Fixed?

  • Application Page list not displaying.

    Application page list does not display when clicking on the application in application builder page. However if I type the application number and a valid page number in the URL I can access the application. All the pages work as well as the page editing.

    Scott,
    Well..it was the same issue as the Thistler..I replied to his posting and thought the threading would show that I was responding to his post. Anyway, it's okay.
    I solved the problem. By flushing the shared_pool (alter system flush shared_pool;) Application Express now shows the Application Builder page.
    The problem was that after logging in with a developer or administrator userid into the Apex 3.1.2.00.02 environment, clicking the Application Builder Icon resulted in a page not found error. However, you still could go directly to an application home page in the edit mode?(I don't really know how to describe it, it's the next page after selecting the application icon.)
    the Metalink NOTE:469934.1 describes what to do to fix this, and it did solve my problem.
    Thanks for your help
    Lyle

  • EditModePanel hide content in application page

    Hello,
    I have developed a custom contact form and put it int the footer of the master page of my publishing site. The form let users send to the administrator suggestions that they can have about the site.
    I have put all the code of my form contact into an EditModePanel and set it PageDisplayMode property to "display" to not trigger validation rules on my form contact controls when editing the page.
    The form is showing correctly in all page of my site except an application page that i have developed, on which my contact form was disappeared.
    When i delete the EditModePanel that surround form contact controls , my contact form is showing correctly.
    why my form content is not visible ?
    Any Help will be appreciated.
    Thanks.

    hello  Christopher ,
    Where i must put your code  ? 
    Below my user control code : 
    i have tried to put my code into an if check: if ((SPContext.Current.FormContext.FormMode == SPControlMode.Display)||
    (wpm.DisplayMode.Name.Equals("Browse")))
    the form contact is showing on application page but when i edit a publishing page i can not save changes because contact form contains required validation controls.
    protected override void DoOnLoad(EventArgs e)
    if (!this.Page.IsPostBack)
    ContactSuggest.Attributes.Add("placeholder", ResourceFiles.Default.GetResourceValue("ContactForm_Suggest"));
    HiddenFieldSuggestText.Value = ResourceFiles.Default.GetResourceValue("ContactForm_Suggest");
    ContactSend.Text = ResourceFiles.Default.GetResourceValue("ContactForm_Send");
    ContactError.Text = "";
    string paramValue = string.Empty;
    ParametersService ps = new ParametersService(SPContext.Current.Site.RootWeb);
    string textValue = string.Empty;
    if (!ps.TryGetValue(Variables.Parameters.ContactTo, out textValue) || string.IsNullOrWhiteSpace(textValue))
    ContactSend.Enabled = false;
    thanks for help.

  • Set Portal Page URL in Web Dynpro IFrame

    Hi All,
    I've a Web Dynpro application that runs in the portal.
    The application creates iframes dynamically.
    I want to set in the iframes portal pages.
    In order to get the page's url, I go to content admin, navigate to the page and then press the 'preview' button then I copy the url from the browser's address bar.
    I copy the url from the '/irj....' to the src property of the IFrame UI element.
    So the source property looks something like this:
    /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.mycomp.Omri!2fcom.mycomp.TestPage
    When I run the project I get:
    <i>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Access denied (Object: portal_content/.../...).
    Exception id: 06:01_17/10/06_0015_4401150
    See the details for the exception ID in the log file</i>
    The page's permissions are set to everyone so I don't know why do I get this error.
    So, how do I set portal page url in Web Dynpro IFrame?
    p.s
    I tried to use NavigatinTarget in the URL and it works. The problem is that the TLN is included. I want to display only the page.
    Thanks,
    Omri

    Hi Valery,
    I have only one domain...
    I searched SDN and I found this post:
    /message/1259616#1259616 [original link is broken]
    Daniel Wroblewski from SAP says:
    <i>This, naturally, sounds like a permission issue. Two steps:
    You must give the Everyone group end-user permission to the iView. This will eliminate the error and cause a login screen to display.
    If you want to eliminate the login screen, you must set the iView property Authentication Scheme to anonymous.</i>
    I will try it tomorrow in the Office.
    Omri

Maybe you are looking for

  • PDF Annotation in IE browser

    I am able to annotate PDF (for e.g. Add Sticky Note/comments) in IE (Version: 8.0 beta) browser when I install Acrobat Professional(Version:8.0). However, I would like to achieve the same functionality with Acrobat Reader only. Can you suggest a meth

  • How to create shortcut on iPad

    How do you create a shortcut on the ipad

  • New iPhone 5s Overheating and Losing Battery Life

    I just received the new iPhone 5s, and it's been on for all of 30 minutes, during which I restored the phone via iCloud backup and reinstalled my apps, etc. In these 30 minutes, the phone overheated and dropped down to 40% battery. Any reason as to w

  • JDBC Installation for BOE

    Post Author: yeungca2 CA Forum: Deployment Hi all I had created a crystal report on my local machine, which using yolus JDBC driver to connect to yolus server. It works fine on my pc. But once I put it into BOE (linux platform) . It doesn't work and

  • Goods receipt idoc posting

    Hello All, I want to post an idoc for Goods receipt. Can anyone tell me the mandatory fields in Idoc for creating goods receipt through we19 idoc test tool. IDOC type: WMMBID02 IDoc type: WMMBXY And if anyone has sample program to create GR idoc thro