action

Delphi: How to Assign an Up Arrow Keyboard Shortcut to Action/MenuItem, and Keep It Actual for Navigating the List Control (ListBox/VTV)?

Hello! Please assist me: How to assign an up arrow keyboard shortcut to action or menu item, and keep it actual for navigating the list control (e.g. ListBox/Virtual Treeview/other) at the same time? Thanks! ...

msiexec does not pass parameters to custom action

Greetings, I have a custom action inside an MSI installer that makes some changes to some configuration file. my requirement is to run the installation in silent mode so I am using msiexec. Here is the command: msiexec /i myInstaller.msi /l* out.txt myContextParameter=value1 myContextParameter is never passed to the custom action so ...

How can I disable logging in Ruby on Rails on a per-action basis?

I have a Rails application which has an action which is invoked frequently enough to be inconvenient when I am developing, as it results in a lot of extra log output I don't care about. How can I get rails not to log anything (controller, action, parameters, complection time, etc.) for just this one action? I'd like to conditionalize i...

How to invoke Actions from other Actions? (if that's wise at all)

I am about to refactor a Swing application from using ActionListeners to Action classes because I realized that a lot of my menu items are going to be used in a toolbar as well. Right now I have a class called ImportExport which deals with the state of the underlying model and then displays the appropriate user dialogs. ImportExport has...

Photoshop Action to insert text with a box around it

I have a 92 page catalogue (one image per page, multiple products per image) and no product codes on the image for each product. Does anyone know of a photoshop action to allow entry of a stock code (<15chars text), that will create a filled, outline box with the text inside? It will be awful to have to do them by hand - there are hund...

ASP MVC - Having different action handlers invoked depending on query params?

I would like different a different action to handle a request depending on query parameters values. For example: mydomain.com/controller/action?version=1&msg=hello and mydomain.com/controller/action?version=2&msg=5 should go to a different handlers based on the version value. The list of query params required/optional, as well as...

Symfony: How to change a form field attribute in an action?

Hi, I've got a functioning form with a sfWidgetFormChoice that acts as a list of checkboxes. I'm able to set the checkboxes to "ticked" by default with the following: 'status' => new sfWidgetFormChoice(array('choices' => array(1, 2, 3), 'multiple' => true, 'expanded' => true), array('checked' => 'checked')) ... where the checkboxes a...

iPhone SDK: Add UIBarButtonItem action programmaticly

Hello, I have several UIBarButtonItems, and I want to set the action when you press it programmaticly. How can I do this? Please give in-depth instructions since i just started to work with the SDK. EDIT: if it would be possible non-programmaticly, please also reply :) The action is going to Google.com, and the button is the search bu...

SOAP Action WSDL

Hi all, I'm trying to implement a client for National Rail Enquiries' SOAP Service (http://www.livedepartureboards.co.uk/ldbws/). I stick the WSDL (http://realtime.nationalrail.co.uk/ldbws/wsdl.aspx) into http://soapclient.com/soaptest.html, but I get back the error message "Unable to handle request without a valid action parameter. Pl...

Getting color value from color picker flex

Hi all I am using color picker where the colors will initialised dynamically.If the color picker contains only one color i am unable to trap that color on change event. if it contains more then one color i am able to get the particular color from picker. So please reply if any one knows how to get the color if picker is having only one ...

Rails, routing many named routes to one action

Is there a simpler way of writing this: map.old_site_cusom_packages '/customs_packages_options.html', :controller => :public, :action => :redirect_to_home map.old_corporate '/corporate.html', :controller => :public, :action => :redirect_to_home map.old_track '/track.html', :controller => :public, :action => :redirect_to_home map...

How do I use a filter action in Symfony?

Hi. How can I use filter action from page that not contain filter form (e.g. by submit or GET request)? When I pass parameters in the following URL <module_name>/filter/action?module_filters[_csrf_token]=62a17afab45d56382974f9a495abee7c&module_filters[id]=3998 I get an error in filter form: csrf token: CSRF attack detected. or ...

HTML javascript select action

I got a selection list: <select> <option value="0" onclick="anders('1')">Anders</option> <option value="200" onclick="anders('');" selected="selected">&#8364; 200,-</option> <option value="300" onclick="anders('')">&#8364; 300,-</option> <option value="400" onclick="anders('')">&#8364; 400,-</option> <option value="500" onclick="anders(...

Slot not being passed from action to layout in Symfony 1.4

I'm using the following to set a slot in an action but I can't retrieve it in the layout. $this->getResponse()->setSlot('global_message', 'You have already completed this contest.'); But if you set this in the template file, it works fine. Anyone have any ideas on this one? ...

Using EL 2.2 with Tomcat 6.0.24

With JSF 2 you should be able to do this: <h:commandButton action="#{myBean.myAction(myParameter)}"/> which would then call the action method, passing in the parameter (assume it's an Integer): @ManagedBean @SessionScoped public class MyBean { ... public String myAction(Integer myParameter) { // do something r...

How to set target and action for UIBarButtonItem at runtime

Tried this but only works for UIButton: [btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside]; ...

Actions, Permissions and Architecture

Within my logic layer I have the need to check permissions for a wide variety of actions. Some actions are generic but some are highly specialized. Each action has a corresponding permission hierarchy that is evaluated prior to performing the action. I have been tossing around architecture ideas in my head but haven't reached a solid one...

Is it possible to do a post action to two separate servers

I'm running an online shop and I'm trying to have the "purchase" (which is a form "post" action) post to two separate servers (one local and one remote) ... I think this might be impossible but I'm looking for a definitive answer. ...

How to refactor this symfony code??

In action.class.php: $form = new NewsForm(); $form->setWidget('thumbnail', new sfWidgetFormSelect(array('choices' => $news['images']))); $form->getWidget('summarize')->setDefault($news['summarize']); $form->getWidget('title')->setDefault($news['title']); Where $news is generated in previous steps; It looks redundant,how to refactor i...

Action call and javascript call in MVC web application

How do you call a server side code and javascript in MVC? We are having a close button on every page. on click of close button there should be a call to controller action and the browser should close. Also if the user clicks the browser close the same controller action should be called before closing. Have anyone done similar stuff befor...