-
Richard Hartman
- PowerBuilder
- Thursday, 13 March 2025 03:04 PM UTC
When writing windows programs with c++, the text fields have an event called "TextChanged". You can write a function to do things when the text changes in the form.
In Microsoft Access, the controls have a similar event, called "After Update".
I can not find any similar events tied to controls in Powerbuilder.
I did insert/object/Single Line Edit and got a control called "sle_1".
The properties box has tabs for "General" "Font" and "Other". No tab for events.
The _real_ problem is deeper, but this is the simplest case, being a single text field.
In the actual problem we have a tab control (actually "tab_resedit" if that matters). The first tab seems to contain a datawindow (not a window or a form of any sort). And in the working version when we modify a certain field, other fields get updated as well. However in the broken version these updates do not happen and I do not know even where to begin to look because I don't know how the updates were happening in the first place. There do not seem to be any sort of "on update" type events that I can find.
( I inherited this project, and know practically nothing about Powerbuilder. )
Here is the form showing the tab control, on the first tab:
Here is the datawindow that is in the first tab:
When this works, if you update the value at "alt_scheduled_start", the value at "cstart_date" (among others) gets updated (follow the arrow). But this is not working and I do not know where to begin looking because I see no sort of "on changed" event for "alt_scheduled_start". OR, at the higher level, for "tab_resedit" when looking at the window layout.
How does Powerbuilder handle doing things when a field on a form is modified?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.