Vijay,
You can use the following JavaScript code to open the quick create form:
var entityTypeCode = 10000;
var newRecord =
openStdDlg("/_forms/QuickCreateReturn/quickcreate.aspx?crmFormSubmitObjectType="
+ entityTypeCode, entityTypeCode, 400, 400);
newRecord is null if the user cancels the dialog and a LookupControlItem
otherwise, so you can assign it to a lookup field.
if (newRecord) {
var newRecordId = newRecord.id;
var newRecordType = newRecord.type;
var newRecordName = newRecord.name;
}
For a quick test open the web client, press CTRL-N or F11 and enter the next
line into the address bar:
javascript
penStdDlg("/_forms/QuickCreateReturn/quickcreate.aspx?crmFormSubmitObjectType=10000",
10000, 400, 400)
--
Michael
Web: http://www.stunnware.com/crm2
Feed: http://www.stunnware.com/crm2/atom.aspx
Custom Lookup Dialog: http://www.stunnware.com/crm2/?area=customLookup
----------------------------------------------------------
"Vijay" <Vijay@discussions.microsoft.com> schrieb im Newsbeitrag
news:6D22B0C6-3CFD-420A-8D4B-D9EA29CC642C@microsoft.com...