Table redraw

  1. 4 months ago

    Joel_Eisenstat

    Jul 9 User since 2016

    Good morning ,
    This may/may not be a bug -
    Runtime error causing freeze of Creo
    An error occurred while writing key dataSet (-[__NSCFNumber addTarget:action:forEvent:]: unrecognized selector sent to instance 0x137).

    for method
    var sql = 'UPDATE "CRM_Pat" SET "pat_fam" = \(famid) WHERE "id" = \(self.identifier)';
    var rs = PostgreSQL1.execute(sql);
    Window3.TableView2.dataSet = rs;
    Window3.TableView2.reload(rs);

    where <Window3.TableView2.dataSet = rs;. seems to be the problem.
    This particular code was used in other areas without a problem.
    Regards,
    Joel

  2. Joel_Eisenstat

    Jul 9 User since 2016

    Sorry - found the source of error-
    Have to reload the query rs as opposed to the update.
    Joel

  3. marco

    Jul 9 Administrator User since 2016

    Right @Joel_Eisenstat, there is no rs in case of a non select statement.
    However we should fix the runtime error.

or Sign Up to reply!