definition
U gave UR definition of the problem initially:
... need to make one among the field display based on a condition.
A solution was given, which in turn the problem changed.
...could be more combination of display statements
So is a static display statement required or not...
This is simply procedural programming.
U have a standard display procedure:
DO: /* display */
DISPLAY
whateverFeld
whateverFeld
whateverFeld
END. /* display */
This can be an include, .p or whatever
In UR code have a condition check:
IF whatever checking for .....
run...
????
Why would you B using the Advanced Business Logic (ABL) of Progress to write such a noddy, simple nothing to do with business program?
You have been provided with a solution, though this is something more suitable to BASIC programming.
Greetings,
Yes this is a problem with the 4GL/ABL that has been around like 4 ever.
The only solution is to use work arounds.
You have identified that you do not wish the overhead of having a special <blank> entity in the list items. Another workaround is having an additional widget on the...
As previously identified,
A combo box widget can only display values that are in the item list.
This IS still a pain, it is still here in OpenEdge - though there are work arounds.
By having a blank value as a list item to select from works, though additional validation could be required. It...
Simply inside a block:
DO TRANSACTION:
DELETE record
END. /* transaction */
FIND another record NO-LOCK NO-ERROR
......
......
......
UR normal transaction block to delete the record.
Then immediately after the delete, find another record.
This will ensure the deleted record...
No sorry, this is NOT facilitated with Progress.
U also failed to include the version of Progress this is using.
Is it Progress (6-8), Progress GUI (8+9) or OpenEdge ??
It does not matter, that function is not facilitated with any version
Lets break it down.
In the window with the control, comment out the code that initializes the attributes.
Just have a blank control in UR window, sat there.
Then uncomment code periodically.
Try loading a different file, even if it is the same file just with a different filename - call it...
Rule of thumb and good practice.
U should only really use FOR / FOR EACH with a query.
Also do U really require a FIND statement, couldn`t a CAN FIND be used here.
Does the record have to be in the buffer?
You did not declare what version this is for, though for a generic answer for a GUI environment make this fit:
You need a localVariable to store the original displayed data, or direct access to database field / smart row object temp table value which ever method this is cField. Populate...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.