|
Results |
|
How to keep the line breaks in a Memo field when doing the GetFieldValue or GetDisplayValue in an App Script.
How to keep the line breaks in a Memo field when doing the GetFieldValue or GetDisplayValue in an App Script.
|
|
|
GetFieldValue (or GetFieldValues) for a relational or sub-relational field does not return correct value when used with AddChangeCallback or onChange ( Video )
GetFieldValue (or GetFieldValues ) for a relational or sub-relational field does not return correct value when used with AddChangeCallback or onChange ( Video )
|
|
|
SBM Version Diff
Differences Between Versions ... requireAppend && GetFieldValue (objname) ... ... ) value = GetFieldValue (value) ... ... ) value = GetFieldValue (value) ... ... var fieldValue = GetFieldValue (fieldName) ... ... var fieldValue = GetFieldValue (fieldName) ... ... + value = GetFieldValue (value) ... ... + fieldValue = GetFieldValue (fieldName) ... = GetFieldValue (fld. ... ... requireAppend && GetFieldValue (objname) ... // subrelational fields are already ... ... ) value = GetFieldValue (value) ... ... ) value = GetFieldValue (value) ... ... var fieldValue = GetFieldValue (fieldName) ... ... var fieldValue = GetFieldValue (fieldName) ...
|
|
|
SBM Version Diff
Differences Between Versions ... contents = ( GetFieldValue (objname, ... ... var contents = GetFieldValue (objname, ... ... var fieldValue = GetFieldValue (fieldName) ... ... ) value = GetFieldValue (value) ... = GetFieldValue (fld. ... ... contents = ( GetFieldValue (objname, ... ... var contents = GetFieldValue (objname, ... } function GetFieldValues (objname, ... GetFieldValue ('F ... ... +// subrelationals must wipe previous ... ... var oldvalues = GetFieldValues ('F ... ... var newvalues = GetFieldValues ('F ... ... ) value = GetFieldValue (value) ... ... var fieldValue = GetFieldValue (fieldName) ... ... ) value = GetFieldValue (value, ...
|
|
|
Accessing Sub-Relational fields via TeamScript
To retrieve the value of a field in TeamScript you may use the short method: Shell.Item. GetFieldValue ("name", varName)
|
|
|
Javascript example for a custom form to display a date/time field without the seconds
function pageload() var valueCIA = GetFieldValue ("SUBMITDATE"); // this will return javascript date if (valueCIA != 0)
|
|
|
How-To get the value of a sub-relational field upon change
Due to the nature of sub-relational fields, we are unable to use the AddChangeCallback at this time. However, you can use AddChangeCallback on the relational field which will change the sub-relational field. Also, it is not possible to get the new value of the sub-relational field from the callback function using the GetFieldValue .
|
|
|
Getting the text value of a dropdown or selection list with appscript sample code. How to use GetDisplayValue for list values.
Working with dropdown or selection lists with AppScript it's often times helpful to retrieve the actual text value of the list that is selected. By default people seem to use the GetFieldValue () function but with AppScript this returns the ID number of the selected item and not the actual text. Unlike the GetFieldValue() javascript function where it by defualt returns the text value.
|
|
|
How to make a more user friendly error message display on your form when using a synchronous orchestration that displays a fault.
var strError = GetFieldValue ("ErrorMsg"); if(strError) { if(strError.indexOf("5000")>=0)
|
|
|
How to avoid submitting duplicate auxiliary items in SBM 11.1+
function customChangeCallback() var theVal = GetFieldValue (theField); var theurl = "tmtrack.dll?JSONPage&command=jsonapi&JSON_Func=getitemsbylistingreport&JSON_P1=" + theReport + "&hasruntimeparams=1&" + theFieldId + "=" + theVal
|
|
|