This topic is locked
[SOLVED]

 Navigation issue with V9.7

5/9/2017 4:33:21 PM
PHPRunner General questions
A
Andrew S author

Hello
I have upgraded a system from 6.2 to phprunner 9.7 and after much work have finally got things working as before with the exception of system generated navigation.
Not sure if this is a bug.
On signing in to the system, the user sees all Workorders on list page sorted by workorderID sorted in descending order (in other words most recent added record first - there are 15,000 records). When the user clicks on an action i.e. view, add, edit - when clicking on the Back To List button automatically added to the relevant page, rather than going back to the list page sorted descending, it goes to the first record entered which currently stands at page 748. This did not happen in V6.2. Clicking again on menu item Workorders then takes user to the correctly sorted list page. As we all know, users don't like any 'additional clicks'.
Is there a way to edit the Back to List Button to go back to original sort order?
I have tried editing html for Back To List via to Visual Editor to the following:
{BEGIN back_button}

<A class="rnr-button" href="Workorders_list.php" {$backbutton_attrs}>

Back to list

</A>

{END back_button}
The above does NOT work.
Thanks in anticipation.
Andrew

But this does not work.

J
jomppa10 5/10/2017

Hi,
try this code in Before display event for edit and view pages
$xt=assign("backbutton_attrs","onclick=\window.location.href='Workorders_list.php?a=return'\"");
Jouni

A
Andrew S author 5/10/2017

Thanks Jouni
Unfortunately I get an error when I use that code.
Fatal error: Call to undefined function assign() in /var/www/vhosts/xxxxxxx.co.uk/httpdocs/include/Workorders_events.php on line 512

J
jomppa10 5/10/2017


[/size]

sorry try this

[/size]
[color="#1C2837"]
[color="#1C2837"][font="arial, verdana, tahoma, sans-serif"]

A
Andrew S author 5/11/2017

Hi Jouni
Unfortunately that didn't work either. However, I have managed to get it working by deleting the button and creating a new button with the following code:
location.href="Workorders_list.php";
Many thanks for your assistance all the same.
Andrew