SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.TableId( Variant v [, nameType] )
Returns the numeric ID of the specified table.
Variant v [, nameType]
Use this argument to specify a table.
Note that "nameType" can be also be "project" or "workflow", which will look for the project or workflow by ID, Internal Name, or UUID, and return the related table id. This is useful when you are submitting to a project, because this value can be passed to CreateProjectBasedRecord to create an item for the table that the project is related to.
Returns the numeric ID of the specified table. If the table does not exist, returns zero.
Examples:
var myTableId = Ext.TableId( "APP_WORKFLOW", "workflow" ) );
var myTableId = Ext.TableId( 8, "workflow" ) );
var myTableId = Ext.TableId( "f4c6fa0d-5484-4dd3-b443-5363c4573a18", "project" ));
Copyright © 2007–2017 Serena Software, Inc. All rights reserved.