dcsimg
Page 4 of 4 FirstFirst ... 234
Results 46 to 51 of 51

Thread: Tornado-Need two ways Update records

  1. #46
    Join Date
    Dec 2002
    Location
    Albany, NY
    Posts
    115
    Frank,

    We have been testing these new functions and have come up with a recommendation. the .dbEditGridAdd function needs a parameter telling it how many rows to default to. Currently the default is the number of rows shown on the screen grid. In most cases, in add mode, a single record would be the default. In edit mode, the number of rows edit should be the number of rows shown on the grid.

    Also, it would be a good idea to include in the manual, exactly how the functions .dbeditadd and .dbeditgridadd are related. We needed to isolate them
    using IF/Then statement(s).

    We need this capability ASAP.

    thanks, Paul

  2. #47
    Join Date
    Oct 2002
    Posts
    933
    try intercept the gridedit buttonand change the pagesize.

    >>how the functions .dbeditadd and dbeditgridadd are related ??

    Explain more.. one function is normal add andone is grid add.

    FK

  3. #48
    Join Date
    Dec 2002
    Location
    Albany, NY
    Posts
    115
    I'll try the isolation thing..

    As for the .dbEditAdd and .dbEditGridAdd. Without using an IF/Then statement to seperate them the UPDATE/INSERT sql string is not correct.
    That is, if the functions are not isolated the INSERT SQL will default to the .dbSQL string.
    The .dbEditGridUpdate appears to work correctly with out isolation.

    Programming with the If/Then fixes the issue but it should be resolved at the system level so the applications programmer can simple use the .dbEditAddSQL and .dbEditGridAddSQL functions as designed....

    Paul

  4. #49
    Join Date
    Oct 2002
    Posts
    933
    MMMnn.. still not clear. Please exaplin more before I ask for a NWIND sample. Describe the case when it is NOT working.


    FK

  5. #50
    Join Date
    Dec 2002
    Location
    Albany, NY
    Posts
    115
    OK,

    I created a NWind example, actually SQL Server example and sent it to your email address. You'll need to change the DNS for your system..

    Paul

  6. #51
    Join Date
    Oct 2002
    Posts
    933
    I looked at the test file again and I see the gridaddsql is not correct - fixed. Please try the patched dll (in your ftp dir).
    ALso, let me know how it goes in controlling the Edit Add "Rows". I see the reson there is "legi". If it is difficult to set the pages size when interccept the "gridadd" click then I can add a property to set the "GridAddRows".


    FK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •