Jump to content

rvasquez2000

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by rvasquez2000

  1. Hi dear developers, I need help with 

    uniDBGrid recno is not valid error

     

    I search in the forum and didnt found anything

     

    I get this error when I  do the Post

    to the table used in the grid

     

    the table has the primary key defined correctly.

     

    the table is a detail table and the master has the primary key too

    both tables has  an identity field too

     

    I am using adoQuery  on SQL Server express 2014 with delphi seattle

     

     

    datasouce1 = adoQuery1 -> master

    datasouce2 = adoQuery2 -> detail

    uniDBGrid1.datasource2 -> adoQuery2

     

    adoQuery2.post  -> got the recno is not valid  error

     

     

     

  2. TUniForm(  UniApplication.FindComponent(activeform.Text) as TUniForm ).close

    should works, but does not.

     

     

    but using it like this works fine:

     

    labtot := TUniLabel(  UniApplication.FindComponent(activeform.Text) as TUniForm ).FindComponent( 'UniLabel1' )  as tunilabel  ;
    labtot.Caption := inttostr(dsToolB.DataSet.RecordCount) + ' Records';
×
×
  • Create New...