|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > DataForm > EditRecord |
Open the data input mask for editing the data of the selected item.
call DBWShell("EditRecord [UniqueID] [NoInputMode [fieldNameToBeDisplayed]]")
UniqueID |
Optional. It is the unique id of the record to edit |
|---|---|
NoInputMode |
Optional.[0/1] |
fieldNameToBeDisplayed |
Optional. name of a DOCUMENT table field. The first tab in the Edit mask that contains such field will be shown as front tab, and the field will have the focus set for editing. |
If no uid is specified, DBWorks browser must be open.
NoInputMode can be set only if the document unique id is explicitly set.
Setting NoInputMode is useful to automatically update the file custom properties with the attribute values currently in the database.
Please note that MechworksPDM trusts on specific CAD applications to update the custom properties when files are not opened in the CAD; a typical example is editing a large amount of records without opening the file and with no dialog shown (e.g. NoInputMode = 1).
Often such applications are not able to properly releases system resources after custom properies writing (open-write-close action); so if you're editing a large amount of records, you can verify a increasing memory usage that could bring to system memory lack.
In case you do not need to update custom properties, you can avoid their management through the command EnableDisableUpdateFileCustomProperties.
Otherwise if the custom properties update is required, we suggest to split the total amount of records in multiple passes so to not hanging the system due to memory lack.
EditRevisionRecord command
'it makes direct modifications to the db record with uid=45 using ADO
call DBWShell ("EditRecord 45 1") 'update the file custom properties without opening SW
call DBWShell ("EditRecord 45 1 CATEGORY3")
the Edit mask is displayed already set to tab "Classification" tab (rather than the ID tab) because the field CATEGORY3 is contained in such tab.
