row change on postback

Last post 06-05-2007 11:27 AM by dotnetmatch. 2 replies.

Sort Posts:

  • row change on postback

    06-04-2007, 11:08 AM
    • Member
      31 point Member
    • dotnetmatch
    • Member since 05-17-2007, 5:05 AM
    • Zagreb, Croatia
    • Posts 24

    Hello!

    I work in vwd, VB without ajax. I've made an data entry form. In this form i enter data from a base into another table. I select rows (products) with Dropdownlist and insert them into a different table (shipping). These rows contain integer field (the quantity of products in the warehouse).

    The question is: is it possible to have an event fire when i insert data, to make a  "-1" on the integer colum of the selected row (to substract 1 in the products table on the inserted row).

    Please keep your answers as simple as possible, yes, I am a newbie. If you could include some code, great! Any help would be greatly appreciated, thanks! 

  • Re: row change on postback

    06-04-2007, 11:38 AM
    • Participant
      1,726 point Participant
    • richiej
    • Member since 09-25-2006, 10:24 AM
    • Posts 345
    What you could have is a drop down list for the integers and it default to "1". Then the user can change the value of that from the drop down, when they have finished and click on "submit" or "checkout" etc... then you read the values of the integers from each row's drop down list
  • Re: row change on postback

    06-05-2007, 11:27 AM
    • Member
      31 point Member
    • dotnetmatch
    • Member since 05-17-2007, 5:05 AM
    • Zagreb, Croatia
    • Posts 24

    Thanks for answering.

    Is there some way to deal with this in code? Subtract the integer field of the selected value. That is all!

    Thanks in advance!
     

Page 1 of 1 (3 items)