View Full Version : CSRLOC DDS Keyword
S.Mildenberger
03-28-2002, 11:54 AM
Look at this article, which comes with code. The article is on eliminating indicators when using display files but it includes the techniques you want. http://www.mcpressonline.com/mc/.220d4d7d.21b0fbc6.214a297b Scott Mildenberger
Guest.Visitor
04-01-2002, 05:21 AM
Thanks Scott, I readthe article and I think this will work for us. Cheers Mark
Guest.Visitor
04-05-2002, 08:33 AM
Hi,, I downloaded and tested the RTNCSRLOC program. The only problem that I noticed is that it does not work for entry subfiles. Ex. If there is a field in error in the third subfile record, the RTNFLDLOC service program returns the field coordinates for the first subfile record. i.e. If the Purchase Order # was incorrect on the 3rd subfile record the procedure would return the coordinates of the PO field, but on the first subfile record. Is there something I am missing here, am I correct that this procedure does not work for subfiles(in terms of knowing the position of the subfile record I am on). I thought about it,, and I can easily write another procedure to run after this to calculate the proper ROW #, by passing the subfile relative record number, the subfile page size and the ROW and COLUMN. This procedure could then adjust the ROW number accordingly so that you would be positioned on the right record. I am just wondering if this procedure can handle positioning for entry subfiles before I go out and write one. Thanks Mark
Guest.Visitor
06-09-2003, 12:45 PM
I see you downloaded the RTNFLDLOC program. I would like to download it as well but can't seem to find it on this site. Would you happen to know what I need to do to download it? Or could you provide me with a copy? Thanks. P.S. I am registered.
Guest.Visitor
06-10-2003, 05:34 AM
Hi,, What I am trying to accomplish is: When a user is entering data on a screen and they press any function key OR enter, I would like to keep the cursor in the same position it is currently in. I do not want the cursor to return to the first input capable field on the screen. The only exception is when I am validating information on the screen. In this instance I want to position the cursor to a field in error. I am thinking about using the CSRLOC DDS Keyword to try to replace using the DSPATR(PC) with an indicator in order to position to particular fields. My Question is, is there a way in an RPG IV program to determine what a fields position is, so that you could set the CSRLOC fields accordingly. I do not want to hardcode fields positions in the program. If I use the CSRLOC and the DSPATR keywords together I can accomplish this, but I would rather use only the CSRLOC method instead of mixing the two. Thanks Mark
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.