Page 2 of 4

Re: Getlist listbox array

Posted: Fri Apr 21, 2017 6:46 am
by c-tec
Hello Chris,
I do it the same way, for some functions you must encode vars in a url, especially when using Javascript for Ajax oder open windows. This works also in XB2NET. Complicated is for example if you have two or more browsers in a dialog and you want edit, add or delete records. I use jquery DataTables, I got changing values in a table after editing working, but have to look how adding new rows works. I have a session specific data stack where I store each data array or DBF reference with the session id, table id, row pointer etc. I think this way I can solve most things.
regards
Rudolf

Re: Getlist listbox array

Posted: Fri Apr 21, 2017 7:55 am
by rdonnay
I converted a VFP application to a web app but I didn't use eXpress++ commands.

Instead, I wrote it in CXP and embedded the HTML in the code.
The customer is very pleased with the result. See screen below.

I do, however, have an example of how to use CXP with eXpress++ commands and DCREAD HTML.

Look at .\samples\web20\books1.cxp and .\samples\web20\xdot.cxp.
MyFireRules.jpg
MyFireRules.jpg (274.1 KiB) Viewed 15804 times

Re: Getlist listbox array

Posted: Sat Apr 22, 2017 3:28 am
by c-tec
Hello Roger,
looks great, but I need a modern GUI like the Metro UI and DataTables for the browser and some other special things. I think my framework would also work with CXP, but my customers do not accept a Appache installation, especially in healthcare companies. I can also use scripts in XB2NET like CXP, so it would be interesting to include eXpress++ in XB2NET. But I work with templates where I insert code, so I have not really the need for scripts. Actually I have successful tested my session management for arrays in browsers, now I can handle different dialogs with several browsers in one dialog for editing and updating. This is much more complicated than converting the getlist to HTML. Changing values and and whole tables and updationg in a dialog without calling the webpage again is not easy, but works now. So the Javascript part and sessionmanagement are the things that keep me stressed in the next time, I think you have the same problems ;-) But your solution looks great and have also a big potential I think.
regards
Rudolf

Re: Getlist listbox array

Posted: Sat Apr 22, 2017 7:25 am
by rdonnay
my customers do not accept a Appache installation
This customer didn't want Apache or IIS either.
I wrote a program in Xbase++ that is a CXP/Http server, similar to Xb2net.

Re: Getlist listbox array

Posted: Sat Apr 22, 2017 11:57 pm
by c-tec
Hello Roger,
do you see advantages to use your server compared to XB2NET ?

regards
Rudolf

Re: Getlist listbox array

Posted: Sun Nov 19, 2017 12:38 am
by unixkd
Hi Rudolf

Can Metro-UI multiline edit control be used in desktop Xbase++ 1.9 applicale code to achive it

Thanks.

Joe

Re: Getlist listbox array

Posted: Sun Nov 19, 2017 10:27 am
by rdonnay
do you see advantages to use your server compared to XB2NET ?
If I didn't see advantages I would not have written CxpHttpServer.

1. It's written entirely in Xbase++ and comes free with eXpress++.

2. It is both a web server and a CXP server.

3. I have replaced all of my apps that were previously written using Xb2.net with 2.0 functions.

Re: Getlist listbox array

Posted: Sun Nov 19, 2017 10:47 am
by Eugene Lutsenko
Roger!
Where can I learn more about Your CxpHttpServer and its possibilities?
And how to get it?

Re: Getlist listbox array

Posted: Sun Nov 19, 2017 12:09 pm
by c-tec
Hello Chris,
I use also hidden vars and change values with Java Script. The session management from XB2NET is also very helpful. I have data sets in each session for table arrays and DBFs, complicated but works fine. The most complicated thing is to change the content of a dialog (especially tables) after editing values in a separate window. Works so far, but still a challenge to make it perfect. Without good Java Script knowledge its not possible to make a working web interface, here I have still a lot to learn ;-)
regards
Rudolf

Re: Getlist listbox array

Posted: Sun Nov 19, 2017 12:13 pm
by rdonnay
Where can I learn more about Your CxpHttpServer and its possibilities?
Actually, it's a very simple program that is included with eXpress++ in the \exp20\samples\web20 folder.

Basically, it is a http: server that replaces Apache or IIS and acts like a web server. It also works with CXP. If you want to know more about CXP read this:

http://donnay-software.com/ds/Articles/Donnay_CXP.pdf