Hi guys and gals,
I am pretty new to documentum. Sorry to say, I failed to find out which community rules apply in the Documentum Developer Network, so please don't be too harsh if I am doing something completely improper.
To go in media res:
We import documents using batch jobs. Our parter (better: former partner) defined a file format for metadata. It's a pretty simple format: A key: value pair in every line. The attributes of an document then get their values assigned by the setString method using key and value from the import file. It makes no difference wether the attributes type is double, string or time. That worked so far.
But yesterday, I installed 6.5 SP3 (content server, da, webtop). It seems as if the default datetime representation has changed, because now I get a
"ERROR: [DM_API_E_BADDATE]error: "You have specified an unrecognized date representation '28/06/2007 03:52:00' based on format 'M/d/yyyy h:mm:ss a'"
In my opinion, the best solution would be to assign time type attributes a DfDate value. But type information is not available in the import file. I don't want to do any parsing, and I don't want to change the metadata files format (As long as I really really have to).
My idea is now to set the "default" datetime representation in the session, in the program, after establishing the session. I don't want to use a server wide default setting. This may confuse other things now or in the future.
So, question is: How can one define a default date time format valid for a session?
Question #2: Do you think it is clever to do so? ...and #3: What would be a better solution?
many thanks in advance,
best regards,
Hans-Peter