FWH WebApp (HTML) testing

User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

FWH WebApp (HTML) testing

Post by Antonio Linares »

Dear friends,

we are moving forward on our target to integrate automatic HTML generation into FWH.

Here we are sharing some simple examples with you, in case you want to test them and provide us feedback. Your feedback is very important for us.

I need you to push me, providing your ideas, requirements and suggestions :-)

FWH samples folder already provides a webapp.prg first example. Here I provide you with webapp2, webapp3 and webapp4 PRG examples:
webapp2.prg

Code: Select all | Expand

#include "FiveWin.ch"

function Main()

   SetWebApp()

   USE Customer
   Browse()   // at this point, please go to "localhost" from your web browser

return nil

webapp3.prg

Code: Select all | Expand

#include "FiveWin.ch"

function Main()

   local oDlg

   SetWebApp()

   DEFINE DIALOG oDlg

   @ 2, 2 SAY "Hello world"

   ACTIVATE DIALOG oDlg CENTERED

return nil

webapp4.prg

Code: Select all | Expand

#include "FiveWin.ch"

function Main()

   local oWnd

   SetWebApp()

   DEFINE WINDOW oWnd

   @ 2, 2 SAY "Hello world"

   @ 4, 5 BUTTON "dialog" SIZE 80, 20

   ACTIVATE WINDOW oWnd

return nil
 

Important: These examples have to be built using the new buildhmt.bat available in the samples folder. They only work with Harbour. They don't work with xHarbour.

In order to build and test them you need FWH 22.06. If you already own FWH 22.06 and these examples don't work for you, please send me an email and I will provide you the latest FWH libs.

Please think about basic examples to test and propose them. We need to set the right path for this FWH to HTML automatic generation, a path that is right for all of us.

thank you so much for your time and support
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
cmsoft
Posts: 1297
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina
Been thanked: 2 times

Re: FWH WebApp (HTML) testing

Post by cmsoft »

Excelente Antonio!
Si puedes, me ofrezco para probar
cmsoft70 arroba gmail punto com
User avatar
karinha
Posts: 7932
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: FWH WebApp (HTML) testing

Post by karinha »

Maestro, con mucho gusto pruebo:

kapiabafwh@gmail.com

oooppss,

Lo siento maestro, entendí mal. No tengo FWH 22.06.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
Ari
Posts: 239
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil
Contact:

Re: FWH WebApp (HTML) testing

Post by Ari »

Hello Antonio

buildHMT WebApp2.prg

[img]
https://github.com/arifoliene/sisrev/bl ... webapp.png
[/img]

#include "FiveWin.ch"

function Main()

SetWebApp()

USE Customer
Browse() // at this point, please go to "localhost" from your web browser

return nil

foliene@sisrev.com.br
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
D.Fernandez
Posts: 509
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay
Contact:

Re: FWH WebApp (HTML) testing

Post by D.Fernandez »

Hola Maestro.
Tengo este error

────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Harbour 22.06 - Jun. 2022 Harbour development power │▄
│ (c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...


Harbour 3.2.0dev (r2008190002)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'webapp2.prg' and generating preprocessed output to 'webapp2.ppo'...
Lines 4986, Functions/Procedures 1
Generating C source output to 'webapp2.c'... Done.

Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc.
webapp2.c:
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_SETWEBAPP' referenced from C:\FWH2206\SAMPLES\WEBAPP2.OBJ
Error: Unable to perform link
* Linking errors *

C:\fwh2206\samples>




Gracias

Saludos

zonadarioARROBAgmailPUNTOcom
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FWH WebApp (HTML) testing

Post by Antonio Linares »

Librerias enviadas a todos los que las habeis pedido, muchas gracias! :-)

samples\buildhmt.bat usa Borland

Si no usais Borland y necesitais una versión para Microsoft Visual Community, por favor indicadlo, gracias!
regards, saludos

Antonio Linares
www.fivetechsoft.com
D.Fernandez
Posts: 509
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay
Contact:

Re: FWH WebApp (HTML) testing

Post by D.Fernandez »

Hola Antonio. Muchas gracias....

Prefiero usar las Libs para Microsoft Visual Community 2022.
Ya que lo estoy usando en todos los proyectos nuevos.

Disculpe y Gracias.

Saludos

Ruben Dario Fernandez
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
User avatar
Ari
Posts: 239
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil
Contact:

Re: FWH WebApp (HTML) testing

Post by Ari »

Hello Antonio,

I executed the WebApp2.pg

with the following results:
[img]
https://github.com/arifoliene/sisrev/bl ... ebapp2.jpg
[/img]

Antonio,

You can call a function without having to run it first on Five, example:

Code: Select all | Expand


#include "FiveWin.ch"

function Main()

   SetWebApp()

return nil


function MyBrowse()

  USE Customer
  Browse()   // at this point, please go to "localhost" from your web browser
 
return nil

 

In Web Browser put the function to run: localhost/MyBrowse ?
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FWH WebApp (HTML) testing

Post by Antonio Linares »

Dear Ari,

thats a possibility that we can have, but shouldn't we follow the app normal "flow" ?

We are not trying to have something different from the desktop app. We want the desktop app to work on the web as it is :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FWH WebApp (HTML) testing

Post by Antonio Linares »

D.Fernandez wrote:Hola Antonio. Muchas gracias....

Prefiero usar las Libs para Microsoft Visual Community 2022.
Ya que lo estoy usando en todos los proyectos nuevos.

Disculpe y Gracias.

Saludos

Ruben Dario Fernandez


Estimado Ruben,

librerias FWH para MSVC enviadas a tu email, gracias!

Ahora necesitamos un buildhmt.bat para MSVC... :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FWH WebApp (HTML) testing

Post by Antonio Linares »

Dario,

copy buildh32.bat buildh32mt.bat

Y modifica solamente esta línea:
echo %hdirl%\hbvmmt.lib >> msvc.tmp

en vez de usar hbvm.lib, usamos hbvmmt.lib

con eso ya puedes construir los ejemplos en MultiThreading :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
D.Fernandez
Posts: 509
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay
Contact:

Re: FWH WebApp (HTML) testing

Post by D.Fernandez »

Excelente, gracias.
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
User avatar
carlos vargas
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: FWH WebApp (HTML) testing

Post by carlos vargas »

Antonio, interesado en contribuir con las pruebas...
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
alerchster
Posts: 97
Joined: Mon Oct 22, 2012 4:43 pm
Has thanked: 2 times

Re: FWH WebApp (HTML) testing

Post by alerchster »

Antonio,

interested in contributing to the tests...
Borland 7.20 and Visual Studio Community 2022


antonlerchsterARROBAgmailPUNTOcom
Regards

Ing. Anton Lerchster
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: FWH WebApp (HTML) testing

Post by Antonio Linares »

Latest FWH libs sent to both of you for Borland and MSVC2022

Please let me know if you properly get the files, thank you
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply