on 08-05-2007 8:49 AM
Hi
I have created a sample tcode where there is a DISPLAY button. In the crresponding HTML tamplate I have used the below code to trigger the function code of the DISPLAY button.
<a href="javascript:SetOkCode('`DISPLAY.okcode`','`BBPForm`','','','')" >
<img src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/icon/s_b_detl.gif")`" title="" border="0"   >
</a>
The magnifying glass button has come in the web but when I click on this function code is not getting trigerred and there is no error desplayed. When I runthe tcode in R/3 it is running perfectly. Ids ther anything I have missed here.
thanks
sankar
Hello Sankar,
as far as I know the Javascript function setOkCode() takes only up to three arguments: function setOkCode(FCode,FieldName,params). It will use the <form> "webguiform" to submit the FCode, the focussed field FieldName and a string params that is appended to the URL.
With best regards,
TJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thorsten,
Thanks for your reply. I have seen the coding of the setokcode() function in service bbpglobal >mimeobjects>scripts->bbpscript.js. The function takes 5 parameters as shown below
function SetOkCode(FCode,FormName,SrcFrame,FTarget, realTarget)
Did you see anything wrong in my coding. IF you have any sample code please post it. I want to trigger a fcode in r/3 by clicking on magnifying glass..
thanks
sankar
Hello Sankar,
I see. So the function SetOkCode() was redefined for the BBP services.
For the next step I suggest to evaluate the HTTP trace. If you have a tool to log the HTTP communication (such as Ethereal, HTTPWatch for instance) you can see if the request is send and what it does contain.
Another way to examine the issue would be debugging the Javascript and breaking into the function SetOkCode(). Is it executed?
Regards,
TJ
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.