Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In single page subfile,if I select the mutiple options in 1
page and without pressing enter,I press rollup key
(pagedown).In such case how I can handle it in rpg becasue
in single page we have to handle it in pgm. It would be
helpful if any one answer with coding

Answer Posted / swetha p rao

We can handle this using physical file RRN value.When user
enters some options in the first page and takes a pagedown

Read the changes on the subfile using ReadC ie; read the
option entered for that record and save the physical file
RRN value for that record in a temporary file along with
option (You can get RRN value by declaring File information
data structure for that physical file)

When you load the records in the subroutine bfore writing
the values to subfile ,Chain the temporary file with RRN
value and if the RRn is present in the temporary file move
the corresponding option to the Subfile options.

Check this temporary file evrytime you load the records on
subfile and update this temporary file evry time there is a
chnage on the subfile options.

Clear the temporary file when the user confirms delete or
when user doesnt want to delete.

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we override a file during runtime in rpg?

1137


what is kids-rpg?

1058


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1948


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

1123


do you use message subfiles? What are the necessary keywords required coding a message subfile?

1076


How would display prime numbers using CL program?

6249


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

2352


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

892


are there any useful c runtime apis that I can call from rpg iv?

1114


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2575


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1985


How Chain operation copies the record's data to the input buffer for the program?

1535


What are the types of identifiers?

969


what is file information data structure?

2113


What is ment by record level identifier?

1085