23
Mon, Dec
3 New Articles

Weaving WebSphere: Screen Designer

Development Tools
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Strap in, kids; this is going to be a fast ride. The new Screen Designer included in WDSC is just chock full of features, and I want to show you as many as possible within the space we have here.

The Status of Screen Designer

I've avoided writing about the Screen Designer until now because of the controversy surrounding its availability within the WDSC product suite. In case you've missed the drama surrounding the release of WDSC (as reported by yours truly in a previous article), IBM caused quite a furor by including the technology preview for the Screen Designer in only the Advanced Edition of WDSC. Together with the spate of confusion surrounding the terms "unbundling" (EGL) and "deprecating" (CODE Designer), nobody was quite sure what the future of the new GUI-based SDA replacement was going to be.

Well, this kick-started a massive campaign to email IBM and tell them just what the System i community thinks: If they want us to use WDSC, then we need an SDA replacement as part of the base product. Well, I'm happy to say that IBM actually listens, and all of us who complained received a nice letter that said, in part:

"And, while we are currently in the process of evaluating our future packaging strategies, it can be confirmed that when it is ready for 'general availability,' we're committed to delivering the 5250 screen designer as a part of our entry-level System i development tools, like WDSC Standard Edition. Your input has come at a timely juncture, and will be valuable for us as we evaluate our current and future strategy. Please continue to provide feedback to This email address is being protected from spambots. You need JavaScript enabled to view it.."

Well, bully for them! It seems that maybe, just maybe, the System i community can occasionally get someone's ear. It's unfortunate that it requires this much action to get something as seemingly sensible as a screen designer, but at least we know that IBM hasn't completely forgotten the folks who actually write code for the platform. And while there is still no official word on long-term packaging strategies for the WDSC tool suite, after talking to folks in IBM, I'm pretty comfortable that we're actually going to see some reasonable options that will take into account the realities of System i developers. Stay tuned for more on that.

But for today, let's dive right into the good stuff, shall we?

Welcome to the Future!

I don't want to dwell on the past. I want to move ahead. However, I do want to at least introduce you to the predecessor of Screen Designer, which is the CODE Designer component of the CODE/400 product. The primary reason I bring this up is because the CODE Designer is still the only tool you have today to design display files via the workstation. Yes, WDSC's Screen Designer will be the replacement, but it's not soup yet; as I'll show you a little later, it still needs a lot of finishing. So at the risk of being a little bit retro, let me give you just a quick glimpse of the CODE Designer.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140700.png

Figure 1: Here you see a simple subfile display in the CODE Designer tool. (Click images to enlarge.)

Figure 1 shows the CODE Designer, and as you can see it's got kind of a late '90s feel: lots and lots of button with very colorful icons. While certainly not a bad interface by any means, it is a little busier and a bit more cluttered than the sort of interface we see in more modern applications. For a contrast, take a look at the Screen Designer for the same display file in Figure 2.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140701.png

Figure 2: This shows the same display file in WDSC's Screen Designer.

I'll get into more specifics momentarily, but I don't think I'm off base to say that the new look is cleaner than the old one. And while this may be in part because I've become very accustomed to the whole Eclipse IDE look and feel, I think the new interface has a number of features (the palette on the right, and the sliders for magnification and grid opacity) that make it feel more up-to-date.

The sharper eyed among us may have noticed something, however, that points out the "preview" nature of this offering. The title and column headings in Figure 2 are green, although they are white in CODE Designer. The fields are actually defined with the keyword DSPATR(HI), which should show them as white rather than green in a color display; the representation by CODE Designer is correct. It's a relatively insignificant issue, but since the whole point of the tool is to design display files correctly, reproducing the proper behavior of attributes is essential. I'm not pointing fingers here; I'm sure the tool will be more completely polished before its general availability. But this sort of glitch reinforces the preview aspect of the tool and explains why it displays the text "Warning: The technical preview is not to be used in a production environment."

On to the Features

The Screen Designer is actually only a part of the whole package. One of the very cool things about WDSC is that various programming tasks can share portions of the tool. For example, the Properties dialog is used to maintain the various values associated with an element of the display file, while the Outline view shows a hierarchical view of the display file (similar to that used by CODE Designer).

There is one downside to this; you may have to move the views around a little bit in order to get a really usable display. If you look at Figure 2, this is the most comfortable arrangement of views that I've found; it requires about 1020x975 pixels, so it will work only on a fairly large display, but it does work quite well.

Screen Association

OK, let's start breaking down some of the really cool stuff that's in the tool. First off is a feature that will be old hat to CODE Designer aficionados but will be a boon to SDA developers: the concept of a "screen." A screen allows you to group multiple record formats together so that you can see how they look displayed at the same time. You can sort of do this in SDA, although it's really quite cumbersome. It's a lot better in CODE Designer, and Screen Designer uses a similar approach: You are able to define arbitrary screens and then add one or more records to the screen. Then, when you edit a screen, all the records can be displayed at the same time.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140702.png

Figure 3: This is the screen association control.

I hid this control (you do this using the triangular widget in the upper left corner of the control) in the original screen, because it takes up a lot of room and you really don't need to use it often. You primarily use it to relate your records one time or to add or delete records, and then you won't need it again. And as you can see, you start with a default screen named "All records"; this screen is always available and contains all the records in the display file. So in many cases, you won't need to use this control at all.

The Screen Design Panel

The design view of the Screen Designer is quite a powerful panel. Take a look at it in a little bit of detail.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140703.jpg

Figure 4: This is the actual WYSIWYG design panel.

There are a number of components to this panel. The most straightforward portion of the panel is right in the middle: the display itself (currently in black) and the palette on the right, which is used to add new fields to the display. Adding fields is done the same as in any other visual builder: Click and drag something from the palette onto the display. I'm not really keen on the UI right now; the drop process simply drops a "default" instance of the object onto the screen. For example, when you drop a text constant onto the display, it drops a literal with the value "Text constant." I think I might prefer an option to have a dialog pop up that lets me key in some information about the field prior to dropping it. That nitpick aside, the basic editor is quite straightforward.

You might also notice that the screen as displayed shows only the top of the screen in color. That's because the top is the "active" record (that is, the one actually being edited). The other records are shown in gray. Note also that all fields have "default" values to show you the size, the same as SDA. Both of these features can be turned on and off via the toolbar on the top of the display.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140704.jpg

Figure 5: The toolbar at the top of the display screen controls various features.

In addition to the two features indicated, other capabilities include making the text brighter, displaying help text areas, switching between color and black and white, and turning the grid on and off.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140705.jpg

Figure 6: The sliders on the bottom handle the size of the text and the grid opacity.

This brings us to the tools on the bottom of the display. Two sliders are available. The slider on the left controls the size of the text, with two convenience buttons: one to jump to 100% text size, the other to expand to the available width of the workbench. The right slider is a very interesting one: It controls the "opacity" of the grid. The grid starts as invisible, and as you increase the opacity, it becomes first a series of dots and then eventually an actual grid.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140706.jpg

Figure 7: The opacity in the grid is variable.

As you can see, the grids can go from subtle to quite conspicuous. If you go much over the 65% shown, the screen is fairly unreadable. I usually leave the grid at 20% and then turn it on and off using the (rightmost) tool button from the top toolbar.

You might also notice at the very bottom of the design panel three tabs marked Design, Source, and Preview. These are the same tabs used in the browser-oriented designers (such as the HTML editor). The Design tab is the WYSIWYG tab; that's the one I've selected for these screen shots. The Source tab switches to the standard text-oriented LPEX source editor for DDS.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140707.png

Figure 8: This is the standard LPEX editor for DDS.

This view is equivalent to using SEU to edit your display file, although it does have a little more capability, including color coding and rudimentary syntax checking (the editor will ensure that your keyboard shift is a valid value, but it doesn't edit the keywords for a field).

Properties

One thing I'm still struggling with is whether or not I like the use of the Properties dialog to edit the field. The Properties dialog is not technically part of the Screen Designer; it's used by pretty much every part of WDSC to edit the properties of a selected object. From that standpoint, it makes perfect sense to use the Properties dialog to edit a field's attributes. And whoever is architecting the Screen Designer has definitely gone to a lot of trouble to develop the Properties dialogs (I particularly like the way the Attributes dialog is handled; it allows you to condition combinations of attributes, something that even CODE Designer couldn't handle). It's just that I always find myself double-clicking on a field and expecting a dialog to pop up. But once I break myself of that habit, I think I'll probably be quite comfortable with the Properties.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140708.png

Figure 9: The Attributes tab of the Properties dialog for a field is very powerful.

In Figure 9, you can see the Attributes dialog. I can select one or more attributes to build a keyword—in this case, "DSPATR(HI RI)"—and then assign indicators to that combined set of attributes. The alternative is to apply the same conditions first to DSPATR(RI) and then to DSPATR(HI); in more complex scenarios this becomes very cumbersome.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140709.png

Figure 10: The Properties view also works at the record level.

Figure 10 shows the Properties view for a subfile control record. Again, the tabbed nature of the Properties tab is philosophically the right way to go for WDSC; I'll get used to it eventually. This is one area where the tool still need some work; quite a few of the keywords are still in "preview" stage. But once this part of the tool is completed, I think it's going to be a big productivity boost especially for newer programmers (but even for older dogs like me who don't know all of the fancy new keywords!).

Outline

As a last taste of the new tool, let me return to the Outline view. Like the Properties view, this view is not technically a part of the Screen Designer; instead, it's a common view shared by many other components of the tool. And as it does in all those other components, in the Screen Designer, the Outline view acts as a superb navigation tool. It's a hierarchical view of the entire display file, which can be expanded down to the individual characteristics of each DDS specifications, as shown in Figure 11.

http://www.mcpressonline.com/articles/images/2002/070511TM%20(WW)%20-%20Screen%20DesignerV3--05140710.png

Figure 11: This is a maximized version of the Outline.

You can drill all the way down to individual keywords, and as you do the appropriate line or object will be highlighted (depending on whether you are in WYSYIWYG or Source editing mode). But when you are using the Screen Designer, the Outline view has one important additional capability: It will activate a record.

Remember how back in Figure 2 the subfile control record was shown in color, while the other records were displayed gray? That's because the subfile control record was the active record. All you need to do to make a different record active is to click on it in the Outline view. That makes it very easy to switch, for example, between the subfile and its subfile control record (as we often have to do when moving a column). And of course whatever you click on in the Outline, its properties show up in the Properties view. This is just another example of the polished nature of the tool already, even though it's not yet ready for production editing.

So Is It Soup Yet?

No, the Screen Designer is not soup yet. There are a couple of little quirks in the display, such as the wrong color for literals with DSPATR(HI), and quite a bit of additional work still needs to be done to support all the keywords. But once this tool is complete, I will be very hard pressed to find reasons why you would still want to use SEU, SDA, or even CODE Designer to maintain your display files.

Joe Pluta is the founder and chief architect of Pluta Brothers Design, Inc. and has been extending the IBM midrange since the days of the IBM System/3. Joe has used WebSphere extensively, especially as the base for PSC/400, the only product that can move your legacy systems to the Web using simple green-screen commands. He has written several books including E-Deployment: The Fastest Path to the Web, Eclipse: Step by Step, and WDSC: Step by Step. Joe performs onsite mentoring and speaks at user groups around the country. You can reach him at This email address is being protected from spambots. You need JavaScript enabled to view it..

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: