Select parameters, how to use them ???

Posts   
 
    
Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 18-Jan-2008 22:09:57   

Hello,

I have a dropdown that feed another dropdown (filtered on the first dropdown selection). I have a grid that is filtered on the second dropdown selection.

I added a select parameter on the second dropdown based on the first dropdown selected value.

The 2 dropdown and the grid are linked to 3 LLBLGenDataSources.

I added a select parameter on the grid on the second dropdown selected value.

It work fine on the first callback (everything is perfect on the second time I see my page). The dropdown had been changed with the appropriate data and the grid also have the appropriate data.

But the second callback (third time the same page is displayed) : "KABOOM !!!". I get an exception. (see attchment). Either when I choose a value in the first or the second dropdown.

I tested with microsoft sqlDatasource and everything is fine (parameter into the query).

Do I use it wrong or there is a little bug into the LLBLGenDatasource ???

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 19-Jan-2008 03:23:19   

Wally, I can't see any attachment disappointed

David Elizondo | LLBLGen Support Team
Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 21-Jan-2008 14:41:57   

Sorry here they are (attachment)

I use latest version of everything.

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 21-Jan-2008 19:29:39   

Unfortunately i cant reproduce the error since you are using DevEx Grid, please try to reproduce it yourself with ms grid and let us know if the problem still persists, otherwise it may be something related with the grid.

Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 21-Jan-2008 19:38:41   

I will, Please let me few days, I will test at home. Actually, I'm on a rush at the job and I switch to Microsoft DataSource for simplicity. I will get back soon (probably thursday) with a sample.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 21-Jan-2008 20:37:39   

Also, keep in mind how the devexpress grid works: if you don't enable postbacks for every action, the grid won't refresh.

Frans Bouma | Lead developer LLBLGen Pro
Wally
User
Posts: 285
Joined: 29-Aug-2007
# Posted on: 21-Jan-2008 20:43:29   

ok thanks a lot, I will try to find time to test with devexpress grid and microsoft to compare... but in 2 or 3 days. (busy in daytime and evening for the 2 next days).

Thanks for all you good advise !