This one's buggin me like you wouldn't believe. I use this same code on numerous pages and it's only breaking on this one.
I use DTC Grid to disaply data and href the headings so the user can sort by that column. On this one page everything initially shows correctly but when you click the heading for any column to resort by that column I get the error message "Microsoft JSCRIPT runtime error: 'thisPage.navigate' is null or not an object".
<**************here's the code*********>
<html>
<head>
<script ID="serverEventHandlersVBS" LANGUAGE="vbscript" RUNAT="Server">
function SortAnchor(mySortKey,strHeading)
SortAnchor="<a href=javascript:thisPage.navigate.selectSortGroup('" + mySortKey + "')>" + strHeading + "</a>"
end function
function selectSortGroup(mySortKey)
session("RqSort"
= mySortKey
rstIncomming.close()
rstIncomming.open()
end function
</script>
</head>
On the page I have a DTC Grid and on the Data tab under field/expression I have:
LastName
And under Header I have:
=SortAnchor('2','Last Name') 'Note: Lastname is 2nd column
Lastly, I have a PageObject DTC on the page and on NavigateSortMethods tab I have added selectSortGroup.
Thanks for any help anyone can offer!
I use DTC Grid to disaply data and href the headings so the user can sort by that column. On this one page everything initially shows correctly but when you click the heading for any column to resort by that column I get the error message "Microsoft JSCRIPT runtime error: 'thisPage.navigate' is null or not an object".
<**************here's the code*********>
<html>
<head>
<script ID="serverEventHandlersVBS" LANGUAGE="vbscript" RUNAT="Server">
function SortAnchor(mySortKey,strHeading)
SortAnchor="<a href=javascript:thisPage.navigate.selectSortGroup('" + mySortKey + "')>" + strHeading + "</a>"
end function
function selectSortGroup(mySortKey)
session("RqSort"
rstIncomming.close()
rstIncomming.open()
end function
</script>
</head>
On the page I have a DTC Grid and on the Data tab under field/expression I have:
LastName
And under Header I have:
=SortAnchor('2','Last Name') 'Note: Lastname is 2nd column
Lastly, I have a PageObject DTC on the page and on NavigateSortMethods tab I have added selectSortGroup.
Thanks for any help anyone can offer!