Hello,
I've set up filters for my database for lookup fields so that users logged into the customer portal can only see records that are associated with them. I've also had to add some Deluge Script to allow for administrators logged in to be able to see all of the records.
This has worked fine when directly accessing forms - all of the records populate the lookup fields appropriately. However, when looking at these as sub-forms, I (as an administrator) can no longer see all of the records populating the lookup field.
Is there some reason that the Deluge Script doesn't carry through in a sub-form??
Here is some of the code that doesn't carry through:
- if(zoho.loginuserid == zoho.adminuserid || thisapp.portal.isUserInProfile("Admin"))
- {
- fet = ASL_Consultants[ID != 0];
- input.ASL_Consultants:ui.add(fet.ID.getall());
- }