[icf-dev] refreshRow

Posted by LegacyUser on 25-Nov-2002 08:10

Hello all,

I want to manually add 1 or more records to a sdo and show them in a

smartdatabrowse, so I run a procedure from a smartDataBrowse that does these

steps:

i set autoCommit to false.

for each record I run addRow and submitRow.

I commit the records to the db.

Question:

At the end, refreshRow is called. Without a call to refreshrow, the record

is not showed in the browse. Is there a cheaper way to show the data?

refreshRow makes a call to the server (isn't it?)

DEFINE INPUT PARAMETER picObjValues AS CHARACTER NO-UNDO.

DEFINE VARIABLE iObjValue AS INTEGER NO-UNDO.

DEFINE VARIABLE cValue AS CHARACTER NO-UNDO.

DEFINE VARIABLE hDataSource AS HANDLE NO-UNDO.

DEFINE VARIABLE cRowIdent AS CHARACTER NO-UNDO.

DEFINE VARIABLE lOk AS LOGICAL NO-UNDO.

DEFINE VARIABLE cColValue AS CHARACTER NO-UNDO.

.

.

.

DO iObjValue = 1 TO NUM-ENTRIES(picObjValues, CHR(1)):

cValue = ENTRY(iObjValue, picObjValues,CHR(1)).

cColValue = "label_obj":U + CHR(1) + cValue.

dynamic-function("addRow":U IN hDataSource, INPUT "":U).

.

DYNAMIC-FUNCTION("submitRow":U IN hDataSource, cRowIdent,

cColValue).

END.

.

RUN commitTransaction IN hDataSource.

RUN refreshrow IN hdatasource.

groeten, Rob

To unsubscribe, e-mail: dev-unsubscribe@icf.possenet.org

For additional commands, e-mail: dev-help@icf.possenet.org

All Replies

This thread is closed