|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[b]MQWF Web Client / JSPs[/b] |
« View previous topic :: View next topic » |
Author |
Message
|
fbaril2 |
Posted: Sun Jun 09, 2002 10:38 pm Post subject: [b]MQWF Web Client / JSPs[/b] |
|
|
Newbie
Joined: 09 Jun 2002 Posts: 1
|
Hello,
I have been using the MQWF3.3.2 WEB Client with JSPs with the"classic" way :
*************************************************************************************************************
<%@ page language="java" info="JSP activity implementation" %>
<%@ page import="com.ibm.workflow.api.*" %>
<%@ page import="com.ibm.workflow.servlet.client.*" %>
<jsp:useBean id="context" scope="request"
type="com.ibm.workflow.servlet.client.RequestContext"/>
<html>
<body>
<% ReadOnlyContainer inData = context.getContainer();
WorkItem workItem = context.getWorkItem(); %>
:
<%=context.openForm("checkInWorkItem", workItem.persistentOid())%>
:
<input type="submit" name="submitData" value="Complete work item">
<input type="button" name="cancel" value="Cancel"
onClick="javascript:{location='<%=context.getCommand("cancelWorkItem", workItem.persistentOid())%>';}">
</form>
:
</body></html>
*********************************************************************************
When the end user complete the form, with this code, he has two choices :
either
1) SUBMIT (<input type="submit" name="submitData" value="Complete work item">)
or
2) CANCEL (<input type="button" name="cancel" value="Cancel" onClick="javascript:{location='<%=context.getCommand
("cancelWorkItem", workItem.persistentOid())%>';}">
My question is the following :
I would like the user to have a third choice button "KO" i.e : a kind of "checkInWorkItem" but with an _RC different of 0 so that I could test the _RC on a transition condition after the user 's activity.
This way, the user could either press SUBMIT, CANCEL or KO (i.e checkInWorkItem indicating a different _RC code from 0).
Please, could you indicate me how to implement this third possibility ?
Thanks by advance.
|
|
Back to top |
|
 |
jmac |
Posted: Mon Jun 10, 2002 5:59 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
If you base your condition on a container variable, say "EXIT" you simply have a hidden field on the screen called EXIT, and if they push your Submit button you set the variable to the good value, (i.e pass the condition), or if the hit the KO button you set it to a value that fails the condition.
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|