Custom actions

A place for users and developers of the Xataface to discuss and receive support.

Postby 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
njw
 
Posts: 280
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby njw » Tue May 23, 2006 12:31 am

Thanks Steve - right first time.

Neil
njw
 
Posts: 280
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 12 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved