Hello
im using AlertJs For making Dialog in Dynamics 365 V9
https://github.com/PaulNieuwelaar/alertjs/wiki/Documentation-v3.0#getpromptresponses
One of prompt field i used its lookup which i want to filter its view
but it not working
im using this dialog in Quote And I want to lookup view just show Quote Products of Related Quote Not all of them
please help me
var quoteName = Xrm.Page.getAttribute("name").getValue();
var quoteId = Xrm.Page.data.entity.getId();
var fetchXML = "";
var quoteFilter =
{
filterXml : fetchXML,
entityLogicalName : "quotedetail"
}
var options =
{
id: "callForPrice",
height: 320,
width: 450,
title: "Create Call For Price\n",
message: "\nProvide the following information about Call For Price And Description For Purchase Person.",
buttons:
[
new Dialog.Button("OK", function(results)
{
data =
{
"quoteDetail" : results[0].value[0].id,
"Description" : results[1].value
};
activateCustomAction(actionName,data)
}, true),
new Dialog.Button("Cancel")
]
};
var dialogBase = new Dialog(options);
dialogBase.showPrompt
(
[
new Dialog.Lookup({ id: "quoteDetailLookUp", label: "Quote product", entityTypes: ["quotedetail"] , filters : [quoteFilter] }),
new Dialog.MultiLine({ id: "Description", label: "Description" })
]
);