Get the name of the object raising the event

If I have a change event for a checkbox that is declared like this:

topmostSubform.Page2.Competitions_CB.Checkbox::change - (JavaScript, client)

How can I get the path of the object in a variable to process and extract the part "Competitions_CB"? Same route to the top of the tree of objects would be nice, but I can't seem to find the property that returns the object names.

I went through all properties that seemed likely, xfa.event, events and this, but nothing seems to be what I'm after.

Hello

With the help of 'this.somExpression' will return a string of the trajectory of the entire article;

XFA [0] form [0] .topmostSubform [0]. Page 2 [0]. Competitions_CB [0]. Box [0]

You can also use 'xfa.context.somExpression' to return to the same thing, using xfa.context is very convenient when the code is in a script object and called many events of the object.

In addition, "parent.name" would return the "Competitions_CB" part, so parent.somExpression would return

XFA [0] form [0] .topmostSubform [0]. Page 2 [0]. Competitions_CB [0]

Concerning

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • How to get the event when we change our simcard in BB device

    Hi all

    Please, someone tell how to get the event or any listener method that can automatically called when we change our SIM card device.

    Thanks in advance,

    TEJ

    Hi Tej,

    I came across some post, which may be useful for you

    http://supportforums.BlackBerry.com/T5/Java-development/is-there-a-way-to-get-the-mobile-or-phone-nu...

    http://supportforums.BlackBerry.com/T5/Java-development/is-SIM-ID-really-exist/m-p/54407#M5954

  • How to get the event target?

    I recorded the event mask depending on:

    App.notifiers.Add ("Hd",.. mpfprojectdir\dev10\src\csharp\projectbase.file path);

    Now, how can he obtain the object that triggered the event?  [app.active document.activeLayer] give me only the layer ".  Of course, this does not work in a scenario where the user hides a layer that is not selected.

    I'd appreciate any help!

    Action handler has no direct access to objects in the object model. It has its own class and object. Sometimes, there may be a more direct access by name. If the event descriptor was the index of the layer or the ID you can use instead of the name.

    Sorry, when I threw together for you I only tested hidding layers that do not have the activeLayer. I don't think that the alert is empty is because the top layer was hidden. I think it's because the activeLayer was hidden so the actionReference is different.

    Try this (which seems to work for me with both)

    try {
        if (arguments.length >= 2) {
        var desc = arguments[0];
        var event = arguments[1];
        // make sure it's the hide event
        if (event == charIDToTypeID('Hd  ')) {
            // get the list of what was hidden
            var list = desc.getList(charIDToTypeID('null'));
            // get the actionReferences from the list
            var ref = list.getReference(0);
            var psClass = ref.getDesiredClass();
            // make sure it was a layer that was hidded
            if(psClass == charIDToTypeID('Lyr ')){
                // check to see what is in the reference
                var dataEnum = ref.getForm();
                // should either be an enum if activeLayer
                if(dataEnum == ReferenceFormType.ENUMERATED) {
                        alert(app.activeDocument.activeLayer.name);
                }else{// or the layer name
                    alert(ref.getName());
                }
            }
        }
      }
    } catch (e) {
      alert( "Error: " + e + ":" + e.line );
    }
    
  • I transferred my pictures from the camera and they appear only in the last download and not events.  I tried everything, how can I get the events?

    I transferred my pictures from my camera to my mac, and they downloaded with the only place wherever they appear in "the last download" but not in "events".  I also downloaded on my macbook and had the same response.  I've never had this problem before and have tried everything.  How can I get them to appear in the "events"?  Since my last camera download, I have create a second library, but they are not more in the events.

    CTRL-click a picture on the last import, then select "Show event.  It shows the event?

  • SQL Server, get the event ID 10016 hourly

    Hi guys,.

    We get the error message below on our SQL with OS WS2012 server every hour.

    "The application-specific permission settings do not grant permission to local Activation for the application server COM with the CLSID.

    {FDC3723D-1588-4BA3-92D4-42C430735D7D}

    and APPID

    {83B33982-693D-4824-B42E-7196AE61BB05}

    the user NT SERVICE\SQLAgent$ IBSQL2012 SID (S-1-5-80-485265429-2350460967-4062759752-2586802043-2488535659) from address LocalHost (using LRPC) running in the container of the application unavailable SID (not available). This security permission can be modified using the Component Services administrative tool. »

    I have been through a few threats and read it from another post on the internet, but under Component Services, tab of the particular service related to this message (based on its APPID) I see that SYSTEM is already added and it has the Launch Local and local Activation permissions granted to the security.

    Why are we always get that number, because instead of local authorities, we should give remote "..." from LocalHost (using LRPC) address... » ?

    All thoughts

    MCG

    Ask the question in the SQL Server forums:
    http://social.msdn.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

  • How to get the events of the ItemRenderer

    Hello, I have a little problem. In my application, I use a list and build its elements with an itemRenderer. In this itemRenderer I have on each line, 1 label and 1 button. When I press the button I want to send this event in my main application... How can I create a communication between myApplication and itemRenderer?

    Thx for all

    Max

    
    
        
            
        
        
            
                
                    
    
                        
                            
                        
    
                    
                
            
        
    
    

    You can use the code above. Let me know if you have any questions.

  • How to get the event when you click Add another button in a table.

    Hello
    How to recognize the event in processFormRequest click on the button Add another line of the footer of a table?

    Suppose if the ID is anotherRow (I mean ID of the button to add another line of the footer)

    If I give if (pageContext.getParameter ("anotherRow")! = null)... its not recognizing the event that is returning null only...

    I want to perform certain actions when the user clicks Add another line of footer. Please let me know the details of how identify when add another line is clicked...

    Thank you
    Srikanth

    Hello

    If you have only one table with add_row_button, and then copy the following code works perfectly

    If (tableBean.getName () .equals (pageContext.getParameter (SOURCE_PARAM)))
    (& ADD_ROWS_EVENT.equals (pageContext.getParameter (EVENT_PARAM)))
    {
    ...
    }

    tableBean is the Handle for your advanced table, hope, it will help you.

    Kind regards
    Out Sharma

  • Get the event 680 Viewer when the guest account is disabled in Windows 2003

    Hello

    We have "guest" account disabled on Windows 2003, but again we see events like this

    <13>2 Jul 01:58:33 192.168.80.11 security MSWinEventLog 0 5768968 Sun Jul 01 15:58:32 2012 has 680 xxxxhostnamexxx Audit of the failures of the security user SYSTEM connection logon attempt by: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0 login account: comments Source Workstation: xxxhostnamexxx error Code: 0xC000006A 58482770

    What could be the reason?

    Thank you

    Hello

    Thank you for visiting the Microsoft answers community site. The question you have posted is related to Windows Server and would be better suited to the TechNet community.

    Please visit the link below to find a community that will provide the support you want.
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    I hope this helps.

  • How to get the event when the window is iconified?

    I want to set animation after I click the icon.
    Please help me.
    Thank you.

    stage.iconifiedProperty () .addListener (new InvalidationListener() {}
    @Override
    public void invalid (observable observable) {}

    }
    });

  • Get the name of the host that a virtual machine is running, rather than the host ID

    Hello

    Looking for a little help, I question the result of a get - vm of the. Run to find the name of the host to a virtual machine runs on. All I seem to get is the host id that is a number.

    Y at - it an option in the GET - vm, which displays the name of the host, or is it possible to remove the name of the host from the value of the provided host id.

    What I want to do is the following:

    Enter a name for the virtual machine, hop on the host his race, ask the host for its groups of ports available, introduce an option of these groups of ports and when you enter the name, set the Group of ports of entry. Without the actual host name I can't find it.

    $selectedVM = read-host "enter the name of the VM.

    $vm = get - vm $selectedVM | Get-opinion

    $runhost = $vm.runtime.host

    $portgroups = get-virtualportgroup - VMHost $runhost

    'Port available to connect groups '.

    $portgroups

    $selectedPG = read-host "enter the port group name.

    $netadapters = get-networkadapter - VM $selectedVM

    ForEach ($netadapter to $netadapters)

    {

    all-NIC - NIC NetworkName $netadapter - $selectedPG - StartConnected: $TRUE - confirm: $false

    }

    Any help on this would be really appreciated.

    Thank you

    Dan

    Hi Dan,.

    You can retrieve the host name by using the Get-VMHost cmdlet

    $selectedVM = read-host "Enter VM Name"
    $vmhost = Get-VMHost -VM (Get-VM -Name $selectedVM) | Select-Object Name
    $runhost = $vmhost.Name
    

    Hope this helps

  • Can not get the result of the command output to a text file...

    Hello

    I tried to get a list of my virtual machines (using PowerCLI) with CBT (block change tracking) enabled, and while the following command returns the results, I can't have it at the output to a text file. Any help you can offer would be appreciated.

    foreach ($vm in get - vm) {write-host $vm; get-advancedsetting - entity $vm | select-string - pattern 'ctkEnabled' | sort; write-host | out-file c:\somepath\file.txt}

    I get the correct result on screen, but the text file is empty.

    Please notify.

    Thank you

    Hello, wmilligan2013-

    You can get the information to an output file by removing the Write-Host calls.  How to do:

    Get-VM | Get-AdvancedSetting -Name *ctkEnabled* | Sort-Object Entity,Name |    Select Entity,Name,Value,Type | Export-Csv -NoTypeInformation -UseCulture c:\temp\advSettingInfo.csv
    

    Which will be, for any virtual computer that has a * ctkEnabled * advanced configuration, parameter information advanced output for such virtual machine to the CSV file in the appropriate location.  It relies on the ability to Get-AdvancedSetting to accept the VM objects as the value to - entity from the pipeline (so the foreach statement is not necessary) and used the - param Name of this cmdlet, avoiding any disorder Select-String.  I used Export-Csv to the output method so that you can easily consume these data later if you need to act on these data or even manipulate it.

    How does do for you?

  • Get-VIEvent - how to export the event type?  error, warning, or info

    Hello

    I know that the Get-VIEvent command allows you to specify the type of events to get back... that is to say [-Types < EventCategory [>]

    but, I want to extract all the events and export them to a CSV file. I want one of the columns to be "EventCategory", which will be ERROR, WARNING, or INFO, but I can't seem to find it.  $_. GetType(). Name gets me the type of event, but not the category.  I know that I can have my script executed 3 times (each time specifying the - parameter Types) but I want to run only once.  Any ideas?

    Thank you!

    Jeff

    Hello, horningj-

    I worked on a few elements that should attract the event category.  The first selects a few properties, including a calculated property that gets the event category:

    ## works well if no events of type 'EventEx'## get the .Net View object of the EventManager (used for getting the event Category) $viewEventMgr = Get-View EventManager ## get some VIEvents, select a few properties, including a calculated property for EventCategory Get-VIEvent | Select FullFormattedMessage, CreatedTime, @{n="EventCategory"; e={$strThisEventType = $_.GetType().Name; ($viewEventMgr.Description.EventInfo | ?{$_.Key -eq $strThisEventType}).Category}}
    

    It becomes VIEvents (the last 100, because I did not specify the parameter - MaxSamples) and returns the properties of data.  The calculated "EventCategory" property uses the type of the VIEvent object to search for in the collection of items EventDescriptionEventDetail in ownership eventInfo found in .net object View for the EventManager.  He then grabs the 'Category' of the corresponding element of EventDescriptionEventDetail property.

    Works fine unless you have any VIEvents type "EventEx" - then, this 'research' in EventDescriptionEventDetail collection method fails, because there is more than one element of this type (there are 91 of them at the moment).

    This led me to the next bit.  It is similar to the previous method, but it handles EventEx events too:

    ## get the .Net View object of the EventManager (used for getting the event Category)$viewEventMgr = Get-View EventManager
    
    ## get some VIEvents (the last 100, as "-MaxSamples" is not specified) Get-VIEvent | %{    ## put the pipeline varible into another variable; get its type    $oThisEvent = $_; $strThisEventType = $_.GetType().Name    ## if this event is of type "EventEx"    if ($strThisEventType -eq "EventEx") {        $strEventTypeId = $oThisEvent.EventTypeId;        ## get the EventInfo item (of type EventDescriptionEventDetail) whose "FullFormat" property begins with the EventTypeId of the VIEvent at hand, and get its "Category" property        $strCategory = ($viewEventMgr.Description.EventInfo | ?{$strRegexPattern = "^$strEventTypeId\|.*"; $_.FullFormat -match $strRegexPattern}).Category    } ## end if     ## else, can just grab the EventInfo item whose "Key" is the same as this event's type    else {$strCategory = ($viewEventMgr.Description.EventInfo | ?{$_.Key -eq $strThisEventType}).Category}    ## add a NoteProperty "EventCategory" to this event    $oThisEvent | Add-Member -MemberType NoteProperty -Name EventCategory -Value $strCategory -PassThru} | Select FullFormattedMessage, CreatedTime, EventCategory
    

    It seems that the EventTypeId of the event returned by Get-VIEvent is included in the first part of the property FullFormat of elements EventDescriptionEventDetail with EventEx key, separate from the rest of the value by a vertical pipe.  Thus, the EventTypeId of the VIEvents can be used to make a match on EventEx of events .net EventManager View object types to get the event 'category' (info, warning, error, user).

    You can, of course, change the Select statements to choice/choose the pieces of information you want to export and then export to a file of data as you please.

    How does do for you?

    * The message has been edited by mattboren on April 5, 2011 - added line at the beginning of the second piece of code '$viewEventMgr = Get-view event Manager.  It was already in the first room and assumes that the user has run the two parts in the same session, but added for completeness.

  • How to get the page change event?

    Hello.

    I know that get changed event document as ISignalMgr-> GetServiceID of CResponder::Respond.

    But how to get the event page?  average of the event's page add, delete, etc...

    Thank you.

    Hi K159,.

    You can spy on the InDesign debug Test/Spy/SpyPreferences menu for the observer notifications. Can add or remove a page and to analyze the output of the spy.

    On the kDocBoss, there is an interface IPageList form you can get the number of pages.

    Markus

  • How to get the global coordinates of the mouse of a scene?

    Hi guys,.

    I want to connect a node to the global coordinates of the mouse position. I tried several things, but not more than work as expected:

    1. APPROACH 1: setting a property onMouseMoved to the scene:

    ----
    scene.onMouseMovedProperty () .set (new EventHandler < MouseEvent > () {}
    @Override
    public void handle(MouseEvent me) {}
    stepDropper.setTranslateX (me.getSceneX () + 20);
    stepDropper.setTranslateY (me.getSceneY () + 20);
    }
    });
    ---

    This seems to work very well, but when the mouse is on a control node things are stripped: the node stops moving (I guess it's because control node that consumes the event)



    2. APPROACH 2: Adding a glass on top of the stage to listen because there onMouseMovedProperty() - this should prevent controls consume the event
    The problem is that when I add a knot of Rectangle glassPane on top of the stage, each node below becomes inactive (do not respond to events). As I know the blockMouse property that used to be in JavaFX 1.3 went because each default node spread events. Why the senior (rectangle) node glassPane blocks for the underlying nodes mouse events?

    Hello
    controls using mouse events, as they spread the scene. You must register an event-filter event filters are called during the capture/tunneling, which precedes the propagation phase, so filters get the events before that any manager of may consume.

    Just replace
    scene.onMouseMovedProperty () .set (new EventHandler() {}

    by
    scene.addEventFilter (MouseEvent.MOUSE_MOVED, new EventHandler() {}

    Pavel

  • How to get the select button event Radio in my co

    Hello

    I want to get the the radio button selection event in my co, how do I get the event?

    Hello

    841475 wrote:
    I want to get the the radio button selection event in my co, how do I get the event?

    -There is no case of option button.
    -you need to explicitily set the event for the option button.

    Action: FirePaatialAction
    Event: RadioEvent

    -Discover the event in co by code below:

    If ("RadioEvent". Equals (PageContext.GetParameter (EVENT_PARAM)))
    {
    -In the case of a radio button. :))
    }

    Concerning
    Meher Irk

  • Structure of the event does not clear the queue after his release from the Subvi

    OK I'm not sure if this is a stupid question or not...

    I was trying just a few tips and stumbeled on this problem...

    So I created a sample (not exactly)

    In qqq_Main.vi just press PressMe

    (it opens a Subvi qqq.vi)

    There are two buttons to stop "Alt1" and "pylone2".

    To close the Sub - VI press either on "pylone2".

    or press "Alt1", then "pylone2".

    with the latter method of the value of closing change pylone2 is registered outside the while loop and after the closure of the Subvi should not it be erased? (Or should manually clear us it?)

    For this reason not clear, the second time I press 'PressMe' change the value of pylone2 even goes off before you press anything

    I can't look at your code at the moment, but according to your description, it seems that the system works as expected. I guess you do a completely static record of events (open the event configuration dialog box and select the controls and event).

    The first thing to clarify is your use of the term "registered". In this case, it's a problem, because the registration in the context of the protests means asking to receive the event when it happens.

    Now that you know it's important to understand where the recording is happening, because that's what determines which events are stored in the queue. When you use this type of static record, registration happens from the VI the event structure is in run mode (Note: this does not mean that the VI is actually running, but just that it's the of running or reserved for the race) and the cancellation of registration only happens when the VI mode of execution. Who is right for which you get the events in the queue of the previous run of the VI - the VI is still in run mode, then the event is added to the queue and still waiting in the queue until the structure of the event to run again.

    You can work around something like that by switching to dynamic registration of events, where you can unsubscribe to empty the queue at the end of the VI, but requires more code. Also, in 2013 LV there are a few features added to events that could allow to do this statically (I don't study all the additions, so I don't know if this is possible for static recording).

    There is a good presentation on the events of NIWeek 2013 by Jack Dunaway. You can find details of how to download the video here - http://lavag.org/topic/16091-ni-week-2012-videos/

Maybe you are looking for