get the current event (name) of a field - possible / how to?

Hello

I wonder if it is possible to get the name of a field as event:

(form.pag1.mytextfield::enter - JavaScript, client)

var eventname = this.MagicJSfunction();

It is of course possible to get the current name of the event with:

(form.pag1.mytextfield::enter - JavaScript, client)

var eventname = event.name; 

It's a shame it's always = 'Focus' wherever I use it (form.pag1.mytextfield::ENTER - JavaScript, client) (form.pag1.mytextfield::EXIT - JavaScript, client)

(form.pag1.mytextfield::enter - JavaScript, client)

my_scripting_obj.my_set_design_function(this, eventname);

Reason:

I use to change the structure of a field in realtion to his event in my script object. By calling the function of my script object, I'd use some copy/paste.

I have more than 120 field where this function must be called to enter and exit the event.

Hello

Does that help? http://assure.ly/h8ZLr5.

In this case, I call the function entry and exit of the events of each field.

Niall

Tags: Adobe LiveCycle

Similar Questions

  • How to get the current file name and & or path

    How can I get the current path or the file name?

    I have really found the answers in the net. This.Path or app.path have been proposed, but I couldn't make it work.

    Thanks in advance for your answer!

    LiveCycle Designer ARE 8.2.1.3144.1.471865

    Hello

    event.target.path.toString ();  will give the full path, including the file name.

    event.target.documentFileName.toString ();  will give the file name only.

    Good luck

    Niall

  • I want to erase the search results for certain searches. When I search for some keywords I get old SERPs that I know are not up-to-date. If I use a different machine, I get the current results. I can't find how to clear it.

    I am tracking my own Web site position in search rankings. For a short period, he appeared on page 1 for certain keywords. It is now on page 2 or 3, (as seen by me and other users when you use another computer or a browser), but when I search on my computer I see the old pages of results showing the top of page 1. How can I erase these old pages of results?

    If you press Ctrl and F5 at the same time, that changes? I think that Google (I guess that's what you're referring to the) changes in search results is inspired by a little if you are connected and preferences, etc.. Try to connect on google if you are connected.

  • Get the current name of the page without the aid of a bean

    Hello, everyone!

    If I would get the current name of the page to a page, I'd do something like this:
    #{bean.currentPageName}
    @SessionScoped
    @Named
    public class Bean
    {
        public String getCurrentPageName()
        {
            return FacesContext.getCurrentInstance().getViewRoot().getViewId();
        }
    }
    But my question is: is it possible to get the name of the current page directly from the xhtml page without using a bean? Is it something related to it or information available to the page itself? If so, how can I access it?

    Thank you in advance.

    Marcos

    Use the same semantics in the page:

    #{facesContext.viewRoot.viewId}
    
  • Get the current value of a control of the ring

    I have a control of the ring that has the following values. See attacment. I need to get the current value of this one and use it as input for another function, but First I would like to get the current value and save ina text file. I tried this

    if (event == EVENT_LEFT_CLICK_UP) || (event == EVENT_LEFT_CLICK_DOWN)
    {
        int p;
        GetCtrlVal (panelHandle, PANEL_RINGSLIDE_1, &p);
        FILE *OutFile = fopen("C:\\Users\\Student\\Desktop\\ringtest.txt","w");
        fprintf(OutFile,p);
        fclose(OutFile);
    
    }
    

    I need to get the current value of the ring (& p) to write to the file ringtest.txt.

    Also, I need to use this value (& p) as another entry in the same program.

    IE value of & p must be used in

    b = c * 5; where c is the value of the current & p.

    Can any 1 help?

    You're right: EVENT_LEFT_CLICK_DOWN is not a valid event for the CVI. Valid events are listed in the userint.h file, and are the only events that can be caught in the trap in a point of order. On the other hand, you're assuption on EVENT_VAL_CHANGED is correct: you can trap forget the EVENT_CLICK_UP event.

    According to the second question, looking at the definition for fprintf you must pass a string format as the second parameter to the function, then the value to write to the file. In your case, the correct syntax is:

    fprintf (OutFile, "%d", p);

  • Get the current Message of the new screen open message context

    When you open the application again [email] message you can use a ViewListenerExtended to get the current context of Message... but the user every interaction with the fields of composition creates a new Message object if you hold is no longer a valid reference (he gets cloned). By changes, I mean using the menu items to add/remove fields, typing in a topic, etc. Does anyone know how to get the context of new/current Message used while the demand again message is open and has been updated? MessageListener does not work for Messages being changed in the application of the new message.

    Update: the subject of the message is not be cloned, UI updates not the model.

  • How to get the current timestamp in C++ to the BB10 project

    Please help me how to get the current timestamp in C++. Thanks for your help!

    Following your suggestion,

    QTime is only for a day.  http://developer.BlackBerry.com/Cascades/reference/QTime.html#details

    I found "QDateTime" of references of the API: http://developer.blackberry.com/cascades/reference/qdatetime.html#toTime_t

    QDateTime = now QDateTime::currentDateTime();
    timestamp long = now.toTime_t ();

    But I got an error. I searched but no results are clear:

    -variable 'QDateTime now' initializer has but
    incomplete type
    -type incomplete "QDateTime" used in the nested name
    specifier of

    I am a newbie. So thank you for your help

  • CP8 Question: can I get the current URL path in a variable?

    Hello

    I want to get the current. HTM path and name of the file into a variable.

    An example would be http://mycompanyserver/training/health_and_safety/infection_prevention.htm

    I created a user variable called myurl

    In slide 1 to the output, I used some javascript I found on the internet var myurl = window.location.pathname;

    On slide 2, I set a text caption to display the myurl

    I published and took my server project.

    The result was an empty box of legend.

    Please, someone could suggest what I should use.

    (I don't want to use the Captivate system variable $$cpInfoProjectName$ $ like is not what I want)

    Thank you

    Peter

    Cardiff (cold, covered, wind and rain. A dark day)

    In Wales

    UK.

    Run this onSlideEnter of the first slide:

    If (window.cpAPIInterface)

    {

    window.cpAPIInterface.setVariableValue ('myurl', document.location.href)

    }

  • A select statement to get the current pay rate.

    If someone can share with me a select statement to get the current salary?

    Try the PER_PAY_PROPOSALS table with the fields Pay_xxxx.

    See if the following threads help
    Query to find the salary of the employee details in HRMS
    HR Payroll - how to calculate the average hourly rate for workers

    Sandeep Gandhi

  • Get the current language settings in the Custom Validation rule?

    Hello

    I read the book from Guide JDevelopers
    "In 26.9' custom application Validation rules.
    I ran the example to create custom Validation rules
    I ran my validation rule for English and Italian language using 'Message Bundles'
    I had EntityImplMsgBundle and EntityImplMsgBundle_it for the Italian language
    The Question is:
    Is it possible to get the current settings of the language used "get of in my custom validation class?
    I need to know if the current language is 'in' or 'it '.

    When I test my Applicaton of Module I can choose the configuration name: English EntityLocal and EntityLocalIT for the Italian language
    Can I access this validation custome bean?

    Kind regards.

    Hello

    Yes, you can access the local current in your validation rule by accessing the current session through the source of the entity object DBTransaction object. This is done by calling:

    ((EntityImpl)valCtx.getSource()).getDBTransaction().getSession().getLocale()
    

    HTH,
    Patrik

  • get the current date for condition satisfied

    Hello world

    I want to get the current date for the following query.

    SELECT B.NAME, C.FST_NAME, C WHERE S_CONTACT, S_ORG_EXT B, C.LAST_NAME OF S_PARTY_PER A (B.ROW_ID = A.PARTY_ID AND C.ROW_ID = A.PERSON_ID AND A.PERSON_ID IN (select D.NEW_VAL from the S_AUDIT_ITEM where D.OPERATION_CD = 'Associate' and OPERATION_DT = 'I want the current date from 07/10/2008 12:00:00 AM to 07/10/2008 23:55:55 '))

    Help, please...

    Hello

    Like this?

    SELECT B.NAME, C.FST_NAME, C.LAST_NAME
      FROM S_PARTY_PER A, S_ORG_EXT B, S_CONTACT C
     WHERE (B.ROW_ID = A.PARTY_ID AND C.ROW_ID = A.PERSON_ID AND
           A.PERSON_ID IN
           (select D.NEW_VAL
               from S_AUDIT_ITEM D
              where D.OPERATION_CD = 'Associate'
                and trunc(OPERATION_DT) = trunc(sysdate)
    --                'i want current date start from 10/7/2008 12:00:00 AM to 10/7/2008 11:55:55 PM'))
    
  • How to get the client computer name database?

    Hiya

    As part of the authentication of the user of our application, the requirement is that if a user is connected from a machine, the same connection of can not the user to different machines at the same time.

    In Forms6i, we had accomplished this by using the following query:

    Select the Terminal
    Session $ v
    Where username = v_username
    And v_terminal terminal <>;

    Where
    v_username = USER-> Oracle Forms reserve Word
    v_terminal = Client_Win_API_Environment.Get_Windows_Username

    In Forms 6i, the column Terminal of V$ Session used to return the name of the local client computer.

    However, in the form of 10g, it returns the name of the computer on which Oracle Application Server is installed, which seems correct to me.

    So my question is how do we get the client computer name of the database in the context of Oracle's 10g? Is there another package of database or view/table that returns the client computer name?

    Your suggestions/comments will be much appreciated.

    See you soon

    Mayur

    We have implemented the same exact requirement to retrieve the IP address of the client (WebUtil provides a function for this) and write it in the field v$ session.action (this can be done using the dbms_application_info package DB). We are so in shape 10g v assessment $session.action instead of v$ session.terminal.

  • I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?

    See above

    I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?

    You do backup your bookmark as a .json file?

    Restoration of bookmark

  • I want to get the current music, I have on my iPod out of it and start again. How can I do this?

    I want to get the current music, I have on my iPod out of it and start again. How can I do this?

    Open iTunes, plug in the iPod, select what you want to be on your iPod, sync.

  • Get the current value of the menu a cluster ring

    Hello

    I am trying to program a bunch of rings of menu to use the same options and disable the option even in the other rings of menu if it has already been chosen. It works essentially as is at the moment, but it shows each button by using a 'deactivated' option because I'm turning off the option even in the buttons that have this value. I did it using a loop knot and property and [] DisabledItems en mass. Now, I want to go to the iteration of the loop for the menu ring which already has this value.

    To do this however, I want to get the current numeric value of the ring of menu and an array of search values. If the value of menu rings appear in this table, then I want to move to the current iteration of the loop. The problem I have is that when I try to use a property node and type the property value, instead of giving me a long 32 output, it gives me the so-called 'Variant', which I have not seen before. I'm not sure how to find a table and see if the value I have is in this table. "Search table" seems just an index to be returned, I think that I want a Boolean or something. I'm also not sure how to skip an iteration of the loop (although I imagine it won't be too difficult to understand mine, I hope).

    I apologize if this is very obvious, or if my message is not clear. I started using LabVIEW, a few weeks ago and I'm still learning. I have included a picture of my Subvi downstairs.

    Thank you
    Nathan

    Variant of data allows to convert the variant to a numeric type (whatever representation you need).

    Search D 1 table returns-1 if the element was not found.  If you just compare the index with a greater or equal to zero and the result will be if the element was found in the table.

Maybe you are looking for