Author Topic: Copying hidden document indexes with ARSOLE.OCX  (Read 124 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile
Copying hidden document indexes with ARSOLE.OCX
« on: February 04, 2020, 05:51:00 AM »
Good day.

I'm using the OnDemand Client v.10.1 ARSOLE.OCX control from a VB.NET application to add a new version of a document stored in CMOD.

Basically, what I want to do is to retrieve all index values on a record for a document, modify some of the fields, then write it all back as a new record with a new version of the document. For instance, I have a version field, and so I want to leave the original version untouched but update the version index on the new record based on the value from the original.

However, I can't see any way to retrieve all indexes on a record via the OLE control. I'm able to get all of the visible/displayed indexes on that record (that is, everything you would see via the client viewer), by calling GetDocDisplayValues, but not any indexes that are hidden on the viewer.

I can get all of the field names for all indexes (displayed or not) via the GetDocFolderFieldNames call, but there isn't an equivalent GetDocValues n order to get all values for all fields. it is strange to me that there is an API to get hidden field names but not to get their values.

I have a need to store various index values on a record for auditing purposes, amongst other things, but I don't want them to have to be displayed to the end users because it is just noise. However, the only way I can see of getting those values back to put them on the next record is to make them visible in the viewer and then use GetDocDisplayValues to get the values.

Any thoughts? Am I missing something here?