v.4.0 SelfServicing Documentation example request

Posts   
 
    
raist
User
Posts: 114
Joined: 19-Apr-2010
# Posted on: 17-Apr-2013 10:40:20   

In http://www.llblgen.com/documentation/4.0/LLBLGen%20Pro%20RTF/Using%20the%20generated%20code/SelfServicing/Using%20TypedViews,%20TypedLists%20and%20Dynamic%20Lists/gencode_usingtypedview.htm#tvf

Could it be possible to add a SortExpression to the example? It seems is it usual business, but it requires a .Source("<alias>") too.

Example: It is not

ISortExpression sorterOrdersForCustomer = new SortExpression(OrdersForCustomerFields.EmployeeId | SortOperator.Descending);

... but

ISortExpression sorterOrdersForCustomer = new SortExpression(OrdersForCustomerFields.EmployeeId.Source("O") | SortOperator.Descending);

TIA

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 17-Apr-2013 18:13:22   

Are you speaking about the last example on the page?

raist
User
Posts: 114
Joined: 19-Apr-2010
# Posted on: 17-Apr-2013 18:22:30   

In that one, or in the one titled "Instantiating a TypedView mapped onto a Table Valued Function". The .Source("<alias>") is only REQUIRED in the TVF mapped TVs, maybe this one is more convenient? Or change in this one from

Be aware to specify 'O' as the source for fields in predicates

to

Be aware to specify 'O' as the source for fields in predicates and sort expressions

Regards

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 17-Apr-2013 18:37:37   

Thanks for the feedback.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 18-Apr-2013 12:01:02   

Done (next build)

Frans Bouma | Lead developer LLBLGen Pro