• Post mode change event in "rwfStateConfiguration" form

    By Phillip A Kahrl 2 decades ago

    The "rwfStateConfiguration" form for 3 beta, has LotusScript that runs on post mode change to build select lists for fields and user roles based on the user roles and fields available in the current application. I'm working on a fairly large application, and it takes about 10 to 15 seconds to run when I go to edit. I'm wondering if anyone else has an opinion on whether it is better to have select lists generated for user roles and fields, and take longer to go into edit mode, or whether it is better to let the developer type in user roles or field names and leave the developer the responsibility making sure the user roles and fieldnames entered are valid for the application??

    • Another issue

      By Colin Williams 2 decades ago

      There is another issue with using "post mode change" to build the list of fields & roles. If you edit a state from the view level, using CTRL E, then the event doesn't trigger so the lookups are useless.



      I've not come up with a way around it and given your issues, maybe it should just come out.



      Alternatively, fields and roles could just be stored in a Configuration document. To update them, add an agent to an entry in the outline or configuration form to "rebuild" them on demand.