cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with "Scripting in a Box"

Former Member
0 Kudos

Hi Craig

After downloading and changing driver letters from C to D I got the "Box" running. The first few steps went quite easy and are very encouraging. Thanks for your work!

Now here to my question. When I try to start su01_rfc/index.php I receive a script error after login. It has to do with <body onload="goforit()">. I copied the original "Live Date Script" from dynamicdrive to a separate html file and it works fine. The call in the index.php although does not. Does anyone else have the same problem? Can anyone tell me what I'm doing wrong?

Thanks for your input.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I must say I was not expecting that for an error

Then again, have you created the Z function already?

Former Member
0 Kudos

Hi Craig

Yes, I did create the function Z_GET_LOCKSTATUS. The date and time clock works if I add the script just above the <span id="clock"></span> line in the index.php file. This is mentioned as a necessity in the original script from dynamicdrive.com. Although then the execution of the php file seems to stop as no lines are displayed after the clock. I wonder if anyone else has this problem.

Have a nice day.

Harry

Former Member
0 Kudos

I just downloaded the "Scripting in a Box", or I should say I just unpacked it again onto a new machine and it's working no problem - it would be nice to know if anyone else is having this problem??

Former Member
0 Kudos

Hi Craig

It would really be interesting to know if others have this problem.

I have just finished unpacking the "Scripting in a Box" on a different system in our office. This time I used drive letter C to avoid any possible conflicts. I then started the su01_rfc demo with the same result as mentioned in my previous posts. The other examples in the "package" work fine. I have found out, that it's not a problem with the javascript. When I look at the html code generated by index.php I see that not the complete script is processed. The page is only parsed upto line 180 of index.php in the eclipse editor. The following lines are not processed. I then made certain that the z_get_lockstatus functions properly by taking away the RFC ability. The index.php responded with errors describing that z_get_lockstatus was not an RFC module. To rule out a browser problem I tried the su01_rfc script in Firefox with the exact same results.

Any ideas where else I could look?

Thanks,

Harry

Former Member
0 Kudos

When you look at the index.php page inside of Eclipse it only shows up to line 180? there are a total of 331 lines in that file.

Line 180


<tr><td class="tb-header">ID</td><td class="tb-header">Status</td><td class="tb-header">Valid</td></tr>

Line 181 is the call to the UserList function -> <b>question</b> how many users are in the system you are trying to access? I bet if you put a trace on the RFC call you'll see it timeout <i>my guess</i> is that there are too many people in your system - the program was never intended for a large system.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Craig

You were right. I made a copy of the SO_USER_LIST_READ FM and allowed only 10 entries to be read. The example su01_rfc works fine. The system contains 216 entries in USR02 table.

Thanks for your help.

Harry

Former Member
0 Kudos

The application was never meant to run on a large system so I didn't bother to worry about it bad form on my part I know - perhaps sometime over the next few weeks (before TechEd hopefully) I'll make the changes needed for large user lists.