Hi
Is it possible to have a table with columns bound to the context node sorted by particular columns when the table is loaded into the browser? If so can the sorting be applied on multiple columns? The aim is to provide the user with a table that is already sorted by the relevant business criteria.
If possible I would like to know if this can be done without Java which I have already found has relevant classes to achieve.
The table has the onSort property set to call a method
method onactionsort_column .
wd_this->go_table_handler->apply_sorting( ).
endmethod.
go_table_handler is of the associated type IF_WD_TABLE_METHOD_HNDL
In the method WDDOMODIFYVIEW I currently have:
lo_table ?= view->get_element( lc_table ).
wd_this->go_table_handler ?= lo_table->_method_handler.
wd_this->go_table_handler->set_key_attribute_name( 'ID' ).
On the columns the 'sortState' property has been set to 'up'.
Thanks.
Jon