I am a beginner to Progress GUI development, and am trying to find the answer to this presumably easy task.
I have a Window with three components; a button, a "Fill-In" (text field) and a SmartDataBrowser. How can I e.g. read the contents of the SmartDataBrowser and put e.g. all values in first-column into the Fill-In when clickin the button?
myFillIn:SCREEN-VALUE = h_dynbrowser.... etc???
Please help.
I have tried something like this:
myText:SCREEN-VALUE = BstHd.FNr:SCREEN-VALUE IN BROWSE h_dynbrowser.
but it says it can't find browse h_dynbrowser...
I have tried something like this:
myText:SCREEN-VALUE = BstHd.FNr:SCREEN-VALUE IN
BROWSE h_dynbrowser.
but it says it can't find browse h_dynbrowser...
The reason it says it cannot find browse h_dynbrowser is because h_dynbrowser is a handle to the dynamic browse and you are trying to reference it as a static object.
What you need to do is get the handle of the data source of the browse (the SDO or the query associated with the browse), and then the handle to the buffer-field you are interested in, followed by the buffer-value of the buffer-field..
HTH
Kevin
Ok, I think I get what you mean.
Could you provide some code examples?