This topic is locked

'Live' (java?) Dropdown Jump To Boxes on List Page

5/22/2009 9:03:07 PM
PHPRunner General questions
M
MikeB941 author

PHPRUNNER 5.0
I have a list page of detail records upon which there a set of defined actions that can be performed (each action is performed using a different Custom View Edit Page and a subset of fields depending on the action)
Ideally I'd like to have a "live" (java?) dropdown box on each detail record so the user can just hit the dropdown box to select the desired action for that particular record and then immediately jump to that action page/view (including the record ID) without having to first click on inline edit, update the dropdown box and then click on the green check mark (after which I jump to the appropriate page using an event based on the action selected).
In other words, like how the quick jump menu works, but for each record on a list page.
On a similar tangent - this same list shows a checkbox that can be selected to print a label, again, the users have to click on inline edit, check the box and then click on the green check mark. Is there anyway to make checkboxes on a list page directly update-able?
Many thanks!
Take Care... Mike.

J
Jane 5/25/2009

Mike,
you can set up recordID field as custom on the "View as" settings dialog on the Visual Editor tab and create dropdown on this dialog.

Here is just a sample:

$str = "<select onchange=\"java script: window.location='tablename_list.php?recordid=".$value."&action='+this.options[this.selectedIndex].value\">";

$str.= "<option value=action1>action1</option>";

$str.= "<option value=action2>action2</option>";

$str.= "</select>"



Then check passed values ($_REQUEST["recordid"] and $_REQUEST["action"]) and update record in the List page: Before process event on the Events tab.

M
MikeB941 author 5/26/2009

Thanks so much Jane!
I set:
$value = $str;
and the drop down boxes look GREAT on the list page, however while I can select the different actions, it doesn't seem to execute the onchange and jump back to the list page... just lets me change all the actions on the various drop down boxes with out making the page jump on the change.
*** Also wanted to add... as a test I've taken Javascripts that work fine (jump to another page, etc.) other places on the list page, but as soon as I place them under the Visual Editor in the custom view box, they also stop working (same symptoms, the drop down box works fine but the actual jump to the page does not occur).
Any thoughts?
THANKS AGAIN!!! Take Care... Mike.

J
Jane 5/27/2009

Mike,
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

M
MikeB941 author 5/28/2009

Hi Jane:
Was able to get the code working with a few changes to the syntax:

$str = '<SELECT onchange="java script: window.location=';

$str.= '\'tablename_list.php?recordid='.$value.'&action=\'+this.options[this.selectedIndex].value;">';

$str.= '<OPTION value="action1">action1</OPTION>';

$str.= '<OPTION value="action2">action2</OPTION>';

$str.= '<OPTION value="action3">action3</OPTION>';

$str.= '</SELECT>';

$value = $str;



Thanks so much for your help with this. Take Care... Mike.