Help needed accessing dbf/ntx data via the browser using NETIO server

126 views
Skip to first unread message

Anand Gupta

unread,
Dec 18, 2021, 7:39:14 AM12/18/21
to Harbour Minigui
I have a simple case of accessing dbf/ntx data over the browser.

I read and understood that NETIO can create servers and clients can connect to it.I checked all four samples in our MINIGUI samples NETIO* folders, but could not find the way to write the url in the browser itself.

All show ways to connect from the MINIGUI exe client and none from the browser. Though the read me shows server (127.0.01) and port etc., but the urls sample is missing.

Any direction on how to access the connection and data from the browser url is appreciated.

Regards,

Anand


--
Anand Gupta
Software Developer &
Consultant

https://sites.google.com/view/batteryicons/home

Harbour Minigui

unread,
Dec 18, 2021, 9:06:35 AM12/18/21
to Harbour Minigui
Il giorno sabato 18 dicembre 2021 alle 13:39:14 UTC+1 agh...@gmail.com ha scritto:
I have a simple case of accessing dbf/ntx data over the browser.

I read and understood that NETIO can create servers and clients can connect to it.I checked all four samples in our MINIGUI samples NETIO* folders, but could not find the way to write the url in the browser itself.

All show ways to connect from the MINIGUI exe client and none from the browser. Though the read me shows server (127.0.01) and port etc., but the urls sample is missing.

Any direction on how to access the connection and data from the browser url is appreciated.

Regards,

Anand
 
Hi Anand, 
i have translate one my application from simple dbf on pc/shared folder to Netio without trouble..
On the server part you have to put the ip of the machine, as 127.0.0.1 is "localhost"
for all pc.
Once the connection is established use the db as before.
See My sample in \Minigui\samples\advanced\Netio_2 
and say to me what is not clear to you .

Regards.
--
Pierpaolo Martinello
IW1CUY Ham Radio From Biella Italy
Linux User 177880

Anand Gupta

unread,
Dec 18, 2021, 12:21:59 PM12/18/21
to Harbour Minigui
and say to me what is not clear to you .

It is working from client exe, but I want it to display in the browser (firefox, edge, chrome etc).
I need to use something http://<server>:<port>:pass/database/test or something like that and get an html or csv file of the data.

I have a java code for server and it can open a dbf file, but I want to do it in MINIGUI itself, as I am more versed in HMG than Java.

I read from FULL HMG, INTERNET ENABLED APPS: A SIMPLE STORY | HMG Thinking
https://hmgthinking.wordpress.com/2015/07/18/23/

XIV. NETIO ON INTERNET

To make available your NETIO server over the Internet, you must do some things:

    From the LAN”s router, you must to forward the port used in your app to the server local IP.
    Get a static public IP from your ISP
    Change, the ‘cNetServer’ address on your client app, with the static public IP that you’ve got from your ISP.

Now you’ll be able to access your server app, from any place.

So I think it is possible, but could not understand how to do it.
Hope you can guide me here.

Regards,

Anand


--
Visit our website on http://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/minigui-forum/273d1be9-e91c-4bf9-b25d-af099567b37fn%40googlegroups.com.

Ivanil Marcelino

unread,
Dec 18, 2021, 2:03:01 PM12/18/21
to Harbour Minigui
I believe your understanding is mistaken, or perhaps the translation has been lost in the general idea;
I understand that Netio is a way to treat dbf files as we treat a SGDB (SQL server,Mysql,Oracle...); just as you don't open a SGDB in a Browser you also don't open Netio directly through BRowser, there is a structure behind it, maybe you want to take a look at Modharbour, a project married between harbor and apache, very interesting by the way, it's as if the doors opened to another universe.

Auge & Ohr

unread,
Dec 18, 2021, 6:47:28 PM12/18/21
to Harbour Minigui
hi,

you need a App to "manage" and "navigate" in DBF.
NETIO is "just" for Connection like LibPQ.DLL (PostgreSQL) or LibMySQL.DLL (MySQL)

have a look at MOD_Harbour if you want to write a Website which can access DBF via Browser ( FF, Edge & Co)

JImmy

Anand Gupta

unread,
Dec 19, 2021, 3:52:40 AM12/19/21
to Auge & Ohr, Harbour Minigui
Hmm..So my thinking was wrong.
I got carried away with the ip and port thing.

Anyway now I understand it and yes it works perfectly in that scenario.

I will check mod_harbour as suggested and see what can be done.

Thanks for all the advice and guidance.

Regards,

Anand


--
Visit our website on http://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.

Harbour Minigui

unread,
Dec 19, 2021, 5:12:29 AM12/19/21
to Harbour Minigui
Il giorno domenica 19 dicembre 2021 alle 09:52:40 UTC+1 agh...@gmail.com ha scritto:
Hmm..So my thinking was wrong.
I got carried away with the ip and port thing.

Anyway now I understand it and yes it works perfectly in that scenario.

I will check mod_harbour as suggested and see what can be done.

Thanks for all the advice and guidance.

Regards,

Anand
Hi Anand , 
the question about the Browser seemed strange to me.
I thought of harbour browse, tbrowse and the like.

For your question I have some answers:
Can I suggest Hmgscript, Dbaseweb, Hbtron, Fastcgi, besides mod_harbour.

They are all applications that have a web interface and a Harbour core.

Hmgscript ( creato da Roberto Lopez ed ora abbandonato )
dBaseWeb:
(Cgi tecnology by Daniele Campagna and Made in Italy )
Hbtron:
By Apais and Diego Fazio
FastCgi:
By Eric Levandai

Most of these are an interface for an apache server.
Now you have enough material to make your choice.

Best regards

Anand Gupta

unread,
Dec 19, 2021, 6:58:53 AM12/19/21
to Harbour Minigui
Now you have enough material to make your choice.

Yes, true.

I will check them. Thanks for the suggestion.

Regards,

Anand

--
Visit our website on http://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages