Getlist listbox array

This forum is for eXpress++ general support.
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Getlist listbox array

#11 Post 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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Getlist listbox array

#12 Post 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 15733 times
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Getlist listbox array

#13 Post 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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Getlist listbox array

#14 Post 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.
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Getlist listbox array

#15 Post by c-tec »

Hello Roger,
do you see advantages to use your server compared to XB2NET ?

regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: Getlist listbox array

#16 Post by unixkd »

Hi Rudolf

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

Thanks.

Joe

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Getlist listbox array

#17 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Getlist listbox array

#18 Post by Eugene Lutsenko »

Roger!
Where can I learn more about Your CxpHttpServer and its possibilities?
And how to get it?

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Getlist listbox array

#19 Post 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
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Getlist listbox array

#20 Post 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
The eXpress train is coming - and it has more cars.

Post Reply