Got real newbee-questions I think...

MasterYin

New Member
Hello everyone,
to get a new job the owner want to see me learning progress. I studied business-informatics so I think I am a quite good developer in different languages like php or java. but until now I never had contact with progress.
I allready got the Data Dictonary creating a DB for me it has a table called Tester with the fields prename and lastname.
I also got a GUI with the appBuilder containing FILL-IN-1 with label "prename", FILL-IN-2 with label "lastname" and a Combobox that is connected to the field prename.
so far so good.
now i put in a button with the "action"
Code:
Create Tester.
Update Tester with side-label.
Release Tester.
But after this nothing changed...
How to get the values from the input-fields into the Database? And later on how to get them back to enable an "edit-Mode" for the Tester-Object?

I tried a realy long time to get it by my own but I don't have any working ideas at the moment...
Thanks for your Help

Robert
 
Hi, Robert.

When data is accepted by Progress into fields on the screen the data goes into what's called the "screen-buffer" - not into the database. The idea mainly being to keep the data away from the database until your program logic has been able to carry-out whatever validation checks that might be appropriate.

When you are ready to move the data from the screen-buffer to the record-buffer (database) you use the ASSIGN statement.

For example, if you have accepted data into prename and lastname you can move the values to the database with:

ASSIGN prename lastname.

I suggest you have a look at the Progress Programming Handbook - at the chapter entitled "Database Access". The Progress 9 version is chapter 9.

I hope that helps.
Ron.
 
Indeed, you are NOT utilzing the product appropriately.
You are confused with the development environment (ADE) Expecting this to be run time. You obviously need to attend training on the product.
Though, the 4GL has now gone, long live the ABL and OpenEdge.
 
I suggest you have a look at the Progress Programming Handbook - at the chapter entitled "Database Access". The Progress 9 version is chapter 9.

Hey Ron, first of all a big thanks... With your help I got a better impression of how progress uses the database.
And a much larger thanks for the hint with the programming Handbook thats what I searched for a long time.

Nice weekend.
 
Back
Top