AS400 Soft Menu

2505 pts.
Tags:
AS/400

I would like to design a menu in such a way that when we want to add/remove a menu or submenu, we should not do any code change. currently  each menu is composed of dspf, msgf and Menu which needs code change when we add/remove a menu. I am looking for a softmenu(configure menu without code change) which displays option to users based on his authority. If A can see 1-10 options, B may see only 1-5. Please advise.



Software/Hardware used:
RPG

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta

    There are products available that provide 'soft menu' functions. Your mention of "like to design" indicates not wanting a product. Yet it costs developer time to create a 'soft menu' function as you want, most especially if you want it to protect against flaws such as access to unauthorized objects. Commonly, developer costs exceed purchase or licensing costs.

    But I've developed 'soft menu' functions myself, so I can understand the choice.

    ...displays option to users based on his authority.

    What does that mean? Who makes the authority decisions? How are thinking the menu function will know which authorities are important? How will the menu know what words to display and what command to run? If you create a database, how will it be updated? Will whole new groups of records be added for new employees? If an employee leaves, will old menu records be deleted? (Who will be responsible for maintenance of the tables?) Who will have accountability for the menu options? (If an incorrect option is created or deleted, who gets in trouble? Who fixes files that are corrupted by allowing incorrect options?)

    About the only advice I can offer is to assign menu options by role rather than by user. Then have a table that associates roles with users.

    Are you thinking of a single menu with many possible options? Or will you have many menu and each menu will have a few options? How will your function move from one menu to another menu?

    If a menu option fails and sends an *ESCAPE message, what will your menu function do to avoid crashing? Will you handle recursive options? (If menu A leads to menu B which leads to menu C which leads back to menu A, what will happen?)

    There are many more questions than answers.

    Tom

    125,585 pointsBadges:
    report
  • RamvishakRamesh

    Display options based on users - This means Some users are meant only to generate some Audit report. Not to do any transactions. So only those menus which is responsible for Audit reports should de displayed to those users. Yes, it will be better to group it based on the department or role rather than merely by UserID.

    Who makes the decision? IT service team will decide. They will be knowing who belongs to Finance, who belongs to compliance, like that. Accordingly only finance or compliance Menus will be displayed to them.

    What words to display and what commands to run. I want suggestions on the method to be followed here. We already have a working application. So we can take the 'words to display' from there. We also know which program is being invoked when we select a menu in the present application. I am thinking about having a database which will have the menus and the submenus and also the programs that should be called. We can have a maintenance program for this data base so that  the IT service team itself can handle the request to add/remove an option instead of code change. However I am not sure about an efficient approach to implement this. How to structure the Data base, One menu can have multiple submenus inside. Those submenus can again have some more submenus inside. I am stuck with the Data base design to apply this. Appreciate your suggestions and time you took to respond to my query.

    2,505 pointsBadges:
    report
  • RamvishakRamesh

    Any suggestions?

    2,505 pointsBadges:
    report
  • TomLiotta

    Any suggestions?

    It's not clear what "suggestions" can be made.

    Apparently, you'll create some file that contains users, commands and menu text. Your program will retrieve a list of menu texts and commands based on user and display some screen image built from texts. Whatever the user chooses will be linked to the associated command. Your programming will execute the associated command.

    Until you create something and run into a problem, there doesn't seem to be much more to add. What kinds of "suggestions" are you looking for?

    Tom

    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following