ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Interesting Web Client behaviour + Thx for Responses so far.

Post new topic  Reply to topic
 Interesting Web Client behaviour + Thx for Responses so far. « View previous topic :: View next topic » 
Author Message
djharte
PostPosted: Wed Nov 06, 2002 3:15 am    Post subject: Interesting Web Client behaviour + Thx for Responses so far. Reply with quote

Apprentice

Joined: 02 Oct 2002
Posts: 26

Does anyone know why the following doesn't always (it does sometimes !) work when I sumbit a form :

<%=context.openForm("checkInWorkItem", workItem.persistentOid())%>
<input type="hidden" name="FilelistName" value="<%=filelistName%>">
<input type="hidden" name="TTKName" value="<%=ttkName%>">
<input type="hidden" name="UserCommand" value="CreateTTK">
<input type="image" value="Create a new TTK Project" src="../images/createnew.gif" onClick="submit()">
</form>

but if I replace the submit line with the following it does :

<input type="Submit" value="Create a new TTK Project">

I have created my own viewer extending a few functions, however I fail to see how, if it works for type="Submit" it won't for the onClick="Submit" method of posting a form.

Thanks in advance,

Dave



The error I get is :


com.ibm.workflow.api.FmcException:
FMC38009E MQSeries Workflow API Error :
API Return Code : 118
Error Origin : e:\v332\src\fmcjcitm.cxx, line 3831
Error Message : FMC00118E Object does not exist
Nested Exception : None
at com.ibm.workflow.api.loc.WorkItemImpl.checkIn(WorkItemImpl.java:229)
at com.ibm.workflow.servlet.client.BuiltinHandler.checkInWorkItem(BuiltinHandler.java:2305)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.workflow.servlet.client.Util.invoke(Util.java:124)
at com.ibm.workflow.servlet.client.BuiltinHandler.execute(BuiltinHandler.java:130)
at com.ibm.workflow.servlet.client.ApplicationContextImpl.dispatch(ApplicationContextImpl.java:272)
at com.ibm.workflow.servlet.client.Main.doGet(Main.java:214)
at com.ibm.workflow.servlet.client.Main.doPost(Main.java:149)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.ServicingServletState.service(StrictLifecycleServlet.java:317)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Nov 06, 2002 6:11 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

I believe in your submit() function you need to set the command and id fields.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
djharte
PostPosted: Wed Nov 06, 2002 9:09 am    Post subject: Reply with quote

Apprentice

Joined: 02 Oct 2002
Posts: 26

John,

Thanks for the reply. I have to admit ignorance on JavaScript, but is that not a built in function ? I certainly don't have it defined.

Dave
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Nov 06, 2002 9:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Dave:

I too am ignorant in this area, I just know that when I use a JavaScript function to validate prior to submit I always have the following:

function checkIn()
{
...
document.dataform.command.value="x-animatorRunWorkitem";
document.dataform.id.value="<oid>";
document.dataform.submit();
}
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Interesting Web Client behaviour + Thx for Responses so far.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.