Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
TiredDeveloper

Member
Registered:
Posts: 23
Reply with quote  #1 
At a particular Stage, my Form opens with 2 Action buttons at the bottom.

There is also a 'Close' action button at the bottom right, which I guess Metastorm V9 always defaults.

Is there any way to suppress or hide this 'close' button as it confuses the Users who think that it may close down the process they are half way through?

I can suppress the OK and Cancel on Admin. Forms using the eworkShowSubmit(false),eworkShowCancel(false), so I was hoping for something similar for the 'Close' button!

0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #2 
showCancel(false) in the "On form load" will hide it.  showCancel(true) will display it.
showSubmit(false/true) also works.  I used this one to turn on/off via client script depending on actions taken on a form.
0
TiredDeveloper

Member
Registered:
Posts: 23
Reply with quote  #3 
Hi, as JScript, I've tried both eworkShowSubmit(false) and eworkShowCancel(false) and they don't work.

It may be that the Form displays in a different way at a Stage rather than an Action.

Viewing the source HTML I see this generated by Metastorm when it outputs the Form

<divclass="floatRight closeContainer" id="cellClose">

     <inputtype="button" name="btnClose" value="Close" onclick="return false;__doPostBack('btnClose','')" id="btnClose" title="Close" class="cancel" />

</div>


I've tried added the following JScript to the Form Load scripting

document.getElementById('btnClose').style.visibility='hidden';

but this does not work either. :-(

0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 
Ahh, it didn't catch about hiding the folder (tab / read only) view close button.  Though I can't imagine why you'd ever want to do that.  The tab view is a read only view that I'd think should be closeable (without having to use the Windows X which I wish we could disable, but that's a different issue).  I answered as if it were an action.  Sorry for my misunderstanding.
0
TiredDeveloper

Member
Registered:
Posts: 23
Reply with quote  #5 

"I can't imagine why you'd ever want to do that".

Yes, why indeed!  But, who I am to question the whims of the Users?!!!

Anyway, I've found a (one line!) Javascript solution, which is really simple and can be added to the 'On Form Load'.

I nearly had it with my last entry, but the format wasn't quite right.  The following line now works:

window.top.document.getElementById("btnClose").style.visibility='hidden';

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!