FoxInCloud
Re: Click() event on button
From: | Michele |
To: | Thierry Nivelet (FoxInCloud) |
Michele,
please try the following
MODIFY COMMAND awServer
replace
CASELeft(m.lcMethod, 5) == 'this.' tcMethod = Substr(m.tcMethod, 5) lcControlAddr = c2Words(Sys(1272, m.toControl), '.', JustStem(m.tcMethod)) tcMethod = JustExt(m.tcMethod)
by
CASELeft(m.lcMethod, 5) == 'this.' tcMethod = Substr(m.tcMethod, 5)DOWHILELeft(m.lcMethod, Lenc('.Parent.')) == Lower('.Parent.') toControl = m.toControl.Parent tcMethod = Substr(m.tcMethod, Len('.Parent.')) lcMethod = Lower(m.tcMethod)ENDDO lcControlAddr = c2Words(Sys(1272, m.toControl), '.', JustStem(m.tcMethod)) tcMethod = JustExt(m.tcMethod)
(comments removed)
Set, but nothing changes.....
In the same form i have some buttons that work fine and other that don't work.
Those that don't work are parte of a container object......This seem to be the only difference form other that instead work.
The problema appears when i use atpjcompiledebugmode...
in xxxSets.prg
Where do i have to set the set path command ?
This is my click code
LPARAMETERS nButton, nShift, nXcoord, nYcoordIF (Type('m.thisForm.wlHTMLgen') == 'L' AND m.thisForm.wlHTMLgen)RETURN .F.ElseExternalForm EditApp EditApp = ThisForm.wForm('_form_appuntamento','wFormCallBack', This.appId)ENDIF
return .F. ignores event
return .T. send event to the server
This is form.html
<!-- Generated on 13/12/2012 14:38:41 by FoxInCloud version 1.26 -->><divid="_form"class="form awfrm mobfrm _form"tabindex="600"><divclass="awHTMLgenError">Method or procedure cimageweb(): error #1 ("File 'd:\sviluppo\erpmobile\code\_gdiplus.vcx' does not exist.") at code line #271 ("toGDIplus = Iif(loClass(m.toGDIplus, 'gpImage'), m.toGDIplus, NewObject('gpImage', '_GDIplus.vcx'))")</div></div><!-- / Generated on 13/12/2012 14:38:41 by FoxInCloud version 1.26 -->>
VFP can't find _gdiplus.vcx
you probably miss a SET PATH TO ... ADDITIVE
and this is form.js
/* Free space for Firebug messages *///* Generated on 13/12/2012 14:38:41 by FoxInCloud version 1.26 -- *//FoxInCloud.documentInit('_form');/* -- / Generated on 13/12/2012 14:38:41 by FoxInCloud version 1.26 *//
I have these files only in test not in prod folder
Michele,
can you please post :
- form.html and form.js in both dev and prod modes
- you cmd.click() adapted source code
?
thanks,
I have a button on my form.....when i use it in debug mode no problem....when i use it not in debug mode it doesn't work......it is like i have no code in the method...The button is in a container...