Hi,
I have to start programming this next week now. And I still have no idea if I am gonna use LLBLGen or not. Since the reports of all customer are created SQL Queries which just have to be extended somehow by the user, I at least have to use an own adapter to execute RAW SQL Code.
The only question I have now is can I use LLBLGen to create where clauses and sort clauses?
I mean: The user selects a field, and operator and a value and a sort type, order.
Which means for example if he wants a list of orders of a specific customer, and the SQL report is already defined, the user will be shown options for specifying the scope. So the user Selects an operator, for example '=' and enter a value, f.e. 'MyCompany' then I know that I have to create an LLBLGen Predicatexpression saying Customer.CustomerName == "MyCompany".
And maybe add a sorting expression also. Now that is easy programming. I was now wondering if there's a way to get the SQL this predicate expression generates, so I will get the SQL code " WHERE CUSTOMER.CUSTOMER_NAME = 'MyCompany' " which I can easily add to the SQL Report SQL Code the customer has made.
I have tried to use the filter.ToQueryText(ref UniqueMarker) function, but then I need a creator, and even if I create a new one, I still get a reference not set error. So I don't know if it's possible at all, and if so how?
Gr.,
G.I.