Setting up an iMIS 15 Home Page/Dashboard

Does anyone have a way to set up the home page/dashboard for iMIS 15?

I'm not sure how to get to it now that none of the Framework pages are available.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Here's how to do it

This is how to set up a custom home-page for iMIS 15.

By default the home page is the default.aspx file in

C:\Program Files\ASI\iMIS15\net\

If you have the Navigation Designer you can change this to another page, otherwise just edit this file directly. The page needs to have some minimal values - it must have a

<asp:Content ID="MainContent" ContentPlaceHolderID="TemplateBody" runat="server">

</asp:Content>

to know where to load the content, and some C# code to check if a user is logged in. The page below displays the contents of a second web site located on the same web server, with details of the currently logged on user being passed through to allow for personalisation.

Here is my new default.aspx page:

<%@ Page Language="C#" Inherits="Asi.Web.UI.DisplayPageBase" Title="iMIS - Welcome to the World of iMIS" %>

<script language="C#" runat="server">
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);

        if (Request["hkey"] == null)
        {
            //Asi.Business.ContentManagement.Website website = Asi.Business.ContentManagement.WebsiteController.Website(new Guid("E28BB596-80D6-48CA-B241-09745C03FAC2"));
            string url = Asi.Web.Utilities.GetTildeExpansion() + "/Admin/imis15.web.Home/Default.aspx"; // +website.DefaultSectionURL + "Default.aspx";
            Response.Redirect(url, true);
        }
    }
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);

        if (Asi.Security.AppPrincipal.CurrentPrincipal != null)
        {
            Asi.iBO.ContactManagement.CContact contact = new Asi.iBO.ContactManagement.CContact(Asi.ContentManagerNet.ContentManager.CMUser, ((Asi.Security.AppPrincipal)Asi.Security.AppPrincipal.CurrentPrincipal).AppIdentity.ContactMaster);
            // WelcomeMessage.Text = string.Format("Welcome to our Website, {0} {1} {2} !", contact.FirstName, contact.LastName, contact.ContactId.ToString());
            HomeFrame.Attributes["src"] = "http://localhost/HelloiMIS/NewHomePage.html?firstname=" + contact.FirstName + "&lastname=" + contact.LastName + "&ID=" + contact.ContactId;
            
        }
    }
</script>

<asp:Content ID="MainContent" ContentPlaceHolderID="TemplateBody" runat="server">

<!--     <asp:Label ID="WelcomeMessage" runat="Server">Welcome To Our Website!</asp:Label> -->
     <iframe frameborder="0" height="100%" id="HomeFrame" width="100%" runat="Server"></iframe> 

</asp:Content>

Here are the contents of the NewHomePage.html

<html>
<body>
<script language="JavaScript">
document.write("URL=" + location.href);
</script>
</body>
</html>

This is what is displayed for the user:
URL=http://localhost/HelloiMIS/NewHomePage.html?firstname=MANAGER&lastname=&ID=194

change homepage to be any web page

You can change your homepage (or any imis page for that matter) to be a webpage. Here is what we do to run iDashboards on the homepage - we simply change the src to be the new web page.

Change the line in the above comment:
HomeFrame.Attributes["src"] = "http://localhost/HelloiMIS/NewHomePage.html?firstname=" + contact.FirstName + "&lastname=" + contact.LastName + "&ID=" + contact.ContactId;

To

HomeFrame.Attributes["src"] = “http://localhost:6500/idashboards/”;

voila

Note to iDashboards users

Jyoti's line to call the URL for iDashboards assumed the self-installing downloaded demo version. When fully installed the port 6500 is not the default. Rather it is 8080, the default port when the Apache Tomcat Java server is installed.

So instead of
HomeFrame.Attributes["src"] = “http://localhost:6500/idashboards/”;

...it should be
HomeFrame.Attributes["src"] = “http://[yourservername]:8080/idashboards/”;

Ted Ericson. ASI/Product Management

Problem changing the home page from Content Management

Hi All,

I changed the link/URL for the Home Page in Site Designer from "~/Default.aspx"  to a published Web content.  Afterwards I started getting the error message below each time I click on the folder "iMIS" in the Manage Conent navigation pane.  However when I click on "go" just below the top menus it opens up the properties for the Home Page, but:

1.  It does not let me change the link/url back to "~/Default.aspx" 

2.  When I changed the link to another url I am unable to publish the changes.

 

Anybody has any ideas how I can get this resolved please?

 

Thanks

odoro erivwo

odoro.erivwo@fairtrade.org.uk

Server Error in '/iMIS15' Application.
--------------------------------------------------------------------------------

Error in line 1 position 136. Expecting element 'Content' from namespace 'http://schemas.imis.com/2008/01/DataContracts/Content'.. Encountered 'Element' with name 'ContentFolder', namespace 'http://schemas.imis.com/2008/01/DataContracts/ContentFolder'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.Serialization.SerializationException: Error in line 1 position 136. Expecting element 'Content' from namespace 'http://schemas.imis.com/2008/01/DataContracts/Content'.. Encountered 'Element' with name 'ContentFolder', namespace 'http://schemas.imis.com/2008/01/DataContracts/ContentFolder'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SerializationException: Error in line 1 position 136. Expecting element 'Content' from namespace 'http://schemas.imis.com/2008/01/DataContracts/Content'.. Encountered 'Element' with name 'ContentFolder', namespace 'http://schemas.imis.com/2008/01/DataContracts/ContentFolder'. ]
System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) +1541967
System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName) +98
System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader) +41
Asi.Atom.AtomBaseHierarchy.LoadFromDocument(Document document, AtomBaseHierarchy& item, Boolean raiseOnDeserialization) +489
Asi.Atom.AtomBaseHierarchy.LoadFromDocument(Document document, AtomBaseHierarchy& item) +7
Asi.Business.ContentManagement.Content.GetFromDocument(Document document) +245
AsiCommon_Controls_ContentManagement_NavigationItemParameters.get_ContentRecord() +57
AsiCommon_Controls_ContentManagement_NavigationItemParameters.DataBind() +28
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
Asi.Web.UI.AtomPanelBase.DataBind() +84
AsiCommon_Controls_ContentManagement_NavigationItem.DataBind() +5
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
Asi.Web.UI.AtomPanelPage.DataBind() +75
Asi.Web.UI.AtomPanelPage.Page_Load(Object sender, EventArgs e) +255
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
Asi.ContentManagerNet.DisplayPageBase.OnLoad(EventArgs e) in h:\devdaily\15.1.1\d090512_2998\imis.net\Packages\iWC\Asi.ContentManagerNet\DisplayPageBase.cs:50
Asi.Web.UI.DisplayPageBase.OnLoad(EventArgs e) +15
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,

 

You appear (from the error

You appear (from the error message) to have selected a Content Folder as the target, rather than a Content Record. Make sure you select a content record instead.

You are right

You are right Eric,  I changed the value in a content folder "Home" and started getting this problem.  Now I want to change it back to what it was before and it will not let me.

I've fixed it

I simply reverted to an archived version.

 

Thanks for your help!