After checking, we need to check the case when server is in \test folder.
Programs located in original application folder should work, as indicated in our how-to guide.
Thanks for your patience...
thn
Thierry:
Thanks for getting back to me. I'd really like to get this working.
I don't seem to have a set procedure without an additive statement. Let me list my code below. 'xxx' is replaced with 'mud'.
mudtest.prg ---
LPARAMETERS ;
tuFormsLaunch,;
tlHTMLcomment
IF Pcount() = 0
CLEAR ALL
LOCAL tuFormsLaunch, tlHTMLcomment s
ENDIF
AW()
SET PATH TO Addbs(JustPath(Sys(16))) + 'Progs\' ADDITIVE
SET PROCEDURE TO mudServer, mudSets ADDITIVE
EXTERNAL FILE mudTest.forms
RETURN awServerStart('mudServerTest', m.tuFormsLaunch, m.tlHTMLcomment)
DEFINE CLASS mudServerTest AS mudServer OF mudServer.prg OLEPUBLIC
cawServerIni = 'mudTest.ini'
ENDDEFINE
mudserver.prg ---
DEFINE CLASS mudServer AS awServer OF awServer.prg
cAppSetsLib = 'mudsets.prg'
cAppSets = ''
lAppSetsClass = .F.
cawProcessClass = 'mudProcess'
uFormsLaunchAtStartup = ''
wUserAnonymous = .NULL.
wUserDemo = .NULL.
cawAppHostClass = 'awAppHost'
cawAppConfigClass = 'awAppConfig'
cawHTMLGenClass = 'awHTMLgen'
cawAJAXClass = 'awAJAX'
cawSessionClass = 'awSession'
cawProcessSetsClass = 'awProcessSets'
cScriptMapExts = 'php,pl,vfp,fic,zip'
wlUserTemp = .F.
cLangUser = ''
ENDDEFINE
DEFINE CLASS mudProcess AS awProcess OF awServer.prg
PROTECTED PROCEDURE wUserSet
LPARAMETERS ;
twUser,;
tlTemp
#IF .F.
_Screen.AddProperty('myUserIDprop', m.twUser)
_Screen.AddProperty('myUserRightsProp', myRights(m.twUser))
#ENDIF
DoDefault(m.twUser, m.tlTemp)
PROTECTED FUNCTION wUserGet
LPARAMETERS tlTemp
#IF .F.
RETURN _Screen.myUserIDprop
#ENDIF
RETURN DoDefault(m.tlTemp)
PROTECTED FUNCTION wFormHTML_cMenu
LOCAL lcResult
TEXT TO lcResult NOSHOW FLAGS 1 PRETEXT 7
ENDTEXT
RETURN m.lcResult
PROTECTED FUNCTION wFormHTML_cHeader
RETURN DoDefault() + Textmerge([<p></p>])
PROTECTED FUNCTION wFormHTML_cFooter
RETURN DoDefault() + Textmerge([<p></p>])
PROCEDURE SampleForm1
RETURN this.wFormStandardPage('SampleForm1.scx')
PROCEDURE SampleForm2
RETURN this.wFormStandardPage('SampleForm2')
PROCEDURE SampleForm3
RETURN this.wFormStandardPage('SampleForm3.scx', 1, .F.)
PROCEDURE SampleForm4
RETURN this.wFormStandardPage('SampleForm4.scx';
, Request.QueryString('parm1');
, Int(Val(Request.QueryString('parm2')));
)
ENDDEFINE
mudsets.prg ---
SET CLASSLIB TO 'C:\Test\MSInCloud\Develop\mud.vcx' ADDITIVE
SET PATH TO (Home(1) + 'Tools\AB\') ADDITIVE
AB()
SET CLASSLIB TO 'C:\Test\MSInCloud\Develop\mud.vcx' ADDITIVE
SET PATH TO (Home(1) + 'Tools\AB\') ADDITIVE
AB()
ON ERROR DO errorhandler WITH ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( )
SET CPDIALOG OFF
SET TALK OFF
SET KEYCOMP TO WINDOWS
SET STRICTDATE TO 0
SET CENTURY ON
SET EXCLUSIVE OFF
SET HELP TO helpfile\MudSlinghelp
SET TOPIC ID TO 1
SET DELETED ON
ON KEY LABEL F1 Help
That is all the code I'm using.
TIA.
BR
Hi Boyd,
Thanks for using the FoxInCloud section of wwThreads
1- Though you don't mention it, I guess you replaced 'xxx' by your application code ...
2- This is the code of xxxTest.prg:
LPARAMETERS ;
tuFormsLaunch,;
tlHTMLcomment
&& {en} tuFormsLaunch = .T. generates global styles sheet 'awDefaultAll.css'
IF Pcount() = 0
CLEAR ALL
LOCAL tuFormsLaunch, tlHTMLcomment
ENDIF
AW()
SET PATH TO Addbs(JustPath(Sys(16))) + 'Progs\' ADDITIVE
SET PROCEDURE TO xxxServer, xxxSets ADDITIVE
#IF File('xxxTest.forms')
EXTERNAL FILE xxxTest.forms
#ENDIF
RETURN awServerStart('xxxServerTest', m.tuFormsLaunch, m.tlHTMLcomment)
This instruction:
AW()
adds the procedure you mention to Set("PROCEDURE")
My best guess is that you probably have a SET PROCEDURE without ADDITIVE in between;
Otherwise cModuleInfo() and abSet class would be in scope.
HTH,
Thierry Nivelet
FoxInCloud
Hi:
I've been going through all the steps, I thought, meticulously. I've been foloowing directions from "Installing a Development FoxinCloud Application Server." I am now on Step A5 where I "DO <App folder>\xxxtest.prg."
When it his the statement:
RETURN awServerStart('xxxServerTest',m.tuFormsLaunch, m.tlHTMLcomment)
I get:
File 'cmoduleinfo.prg' does not exist
Followed by:
Cless Definition ABSET is not found
I cancel it there.
Any idea what I may be doing wrong?
TIA.
BR