![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The challenge for connecting MV databases to web forms is extracting the data from the database and sending it back to the browser. This is typically done using a JSON or XMLHTTPrequest back to an Apache server to invoke a specific PHP script. This script, in turn, queries the database and returns a string of data to the web server which sends it back to the client. The connection of PHP to a MV database is not a trivial task. Pavuk IDF v2.2 has a new feature to enable the direct retrieval of MV database queries in one step from the form. This feature returns virtually any query string as a JSON array with a syntax that is familiar to MV programmers. The existing dictionary tags are used for labels. NOTE: Do not click on this link! An example in a web form: https://www.pavuk.com/json.qsp&query=sort customers by lname by fname with state eq "NC" lname fname city&limit=25 This returns a JSON response containing the report information sorted just as stated with the tags of "lname" and "fname" to be used in the form. It also has a handy limit of the first 25 responses. This directly interfaces web forms with the MV query processor. Many other extensions to the json.qsp responder are planned as well as an XML version. For more information, check www.pavuk.com Bill Crowell, bcrowell (AT) pavuk (DOT) com |
#3
| |||
| |||
|
|
"Bill Crowell" <bcrow... (AT) pavuk (DOT) com> wrote in message news:5f2a5fe2-ee02-4e01-b4db-a2a4eaf93fd2 (AT) j25g2000yqa (DOT) googlegroups.com... The challenge for connecting MV databases to web forms is extracting the data from the database and sending it back to the browser. This is typically done using a JSON or XMLHTTPrequest back to an Apache server to invoke a specific PHP script. This script, in turn, queries the database and returns a string of data to the web server which sends it back to the client. The connection of PHP to a MV database is not a trivial task. Pavuk IDF v2.2 has a new feature to enable the direct retrieval of MV database queries in one step from the form. This feature returns virtually any query string as a JSON array with a syntax that is familiar to MV programmers. The existing dictionary tags are used for labels. NOTE: Do not click on this link! An example in a web form: https://www.pavuk.com/json.qsp&query=sortcustomers by lname by fname with state eq "NC" lname fname city&limit=25 This returns a JSON response containing the report information sorted just as stated with the tags of "lname" and "fname" to be used in the form. It also has a handy limit of the first 25 responses. This directly interfaces web forms with the MV query processor. Many other extensions to the json.qsp responder are planned as well as an XML version. For more information, checkwww.pavuk.com Bill Crowell, bcrow... (AT) pavuk (DOT) com This is excellent. * =`:^) What's on the browser side? Ruby on Rails? *Active Record? -- frosty |
![]() |
| Thread Tools | |
| Display Modes | |
| |