We confirm the problem that the values used in SetDefault() are not being saved. We fixed it in the next version FWH1904. Till then you may use FieldPut() as I explained above.
// Here I want based on the current colomn to put the Seek data in that field /* if oBrw:oCol() = 2 oRec:SetDefault( "naam_1", oBrw:cSeek ) elseif oBrw:oCol() = 3 oRec:SetDefault( "straat", oBrw:cSeek ) oRec:SetDefault( oBrw:SelectedCol():cExpr, oBrw:cSeek ) It ...
Can you please try this? oBrw:bDataRow := <|oBrw,cFieldList,lNew| local oRec := TDataRow():New( oBrw:uDataSource, cFieldList, lNew ) if oRec:RecNo == 0 // new record oRec:SetDefault( fieldname, yourvalue ) endif return oRec > It works for getting the ...
From FWH 1904 we can write oBrw:EditSource(.T., "klant_nr,Naam_1,Straat,Postcode,Gemeente" , { nil, "somename", nil, nil, cGemeente }) The non empty values in the array in the 3rd paramter will be initially assigned to the fileds in that order. Very Nice.. Wait...
Can you please try this? oBrw:bDataRow := <|oBrw,cFieldList,lNew| local oRec := TDataRow():New( oBrw:uDataSource, cFieldList, lNew ) if oRec:RecNo == 0 // new record oRec:SetDefault( fieldname, yourvalue ) endi...
Can we preload data when using the editsource() function from Xbrowse, without building a own adit function ? oBrw:EditSource(.T., "klant_nr,Naam_1,Straat,Postcode,Gemeente" ) some edit values should contain ...