You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rescocrm edited this page May 15, 2023
·
8 revisions
[v8.0] Sets the explicitly typed value for specified property.
Arguments
Argument
Type
Description
propName
String
The name of the property which is being set.
type
String
The fully qualified .Net type (e.g. "System.String" or "MobileCrm.Data.IReference,MobileCrm.Data").
value
The value which has to be set.
This example demonstrate how to set list of values for multi select pick list item on entity form.
MobileCRM.UI.EntityForm.requestObject(function(entityForm){/// <param name='entityForm' type='MobileCRM.UI.EntityForm'/>if(detailView){vardv=entityForm.getDetailView("General");if(dv){varmultiOpt=dv.getItemByName("multi_pick_list_item");if(multiOpt){// val must contain a string with a list of numeric values delimited with semi-colon (;)multiOpt.setTypedValue("value","System.String","100000001;100000000;100000002");}}}returntrue;},MobileCRM.bridge.alert,null);