SBM ModScript Reference → Programming SBM ModScript → Object Types → AppRecord → AppRecord GetFieldValue() Method
Gets the value of any field, returning value as a Variant.
Parameter | Type | Description |
---|---|---|
name |
string |
The name of the field whose value will be retrieved from the variable field list or the AppRecord column. Field names for variable fields should be provided in uppercase characters for database names or in lowercase/mixed-case characters for display names (for Title, for example). |
Type | Description |
---|---|
Variant |
The value of the field, if the value was found successfully. |
SBM ModScript version: 11.3.
//Create and retrieve Project record var tableId = Ext.TableId("TS_PROJECTS"); var myRecord = Ext.CreateAppRecord(tableId); var ok = myRecord.Read("Image Builder"); if ( ok != 0 ) { var value = myRecord.GetFieldValue( "parentid" ); Ext.LogInfoMsg ("Parent ID of Image Builder is " &&& value); }
See notes on AppRecord GetFieldValue(-type-) Method.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.