Results 1 to 15 of 15

Thread: GridEditUpdate & def=

Hybrid View

  1. #1
    Join Date
    Oct 2002
    Posts
    933
    check the following to see whether it makes sense.... we'll set the shippeddate with a def = today...

    'Field ordinals -> 0=OrderID; 1=CustomerID; 2=EmployeeID; 3=OrderDate; 4=RequiredDate; 5=ShippedDate;6=ShipVia;7=Freight
    Dim X As New Tornado.z
    X.dbQP = "U=1|S=15|M=Ty=Grid!SysInd=t|D=Nwind|ni=b5,upd ate, gridupdate|Q=Orders|Th=Title=Grid Edit| bm=orders;0+1|gdf=0,1,2,3,4,5,Freight"
    X.dbEditUpdateSQL = "(|UPDATE Orders SET Freight=[[7]] WHERE OrderID={{0}}"
    X.dbEditGridUpdateSQL = "(|UPDATE Orders SET OrderDate=#[[3]]#, RequiredDate=#[[4]]#, ShippedDate=#[[5]]# WHERE OrderID={{0}}"
    X.dbEditUpdateFlds = "fi=0|type=RONOUPDATE,Freight,fi=ShippedDate|type= TEXT|def=Now()"
    X.dbEditGridUpdateFlds = "fi=0|type=RONOUPDATE,OrderDate,RequiredDate,fi=Sh ippedDate|type=TEXT|def=Now()"
    X.dbDebug = "EditSetup,EditAction"
    X.dbEditGridUpdate = True
    X.ASPdbNET()

  2. #2
    Join Date
    Jul 2004
    Posts
    39
    I was just using that date field as an example to show that the def= does not work for a bit field.

    I need the def=1 because I'm using as a 'lock record' mechanism that makes the record leave that particular user's desktop once it is locked.

    John M

  3. #3
    Join Date
    Oct 2002
    Posts
    933
    there is a 'discontinued' field in NWIND product table. See whether you can make a valid example out of it to show it breaks.

    FK

  4. #4
    Join Date
    Oct 2002
    Posts
    933
    I got the Discontinued example going. Will check it a bit more and send to you...send me a private email so I can return.

    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
  •