PerformSelect not executed?

Posts   
 
    
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 16-Aug-2006 05:44:03   

Hello Everyone,

I have 2 LLBLGenDataSources on 1 Page - 1 within a User Control, and 1 within the Main Page.

The UserControl's LLBLGenDataSource fires the PerformSelect command correctly, however, the datasource on the page itself does not.

I've set LivePrescence = false.

I noticed that if I manually set the LLBLGenDS.TypedView = SomeTypedView, then performSelect is executed ... however, for my UserControl DS, I do not have to set any datasources - it does a fetch automatically.

So I'm a bit confused... Do I need to set the datasource on the LLBLGenDataSource (i.e. EntityCollection, TypedList, TypedView)?

PerformSelect Event is fired:

        
LLBLGenProDSIdeaList.TypedView = IdeaFactory.CreateIdeaHelper.GetIdeaList(m_CategoryID, 0, Nothing)
 dlIdeaList.DataBind()

Preform Select NOT fired


        LLBLGenProDSIdeaList.Refetch = True
        dlIdeaList.DataBind()

Preform Select NOT fired


        dlIdeaList.DataBind()

Preform Select NOT fired


        LLBLGenProDSIdeaList.Select
        dlIdeaList.DataBind()

But on other pages I do not need to set the DataSource.

The behaviour of the LLBLGenDataSource seems a bit inconsistent?

mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 16-Aug-2006 05:51:45   

Hi all,

OK - turns out the TypedViewName was not set in the LLBLGenDatasource.

This leads to a (related?) problem ... Occasionally I have trouble setting the datasource entitytype using the smarttag. The smarttag dialog doesn't seem to "save" the settings - the properties of the datasource are not updated.

Is this a known issue?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Aug-2006 08:25:08