Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
mabuk23

Member
Registered:
Posts: 44
Reply with quote  #1 
Hi guys, 

I failed to maximize the form during form load.
this is what i used on 7.6
var mainDoc = document;
var Loaded = false;
var curCursor = "default";
var bWaiting = false;
var lastButtonClicked = null;
var updateTimeout = null;
var canSubmitID = null;
var arFrameWindows = new Array();
var bTabbing = false;

function Maximize()
{


top.window.moveTo(0,0);
if (document.all)
   { top.window.resizeTo(screen.availWidth,screen.availHeight); }
else if
   (document.layers || document.getElementById)
   {
   if
    (top.window.outerHeight < screen.availHeight || top.window.outerWidth <
screen.availWidth)
     { top.window.outerHeight = top.screen.availHeight;
       top.window.outerWidth = top.screen.availWidth; }
   }
}

anyone can guide me on that?


thanks
0
homar

New Member
Registered:
Posts: 6
Reply with quote  #2 
I've found it somewhere on this forum and this works for me.
It should maximize window but no when it is used by action (see 'ActionName' field in code)

function MaximizeWindow()
{
    var actionNameField = "ActionName";
    window.setTimeout(
        function()
        {
            if(eworkGetField(actionNameField,"") == "")
            {           
                top.window.moveTo(0,0);
                if (document.all)
                {
                    top.window.resizeTo(screen.availWidth,screen.availHeight);
                }
                else if (document.layers||document.getElementById)
                {
                    if (top.window.outerHeight < screen.availHeight||top.window.outerWidth < screen.availWidth)
                    {
                        top.window.outerHeight = screen.availHeight;
                        top.window.outerWidth = screen.availWidth;
                    }
                }
            }
        },
        500);   
}
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!