Hi,
I am trying to set up my first proper Dynamic Window for an Issue of an Asset form.
The idea is that people will select from a drop down list what asset they want, and then the appropriate fields will appear on the window depending on their choices.
To make it easy to add and remove assets, I have created a bunch of boolean tick boxes on the Asset Type Reference Object, and the calculation uses these to determine what fields to display.
However when you open up the window, and select an Asset Type from the drop down list it then pops up with the error 'Index was outside the bounds of the array.
I don't seem to be able to copy and past the error text here, so instead here's a screen shot:
If I turn on error loggin for Calculations I get an error like this in the logs:
(Again I can't seem to copy and paste into here, so I had to go with a screen shot, after I kept adding in carrige returns to the text so it fit onto one window).
Both of these errors don't make much sense to myself. None of the attributes are set to read-only, and neither is the calculation attribute, or the trigger attribute.
The top error especially donsn't make sense to myself, as I am not using an Integer Array at all. Everything is either drop down lists, Booleans, or Strings.
I have also attached the code I use, again because I can't copy and paste text into this field.
I have also used modified code where I attempt to just affect one of the attributes, and I get the same errors.
It does not appear to matter what attribute I attempt to affect either.
Any advise or help would be greatly appreciated.