Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to send invoice rows to webserver
Message
De
10/08/2001 14:04:15
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Microsoft Internet Explorer
Titre:
Best way to send invoice rows to webserver
Divers
Thread ID:
00542429
Message ID:
00542429
Vues:
104
I need to edit invoice rows and send edited data back to webserver. I need to use Visal FoxPro code (COM object) in server for update.

I desided to use IE 5.5 (IE 6 in future) in clients. I don't have IIS nor PWS for server but I can run by custom VFP code in webserver to process POST request.

I send a .htm page containing xml data island to client IE:

note: double quotes are replaced to single quotes in code samples.
< html > < body >
< xml id='result' javaDSOCompatible='true'>
< mytable xmlns:dt='urn:schemas-microsoft-com:datatypes'>
< row>
	< field1  dt:dt='string'>value1 < /field1>
	< field2  dt:dt='string'>field2value < /field2>
< /row>
< /mytable >
< /xml>
This xml data island is bound to a html < table> element. I can add, edit, delete rows in XML DSO recordset.
< table DATASRC='#result'>
< tr>< td> < input datafld='field1' dataformatas='localized-text'>< /td>
< input datafld='field2' dataformatas='localized-text'>< /td>
< /tr>< /table>
My form frmdoc has a hidden field Rowdata. Form submit button OnClick event contains the following code to send changed data back:
OnClick= ' document.frmdoc.RowData.value =result.recordset.GetString(); 
document.frmdoc.action='SaveDocument' ' ; 
SaveDocument is a custom com object whict retrives form variables using Request.Form() and updates Visual FoxPro dbf files.

However, SaveDocument needs to know field names to update.
It must update different fields if called from different pages
but GetString() does'nt return field names !

Which is the best way to implement this style of document editing ?
Which is the best way to send embedded xml data island data back to server?
How to seda DSO field names to server ?
Andrus
Répondre
Fil
Voir

Click here to load this message in the networking platform