Region:
Canada
| 01653 |
Ronald Demsey |
10002 |
Bob's Warehouse Store |
2005-01-01 |
124 |
10002 |
| 01659 |
Brad |
55555555 |
Brad And Co |
2005/12/01 |
888 |
9000 |
| 01681 |
Brad |
cusno1 |
brad co |
2005-11-20 |
11 |
300 |
| 01685 |
sham |
45534422 |
Stephen |
2005-12-05 |
23 |
34000 |
Region:
East
| 01678 |
Francine Beauchemin |
1212 |
Beauchemin Bakery |
2005-11-19 |
12 |
1212 |
| 01682 |
Scotty Boyd |
67676 |
American Iron Metals |
2005-11-20 |
2 |
2 |
| 01683 |
Bryce |
12345 |
Stiffle Inc. |
2005-11-21 |
10 |
1111 |
Region:
Europe
| 01691 |
Bob Smiley |
121222 |
Empire Steel (Berkshire) |
2005-12-08 |
122 |
1212 |
| 01694 |
Ravin Slackstrop |
123456 |
Branch sttel |
2005-12-08 |
|
|
| 01701 |
|
WGV |
QFVGQWEFG |
2006-04-27 |
QEFBVGQEFBGV |
555 |
Region:
Internatl
| 01651 |
Sergai Vladici |
1001 |
Bob |
2005-11-12 |
100 |
10000 |
| 01652 |
Mark Smith |
29292 |
Restaurant Europa |
2005-11--14 |
10 |
1122 |
| 01661 |
Dave Morrisson |
1212 |
Harry's HideAway |
2005-11-22 |
10 |
100 |
Region:
NorthEast
| 01692 |
|
|
|
2005-12-08 |
|
|
| 01696 |
Test rep |
11111 |
Customer name here |
2005-12-15 |
25 |
2500.0 |
| 01697 |
jkjk |
1111 |
1111 |
2006-01-26 |
111 |
111 |
| 01698 |
Joe |
|
|
2006-02-06 |
|
|
| 01699 |
dan |
8888 |
Dan |
2006-02-14 |
1 |
1212 |
| 01700 |
brad |
12345 |
Brad inc |
2006-02-28 |
50 |
5000 |
| 01703 |
ss |
|
|
2007-01-17 |
|
|
| 01704 |
|
|
ESKAY |
2007-06-27 |
|
|
| 01705 |
luca |
12345 |
pippo |
2007-06-28 |
20 |
200 |
| 01706 |
harry |
1 |
fred |
2007-08-17 |
100 |
123456 |
Region:
SouthWest
| 01650 |
Kevin R. Touchette |
99999 |
Test Customer |
2005-12-01 |
23 |
1230.0 |
| 01654 |
Francine Beauchemin |
12121 |
House of Pancakes |
2005-11-12 |
120 |
12 |
| 01664 |
Harry Smith |
1212 |
Bob |
2005-11-19 |
11 |
1212 |
| 01695 |
brad |
123456 |
Greatr Co |
2005-12-09 |
50 |
5000 |
| 01702 |
|
11111 |
dddd |
2006-05-19 |
dasd |
a |
Creating collapsible/expandable HTML text with RPG and javascript
As web toolkits like CGIDEV2 and other web products
are finding their way into iSeries shops, it is changing
the way data is presented and distributed in these organizations.
In this example, I illustrate the use of a small javascript function
that can create collapsible/expandable sections in an HTML document.
The interesting feature, that this example illustrates, is the
ability to hide HTML text within the document until the user requests
it with a click of the mouse. When clicked, the text is revealed.
In this way the user does not need to access the HTTP server for
each request. It also makes it possible to present many pages of
data without initially overwhelming the user with details.
The document itself is generated dynamically using RPGLE with CGIDEV2.
It may be then viewed on a web server or emailed to designated
recipients.