●onLoadイベントに下記のスクリプトを追加する
---------------------------------------
var lookupData = new Array();
//Create an Object add to the array.
var lookupItem= new Object();
//Set the id, typename, and name properties to the object.
lookupItem.id = currentUserId [0].text; //GUIDをセット
lookupItem.typename = 'systemuser'; //エンティティ名をセット
lookupItem.name = currentUserFullName[0].text; //表示名称をセット
lookupData[0] = lookupItem;
crmForm.all.new_detail_contents1.DataValue = lookupData;
---------------------------------------
※new_detail_contents1 ・・・ lookup属性
0 件のコメント:
コメントを投稿