Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create new project
Message
De
16/04/2018 14:34:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxInCloud
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2012
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01659235
Message ID:
01659451
Vues:
55
>Thanks! One more question: I have now adapted the project, but there are three changes to be done manually, the first one I don't understand how to get further. I guess this is a crucial part in the process.
>
>It is in the main.prg (as the name suggest the main entry point), which first does the settings and then opens the first form, which I typically do with a class (I got used to do everything in classes). Maybe I need to change all forms to SCX files?
>
>In any case the original code is:
>
>
>LOCAL loForm AS main OF App_form.vcx
>loForm = NEWOBJECT("main","App_Form.vcx")
>loForm.Show()
>READ EVENTS
>
>
>The adapter suggests to do the following:
>
>Please replace form execution (DO FORM) or class creation and form show by a single call to FoxInCloud standard method thisForm.wForm() :
>
>	[choice = ] thisForm.wForm('form.scx', [<callBack method>][, t01,...,t20])
>
This is a FAA issue: in desktop main program, form execution is not to be replaced

>Following issues:
>1) I do not have an scx. Maybe I should create one based on main?

No, FoxInCloud supports class-based forms


>2) I suppose I have to do a condition here, because the code is only working for web and not desktop?

No, FoxInCloud makes no use of desktop main, except if it contains useful procedures


>3) I am in a prg and don't see a reference here for thisform.wForm. Does this mean I must startup the application in a different way?

No, your desktop start remains unchanged

Web start relies on:

  1. implementing xxxProcess.Index() [modify command xxxServer]:
    procedure index
    return this.wFormStandardPage('main')
    endproc
  2. adding 'index.xxx' as a site's default document in IIS



>I am thinking, once the first form is showing, the rest comes naturally.

yes, http://localhost/xxx/ (http://xxx.company.com/ in production) > calls xxxProcess.Index() > runs 'main' form;
in 'main' form user events, such as cmd.click(), you call thisForm.wForm[Master]('formClass', …)

If you have installed FoxInCloud Web App Studio, you can see how the sample applications are built; eg. home(1) + 'tools\ab\aw\samples\tastrade'
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform