26
The RPG Dude The RPG Dude and Open Display Files Pascal Polverini 2 GUI Properties Control (DOM Control) Take a seat while the meeting starts…

The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

Embed Size (px)

DESCRIPTION

RPG is a time tested development language. Open Access for RPG is supported by IBM and IBM i as an integral component to expanding business value and success. looksoftware and RPG Pioneer Pascal Polverini amongst other platform experts have developed Open Display File Technology to power your mobile and application modernization efforts on IBM i. Explore DOM control, layout and attributes for GUI in this episode.

Citation preview

Page 1: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG DudeThe RPG Dudeand Open Display Files

Pascal Polverini

2GUI Properties Control

(DOM Control)

Take a seat while the meeting starts…

Page 2: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

RPG preamble

To design an interactive program you have to create a display and then create a RPG pgm to reference it

1

You can use SDA, RDp or a third party tool to design the display

You can use PDM or RDp to code the RPG

2

3

Page 3: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

RPG preambleTo design the display:

• You can design a display within a 5250 environmentOr • You can design a rich open display (mobile, browser, desktop)

In 5250 environment, the design possibilities are limited and a DDS format is directly produced for the display description.

In open environment, the design possibilities are wider as open formats can be used for the display description to incorporate rich UI elements and capacities.

Page 4: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

RPG preambleDisplay layout/attributes control

5250

DSPF

DDS

RPG

indicators

Open

DSPF

DOM

?

Page 5: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

RPG preambleDisplay layout/attributes control

Open

DSPF

DOM

?

The control of the DOM could be:• Local (in JavaScript for

browser)?• Central (in RPG)?

• Monitored with another field, visible or hidden?

• Monitored with indicators?

Page 6: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

RPG preambleDisplay layout/attributes control

The control of the DOM could be:• Local (in JavaScript for

browser)• Central (in RPG)

• Monitored with another field, visible or hidden

• Monitored with indicatorsBad because indicators are limited in meaning and numbers.

Bad because business logic will be split in different locations, central and local: hard to maintain.

Page 7: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

RPG preambleDisplay layout/attributes control

The control of the DOM could be:• Local (in JavaScript for

browser)• Central (in RPG)

• Monitored with another field, visible or hidden

• Monitored with indicators

Ideally what we want is the possibility to control the all DOM directly in RPG with simple fields.

Like “This RPG field controls the address of an image” or

this other controls the visibility or focus of a tab or the content of a combo-list!

Page 8: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

Now, let’s talk aboutThe RPG Dude

-and particularly about

His Open display file perspective

Page 9: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

You remember him…

Still the same with so many applications to maintain and to develop…

Page 10: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

Here is his boss, who loves GUI properties control, but loves even more, Market properties control!

Page 11: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

And before going to show you the customer…

I will present you…

Page 12: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

The GUI Dude!

Who is hidden here, but he’s got the power to it make rain or shine for your UI app!

Lets call him the “Hidden GUI Dude”

Page 13: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

Then, our RPG Dude has to control the all DOM (Any display fields or control layout/properties)…

With simple fields in RPG!

?

Page 14: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

And this, without him having to do weird things…

Or to mutate himself

Page 15: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

“Venus Vedi Vinci” ?

Nope…Venus and you don’t want to Vedi!

Or to charm anyone…

Page 16: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

Does such a solution exist?

To use simple, native RPG fields… to control any GUI properties. Could it be the almighty DOM ???

Page 17: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

Well, we have our Hidden GUI Dude!

The Dude who’s got the power to make

rain or shine ?!!

Page 18: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

And he had an idea!

Page 19: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

And he had an idea!

Create mapping between your RPG field and the GUI property you want to control.

Page 20: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

For example:

My RPG field prodImagemapped to myImg.Picture which represents the Address property of the image myImg.

Page 21: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

For example:

My RPG field prodListmapped to myCombo.List which represents the List property of the combo-box myCombo.

Page 22: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

For example:

My RPG field tabFocusmapped to myTab.ActivePageIndexwhich represents the index of which tabPagehas the focus.

Page 23: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

For example:

A default value can optionally be indicated but the point is that the RPG can control the property dynamically and at every I/O.

And the RPG could also read any property value!

Noooo really? Wow !!

Page 24: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

In the next episode, we will talk about DB reference !

Page 25: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

The RPG Dude

It should be a series on TV now?

Didn’t they say they were going to show us the customer?

Page 26: The RPG Dude on Open Display File Technology for your IBM i - GUI - DOM Control

www.looksoftware.comwww.looksoftware.com

Learn more about Open Display Files:

View a recent webinar on Open Display Files: http://go.looksoftware.com/open-display-files-deep-dive-slideshare

Learn about our solution with Open Display Files: http://go.looksoftware.com/version-101-info-page-slideshare