• Can't get it to work

    By Thomas Gamradt 2 decades ago

    Hi,

    I'm sorry but I seem to be stupid to get RWF3 to work in the Notes client.

    I copied all the design elements and figured out that I need the DBConfig role to be able to create states.

    Inserted the submask into my document (which contains only two simple text fields besides that).

    Then I created two action buttons to set states using this code:

    @SetField("rwfHasChanged";"new status");

    @SetField("rwfDocStatus";"Phase 1");

    @PostedCommand([FileSave]);

    @PostedCommand([FileCloseWindow])

    The fields get set as expected. Email notifications are sent. But the reader and author fields are not changed at all. They stay empty. The InitialAuthor field however gets emptied.

    There is no error message in the exceptions view.

    When I try to set a state that doesn't exist, an error message is created in the exceptions view.

    So obviously the agent does something.

    Any hints as to what I did wrong?



    Thomas

    • Something with the form

      By Thomas Gamradt 2 decades ago

      It's me again,

      I copied the "Sample - Notes Client" form from the 2.5 example database.

      Then I removed all the buttons and copied everything from my selfmade form, including the action buttons for setting the field values. It works now.

      I have no idea why. I checked every setting in the form properties.

      So, I'd still like to know where the difference was, but it's more academic now ;-)



      Thomas

    • By Colin Williams 2 decades ago

      Hi, I'm using this database on a handful of Notes based workflow apps and it works great - if you want to email yer database over (guttedgeek at gmail.com) I'd be happy to take a look.



      Perhaps its an access issue? You could create a role called "allaccess" and add this role to the reader field on every state in the workflow - then add this role to the server and admin groups.



      I'd be more than happy to email over a complete working workflow app so you can see how we're using the template.