Q
Problem solve Get help with specific problems with your technologies, process and projects.

Develop a generic function for dual control

How can I develop a generic function for dual control (authorization) purpose. Example: Certain fields value are considered valid once they are approved by a supervisor or other user?

Depending on how you want to validate the authorization, you can either use OS/400 password validation, or a file. A simple call to a program passing file, field, and current user should be validated as to the current user's authority to the field. If that fails, a call to a second program-passing file, field and pass or fail would do the trick. The second program would require entry of the supervisor's profile and password in order to pass authorization. You can use a small file with supervisor's profile and the authorization password, or an OS/400 API to check the password.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close