Get element that triggered action

Hello,
Does anybody know how to find out which element on the screen triggered the action? Within action method I need to know which element triggered the action.
Elements are created dynamically and action to them is bound during run time.
Thank you.

Example: You have 2 buttons "B1", "B2" and both are assigned the same action. How to know in the action handler which button was pressed?
Solutions: Event parameter mapping
B1.mappingOfOnAction().addParameter("Button", "B1");
B2.mappingOfOnAction().addParameter("Button", "B2");
Declare an action parameter "Button" of type String. Then at runtime, this parameter will contain "B1" or "B2" depending on the button that was pressed.
Armin

Similar Messages

  • E4X : How to get elements that contain a string pattern in the node name?

    Is there a way to extract children from an XMLList where the node name of a child contains a string pattern?
    For example :
    <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>
    How to get the elements of record that have a node name that contains the string "blah"?

    var rec:XML = <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>;
    var r:RegExp = /blah/;
    var elems:XMLList = rec.children().(localName().search(r)>-1);
    trace(elems.toXMLString())

  • Get Agent that triggered SCOM Alert

    Hi Everybody!
    Is there a way to get the agent id that has triggered an alert in SCOM? Maybe with Powershell or SQL Query?
    I was searching the Internet and tried some things but still have no solution for it ...
    We are using SCOM 2012 SP1.
    I need that for an Orchestrator Runbook that creates incidents in our ticket system (it's not SCSM ;)).
    Thank you!
    Wolfgang

    For SQL, executing the below query would get you the agent id
    select basemanagedentityid from alert where <<your condition>>

  • Retrieve elements that fail validation

    Hi..
    I've succeeded in parsing an XML string with schema validation. For my app I need to get a reference to the element that triggered a SAXException. How do I obtain a reference to that node. Could I in a simple way create simple contenthandler extention that just logs every element that passes the parser? Any suggestions will be most welcome.
    Kind Regards,
    Rune Bj�rnstad.

    Hi,
    I think the parser will throw a SAXParseException, which you
    can catch by registrating an ErrorHandler for your parser:
    sample:
    DocumentBuilder builder = factory.newDocumentBuilder();
    builder.setErrorHandler(new wpErrorHandler(MODULE_ID,appGUI));
    the wpErrorHandler is a extension of the ErrorHandler class (see code below) Once an error occurs, the following methods, can be thrown.
    I am not, sure but it seems, that you can't get the element/node as a
    result, but you get the linenumber in the XML file instead.
    You can register an ErrorHandler on both DOM & SAX. (I use the one below and specify a Module ID ,s o I know which coded generates the
    error).
    public class wpErrorHandler implements ErrorHandler {
    private int count =0;
    /** Error handler output goes here */
    private String module;
    wpErrorHandler(String module) {
    this.module = module;
    /** Returns a string describing parse exception details
    private String getParseExceptionInfo(SAXParseException spe) {
    count++;
    // String systemId = spe.getSystemId();
    // if (systemId == null) {
    // systemId = "null";
    String info = "[" + count + "]" + "Line=" + spe.getLineNumber() +
    ": " + spe.getMessage() + "\n";
    return info;
    // The following methods are standard SAX ErrorHandler methods.
    // See SAX documentation for more info.
    public void warning(SAXParseException spe) throws SAXException {
    String message = "Warning: " + getParseExceptionInfo(spe);
    gui.logArea.appendBad(module, message);
    // throw new SAXException(message);
    public void error(SAXParseException spe) throws SAXException {
    String message = "Error: " + getParseExceptionInfo(spe);
    gui.logArea.appendBad(module, message);
    // throw new SAXException(message);
    public void fatalError(SAXParseException spe) throws SAXException {
    String message = "Fatal Error: " + getParseExceptionInfo(spe);
    gui.logArea.appendBad(module, message);
    // throw new SAXException(message);
    public int getNumOfErrors(){
    return count;
    } // wpErrorHandler
    Cheers / Christophe

  • Ho do I convert my Elements 5 Catalog to Elements 13 which I just purchased.  I followed one of the tutorials and converted my Elements 5 Catalog to a "pse.13db" file.  How do I get Elements 13 to recognize that converted file?  When I open Elements 13 Ca

    Ho do I convert my Elements 5 Catalog to Elements 13 which I just purchased.  I followed one of the tutorials and converted my Elements 5 Catalog to a "pse.13db" file.  How do I get Elements 13 to recognize that converted file?  When I open Elements 13 Catalog Manager and browse to the correct location, it doesn't show the file.  Help!  Thanks

    Bumps a écrit:
    Yes - I can run both versions on my PC.  But I really would like to have all of my pictures in the same catalog.
    You can't merge catalogs (even PSE13 ones) in any PSE version (only LR can do that). So, converting catalogs is not the solution to your problem.
    Since you have PSE5 working on your computer and your images also, the solution is to 'write metadata to files in PSE5) and to re-import the images in the PSE13 catalog. That won't duplicate your image files and you'll lose albums/collections, stacks and version sets, but you'll recover tags, captions and ratings.
    To be able to re-import the files indexed in PSE5, you may have to move them to a new master folder.
    I am not sure what your problem with the conversion may be. It's quite possible that the resulting catalog.pse13db is ok and that the issue lies in the ability to open it in the PSE13 organizer.
    As stated by dj_page, double clicking on that file should open the organizer with the new catalog. You could test that by creating a dummy catalog in PSE13 and importing a small batch of photos. Locate the path of the catalog with the menu Help/system info. Copy the catalog.pse13db in another folder and the 'double click' way to open the organizer with that moved catalog database.
    For other users that may be interested in using PSE5 (issued in 2006) on newer OS, here is a useful link:
    Adobe - Photoshop Elements : For Windows : Adobe Photoshop Elements 5.0.2 update

  • How to create an UI element dynamically on action in drop down?

    Hi,
    How to create an UI element dynamically on action of selecting a value from the  drop down?
    help out with the steps i need to follow..

    Hi,
    <u><i><b>Dynamic UI Element creation</b></i></u>
    We can create it only in the WD Modify View.
    Get the instance for the Root UI Element Container.
    Create the UI element Ex: Input Field, Text View etc.
    Bind the UI Element to the Attribute Value.
    Now bind the UI Element to the Root UI Element Container.
              IWDTransparentContainer root =(IWDTransparentContainer)view.getRootElement();
              IWDDropdownByIndex DdbName = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbName");
              IWDDropdownByIndex DdbAge = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbAge");
              IWDDropdownByIndex DdbGender = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbGender");
              IWDNode Mad =wdContext.getChildNode("Person",0);
              IWDAttributeInfo NameAtt = Mad.getNodeInfo().getAttribute("Name");
              IWDAttributeInfo AgeAtt = Mad.getNodeInfo().getAttribute("Age");
              IWDAttributeInfo GenderAtt = Mad.getNodeInfo().getAttribute("Gender");
              DdbName.bindValue(NameAtt);
              DdbAge.bindValue(AgeAtt);
              DdbGender.bindValue(GenderAtt);
              root.addChild(DdbName);     
              root.addChild(DdbAge);
              root.addChild(DdbGender);
    <u><i><b>Dynamic Action Creation</b></i></u>
    Create the Action in the Action tab.
    Create a Button.
    Get the reference for the created action (Through the Event Handler).
    Bind the Action to the Button.
    Bind the Button to the Root UI element Container.
    IWDButton ButGo = (IWDButton)view.createElement(IWDButton.class,"ButGo");
    IWDAction ActGo = wdThis.wdCreateAction(IPrivateStartView.WDActionEventHandler.GO,"Click");
    ButGo.setOnAction(ActGo);
    root.addChild(ButGo);
    Now write the required code for the Event Handler that is associated with the Action.
    //@@begin onActionGo(ServerEvent)
        IWDNode Mad = wdContext.getChildNode("Person",0);
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Name"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Age"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Gender"));
    //@@end
    Regards
    SURYA

  • The target element was not found, so all intermediate elements were ignored. As a result, an incorrect element that matches the target element's search properties can be found. Verify that all intermediate elements in Query Id have valid and unique search

    Hi All,
    I am using CUIT to write automated UI test cases. I have a dialog containing few edit control and buttons. 
    While running the test it is able to click the button.
    However I am getting few warnings as below.
    The target element "Technology Name: 'MSAA';Search Configuration: 'VisibleOnly'; Search Properties - ControlType : 'Button',Name : 'OK'" was not found, so all intermediate elements were ignored. As a result, an incorrect element that matches the target
    element's search properties can be found. Verify that all intermediate elements in Query Id have valid and unique search properties.
    Technology Name: 'MSAA'
    Search Configuration: 'VisibleOnly'
    Search Properties - 
         ControlType : 'Button'
         Name : 'OK'
    Mouse button : 'Left'
    I need to resolve these warning. Can anybody suggest me how to resolve these warnings.

    Hi sanjay_t,
    From these warning message as you provide, I doubt that maybe the button control did not be found successfully by the searchproperties when you playback the Coded UI test.
    So I suggest you can try to use DrawHighlight Method  to check if the button control
    is found before you perform actions on the button target control.
    (2)I suggest you can try to use
    FindMatchingControls Method on the button control to check if there are more than one control which matches the specified searchproperties and filterproperties.
    In addition, as you said that you are using CUIT to write automated UI test. it means that you record the UI action by handing code, am I right?
    If yes, I suggest that you can create a simple coded UI test through recording actions using Coded UI Test Builder. Then
    generate the code and then try to playback. If playback succeeds, then cross check the properties from UIMap.Designer.cs file. You can reference the code about entering values in the text edit in the UIMap.Designer.cs file to write
    your own code.
    For more information about how to find a control for coded UI test, I suggest you can refer the following blog.
    http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while crawling LOB contents in SP 2013:'Could not find default endpoint element that references contract in the ServiceModel client configuration section

    Hi,
    I created custom BDC Model using Visual Studio. In ReadList method i am getting data using Web Service call. Using this External Content Type (BDC Model) i created one external list and it is populating with data.
    I created one new content source in search service application using this BDC Model and when crawled this content source i am getting the below error.
    Error while crawling LOB contents. ( Error caused by exception: Microsoft.BusinessData.Runtime.RuntimeException MethodInstance with Name 'ReadList' on Entity (External Content Type) with Name 'Entity1' in Namespace 'bcsex.BdcModel1' failed
    unexpectedly. The failure occurred in method 'ReadList' defined in class 'bcsex.BdcModel1.EntityService1' with the message 'Could not find default endpoint element that references contract 'ServiceReference1.Service1Soap' in the ServiceModel client configuration
    section.
    I included the bindings and client end point configuration settings in web.config file located at
    \\Inetpub\wwwroot\wss\VirtualDirectories\Port_Number, but still getting the same error.
    Please help. Thanks a lot.

    The Issue resolved by including the bindings and client end point configuration settings in
    machine.config file located at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\ and also restarted the server after config changes.

  • How do I get Elements to occupy full screen on my macbook pro? - the docking station remains visible and I don't want to have the dock in hide mode?

    How do I get Elements to occupy full screen on my macbook pro? - the docking station remains visible and I don't want to have the dock in hide mode?

    Unfortunately, there is no answer to this problem via this link. It may be that this is simply how the software actually works. It is a design fault in Adobe Photoshop Elements. It is possible to temporarily hide the dock within 'system preferences'. Oh well. Someone may know better.... I hope!

  • How can i get elements 10 to install?

    i've been having issues for weeks trying to get elements 10 to install. i got it with my intuos 4 tablet, downloaded it, and i have the serials ready to go.
    however, everytime i try to install, it stops around 30% into it and says there were errors. exit code 7???
    so i look it up online and do the many, many suggestions it says to offer a fix to the problem, but none of them worked. i emailed waccom about the issue, but have yet to recieve a reply yet. figured it might be better to come here and ask. and i did try the adobe support software thing. even that won't install on my computer. wondering if my computer just hates adobe products. anyways, this is what i get when trying to install:
    Exit Code: 7
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 11 error(s), 6 warning(s)
    ----------- Payload: {3F023875-4A52-4605-9DB6-A88D4A813E8D} Camera Profiles Installer 6.0.0.0 -----------
    ERROR: DW062: Unable to locate folder for token SharedDocuments
    WARNING: DW036: Payload cannot be installed due to dependent operation failure
    ----------- Payload: {D1B83970-7269-48BE-8B0E-5120D9327E52} Adobe Player for Embedding 3.1 3.101.0.0 -----------
    ERROR: DW062: Unable to locate folder for token SharedDocuments
    WARNING: DW036: Payload cannot be installed due to dependent operation failure
    WARNING: DW036: Payload cannot be installed due to dependent operation failure
    WARNING: DW036: Payload cannot be installed due to dependent operation failure
    WARNING: DW036: Payload cannot be installed due to dependent operation failure
    WARNING: DW036: Payload cannot be installed due to dependent operation failure
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - PSE10 STI Installer: Install failed
    ERROR: DW050:  - Adobe XMP Panels CS5: Install failed
    ERROR: DW050:  - Camera Profiles Installer: Install failed
    ERROR: DW050:  - Photoshop Camera Raw for Elements 10: Install failed
    ERROR: DW050:  - Photoshop Camera Raw for Elements 10 (64 bit): Install failed
    ERROR: DW050:  - Adobe Player for Embedding 3.1: Install failed
    ERROR: DW050:  - AdobeHelp: Install failed
    ERROR: DW050:  - Camera Profiles Installer_6.4_AdobeCameraRawProfile6.0All: Install failed
    running on gateway with dual-core processor, 250GB HDD, 4GB DDR3 memory windows 7 home premium

    Exit Code 6 and 7 are generic failures. Could you have a look at this document and run through the first 2 solutions and let us know if it helps.
    http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html. The document I found is for Creative Suite, but should give you a general direction.

  • I'm new to photoshop-should I get elements or cs6?

    I'm new to photoshop, and I can't tell which version of photoshop to get? Do I get elements 11, or cs6?
    I don't have a massive budget, as I am new, but I want to be able to start editing pictures.  Please can someone advise which I should get?I'm very confused with how many different types of programmes are available!
    Thanks!

    PSE11 is a good start but you could also try Corel's product from this link:  <http://www.corel.com/corel/product/index.jsp?pid=prod4900067>  Personally, I prefer corel's product and it is priced very competitively at Amazon.  They also have an ultimate version but not sure if you need that.
    Good luck.

  • Photoshop elements 10 will not migrate to my new macbook pro/retina display.  There is no CD/DVD player on this machine.  Any suggestions on how to get Elements onto my machine?  Yes, I have the disk(s).

    Photoshop elements 10 will not migrate to my new macbook pro/retina display.  There is no CD/DVD player on this machine.  Any suggestions on how to get Elements onto my machine?  Yes, I have the disk(s).  Am I going to have to buy an external CD/DVD player to load this one program:(

    I have ordered a USB3 BluRay/DVD/CD player/burner and will use that both with my iMac ( in which the Superdrive seems to be failing ) and the MBPro Retina I just bought .

  • How do I get Elements 13 64 bit to play .mts video files with sound as they do in Elements 11 32 bit?

    I have upgraded to Elements 13 64 bit from Elements 11 32 bit and .mts video files now play without sound - they still play perfectly with sound on Elements 11 32 bit.
    Is there something that needs to be changed to get Elements 13 to play them with sound or have Adope simply hooped .mts playback in Elements 13 64 bit?
    I am running on Windows 8.1 Professional with Media Centre on a Dell XPS15 and have Elements 13 64 bit and Elements 11 32 bit installed.
    Adobe, how do I get the support that is supposed to be available for 90 days after activation?

    Hello jl666,
    I have noticed the same issue having upgraded to PSE13 64bit from PSE9 on Windows 7.  This has been reported to Adobe in several forum threads and I have myself tried on three occasions to get Adobe Technical Support to acknowledge or respond to this issue, so far without any success. 
    Despite the fact that Adobe publically claims to support this format, I was told in my last chat with their technical support that I should buy Premiere Pro and that Elements has never and does not support any video data...
    Unterstützte Dateiformate | Premiere Elements, Photoshop Elements
    Here is my chat transcript which I attach in the hope that someone from Adobe will take this issue seriously and work towards providing a fix.
    Sanyogita: Hello. Welcome to Adobe Technical Support.
    Jon Barber: .MTS files no longer play with sound. .DV files no longer play at all.
    Jon Barber: Hello
    Sanyogita: One moment while I look up your customer record.
    Sanyogita: Please allow me a moment to search for the information.
    Jon Barber: ok
    Sanyogita: I can see you have PSE 13
    Jon Barber: Correct and previously PSE 9 where everything worked fine...
    Sanyogita: MAy I know which application are you using for >MTS files
    Sanyogita: .MTS files
    Jon Barber: This issue is mentioned in various threads in your forums as well, but no response or solution from adobe yet
    Jon Barber: Organiser just double clicking on the file to play it. They play, but with no sound. When I play them in Windows the sound is correctly played
    Sanyogita: In PSE 13 there is no provision of playing videos with sound
    Sanyogita: You need premiere pro to play videos with sound
    Jon Barber: Other formats are correctly played with sound. 
    Jon Barber: Please tell me why I have paid €80 to upgrade from PSE9 to get worse functionality then!
    Jon Barber: This is nonsense!
    Sanyogita: You should purchase Premiere pro for videos
    Sanyogita: PSE 13 is only for photos
    Jon Barber: Complete nonsense and not advertised in your documentation. Are you trying to tell me that no video files play with sound, because that is simply not true!
    Sanyogita: Please purchase Premiere elements for videos
    Jon Barber: Adobe sucks - I will pass your comments onto the appropriate forum threads and hope that other customers also let you know how they feel about this reduction in functionality from previous versions.
    Sanyogita: previous versions of PSE never supported video application
    Jon Barber: You are misinformed. These videos work fine on PSE 9 and most files still work on PSE13, just .MTS files have no sound
    Sanyogita: I am sorry ,I am not an expertise in this product
    Sanyogita: Let me connect you to that team
    Jon Barber: Yes,I can tell that - perhaps you could pass this open bug onto someone who does
    Jon Barber: Please do not close this bug - I am getting annoyed at having to reopen it
    Sanyogita: Please stay online I will transfer your chat now
    Jon Barber: ok thank you
    info: Please wait while I transfer the chat to the appropriate group.
    info: You are now chatting with Jayita Sen.
    Jayita Sen: Hello. Welcome to Adobe Technical Support.
    Jayita Sen: Please allow me a moment while I look into your account & verify the details.
    Jon Barber: Hello
    Jayita Sen: John we only support download &  first installation of PSE 13
    Jayita Sen: please contact the forums for further support
    Jon Barber: This issue is mentioned in several forums and no solution has so far been forthcoming from Adobe.
    Jon Barber: I paid €80 to upgrade from PSE9 and now have worse functionality than before and now you are telling me you cannot help. Is that what Adobe considers customer support?!
    Jon Barber: By the way I did recently download and initally install PSE13 so according to your rules you should provide support.
    Jayita Sen: Jon we don't support "Unexpected behaviours or how to issues"
    Jayita Sen: only forums support it
    Jon Barber: This is not a 'how to issue', it is a bug!
    Jon Barber: It is functionality that previously worked and no longer does. I am not requiring lessons in how to use the system, just trying to do something that already worked in previous versions.
    Jon Barber: Frankly I find these support responses from Adobe shocking. What I expect to hear from you is 'thank you for highlighting this issue, we will work on finding a solution and get back to you and others with the same problem in the customer forums" Not an extraordinary set of excuses for poor software.
    Jayita Sen: I am sorry Jon...but forums is where you can only get the support
    Jon Barber: Customers having to help customers since clearly no-one at Adobe has a clue about their own product. How many customers do you expect to have in 12 months with this service?
    Jon Barber: Goodbye - please contact me if you are geniunely interested in helping your customers rather than fobbing them off with excuses.

  • How can I get Elements 11 to open up in Organizer rather than Editor?

    How can I get Elements 11 to open up in Organizer rather than in Editor?

    Well, you can go to Window>Welcome and make your change there, but the welcome screen leaves a process always running, so you would do better to go into the Program Files or Program Files (x86) in windows or the applications folder on a mac and find the actual .exe/application for the organizer and make a desktop shortcut/dock icon and use that in the future to launch the organizer, avoiding the welcome screen entirely.

  • Is there any event that triggers when you switch between components?

    is there any event that triggers when you switch between components?
    like for example... when i switch between components, i need a function to fire everytime i switch...
    ive tried show, hide, and initialize... and none of them work...
    any ideas or help is greately appretiated!!

    Depends on what you are trying to do,
    you have mouseover and mouseout and mouseclick events which you can use on the component and write code to deal with what you want to happen when you change focus. You have keypress event which would allow you to monitor tabbing between components, remember that in most events the currentTarget and target values will give you the information you need to handle component interaction.
    so
    [Bindable] private var CurrentObject: Object; <-------  use this as a pointer to what ever object you are currently focused on or just to indicate things have changed
    addeventListener(MouseEvent.CLICK,myCompponentSwap);
    protected function myComponentSwap(e:event): void
        if (CurrentObject !=e.currentTarget && CurrentObject != null)
             do what you want becuase a component switch just happened
        CurrentObject = e.currentTarget;
    Hope this gets you started.
    David

Maybe you are looking for