[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread Holger Knublauch
Please feel free to send me your files (off the list) - I want to understand what's going on. Thanks Holger On Apr 15, 2009, at 8:56 AM, mwz wrote: > > Hi, Holger, > > I cannot reply my previous posts with Scott so I had to start a new > one. The function is very simple one to calculate the

[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread Scott Henninger
The name of the function must be the same as the JavaScript name. Do have a look at http://composing-the-semantic-web.blogspot.com/2009/03/using-javascript-to-define-sparql.html There is a good example there. -- Scott On Apr 15, 10:56 am, mwz wrote: > Hi, Holger, > > I cannot reply my previou

[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread mwz
Hi, Holger, I cannot reply my previous posts with Scott so I had to start a new one. The function is very simple one to calculate the square of a number. You can read the previous posts for more information. I got the same function work when I put it in spinx:javascriptCode. I just cannot get it

[tbc-users] Re: still cannot make the javascript function work as expected

2009-04-15 Thread Holger Knublauch
Is there anything in the error log (Window > Show View > Error Log)? Also, could you send us the definition of the SPIN function? How does it differ from the example I presented on my blog? Thanks Holger On Apr 15, 2009, at 8:45 AM, mwz wrote: > > Scott, > > I added the argument, and I still

[tbc-users] still cannot make the javascript function work as expected

2009-04-15 Thread mwz
Scott, I added the argument, and I still got error says 'failed to retrieve all query results'. Mingzhen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. To post to this group, send e

[tbc-users] Re: still cannot run user defined functions well

2009-04-15 Thread Scott Henninger
I'm assuming myFunction is a subclass of spin:Functions. Do you also have sp:arg1 defined as a spin:constraint for myFunction? -- Scott On Apr 15, 8:38 am, mwz wrote: > Hi, > > Sorry for the simple question. But I still cannot make the function > work. I coded my function as > function myFunct

[tbc-users] still cannot run user defined functions well

2009-04-15 Thread mwz
Hi, Sorry for the simple question. But I still cannot make the function work. I coded my function as function myFunction(radiu) { return radiu*radiu; } and saved it in myFunction.js, and put it in D:\Documents and Settings \mwei\TBC-ME-workspace\TopBraid where testFunction.owl is saved,