>Hi, Kevin.
>
>>In a 3-tier app, I am creating a form in the front-end and wanted some advice on the best way of handling the data that is received from the middle-tier. My form will contain a grid which lists all records, and then fields that allow the user to amend them.
>>
>>If the middle-tier returns XML, should this be converted/read to a VFP cursor, an ADO recordset? I'm a bit stuck. Someone has already suggest binding to properties in the business-object, but I wanted some more opinions/views on other ways of approaching this.
>
>If the middle-tier returns XML, then your best approach would be to convert it to a VFP cursor (using XmlToCursor), so you can bind it to the grid. You can bind controls to a BizObj properties as long as it is treated as a single-record entity. You can do this with a grid.
So, if I had a read-only cursor to display in the grid, then when a record is selected/highlighted, you could update the BizObj properties with the relevant fields, and bind them to the controls?
Am I getting that right?
Thanks very much for response
Kev
*SNIP*
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement