CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 store procedure in grid

Print topic Send  topic

Author Message
hugonr

Posts: 17
Posted: 09/08/2005, 11:16 AM

(i seek this and didnt found, so, im asking here):

i have one page with one grid form into it.

this grid form have one store procedure as datasource (from ms sql).

all worked correctly, when i choose the store procedure, all its parameters are there in the parameters window, and i have success in configure each one but then i got this problem:

i have two parameters that i need to make in before the sp execution, so i posted two edits into my grid tags, and in the "before show" event of each edit i worked my code to make this information.

then, in the parameter window of my grid, i selected one of that parameters, and changed the parameter source from url to control, and then i choose my edit in the list of controls... looks really well, and i thinked that will work, but never worked...

looks like the grid take the information from my edit before the edit had the information itself, i tried everything and nothing works...

i have two ways to do this, one is put the value of the parameter in the grid during the execution, but i have no idea of now to do that (anything like grid->ds->where = "anything", but to one store procedure parameter)....

the other way is make that control work before the execution of the store procedure...

if anyone can help, i will be really glad!!!!

(sorry my really bad english)
View profile  Send private message
Michael Mikkelsen
Posted: 09/08/2005, 3:34 PM

What?
hugonr

Posts: 17
Posted: 09/09/2005, 12:18 PM

Quote Michael Mikkelsen:
What?

i have one grid that runs a store procedure (ms sql), and one of the parameters of this store procedure its one edit control that have one select in the before show event, is supposed that the edit will take the information from this select and send it to the sp parameter and then the sp parameter will run and will show all the data, but this is not working because looks like the sp runs before the before show event from the edit.

i wish now is more clear.

(sorry again my bad english)

cheers
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.