Greetings all. I have recently rolled out my first database application, and it has met rave reviews. There have been requests for additional functionality (when is there NOT), one of which I am trying to fulfill right now.
My application is a Work Order Request System, in which our “customers” can request that my group perform tasks. The addition I am working on is the ability to open a Work Order Request for a customer (based on a phone call, etc). When the user opens their own Work Order, a series of fields is automatically populated with information they provided upon registering within the application:
Requestor Name
Requestor Manager
Requestor Phone #
Requestor Team
Requestor Mailcode
Requestor Notes Address
Requestor SMTP Address
Request Number (attained by seeing how many requests the person had already submitted, adding 1 to the total, and appending the # to their initials)
What I want to have is a form that we (admins) can use to open Work Orders for the users, but fill in all their information for them so that they are the owner, and it counts towards their Request Number count. I have added some code to my QueryOpen event which is supposed to prompt with a list of registered users to open the Work Order for, and upon selecting the name the rest of the above fields would fill in automatically. Here is what I have so far that is not working:
USERS := @DbColumn(“”:“noCache”;“”:“”;“AllUsersByName”;1);
WOR_REQ := @Prompt([OkCancelList]; “Select A User”; “Select The User You Are Opening This Work Order For”; “”; USERS);
FIELD RequestorName := @DbLookup(“” : “nocache” ; “” : “” ; “AllUsersByName”; WOR_REQ ; 1);
FIELD RequestorManager := @DbLookup(“” : “nocache” ; “” : “” ; “AllUsersByName”; WOR_REQ ; 3);
FIELD RequestorPhoneNumber := @DbLookup(“” : “nocache” ; “” : “” ; “AllUsersByName”; WOR_REQ ; 5);
FIELD RequestorTeam := @DbLookup(“” : “nocache” ; “” : “” ; “AllUsersByName”; WOR_REQ ; 4);
FIELD RequestorMailcode := @DbLookup(“” : “nocache” ; “” : “” ; “AllUsersByName”; WOR_REQ ; 6);
FIELD RequestorNotesAddress := @DbLookup(“” : “nocache” ; “” : “” ; “AllUsersByName”; WOR_REQ ; 7);
FIELD RequestorSMTPAddress := @DbLookup(“” : “nocache” ; “” : “” ; “AllUsersByName”; WOR_REQ ; 8);
@Success
When I preview the form in the Notes client, no Prompt box appears and it goes to the first line in the Tab Order. So I am apparently missing something. Given that I am a newbie at this whole Notes/Domino development thing, I am sure it is my own ignorance preventing this from working. Any help would be greatly appreciated! Thank you!
Chris Ivey
Verizon Data Services
Enterprise Network Support Services
Network Management Tools Group
Temple Terrace, Florida