cancel
Showing results for 
Search instead for 
Did you mean: 

clicking on magnifying glass

Former Member
0 Kudos

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" &nbsp >

</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

Accepted Solutions (1)

Accepted Solutions (1)

thorsten_domsalla
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

thorsten_domsalla
Active Participant
0 Kudos

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

Answers (0)