Hoi,
I have to migrate a 2011 application to dynamics 365. I have an issue with a AngularJS webresource tht gives an error on undefined element
In the account form, a webresource is hosted, that contains an angularJS form. The webresource itself is an html, which reference a controller, a module and a service javascript.
Goal is to update some field s of the account form, with the element chosen in the angular form.
The angular code looks like this:
$scope.ok = function () {var window_opener = window.dialogArguments;window_opener.FillAdresField(
$scope.SelectedAdres.ves_adresid,
null,
$scope.SelectedAdres.ves_straat,
$scope.SelectedAdres.ves_huisnummer); }
The FillAdresField is a function in a javascript library attached to the account form. It contains following code:
function FillAdresField(adresId, adresName, straat, huisnummer) {
Xrm.Page.getAttribute("ves_adres1type").setSubmitMode("always");
Xrm.Page.getAttribute("ves_adresid").setSubmitMode("always");
Xrm.Page.getAttribute("address1_line1").setSubmitMode("always");
Xrm.Page.getAttribute("address1_line2").setSubmitMode("always");
Xrm.Page.getAttribute("address1_line3").setSubmitMode("always"); }
The Xrm.Page.Attributes seem not be known.
As I have no experience with this, can anyone point me in the right direction how to find a solution?
*This post is locked for comments