Page 1 of 3

FWH WebApp (HTML) testing

Posted: Tue Aug 30, 2022 11:33 am
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

Re: FWH WebApp (HTML) testing

Posted: Tue Aug 30, 2022 3:49 pm
by cmsoft
Excelente Antonio!
Si puedes, me ofrezco para probar
cmsoft70 arroba gmail punto com

Re: FWH WebApp (HTML) testing

Posted: Tue Aug 30, 2022 6:03 pm
by karinha
Maestro, con mucho gusto pruebo:

kapiabafwh@gmail.com

oooppss,

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

Regards, saludos.

Re: FWH WebApp (HTML) testing

Posted: Tue Aug 30, 2022 7:52 pm
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

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 3:04 am
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

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 4:49 am
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!

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 5:18 am
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

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 12:09 pm
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 ?

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 2:59 pm
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 :-)

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 3:02 pm
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... :-)

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 3:38 pm
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 :-)

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 3:53 pm
by D.Fernandez
Excelente, gracias.

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 3:55 pm
by carlos vargas
Antonio, interesado en contribuir con las pruebas...

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 4:32 pm
by alerchster
Antonio,

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


antonlerchsterARROBAgmailPUNTOcom

Re: FWH WebApp (HTML) testing

Posted: Wed Aug 31, 2022 6:46 pm
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