FWH WebApp (HTML) testing

FWH WebApp (HTML) testing

Postby Antonio Linares » Tue Aug 30, 2022 11:33 am

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 view
#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 view
#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 view
#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
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH WebApp (HTML) testing

Postby cmsoft » Tue Aug 30, 2022 3:49 pm

Excelente Antonio!
Si puedes, me ofrezco para probar
cmsoft70 arroba gmail punto com
User avatar
cmsoft
 
Posts: 1285
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: FWH WebApp (HTML) testing

Postby karinha » Tue Aug 30, 2022 6:03 pm

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
karinha
 
Posts: 7794
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: FWH WebApp (HTML) testing

Postby Ari » Tue Aug 30, 2022 7:52 pm

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
User avatar
Ari
 
Posts: 228
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: FWH WebApp (HTML) testing

Postby D.Fernandez » Wed Aug 31, 2022 3:04 am

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
D.Fernandez
 
Posts: 462
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Wed Aug 31, 2022 4:49 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH WebApp (HTML) testing

Postby D.Fernandez » Wed Aug 31, 2022 5:18 am

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
D.Fernandez
 
Posts: 462
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: FWH WebApp (HTML) testing

Postby Ari » Wed Aug 31, 2022 12:09 pm

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 view

#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
Ari
 
Posts: 228
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Wed Aug 31, 2022 2:59 pm

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: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Wed Aug 31, 2022 3:02 pm

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: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Wed Aug 31, 2022 3:38 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FWH WebApp (HTML) testing

Postby D.Fernandez » Wed Aug 31, 2022 3:53 pm

Excelente, gracias.
Dario Fernandez
FWH 24.09, Harbour, MVS2022 Community, BCC, MySql & MariaDB, Dbf/Cdx VSCode.
Maldonado - Uruguay
D.Fernandez
 
Posts: 462
Joined: Wed Jul 31, 2013 1:14 pm
Location: Maldonado - Uruguay

Re: FWH WebApp (HTML) testing

Postby carlos vargas » Wed Aug 31, 2022 3:55 pm

Antonio, interesado en contribuir con las pruebas...
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1719
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: FWH WebApp (HTML) testing

Postby alerchster » Wed Aug 31, 2022 4:32 pm

Antonio,

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


antonlerchsterARROBAgmailPUNTOcom
Regards

Ing. Anton Lerchster
User avatar
alerchster
 
Posts: 91
Joined: Mon Oct 22, 2012 4:43 pm

Re: FWH WebApp (HTML) testing

Postby Antonio Linares » Wed Aug 31, 2022 6:46 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42068
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests