Recently during some
development, I came across one strange error. One user was getting script error
when trying to access connection entity form.
On connection entity, I added
some JavaScript code to filter connection from lookup to limit only for Users
and Teams.
JavaScript Code is working
fine when I tried to debug issue.
After doing some more debugging,
I realized user is using different app and that app does not have access to
Team entity.
Once added Team entity
into App, error Fixed, and script worked as designed.
When designing Model Driven
App for consider
1. When using
JavaScript code to filter lookups to specific entity, specially customer
lookup, connection entity from / to lookups, make sure entities used in filter
are added in App.
2. When using JavaScript code
to redirect to specific form based on value change / option set change, make
sure all forms added in App.
3. If entity is using
Quick create form, then make sure quick create forms added in App otherwise
default main form will be used to create record