Hi,
I want to create a method that sorts like this one:
METHOD SORT_TABLE_DEFAULT.
SORT wd_this->tests_table ASCENDING
BY test_name app_version app_build.
ENDMETHOD.
This works.
However, instead of test_name which is a field in the table I want to use a variable so I can use the method like this
wd_this->sort_table_default( sort_by = test_name ).
Where sort_by is a parameter and this time it become test_name which is the name of the field I want to sort by.
This is so I can use the method again somewhere else, such as:
wd_this->sort_table_default( sort_by = release_date ).
This time sort_by become the field table release_date.
How can I do this?
Thanks in advance.