Home

Macros and Programming

 

CardboxForumsMacros and Programming > "Unique ID per record using cardbox.interop.dll"

Unique ID per record using cardbox.interop.dll

Current user: [none]
Register / Log In · Help

Posted By Post

Dubs

11-Dec-2014 10:20

I need to sync a cardbox database to a website (i.e. display some of the record data on a website) and have some written most of the code to do this but I can't find a way to get a unique ID per record in cardbox. How can this be done?

I have this so far: -

records = application.Windows.Item("IOPMAIN").Database.AllRecords
enumerator = records.GetEnumerator
Do While enumerator.MoveNext
  Dim current As Record = DirectCast(enumerator.Current, Record)
loop

I would expect to see an ID property on the record object, but there is nothing like this.

Thanks,

David

bert

11-Dec-2014 11:29

There are slotnumbers. However, you cannot select on it.
So, If you added a field containing a unique ID, then you can use that. Easy to add by using validator automatic numbering in combination with validator unique term.
(B.t.w. every Cardbox database should contain such a field)
Regards
bert

Dubs

11-Dec-2014 16:23

Hi Bert,

Thanks for your reply. We don't need to select on it as we plan to parse all the records each sync. I will use the slot-number field.

Thanks again for the quick reply :-)

David

Quick Reply

Please log in or register before trying to post a reply.

 
© 2010 Cardbox Software Limited   Home