how to use literal SQL string

Posts   
 
    
Khuzema
User
Posts: 22
Joined: 24-Jul-2006
# Posted on: 27-Feb-2007 10:42:16   

Hi,

In our project we have this data-driven combo box which opens in new web page with datasource based on the field which it has be clicked, whats that mean is if it is opened for txtCustomer it will show Customer data.

There is table contains all rows (data) for all type of possible combo box going to be used by the application. Table design is something like -

SysComboBox ComboID : 1 SQL: Select CustomerID, CustomerName from Customers

When I retrieve the record, I want to pass this SQL to LLBL Gen Pro to retrieve the Datasource.

Is there any way to pass raw SQL to LLBL Gen Pro. We can do it thru many other ways, but we want to have LLBL Gen Pro as standard for all our data access.

any help would be highly appreciated

thanks

Khuzema WISDOM

Aurelien avatar
Aurelien
Support Team
Posts: 162
Joined: 28-Jun-2006
# Posted on: 27-Feb-2007 18:45:10   

Hi,

You can use DataAcessAdapterBase.ExecuteMultiRowRetrievalQuery() witch executes the passed in retrieval query and retrieve the results in an EntityCollection.

Khuzema
User
Posts: 22
Joined: 24-Jul-2006
# Posted on: 28-Feb-2007 12:04:53   

HI,

Is there any pointer to an example, how it can be done with SQL String.

thanks

Khuzema

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
smurrell
User
Posts: 59
Joined: 22-Feb-2007
# Posted on: 01-Mar-2007 13:57:58   

Hello

Go to thread, I managed to get it working. The thread will explain how to get it working.

Regards, Simon

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=9173

Khuzema
User
Posts: 22
Joined: 24-Jul-2006
# Posted on: 01-Mar-2007 18:23:55   

Thanks Simon,

thats is what I exactly wanted.

thanks

Khuzema