Adding Page View Web Part with dynamic URL based on visited mysite user

Problem:
I want to add an iframe (using Page View Web Part for example) on all mysite users front page (person.aspx) with following address:
http://webservice/calendar?user=name
The property "name" represents a dynamic value based on which person the user is visiting. Hence if i open "Tom Hanks" mysite profile, the iframe will show content from http://webservice/calendar?user=Tom%Hanks
(This is a custom made calendar from Domino)
Any suggestions welcome.
-Terje

Hi,
The Page Viewer Web Part is basically an HTML IFRAME. We can use a Content Editor Web Part with an IFRAME and a little JavaScript to meet your requirement.
Here is a similar thread for your reference:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/d9a06d93-93d2-4340-a491-c7d0d5d4fdf3/how-to-dynamically-change-link-in-page-viewer-web-part-sharepoint-2010?forum=sharepointgeneralprevious
More information:
http://stackoverflow.com/questions/20981226/sharepoint-2013-get-current-user-javascript
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Page Viewer Web Part with horizontal scrollbar

    Hi,
    I added a page viewer webpart to a sharepoint 2013 website and placed a reporting services report url on it, however in some users the browser shows a horizontal scroll bar and cuts the report area. This is not version related because
    I can see it well in IE10 in one user and in others it shows the reported problem.
    Seems to be browser settings. Any ideas?
    Thank you

    Hi,
    According to your post, my understanding is that some users’ browser shown a horizontal scroll bar in the page view web part.
    You can disable the horizontal using the CSS style as the following.
    <style type="text/css">
    #WebPartWPQ3 {
        OVERFLOW-X: hidden !important
    </style>
    Note: the WebPartWPQ3  is the webpart ID.
    You can find the ID as the following thread:
    http://sharepoint.stackexchange.com/questions/29649/disable-horizontal-scroll-bar-on-navigation-web-part-in-sharepoint-2010
    Instead of using page viewer web part, you can also use the content edit web part with IFrame, and some JavaScript to achieve it.
    For more information:
    http://majidbaig.blogspot.in/2012/07/page-viewer-web-part-dynamic-height.html
    There is a similar thread for your reference.
    http://stackoverflow.com/questions/368480/removing-scrollbars-from-content-editor-page-viewer-webpart
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Issue in treeview control along with page viewer web part showing the sub sites from MMS

    hi,
    Am having a treeview control populates  with values from  MMS - Managed Metadata Service.
    [ Products ]
    ----->ms office 
                ----->word
                ----->excel
                 ---->powerpoint
    -------->Collaboration
                     ---->   sharepoint 2003
                     ---->  moss 2007
                     ----> sp 2010
                     -----> lync
     all these  values excel, word, powerpoint are sub sites created under ms-office site collection.
    and  sharepoint 2003, mos 2007, sp 2010, sp 2013 are  sub sites created under collaboration.
    now, on the page load, end user clicks on word and he should navigate to the  sub site "wordsite"  and it should show the home page of word sub site.
    we have created a  page viewer web part and  assigned the url property of the page viewer to the sub site url.
    but the issue is, when end user clicked  on the child node "powerpoint", the  page did a Post Back and treeview control immediately collpased and it shows the Products [top level - parent node] only.
    Am unable to set the current selected value- ie  here its excel and show the excel node in the trewview.
    how can i get this child tree node as the selected node.
    help is  highly appreciated!

    Check if below can help
    http://thechriskent.com/2012/05/09/changing-the-default-expansion-of-metadata-navigation-on-initial-page-load/

  • How to dynamically change link in Page Viewer Web Part SharePoint 2010?

    Newbie Question:
    Situation:
    a) Created: Two Site Pages page 1 & page 2
    b) Page 1: Includes simple hyperlink text Example - Home | About Us | Contact etc
    c) Page 2: Includes Page Viewer Web Part that includes link to an existing web site (this site has all of the pages) and the olde site is shown in SharePoint site
    Complication:
    a) I want the users to click on Page 1 - About Us etc
    b) The View on Page 2 - page viewer link should be dynamically updated to About Us . If user clicks on contact us on Page 1..the page 2 view should change dynamically to Contact US
    ASK:
    a) How do I dynamically update the links in Page Viewer web part using minimal coding (if possible)
    Any Guidance will be greatly appreciated.

    Hello,
    You can also used the another appoch,
    Create your custom webpart , then add the PageViewer Webpart at run time,Create webpart property for the custom webpart to change the url and add the PageViewer webpart runtime,
    I have created the custom webpart property to specified the url at the tine of edit the webpart
    Here is the code
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using System.Collections;
    using Microsoft.SharePoint.Publishing.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    namespace MyNameSpace.MyPageViewer
    [ToolboxItemAttribute(false)]
    public class MyPageViewer : System.Web.UI.WebControls.WebParts.WebPart
    private string _customUrl = "http://yourdefaulturl";//Specified default url
    [WebBrowsable(true)
    , Personalizable(true)
    , Bindable(true)
    , Browsable(false)
    , DefaultValue("")
    , Category("Custom Page Viewer Properties")
    , WebPartStorage(Storage.Shared)
    , FriendlyName("PageViewer URL")
    , Description("PageViewer URL")]
    public string CustomUrl
    get { return _customUrl; }
    set {if (string.IsNullOrEmpty(value) == false) { _customUrl = value; } }
    #endregion
    public MyPageViewer()
    this.ChromeType = PartChromeType.None;
    protected override void OnInit(EventArgs e)
    EnsureChildControls();
    base.OnInit(e);
    protected override void CreateChildControls()
    string pageViewerUrl = CustomUrl;
    Microsoft.SharePoint.WebPartPages.PageViewerWebPart pageViewerWebPart = new Microsoft.SharePoint.WebPartPages.PageViewerWebPart();
    if (!string.IsNullOrEmpty(pageViewerUrl))
    pageViewerWebPart.ContentLink = pageViewerUrl;
    pageViewerWebPart.ChromeType = PartChromeType.None;
    pageViewerWebPart.Height = "382";
    pageViewerWebPart.Width = "682";
    this.Controls.Add(pageViewerWebPart);
    protected override void OnLoad(EventArgs e)
    base.OnLoad(e);
    protected override void OnPreRender(EventArgs e)
    base.OnPreRender(e);
    Hope this will help you
    Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Dynamically Link OneNote Page to SharePoint 2010 Page Viewer Web Part

    I'm trying to display a OneNote page within a SharePoint 2010 Page Viewer web part whereby the OneNote page can be edited by users with read/write permission, but not having any success. 
    I was able to save the OneNote page as a web page (.mht) file and display it as a static page within the SharePoint Page Viewer web part.
    Any suggestions on how it can be done would be greatly appreciated.
    Thanks!

    I'm afraid there might be no way to integrate OneNote with SharePoint as your requirment. Sorry.
    Tony Chen

  • Master Page Header and Footer in Page Viewer Web Part

    Hi.
    I created a View in Pages Library to view specific folders.
    After that i added one Page Viewer web part to one of the aspx page.
    There in the Page Viewer web part properties Link i have provided the url of the view.
    It is displaying the folders but at the same time it is displaying the master page header and footer inside the web part.
    Now i need to display the folders alone inside the Page Viewer web part.
    Please let me know how to exclude the master page header and footer inside the Page Viewer web part?
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    I think that is the default behavior of the page viewer webpart.
    In the page viewer web part,your just enter the url of the website.So that is treated as webpage and it is displaying as per page.
    http://meritsolutions.com/meritmatters/archives/576-Displaying-a-File,-Folder-or-Web-Page-in-the-Page-Viewer-Web-Part.html
    If you want to display a folder, type in a network path to that folder under Link and the folder content will be displayed. 
    Find the more details about page viewer webpart in msdn
    http://office.microsoft.com/en-in/sharepoint-server-help/page-viewer-web-part-HA010024045.aspx

  • Hiding the outline section of PPT converted to HTML in Page Viewer web part

    Hello,
    I've converted the PPT (Office 2010) to HTML using .SaveAs command. I'm adding this HTML on my SharePoint site in a page viewer web part. I get an outline section for PPT which shows all the slides. By default, I want the outline section to be closed (collapsed)
    so that I see PPT slide in full view.
    Has anyone done this before?
    Thanks,
    Ajit

    Hi Ajit,
    When we save PPT as HTML page, the PPT HTML page uses a lots of html pages and JavaScript functions to show the slides in a web browser. When we click "Outline" button, we can be able to show or hide the outline. Actually, this button uses JavaScript to
    do so.
    In this case, in order to show full page on load, we can simulate the action that clicking the "Outline" button onload.
    Open the PPT HTML folder(if we save PPT to HTML, there will have a folder)
    Open the file outline.htm with text editor
    Modify the Load function to be:
    function Load() {
        if (IsWin("PPTOtl")) {
            LoadOtl();
            parent.gOtlLoaded = true;
            var btn = new TxtBtn(
            "nb_otl", "nb_otlElem", parent.ToggleOtlPane, GetOtlState);
            if (btn != null) {
                btn.SetPressed();
                btn.Perform();
            return
        if (g_supportsPPTHTML) {
            if (IsWin("PPTNav")) {
                LoadNav("NavObj", UpdNav);
                parent.gNavLoaded = true;
                return
            if (IsWin("PPTOtlNav")) {
                LoadNav("OtlNavObj", UpdOtlNav);
                parent.gOtlNavLoaded = true;
                return
    Once we done, and upload the files to SharePoint again, the page viewer web part will show the PPT in full page.
    If there is anything unclear, please feel free to ask.
    Thanks,
    Jinchun Chen
    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)

  • Display CRM 2013 Dashboard in SharePoint 2010 Page Viewer web part

    Hello,
    I am trying to add a simple CRM 2013 dashboard to a SharePoint 2010 web page (Page Viewer web part).  The page shows the banner only - the dark blue banner from CRM, but that is it.  No data, no headers, etc.
    Is this a permissions issue?  The SP and CRM servers and user are all on the domain.
    Thanks,

    Hello,
    I believe I found the answer to this issue.  The GUID for the dashboard needs to be copied from customizations/Dashboards in Settings.  Then the URL ends up looking [something] like this (note: this is just a sample) -
    http://SERVERNAME/ORGNAME/Dashboards/Dashboard.aspx?dashboardid=NNNNNNNNNNNNNNNNNNNNNNNNN
    Server name and org name and GUID (sample below shown as "NNNNNNNNNNNNNNNNNNNNNNNNN") needs to be replaced with the correct GUID of your entity to make the URL valid.  This is just a sample, not meant to be used in a production
    environment. 

  • Page Viewer Web Part Not Displaying

    I've added a Page Viewer to my SharePoint site underneath a Content Editor. When I'm editing the Page Viewer Web Part I can see the page but if I close the Web Part editor the page doesn't display.
    If I move the Page Viewer Web Part above the Content Editor it displays but the Content Editor does not.
    Anyone have any ideas?

    Do you have HTML or a script written in your Content editor? maybe the code isn't properly formatted with proper opening of elements or closing of elements? I'd start there. Also try using the F12 in your IE browser to inspect the HTML the page is displaying.
    That might help zero in on the problem.
    Alex

  • Compound filtering xslt list view web part with _dopostback using javascript/jquery

    Hello,
    I am filtering list view web part as same as the below post,
    http://dcsharepointchick.blogspot.in/2013/05/filter-sharepoint-list-with-partial-postback.html
    here I need to filter the web part with some another condition . I am trying to write another condition in filter attribute of _doPostback(), but it doesn't work.
    Please let me know is there any alternative to achieve compound filtering.
    Regards,
    Balakrishna M.

    Hi Balakrishna,
    According to your description, my understanding is that you want to filter the list view web part with more than one filters.
    I recommend to use the OOB Choice Filter web part to achieve this goal.
    Edit the page where the list view web part exists and then add the Choice Filter web parts to the page based on your need.
    More reference:
    http://office.microsoft.com/en-in/sharepoint-server-help/connect-a-filter-web-part-to-a-list-view-web-part-HA101785233.aspx#_Toc296943684
    Or you use the List Filter Plus Web Part to get the function.
    http://www.kwizcom.com/sharepoint-add-ons/sharepoint-list-filter-plus/overview/
    Here is the link to download the web part:
    http://www.kwizcom.com/sharepoint-add-ons/sharepoint-list-filter-plus/download/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Crystal Report Viewer in Sharepoint Page Viewer Web Part

    In our SharePoint setup, we have a web part that contains links that either hides or shows three other web parts (page viewer web part).  When entering the page, the first web part is shown and the other two are "hidden".  Clicking on the links will toggle through these three web parts.  Link 1 = Web Part One Visible, Web Part Two and Three Hidden.  Link 2 = Web Part Two Visible, Web Part One and Three Hidden.  Link 3 = Web Part Three Visible, Web Part One and Two Hidden.
    Our problem involves the CrystalReportViewer.  We have created a page that allows us to open the last successful instance of a report with the viewer.  This works correctly when calling the link directly from IE.  When we place this link in either the second or third web part, the report does not show.  The viewer borders will appear but the report itself will not.  If the .aspx is placed in the first part, the report appears without issue.  We do not want the .aspx to be called by the first web part and need it to load in one of the other two.  We can get the report to show in the other web parts if you right click on the empty space where the report should be and hit refresh.
    What do we need to do to get the report to load correctly in either of the two web parts?  We have looked at several options and can not get anything to work.  We didnt have this issue when using BOE XI R2 with an .asp opening the reports.  Please let me know if more info is needed.  We are running BOE XI R3.1 currently.
    Thanks

    We havent tried that.  We changed the link in the web part to access an html page that claims that the report is loading.  It states in the html that if the page doesnt load to "click here" which redirects to the crystalreportviewer.  Its a temp fix for it.  One thing we are looking at is the 64 bit version of the Sharepoint integration kit.  That may contain a reportviewer webpart.
    Thanks for the reply.
    Brian

  • Embedded .htm loses functionality in Page Viewer Web Part

    Hello,
    I have a .htm file with the entire web content folder, generated by another application, stored in a Document Library on my SharePoint site. This web page contains 3 zones (html framesets with frames): The first one containing a tree-view where the user
    can select a specific "model" to view, the second one is the main part where the "model" with all it's "objects" is displayed and the third one which displays the selected "model's" or "model object's"
    properties.
    The problem is that when I use the Page Viewer Web Part to embed this web page into a SharePoint page, clicking an "object" into the second zone, does not display it's properties into the third one. Though, selecting a "model" from the
    tree-view, displays the model into the second zone amd it's properties into the third as it normally should.
    Can anybody, please, help me solving this issue?
    Thank you!

    Hi Arun,
    If you are login with your credentials it doesn't matter either it is admin machin or a any other machine.
    Check If it is problem with only your system it could be some browser issue .Try in other browser in your system and  let us know your result.
    Whenever you see a reply and if you think is helpful, click &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

  • Windows authentication of Sharepoint Page viewer Web Part applications

    Hi,
    I am working on a new Sharepoint portal which will have Page viewer Web Parts hosting asp.net applications. The standalone applications those are hosted are using windows authentication. my requirment is, when the client logs in to sharepoint need to authenticate
    all web parts with same user credentials so that then don't need to log in again. those asp.net applications are hosted as standalone also out side sharepoint. Can some one advise me how to do that?..
    Thanks
    Ram

    We havent tried that.  We changed the link in the web part to access an html page that claims that the report is loading.  It states in the html that if the page doesnt load to "click here" which redirects to the crystalreportviewer.  Its a temp fix for it.  One thing we are looking at is the 64 bit version of the Sharepoint integration kit.  That may contain a reportviewer webpart.
    Thanks for the reply.
    Brian

  • Keeping Page Viewer Web Part Content Exclusive to Each Workspace Instance

    I would like the Page Viewer Web Part to display different content for each instance in the workspace. The Shared Documents list already does this, but for some reason, when I display content in the Page Viewer, it applies to all instances.
    I'm using the workspace for meetings and I would like to display the respective agenda for each meeting date.

    This is how i was able to do it. Edit html source.
    <div align="center"><marquee id='scroll_news4' bgcolor=#ff9966 "><font color="#000000" size="+1" ><strong>Outlook is down! IT is working on it! </strong></font></marquee></div>
    <input type='Button' value='Stop' id ='b1' onClick='button_click()';>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function button_click()
    if(document.getElementById('b1').value=="Start"){
    document.getElementById('b1').value="Stop";
    document.getElementById('scroll_news4').start();
    }else{
    document.getElementById('b1').value="Start";
    document.getElementById('scroll_news4').stop();
    // End -->
    </script>

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • How do i find the carrier for iphone 4 uk?

    how do i find the carrier for iphone 4 uk?

  • EXchange rate problem

    Hi BW experts, I getting following error in report : <b>No exchange rate from CAD to USD and date 28.02.2007 found (currency transl. TRAV/TRAV) Notification Number BRAIN 380</b> I am getting this message for only 4 months i.e March April,May,June but

  • "problem with shortcut/fatal error during installation" on other user accts

    I-tunes installed and works with no problem in original user, but when another user account attempts to open Itunes, program attempts to install/configure again, then results in a "problem with shortcut / fatal error during installation" message. Set

  • DESADV01 E1EDP07 segment per line item causes EDIFACT error

    When a Sales Order has the PO Number + Date populated, the subsequent outbound Delivery IDoc (DESADV01) contains a parent E1EDP07 segment for every child line item segment (E1EDP09).  For a SO without PO Date, the IDoc is created with a single E1EDP0

  • How to open "word" document

    I had some old Word documents on a Dell laptop that I wanted to view on my iMac.  Using a USB drive, I successfully transferred the files from the Dell to the iMac.  Some of the documents open up normally for viewing, etc.  Others do not.  A Pages bo