Page loading it says in my tab

Topics: General
Sep 22, 2011 at 7:22 PM

I have made a small application for the console and the tab says all the time "loading"

http://webify.dk/images/app.png

An image ilustrating is shown here. Anything I have to implement or?

Sep 23, 2011 at 7:29 AM

Hello,

Try to add ViewLabel attribute to your custom command.

For more information check this article - http://docs.composite.net/C1/Console/Guide-to-Applications.aspx/How-to-Execute-Custom-Commands#_How_to_Open

Sep 23, 2011 at 10:18 AM

Actually i have this problem as well... i'm opening the view from a action like this, but i'm not getting any label... only a Loading... message. Another, possible related problem i have, is that down in left corner the message "Opening {my label}" never goes away! its like i have to call some javascript or something to indicate that my page has finished loading

var openViewMessageItem = new OpenViewMessageQueueItem
            {
                Label = urlActionToken.Label,
                Url = urlActionToken.Url,
                ViewId = Guid.NewGuid().ToString(),
                ViewType = ViewType.Main
            };

ConsoleMessageQueueFacade.Enqueue(openViewMessageItem, currentConsoleId);

 

 

Sep 26, 2011 at 7:44 AM
Inna wrote:

Hello,

Try to add ViewLabel attribute to your custom command.

For more information check this article - http://docs.composite.net/C1/Console/Guide-to-Applications.aspx/How-to-Execute-Custom-Commands#_How_to_Open

I am afraid, this wouldn't help for now :(  - because there seems to be a bug.

It has been reported and should be fixed in one of the newest releases.

/Vitaly

Sep 29, 2011 at 5:11 PM
Edited Sep 29, 2011 at 5:14 PM

After looking into it im not sure its a bug, but more a question of poor documentation. I got my pages to load correctly after introducing some Composite C1 specific markup to the page. You can see a diff here http://compositec1contrib.codeplex.com/SourceControl/changeset/changes/0b7bb354faf2#Sorting%2fPackage%2fComposite%2fInstalledPackages%2fCompositeC1Contrib.Sorting%2fSort.aspx from before and after where i have added some Script controls and a <ui:page> tag surrounding the content. This also gives the benefit of full access to the Javascript environment where you can manipulate the trees, open dialogs, update the message queue etc.

The following thing has to be added as a minimum

  • <?xml version="1.0" encoding="UTF-8"?>
  • <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://www.w3.org/1999/xhtml" xmlns:control="http://www.composite.net/ns/uicontrol">
  • <control:httpheaders runat="server" />
  • <control:scriptloader type="sub" runat="server" />
  • <ui:page id="..."> .. </ui:page>
May 3, 2012 at 6:03 AM

This helped a lot - thanks burningice.