You could add a recordform to the page underneath the grid.
run it on any table (preferrably "dual" or a "small" table, maybe even a
dedicated table just recording an ordernumber or so plus a date.
Put your needed SQL statement in the appropriate Execute(Insert/Update) et
voila.
Update would be the one to go for, but insert should be the default as the
record is nor primed.
redirection is then a breeze.
Hope this get's you on your way.
"Suntower" <
Suntower@forum.codecharge> schreef in bericht
news:644dd01bbc7ac0@news.codecharge.com...
> Hi,
>
> This is related to a question I had way back when:
>
http://forums.yessoftware.com/posts.php?post_id=56742
>
> I have a typical Shopping Cart screen. It's just a Grid template with the
> items
> the user has ordered so there's nothing for them to 'enter'. All I need is
> for
> them to click either a 'Cancel' or 'Submit' button.
>
> When I try to add these buttons to the page with the grid, the OnClick
> events
> do not fire. I guess this is because there are no fields for validation.
> Correct? How can I -force- these events to fire. I need to do two things
> when
> the button is pressed:
> 1. Run a SQL command
> 2. Redirect the user to another page
>
> Now, I -could- use a hyperlink and that solves problem #2, but it doesn't
> provide a way to execute the SQL command.
>
> So... Is there either:
> a) A way to get the button to fire in a grid? (preferred) or
> b) Be able to execute some server side code snippet when the hyperlink is
> clicked.
>
> Yeah, I -know- I could pass a parameter to another page after the
> hyperlink
> fires and do the processing -there-, but I'd much rather keep the logic
> all in
> one place.
>
> Thoughts?
>
> THANKS!
>
> ---JC
>
>
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
>
http://forums.codecharge.com/
>