0

Error : Sourced file: inline evaluation of

asked 2007-09-21 03:20:35 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4529947

By: andy-susanto

hai,

what the problem of this error ?


Sourced file: inline evaluation of: ``new ibs.transaksi.spa.locker.Locker_In.onSetMember(Self);'' : Undefined argument:
Self : at Line: 1 : in file: inline evaluation of: ``new
ibs.transaksi.spa.locker.Locker_In.onSetMember(Self)


zul file, this file i put in include tag <?init class="com.transaksi.spa.locker.Locker_In" arg0="locker" ?> <toolbarbutton id="${each.lockerID}" onClick="new com.transaksi.spa.locker.Locker_In.onSetMember(Self)"
label="${each.lockerNo}" forEach="${locker}"
style="font:30px/1.2em Arial, Verdana, sans-serif;"/>

partial java file
public static void onSetMember(Toolbarbutton a){
StringBuffer sbUrl= new StringBuffer("/forms/display/spa/member.zul");
(Sessions.getCurrent()).setAttribute("key",a.getId());
Executions.sendRedirect(sbUrl.toString());
}

TIA,

andy susanto

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2007-09-21 06:13:30 +0800

admin gravatar image admin
18691 1 10 129
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4530082

By: jebberwocky

Dear andy

Use "self" instead "Self"

//jeff

link publish delete flag offensive edit

answered 2011-08-18 07:16:03 +0800

sandhya123 gravatar image sandhya123
45 1

Used self but no use the same error is coming

link publish delete flag offensive edit

answered 2011-08-18 07:30:37 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Really? A nearly 4 year old thread revived? Start a new one, post your own source code.

link publish delete flag offensive edit

answered 2011-08-19 00:50:10 +0800

sandhya123 gravatar image sandhya123
45 1

updated 2011-08-19 00:50:39 +0800

<hbox>
<textbox id="ABC" width="150px" w:onClick="jq(this.$f('Image')).hide().slideDown(1000)" disabled="true"/>
<hbox>
......................
and i have to pass the tree value to the text box
<treechildren>
<treeitem>
<treerow>
<treecell label="XYZ" w:onClick="jq(this.$f('Image')).hide().slideDown(1000)" />
<attribute name="onClick">
section.value = self.label ;
</attribute>
</treerow>
</treeitem>
</treechildren>

when i click xyz it should come in text box but is is showing the following error

Sourced file: inline evaluation of: `` section.value = se . . . '' : Cannot access field: label, on object: <Treerow y9IQg> : at Line: 26 : in file: inline evaluation of: `` section.value = se . . . '' : self .label

Please help me with this error

link publish delete flag offensive edit

answered 2011-08-26 02:09:46 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Hi Sandhya123,

that because the attribute is under treerow without label,
furthermore there is nothing with id 'section', it should be changed as follows

<treecell label="XYZ" w:onClick="jq(this.$f('Image')).hide().slideDown(1000)">
	<attribute name="onClick">
		ABC.value = self.label ;
	</attribute>
</treecell>

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: 2007-09-21 03:20:35 +0800

Seen: 1,663 times

Last updated: Aug 26 '11

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