Hi,
I have never tried to change the name of a document through xog, but i would assume that it would be possible.
Below is a xog that i use have used when xogging in document to idea object. In the documents part you have the option to xog in a name for the document, which in turn would create a new instance in the db with the specified name.
<
NikuDataBus
xmlns:xsi
=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation
=
"../xsd/nikuxog_idea.xsd"
>
<
Header
action
=
"write"
externalSource
=
"NIKU"
objectType
=
"idea"
version
=
"8.0"
/>
<
Ideas
>
<
Idea
active
=
"true"
name
=
"${row[1]}"
objectID
=
"${row[2]}"
openForTimeEntry
=
"1"
pageLayoutCode
=
"pma.ideaFrame"
>
<
CustomInformation
>
<
ColumnValue
name
=
"obj_fast_track"
>false</
ColumnValue
>
<
ColumnValue
name
=
"obj_request_category"
></
ColumnValue
>
<
ColumnValue
name
=
"obj_request_type"
></
ColumnValue
>
<
ColumnValue
name
=
"partition_code"
>NIKU.ROOT</
ColumnValue
>
<
ColumnValue
name
=
"obj_work_status"
>REQUESTED</
ColumnValue
>
<
ColumnValue
name
=
"z_bifoga"
>
<
Documents
>
<
Parent
documentLocation
=
"C:\CA\Clarity\filestore"
>
<
Document
fileCreatedDate
=
"${row[9]}"
language
=
"${row[8]}"
mimeType
=
"${row[7]}"
name
=
"${row[6]}"
>
<
Version
id
=
"${row[10]}"
versionNumber
=
"1"
/>
</
Document
>
</
Parent
>
</
Documents
>
</
ColumnValue
>
</
CustomInformation
>
</
Idea
>
</
Ideas
>
</
NikuDataBus
>
Other information that might be good to have if you are inserting a document through attachment attribute and then transfering the document between instances or objects are the CLB_DMS_FOLDERS, CLB_DMS_FILES and CLB_DMS_VERSIONS tables in the db.
CLB_DMS_FOLDERS has information on the path of the attachment attribute and its objects association.
CLB_DMS_FILES has information of the files, for example the name of the while.
CLB_DMS_VERSIONS has information of the file size and version.
When reading documents through xog, remember to use the document location argument:
<
args
name
=
"documentLocation"
value
=
"C:\CA\Clarity\filestore"
/>
I hope this information help and i hope the xog posted solves your problem.
/Emre