I think I understand. I was thinking that I could emulate the a c# class type bizobj with properties for each field.
so that instead of something like this:
WITH loBCSTypes
.Open
.New
.Replace( "cCategory" , "GL" )
.Replace( "cShortName", "ASSET" )
.Replace( "cName", "Asset" )
.Update()
Endwith
I could have something like
WITH loBCSTypes
.Open
.New
.cCategory = "GL"
.cShortName = "ASSET"
.cName = "Asset"
.Update()
Endwith
I was wondering if this would work?
Alternatly can you suggest another way to do this without the Replace?
Mike
>Hi Mike:
>
>GetRecordData simply returns a SCATTER NAME object based on the current record for the cursor object on which you have called themethod. Say you have a couple of CDEs. They are in different datasessions. You want to get a record from one CDE into another. Before, this was not really possible unless you created a single record table (saved to disk) which would get across the datasession barrier. You could also create a single record cursor, run it through the CursorToXML function and return the XML. With GetRecordData, you can return the record details as an object. What you do with the object that is returned to you is totally your business.
>
>HTH
>
>>I was just wondering what the Cursor.GetRecordData does if no target object is specified. I would
>>guess that it adds record fields to the current cursor object, but it doesn�t appear to do that and the target object is specified as being optional.
>>
>>Also, are you using this method for accessing data and creating data objects? Are there any gotchas?
>>
>>Mike
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