B
Bazilby
Guest
I have a Browse object in my application, when a row is selected it runs code that outputs the values in a temp-table to an editor.
However, when there is only one row in the temp table, the code will not run. Even with multiple rows, selecting the first row does nothing. I need to select the second row and then the first to get the values in the first row of the temp-table.
ON VALUE-CHANGED OF BROWSE IN FRAME Dialog-Frame
DO:
DEFINE VARIABLE vcEmail AS CHARACTER NO-UNDO.
DEFINE VARIABLE vcUser AS CHARACTER NO-UNDO.
DEFINE VARIABLE OutString AS CHARACTER NO-UNDO.
vcEmail = ttResults.email.
vcUser = ttResults.name.
RUN TestProject/RecordSearch.p(INPUT vcEmail, INPUT vcUser, OUTPUT OutString).
EDITOR-2:SCREEN-VALUE = OutString.
END.
Is there a way to force it to select the first row when the Browse has come into focus?
Continue reading...
However, when there is only one row in the temp table, the code will not run. Even with multiple rows, selecting the first row does nothing. I need to select the second row and then the first to get the values in the first row of the temp-table.
ON VALUE-CHANGED OF BROWSE IN FRAME Dialog-Frame
DO:
DEFINE VARIABLE vcEmail AS CHARACTER NO-UNDO.
DEFINE VARIABLE vcUser AS CHARACTER NO-UNDO.
DEFINE VARIABLE OutString AS CHARACTER NO-UNDO.
vcEmail = ttResults.email.
vcUser = ttResults.name.
RUN TestProject/RecordSearch.p(INPUT vcEmail, INPUT vcUser, OUTPUT OutString).
EDITOR-2:SCREEN-VALUE = OutString.
END.
Is there a way to force it to select the first row when the Browse has come into focus?
Continue reading...