0

call zscript function from rowRenderer.java?

asked 2009-04-27 16:56:02 +0800

james gravatar image james
255 2

I am loading on demand and using a rowRenderer.java file to format the information.
I want to add an onClick function that will call a zscript function on my page.
I can easily add an onClick to call a zscript function when I hard code it in the zul file,
but when i try and just call the zscript function, this is the error that i get.
"The method MasterPrepareForm() is undefined for the type new EventListener(){}"

Does anyone have experience with this, or know how I might be able to do it?
Thanks to all who can help.
-James

delete flag offensive retag edit

14 Replies

Sort by ยป oldest newest

answered 2009-05-15 06:18:45 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi,

Why not move the function into a Java class? (high performance)

/Jumper

link publish delete flag offensive edit

answered 2009-05-15 16:21:21 +0800

james gravatar image james
255 2

Ya... I could do that, but then I'm not sure how I would associate the files properly.
So I have the EntryRowRenderer.java file creating the component and adding the onClick event.
Now I have OrderScript.java containing the converted zscript.
I put them in the same package (orders).
How do I call the function properly?
How would I call the TESTFUNC() in orders.OrderScript from the orders.EntryRowRenderer class?

Thanks for the advice Jumper, I hope this will work right.
-James

link publish delete flag offensive edit

answered 2011-09-15 03:24:00 +0800

shrunker gravatar image shrunker
3

I want to play sound notification using zscript.
Any ideas to do it??Thx b4

link publish delete flag offensive edit

answered 2011-09-19 21:04:18 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

You may use this component (soundmanager) instead.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-04-27 16:56:02 +0800

Seen: 1,351 times

Last updated: Sep 19 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More