Solved

How to program in RPG/400 using a DDS with multiple WINDOWs

Posted on 2003-11-05
2
1,015 Views
Last Modified: 2007-12-19
I'm doing this because I couldn't find a way to control the TAB order on a DDS screen.  There are 3 sections on my screen (the top half of the screen is divided into 3 "boxes" side-by side and each box contains some fields).  I wanted to be able to TAB through the fields in each section before TABBING to the next section.  I couldn't find a way to do that, so I'm trying to use WINDOWs for each section. . .

I have a DDS screen with 3 WINDOW records and 1 regular record.  I want to display all 3 WINDOW records and the regular record all at once.  The 3 WINDOW records do not overlap each other.  However, the regular record occupies the entire screen and is overlapped by all 3 WINDOW records.  All 3 WINDOW records and the regular records have Input/Output (B) fields.  I want the users to be able to enter data in all 4 records by TABBING through each WINDOW record in order, then the regular record.  Right now, the regular record gets displayed with no WINDOW records.  Then I press the ENTER key, and the first WINDOW record gets displayed (overlayed on top of the regular record).  Then each time I press the ENTER key, the next WINDOW record gets displayed.  I want them to come up all at once.  

My WINDOW records are defined like this (I get confused with all the possible parameters (OVERLAY, INZRCD,...)):
A          R WINDOW1                                    
A                                      INZRCD          
A                                      OVERLAY          
A                                      WINDOW(5 4 8 22)

My RPG code currently looks like:

C                     WRITEWINDOW1                    
C                     WRITEWINDOW2                    
C                     WRITEWINDOW3                    
C                     WRITESCRN1                      
C                     READ SCRN1                    96
C                     READ WINDOW1                  96
C                     READ WINDOW2                  96
C                     READ WINDOW3                  96

0
Comment
Question by:satoj
  • 2
2 Comments
 
LVL 14

Expert Comment

by:daveslater
ID: 9692790
Hi
you can use the FLDCSRPRG key word in DSS to control the TAB

Dave
0
 
LVL 14

Accepted Solution

by:
daveslater earned 250 total points
ID: 9692798
yet another typo

you can use the FLDCSRPRG key word in DDS to control the TAB
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Open windows file share from client access 18 821
iSeries Library Syncing 3 166
Can I insert a row into a MS SQL table from a SQLRPGLE program? 5 124
IBM i - CL Array 5 91
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now