Hi All,
I am trying to sort the job list page in descending order. As it is a page extension, I am unable to use SourceTableView property on it. So, I have used RunPageView property on the rolecenter page. But, this property is not sorting the list page for those profiles for which there are filters applied on Job List page (for some roles, we have restricted to view certain jobs based on some criteria).
We have used such filters on the list page, providing the code snippet for reference :-
appKeyTableForAdmin.Reset();
appKeyTableForAdmin.SetFilter(code, 'GROUP3');
if appKeyTableForAdmin.FindSet() then begin
repeat
userMember.SetFilter("User Security ID", User."User Security ID");
if userMember.FindFirst() then begin
repeat
if (userMember."User Group Code" = appKeyTableForAdmin.Name) then begin
if jobAdmin.FindSet() then begin
empBU.SetFilter("AD user name", UserId);
if empBu.FindSet() then begin
jobBUHead.Reset();
jobBUHead.FilterGroup(2);
jobBUHead.SetFilter(JobDepartment, Format(empBu.Department));
if jobBUHead.FindFirst() then begin end;
jobBUHead.FilterGroup(0);
SetRecord(jobBUHead);
SetTableView(jobBUHead);
exit;
end;
end;
exit;
end
until userMember.Next() = 0;
end;
until appKeyTableForAdmin.Next() = 0;
end;
Could anyone please provide me a solution for the issue !
Thanks !!