FAQ Database Discussion Community


Call method from another class in a UIButton

ios,objective-c,uibutton,action,custom-cell
I have a custom UITableViewCell with a class linked to it called customCell.m. (I didn't use xib.) In the cell there is a button. Is there a way to create the buttons action on the mainVC.m file, as apposed to customCell.m? Update Here is the code I tried implementing. What...

catch event when the field changes

javascript,events,plugins,action
I got a multiple fields with the same name class = "value_field". If the input is type date I want to execute one function but this type it's a plugin and don't catch the event "onchange" or "infocusout". And the JS function to catch each event is: $('body').on('focusout', '.value_field', function()...

Implicit Intent with user-specified action

android,action,activitynotfoundexception,android-implicit-intent
I'm experimenting, specifying my own action for use in an implicit intent. In a single package, I define two activities. ActivityTwo is to be called from onClick() in ActivityOne, using an implicit intent with an action "course.labs.activitylab.MY_ACTION". But I haven't been able to make it work. In strings.xml: <string name="myfunnystring">course.labs.activitylab.MY_ACTION</string>...

Error generating a controller with a “cookies” action

ruby-on-rails,cookies,controller,action,reserved-words
I'm new programming in Rails and I got an error I don't understand. When I create a controller with the action cookies like: rails g controller Pages home about cookies I get a NoMethodError in PagesController when loading any page: undefined method `delete' for nil:NilClass Extracted source (around line #9):...

JavaFx - Set two 'setOnAction' to the same button

java,button,javafx,action
I get EventHandler from another class, and I want to set this EventHandler and other ActionEvent to the same button. It is possible? The code is following. The button is: "btnAdd". public void addActionListener(EventHandler<ActionEvent> eventHandlerSetNotSave){ btnAdd.setOnAction((e)-> { FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("Open Resource File"); FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter("pictures...

Showing one image after other using submit action PHP

php,image,action
I am reading images from the directory 'images' which contains several folders with images. I want to show every image in a div and with the checkbox to decide if it is fashion or not fashion. I am using the following code in order to read files from directory and...

Custom action to launch Msiexec during setup

c#,installer,action
I need a last (lol) little help... i finished my software and TATA i'm not able to find a correct way to create it's setup. I googled, yes, i googled and searched here but i found only old post referring old visual studio versions.... Please be patient with me... As...

How can i change action of the button “return” on the keyboard on Xcode?

ios,text,keyboard,return,action
i need to change the text of the button "return" on my keyboard,and i even need to change its action. The action should be a new paragraph. Can you help me?

C actions and variables

c,function,variables,action
Why when I use: char paraula[15]; int longparaula=0; copia_paraula(paraula, longparaula); It says that longparaula=0? paraula it's ok, and containd the values of the chars that I input, but longparaula always it's 0. If i don't initializate longparaula, it always equals an aleatory value. It will equals at the longitude of...

prevent “complete action using” in my app?

android,webview,action,using,complete
I had created a web browser on android platform , but with every click on any link complete action using is appears to transfer the user to another app .how to prevent it

SocialEngine 4 - get Action name

module,controller,action,core,socialengine
Looking for someone to let me know how grab the action name from a Module Core Controller and instead of executing an action use the action name as a variable for determine which content to output. Basically, I am switching over to SocialEngine instead of my wordpress install and in...

Unable to control what the user can see in php?

php,forms,action
I want to control what the user can see in my system. A guy told me that I should check if the user id matches with the lecturer id. The lecturer should see only their own data not any other's lecturer. I tried but now it doesn't work. I also...

Add functionality to a submit button php

php,button,submit,action
I have several divs which containing images. I want to add below or beside those divs a submit checkbox with two values and perform an action when the user press the submit button. My php code is the following: echo '<div>'; echo '<img src="'. ($image) .'" alt=""/>'; echo '</div>'; echo'<LABEL...

Generic URL using template on action jsf

jsf,action,facelets
I created a template with commandLink: <div class="pull-right" style="padding: 5px"> <h:commandLink action="#{urlVoltar}" styleClass="btn btn-sm btn-danger"><span class="fa fa-reply"></span></h:commandLink> </div> And use it in main page: <ui:include src="/sistema/commonBotoesExportar.xhtml"> <ui:param name="urlVoltar" value="\indexNovo.xhtml" /> </ui:include> So when I click on button, I got this exception: javax.faces.el.EvaluationException: javax.el.ELException:...

UIButton with target:self not being sent to self?

ios,uibutton,action,targets
I'm creating a new UIViewController (call it MyViewController), and adding the view (MyView) as a subview of a TableViewCell. Within MyView , there's a button. That button is created programmatically during MyViewController's init, as such: -(id)initWithFrame:(CGRect)frame { self = [super init]; if(self) { [self.view setFrame:frame]; _yesButton = [[UIButton alloc] initWithFrame:CGRectMake(frame.size.width-150,...

Oracle Apex dynamically enable/disable text field depending on LOV selected value

javascript,dynamic,action,oracle-apex,lov
I am trying to enable/disable text field depending on LOV selected value but it works just on page load, and I want to do it dynamically on client side when the LOV selected value change. I tried with a dynamic action but it only fire on page load. Any help?...

Java actionPerformed questions

java,swing,jframe,jpanel,action
Hello everyone I am new to java programming and I begin to fell in love with making simple JPanel or JFrame games. But recently I'm starting to challenge myself on writing a more complicated game called "Doodle jump". As most of you may already heard of this game you are...

action without button on swift

ios,objective-c,swift,action,data-manipulation
I’m new at this and I’m wondering if it’s possible in swift or objective-C to make an action without the interaction of a button or any type of user interaction? So far i can send an array to a second ViewController but I need to process the data and show...

Photoshop Script to change Font and Font Size

javascript,automation,action,photoshop
Looking for a script that changes all text within a PSD to be a certain font size and font kind, in this particular case, 'AbrilFatface-Regular'@ 101px. I then want to use this script to batch change hundreds of files using the same font and size (so no need for a...

events and action methods

c#,events,action
I've got some kind of a timer. When the time goes out i want to invoke an event. But i don't know how to add a method to the event when i'm making an instance. This is the code : public delegate void DaysPassed(Action action); public class TimeAwait { public...

NSTokenField not firing action

objective-c,osx,cocoa,action,nstokenfield
I have an NSTokenField to add tags to an object (a document). I would like to update the object with new tags the moment a token is added to the token field (when a tokenising character is typed). Unfortunately this does not seem to work. The NSTokenField is connected to...

Cocos2d-x. How to add action on the sprite after the previous one was finished

action,cocos2d-x,sequence
I add action on the sprite. auto moveBy = MoveBy::create(2, Vec2(moveX, moveY)); _Spr1->runAction(moveBy); I want to add another action on touch, but I want that the second one started after the first one is finished. And if I tap two times before first action stops, I want to create sequence...

How to prevent a form action opening a new tab with the linked php script?

php,forms,action
I have a simple input form with a submit button on my website <form action="signup.php" method="post" name="form"> <div class="input"> <input type="text" class="button" id="email" name="email" placeholder="[email protected]"> <input type="submit" name="submit" class="button" id="submit" value="submit"> </div> </form> The entered text is written to a text document with the signup.php script <?php if(isset($_POST['submit'])) { $email...

specify type of delegate parameter

c#,dictionary,delegates,action,trygetvalue
im trying to use TryGetValue. to Invoke a delegate inside Method i use dictionary to select one delegate and then Invoke it. the dictionary type is Dictionary<string, Action<Mesh>> _meshActions; and the action type is Action<Mesh> So here it seems i can not declare action in delegate parameter correctly. Method(null, "mesh",...

Preprocess/postprocess a bean action method from p:remoteCommand inside composite

jsf,jsf-2,primefaces,action,composite-component
I have the following scenario: JSF composite component with complex JavaScript, which I'd like to refresh partially by JavaScript with a new values from a backing bean (backing bean of a page which uses this composite component, not backing component @FacesComponent). I don't want to make full update because it's...

IBAction from Xib file to seperate View Controller

swift,action,xib
I am creating quiz application and when you scroll right or left it changes the question - I have a xib file for my custom scroll view that is linked to a UIView ViewController. However I have another ViewController which creates the scrollView. How do I get an action from...

Segue not working on tableView

ios,action,segue
Okay, I got this strange situation. I have multiple tableViews in my project, but only on one tableView I can click on an item and perform an action (go to next segue). On the other tableViews I can click what I want but nothing happens. I removed the one that...

Can not invoke bean action method in onclick attribute of h:outputLink

jsf,onclick,action
<h:outputLink value="/4JVA-157292-war/supinfo/auth/mycar.xhtml">Car</h:outputLink> <h:outputLink value="Log Out" onclick="${loginController.logout()}" /> As you see, If i click the Car link. I will excute the ${loginController.logout()}, but if i delete the Log out. I will go into the car page....

How do you apply one action to multiple Sprites in SpriteKit?

swift,sprite-kit,action
If I've got a dude at the top of my screen, and a dude who comes in later at the bottom, and I want them both to move to the left of the screen using my moveToLeftOfScreen action I've created, how do I do that? If I've got var moveToLeftOfScreen...

Rails - delete route goes to destroy action

ruby-on-rails,session,routes,action
I have a Passenger and Driver model with their corresponding controllers (I can't setup a sessions controller to encapsulate both of their logins and logout). I am trying to delete the session when logging out but the link for logging out goes to the destroy action because it has a...

Android Creation an action from a button

android,button,methods,action
I come from the iOS world and just started with Android. I followed a java training so I know how to create a method, but I don't get the action one. What I would like to do is to create a method action from a button and I can't find...

Render outcome of “action” attribute?

jsf,attributes,action,renderer
i want to completely rewrite a <h:commandButton> renderer. Now i'm stuck at rendering the "action" attribute of the button. Is there a possibility to render this attribute the same way it gets rendered by the standard renderer ? Is there a possibility to retrieve the generated script from somewhere ?...

Access body as JSON in ActionBuilder

json,action,playframework-2.3
I'm using Playframework 2.3.X. I'm trying to construct an action function that validates fields in a JSON request.body. The use case is to build "blocks" of validation that I can then chain together. However, I can't seem to access the request.body as a JSON inside the action builder. The following...

Unable to retrieve a property from oozie.action.conf.xml

java,hadoop,action,config,oozie
I am trying to access a property that is set through oozie java action configuration but I am not getting the value I was looking for, wondering if I can get any help on this? My workflow ........... <action name="ref-record-load"> <java> <configuration> <property> <name>oozie.launcher.mapred.child.java.opts</name> <value>-Xmx4g -XX:MaxPermSize=256m</value> </property> <property> <name>load.type</name> <value>full</value>...

Output and Command Link in one in JSF

jsf,hyperlink,action
Is there a possibility to use both outcome and action in the same command link? I tried <h:commandLink outcome="page?faces-redirect=true" value="Got to Page" action="#{Bean.setValue("...")}" /> but it ignores the outcome. I have a table with data like this: ID Name Other Things Link to Next Page So I want to give...

set navigation backBarButtonItem to go to specific UIViewController in Swift

swift,action,backbarbuttonitem
I need the navigation's back button always pops a specific UIViewController. override func viewDidLoad() { super.viewDidLoad() //set title image var logoImage:UIImage = UIImage(named: "barra")! var logoImageView : UIImageView = UIImageView(image: logoImage) logoImageView.frame = CGRectMake(0, 0, 320, 44) logoImageView.contentMode = .ScaleAspectFit logoImageView.contentMode = UIViewContentMode.Center logoImageView.clipsToBounds = true self.navigationItem.titleView = logoImageView //set...

Use property variables for the next action which is call by form

hibernate,java-ee,web-applications,struts2,action
I have one jsp web page which is the result of an iterator struts. In other words I have a list which is the result of an easy hibernate query select from TABLE. Iterator struts2: <s:iterator value="usersList"> <s:property value="userName"/> </s:iterator> At the same time my jsp page has one form...

struts.convention.result.path is not working in Struts2

java,configuration,struts2,action,struts2-convention-plugin
My current project structure is as follows WebContent WEB-INF View TestPage.jsp other JSP pages... My assignment is to put all JSP pages inside folder WEB-INF and do all relative changes in the project. WebContent WEB-INF View TestPage.jsp other JSP pages... So I have to update all result tag in struts.xml...

How to action a form with JavaScript [closed]

javascript,forms,character,action
I'm new in this domain so please excuse me if I don't speak technically correct. I have a form with a red border. When I enter a character in the form, the red border has to disappear. How can I do this in JavaScript? Thank you very much! ...

Comparing dates using Dynamic Action on DatePicker Oracle Apex

oracle,dynamic,datepicker,action,oracle-apex
I have a date picker where the user simply chooses a date then a Dynamic Action is suppose to send an alert if the user clicks tomorrow(sysdate+1). The Datepicker term is the simple layout. The Dynamic Action--> Name: Valid Date Event: Change Selection type: Item(s) Item(s): datepicker_name Condition: equal to...

error calling metod and/or action controller

ruby-on-rails,ruby-on-rails-4,routes,action
i have this problem: I should decrement an attribute "quantity" of a line_item. So i created a button_to to do this. The problem is that even if i created the new action "less" in the controller of line_item and added it in the routes , my function doesn't work. Can...

One button with 2 actions

winforms,powershell,button,click,action
I did try to make 1 button that makes 2 actions: one on the 1st press (click), the other on the 2nd press (click), and repeat. However, none of my approaches worked for me, so I made 2nd button to make 2nd action, but I would really like to have...

Testing custom admin actions in django

django,testing,request,action,admin
I'm new to django and I'm having trouble testing custom actions(e.g actions=['mark_as_read']) that are in the drop down on the app_model_changelist, it's the same dropdown with the standard "delete selected". The custom actions work in the admin view, but I just dont know how to call it in my mock...

Creating action for Idea plugin

plugins,intellij-idea,action
It's my first experience with creating Idea plugin, so I decided to read some manuals. They say it's required to create an action class. But "OK" button is disabled. What am I doing wrong? Thank you for your answers.

Are Func and Action Delegates in C# used by companies?

c#,events,delegates,action,func
I really wonder if the Func and Action delegates are used by developing companies. And do they use it for events? I know it's a strange question but I already asked it to my teacher and many other people but nobody could give me an answer.

How do you import a variable from the main actions panel to a class file?

class,flash,import,action,panel
I've searched long for this one, but nobody seems to give a clear answer. I'm a beginner, and I want to import a variable from the main "F9" actions panel into a class file so it can read it (example: in main .fla file, I have a variable var myNumber:Number...

Unload addin .xla when uninstall Excel interop add-in

excel,interop,action,add-in,uninstall
I have an Excel interop module A (that display on the menu bar) which in turn load another Excel add-in B.xla when Excel is loaded. A is installed into Excel by an msi installer. B.xla is charged via AddIn addin = excelApp.AddIns.Add(xlaFile); if (!addin.Installed) addin.Installed = true; When I uninstall...

how to get the current action id in Yii?

php,url,yii,action
I need a function to get the current action Id, for example if the url is /controller/view/5 I want to get the 5 which is the action Id, how I can do that in Yii?

Does order of BizAgi form actions have any effect on how they are executed ? If so, is there any way to rearrange them?

forms,validation,action,bizagi
I have a bizagi form and actions associated with it under actions and validations. Does the order in which these actions are specified affect the order in which they are executed ? For eg. I have radiobutton rdBtnType, if I have 'rdBtnType changes' and 'rdBtnType changes to ABC' actions specified,...

Change form action url when mobile is detected?

jquery,forms,mobile,action
I'm using a simple form: <form class="myform" action="desktop.php" method="post" name="none"> But now I want that he detects when user goes mobile that the form action url is different (mobile.php). Is that possible? Maybe with jquery?...

Shortcut in Python for repetitive actions with variables?

python,performance,object,action,shortcut
I was wondering if there is a way to express the following code in a shorter way using Python. There is placedWall, placedFlyer, placedSpring, and placedDiamonds. And, placedWallList, placedFlyerList, placedSpringList, and placedDiamondsList. I want to do this because I am going to add more objects with the same repetitive actions,...

Method or delegate parameters do not match delegate parameters

c#,parameters,action,func
I'm doing some asynchronous caching and I'm using a simple Action callback to let the rest of the system know when the caching is complete. The entry point (the line causing the error): this.StartCoroutine<Action>(SceneUtils.CacheSceneNames, PopulateButtons); Coroutine method: public static IEnumerator CacheSceneNames(Action completedCallback) {} Callback method: private void PopulateButtons() {} And...

Adding diffrent hyperlinks to each row in Reporting Services

sql-server,reporting-services,hyperlink,report,action
So I need to add different hyperlinks on each generated row. What I mean, I have SQL query to select some data like this: Name Description First First should be clickable and open www.url1.com Second Second - open www.url2.com Third Third- open www.url3.com .... SQL query: -- this is example...

role of classic ASP theForm.NextAction.value and classic ASP projects (or lack thereof)

file,asp-classic,action
I have inherited a classic ASP set of files that is "Spaghetti" code [that's off my diet, but I digress]. There doesn't seem to be a project file that I can find. Is that normal for classic ASP? Also, what exactly does the following line do: theForm.NextAction.value = "myAction1"; myAction1...

ActionBar does not work, Android

android,android-actionbar,action
I have a problem with ActionBar. I set minsdk in AndroidManifest to 14. Next I create Activity (BlankActivity), thats create MyACtivity class which extend ActionBarActivity and import android.support.v7.app.ActionBarActivity. I think that this library need only if you use sdk level 7 or lower. This import correctly? Or i need use...

Java JButton.setAction(…) null's button text

java,swing,jbutton,action
The following code renders a JButton without text: public abstract class Test { public static void main(String... args) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) { e.printStackTrace(); } SwingUtilities.invokeLater(() -> { JFrame frame = new JFrame(); JPanel panel = new JPanel(); String text...

Action not working correctly in SpriteKit

ios,swift,sprite-kit,action
I'm new to iOS programing and I'm experimenting to learn trying to create a game in swift using Sprite Kit. What I'm trying to achieve is having a constant flow of blocks being created and moving rightwards on the screen. I start by creating a set which contains all the...

How to detect when a specific window is closed in java

java,events,window,action,windowlistener
I'm pretty new to Java and I've tried looking this up but couldn't really find any thing that helped. I'm wondering how I could detect when a specific window is closed? I've been using windowClosing() but this applies to any window that is closed, and so the event that I...

What the difference between using .NET tasks with method and action?

c#,.net,action,task
Method: static void HelloWorld() { Console.WriteLine(“Hello, world!”); } What the difference between Task t1 = new Task(HelloWorld); and Task t2 = new Task(new Action(HelloWorld)); ...

Is there any reason to use a function with a void return over an Action in C#?

c#,function,delegates,action
Save for tradition, is there a reason why I would want to use void foo(int k) { // stuff } over Action<int> foo = new Action ((k) => { // stuff }); More generally, are there any practical advantages to defining my functions normally instead of defining them as delegates?...

Action object Form Object Command Object

forms,spring-mvc,action
Can someone explain in the context of a Web application what do these mean? I am reading up on Spring MVC reference and see these terms thrown around.