IBI WebFOCUS - report column sorting using javascript
In our day to day reporting projects, we might get some requirement where we need to give column sorting on the reports. Traditional method is to give the recursive drill down on the title. In that case clicking on the drilldown will open the same .fex file with some parameters to identify sort logic and we get the sort logic done. The below code does the same thing without reloading the report page. In the .fex file we use javascript code for sorting without reloading the entire page: -* File test_sort.fex -SET &ECHO=ALL; -******************************************for sorting****************************************************************** -DEFAULT &sort_col = 'COUNTRY' ; -DEFAULT &sort_type = 0 ; -SET &sort = IF &sort_type EQ 1 THEN 'LOWEST' ELSE IF &sort_type EQ 2 THEN 'HIGHEST' ELSE '' ; -DEFAULT &sort_col1 = 'COUNTRY' ; -DEFAULT &sort_type1 = 0 ; -SET &sort1 = IF &sort_type1 EQ...