Hello everyone,
I am new to this forum so please be patient with me :)
I wrote a lot of scripts in the version 9 and they all worked (and still work) so i wrote following script (shortened)
function myFunction(executionContext) {
var start = Xrm.Page.getAttribute('field1').getValue();
var end = Xrm.Page.getAttribute('field2').getValue();
var resolution= end - start;
executionContext.getFormContext().getAttribute('field3').setValue(resolution);
}
I can run this script on the "old" interface (custom entity in the options-cockpit) or i can run this script in the new unified interface (new custom cockpit, showing my custom entity)
When i run this script on the "old" form, it succeeds and everyone is happy.
When i run it in the new unified interface i get following error: "Value should be of type: number: Parameter Name: value"
I am sure it is not a mistake from myself, because the script works in the old form. Does anyone have the same mistake and has a solution to it ?
Kind regards,
Rare