Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 stored procedure, update, check checkbox

Author  Topic 

trilju2005
Starting Member

3 Posts

Posted - 2012-03-08 : 13:12:26
I have to create a stored procedure that will view data from a table. The user will audit the data, with paid dates. The user comes back to the view report, check/select all lines that have the same paid dates to change. The user will enter the paid date, then click a button and update all the records selected.

Will I need to have the checkbox field in the table?
Is it something that the user only has to see in the viewed report?

I am just not sure how to add this checkbox OR if it is even possible to have a checkbox.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-03-08 : 14:47:03
looks like its a presentation question. You need to do coding of checkbox using your front end language like html then use events to capture selected checkbox info. Based on what all are selected you need to pass a boolean value through form to application which will pass it down to your database by means of store procedure which will have a bit field. Then in stored procedure you can check this bit field and do required actions in your table

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

trilju2005
Starting Member

3 Posts

Posted - 2012-03-08 : 16:23:35
Thanks, I didn't think it was possible.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2012-03-08 : 16:28:56
Well hold on now

What are you writing the front end in? What the DDL of the table? Do you have a primary key or unique index?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

trilju2005
Starting Member

3 Posts

Posted - 2012-03-08 : 17:00:32
Wanted something with a gridview then have a checkbox to select all line items that have the same date to update then click a button to update the line items
Go to Top of Page
   

- Advertisement -