Custom actions
Archived from the Xataface Users forum.
njw — Sun May 21, 2006 10:30 am
I am trying to incorporate simple reports into the custom action area. I’ve created a php file that displays the report, and I’ve placed it in the pages folder as printopps.php. I’ve created Dataface_Application_Menu.html in the templates folder, added a link to it and that displays fine.
My problem is that I can’t get the custom action to work. I have the URL as
http://www.archomai.co.uk/oppsdb -action=custom_printopps
but when I either click on it or run it directly from a browser, I get a 404 error.
The requested URL /oppsdb-action=custom_printopps was not found on this server
Any idea what I’m doing wrong?
Many thanks
Neil
shannah — Mon May 22, 2006 3:18 pm
Looks like the problem is that -action=custom_printopps needs to be part of the query string not the page path. i.e. use
http://www.archomai.co.uk/oppsdb?-action=custom_printopps
instead.
-Steve
njw — Tue May 23, 2006 12:31 am
Thanks Steve - right first time.
Neil