.st0{fill:#FFFFFF;}

How to make clickable menu hyperlinks in BCD Presto 

 May 16, 2017

By  NickLitten

BCD Presto – Software Green Screen Modernization

aka – AS400 iSeries 5250 Screen to Web Conversions

BCD Presto is probably my favourite screen modernization tool. It has a very simple and clean screen editor. It’s reliable, fast and intuitive. Most importantly, when I have those “what is the best way to do this?” questions the BCD helpdesk folks are helpful and super fast in their responses: They really have gone above and beyond in helping me to workout some of the not-so-obvious screen tweaks I have wanted to do.

Running Presto in automatic screen modernization mode nicely picks up each green screen and automatically apples the basic skin layout (the webpage theme I have chosen). This shows a webpage to the user in real time. It has some core rules like “recognize this is a menu and convert all menu options into clickable links”. This works great but, for one of my clients, some of their menu links are alphameric — for example WO means “Load Works Order”. These are not recognized by the “Presto Rules”. I could change the rules to include that, but since this is only a handful of menus I can edit the page instead.

Using javascript to make links clickable in AS400 menus

This is the code you need to add for the CLICK action:

jQuery("#f0").val("WO");
SendRequest("EN");

obviously, you will need to change the #f0 to the name of the input field on  your menu!

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cff50":{"name":"Main Accent","parent":-1},"a344d":{"name":"Accent Transparent","parent":"cff50"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cff50":{"val":"var(--tcb-skin-color-0)"},"a344d":{"val":"rgba(46, 138, 229, 0.85)","hsl_parent_dependency":{"h":210,"l":0.54,"s":0.78}}},"gradients":[]},"original":{"colors":{"cff50":{"val":"rgb(0, 178, 255)","hsl":{"h":198,"s":1,"l":0.5}},"a344d":{"val":"rgba(0, 178, 255, 0.85)","hsl_parent_dependency":{"h":198,"s":1,"l":0.5}}},"gradients":[]}}]}__CONFIG_colors_palette__

Get In Touch

Iā€™m always looking for awesome input, feedback and critique!

>