MJFieldsAutomation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 19: | Line 19: | ||
* '''bSaveInTag''': save the field in the tag in the content file |
* '''bSaveInTag''': save the field in the tag in the content file |
||
'''Return Value:''' the FieldAutomation interface for the new field |
'''Return Value:''' the FieldAutomation interface for the new field |
||
Normally, the '''strFieldName''' and '''strDisplayName''' should be the same. The '''strDisplayName''' may be changed by the user later, but internally |
|||
the field will retain the name '''strFieldName'''. |
|||
[[Category:COM Automation]] |
Latest revision as of 05:40, 4 May 2015
interface for working with database fields
Functions
number GetNumberFields()
Description: gets the total number of database fields
Return Value: the number of fields
IMJFieldAutomation * GetField(number nField)
Description: gets the field at the given index
Parameters:
- nField: the zero based index of the field
Return Value: MJFieldAutomation * to the field (see documentation below)
IMJFieldAutomation * CreateFieldSimple(string strFieldName, string strDisplayName, number bAllowEdit, long bSaveInTag)
Description: Creates a new field
Parameters:
- strFieldName: the internal name of the new field
- strDisplayName: the name displayed to the user
- bAllowEdit: can field be changed by user
- bSaveInTag: save the field in the tag in the content file
Return Value: the FieldAutomation interface for the new field
Normally, the strFieldName and strDisplayName should be the same. The strDisplayName may be changed by the user later, but internally the field will retain the name strFieldName.