PLMDMTDocument.CheckIn()
Locks (check-in) the file at the given path in the document database.
Signature
PLMDMTDocument.CheckIn(path : String)
Arguments
| Name | Input/Output | Required? | Type | Comment |
|---|---|---|---|---|
path | In | | String | Enter the absolute path. |
Example
let doc (PLMDMTDocument)
let query (PLMQuery)
let results (List)
let result (PLMQueryResult)
query = CreatePLMQuery("PLMDMTDocument")
query->AddCriterion("V_Name","Book3")
results = query->RunQuery()
for result inside results
{
let path (String)
set doc = result->LoadResult()
path = doc->CheckOut()
let sh (DTSheetType)
sh = CreateSheet(path, "")
sh->SetCell(1, 1, "new cell value")
doc->CheckIn(path)
doc->CopyTo("e:\\tmp\LetsCheckResult.xlsx")
}