Questions tagged [action]

An Action is a response of the program on occurrence detected by the program that may be handled by the program events.

Many languages and frameworks use this noun as synonym of function, without return value, where its main purpose is to do something.

For example the .NET delegate Action represents a function without parameters and return value.

In the Unified Modeling Language (UML), an action is a named element that is the fundamental unit of executable functionality. The execution of an action represents some transformation or processing in the modeled system. An action execution represents the run-time behavior of executing an action within a specific behavior execution.

4938 questions
1
vote
1 answer

ActionListener or Action for playerMovement

I am just trying to program a little football game and after doing all the painting and initializing the players and the ball I am now at the point where I try to move the player. I watched some tutorial how to program movement in games but they all…
rm -rf
  • 968
  • 1
  • 12
  • 28
1
vote
2 answers

how to make an Action that points to another Action C#?

I've ran into some unexpected behavior in c#. I'm basically trying to assign an action to a reference of another action, so that I can subscribe/unsubcrib methods to the referenced action at a later time. I don't want to have to know the class which…
Sebastian King
  • 341
  • 1
  • 11
1
vote
1 answer

Simple UIButton Question

I have 1 button and 2 methods. One method calls this: [button addTarget:self action:@selector(action1) forControlEvents:(UIControlEvents)UIControlEventTouchDown]; And the other calls this: [button addTarget:self action:@selector(action2)…
Preston
  • 1,039
  • 3
  • 12
  • 22
1
vote
1 answer

How to make a method that can execute any other method passed to it

I am trying to make an application that will do something on every file in a directory. That something should be some method. But since I don't know which method, exactly, I am trying to make it so my "iterating" method takes an argument of any…
J. Doe
  • 1,147
  • 1
  • 13
  • 21
1
vote
2 answers

How to call methods with different parameters as Action?

I'm working on a game in Unity and Unity is not threadsafe so whenever I do some calculations on different thread and want to go back to Unity I need to queue calls in some kind of queue so Unity can take those tasks and execute them on Unity…
Bizio
  • 45
  • 7
1
vote
1 answer

NGXS Async Actions

I’am trying to refactoring my feature AuthModule Angular6 from NgRX to NGXS. I’am a problem with a State. Inside there is a Action async: export const initialState: State = { error: null, pending: false, }; @State({ name: 'login', …
foralobo
  • 3,947
  • 5
  • 18
  • 17
1
vote
3 answers

How can i get my "Enemy" to chase the "goal" - Java

I have been trying to code a half built simple java game i was given to by a friend (I wanted to try learning coding so he gave me this old assignment from his 1st year of programming class). He told me to try and build a game using the 2 classes he…
1
vote
1 answer

Unable to use more than two Action Packages to create multiple custom actions

I followed this link : https://developers.google.com/assistant/sdk/guides/service/python/extend/custom-actions And I successfully create three actions files. and it works individually. but when I test all together like deploying three action…
Guopeng Li
  • 81
  • 1
  • 9
1
vote
0 answers

SSRS: Use Go to URL to open email with report embedded in body

How do you use the Action Options of a Text Box Property to open an email message with the report embedded in the body? We're trying to automate a task, by where a user can filter records using multi-select parameters and then email a report to some…
Micah Chaney
  • 71
  • 1
  • 2
1
vote
2 answers

Submit form with three actions

I have a three-button form. First button "only Save document", second button "only generate PDF" and third button "Save document and Generate PDF". only Save button - just submitting form - works fine
1
vote
1 answer

Ruby on rails - activeadmin - batch_action default text

is there a way to set a default input value for batch_actions? e.g. I have 3 inputs fields, I want to save these in a session, but I couldn't figure out, how to set a default text in my form. form -> { 'Bla' :text } ... do you guys know how I can…
1
vote
1 answer

Can I make a specific wrong password trigger an action in Android

Imagine a malicious actor has gotten a hold of your phone and is torturing you to find out the password. You very much do not want him to get access to your data. You could tell him a wrong password several times to trigger a data wipe. I am trying…
Viktoriya Malyasova
  • 1,343
  • 1
  • 11
  • 25
1
vote
2 answers

WinRT/UWP is suspending rising on power off?

I am trying to save data before application (WinRT 8.1) close/sleep/minimze (or windows shutdown/restart in tablet with WIN10) using app suspending event. https://learn.microsoft.com/en-us/windows/uwp/launch-resume/suspend-an-app However, it os not…
smixik
  • 13
  • 2
1
vote
1 answer

Vuex: handle async action with promise call to REST API

I use TypeScript with Vue/Vuex to create a toy app, in which I need to load a list of items from remote API upon rendering a component. In the actions below, I use the library axios to make http request, and I return it as a promise: const actions =…
TonyW
  • 18,375
  • 42
  • 110
  • 183
1
vote
2 answers

ASP.NET MVC - Calling an Action through jQuery

I've a quick question. To call an action through jQuery (to use AJAX), do i have to create a new Action returning json type or is there anyway to use the same action for http request (post) and jQuery too? Thanks
Gui
  • 9,555
  • 10
  • 42
  • 54
1 2 3
99
100