JQuery/JavaScript being updated automatically in PS

I do a customization for a delivered PS page. We are currently at 8.52 PeopleTools. My problem is that some fields on the page to trigger their own events FieldEdit and PS decides then "Refresh" after the FieldEdits are made and it "refreshes" the code for my own separate FieldChange event.

Here's what I put in place. I added a new button on field/column of a grid on the page to act as a 'click' event (FieldChange). This event calls a JavaScript function that now is simply making an alert but will eventually be a JQuery UI modal dialog box that will display the children of the line data, the user has clicked. All of the below code works when you click on the grid field I added, it displays the alert in "MyNewFucntion". The problem surfaces when you make a change to a field above the grid and tab out of it, PS "refreshes" and runs the my JS function call again even if it has not been selected.

I added a definition (HTML_JS_01) HTML that looks like this:

<! doctype html >

< head > < / head >

< body >

"< script src="//code.jquery.com/jquery-1.10.2.js "> < / script >

< script type = "text/javascript" >

{$(document) .ready (function ()}

$. MyNewFunction = function() {}

Alert ("Hello from MyNewFunction");

}

});

< / body >

< / html >

I have a box HTML (HTML_AREA_01) added to a page that is linked to a drift/work record(MY_WRK_RECORD/FIELD1) that has the following code on the RowInit:

Local channel & html;

& html = GetHTMLText (HTML. HTML_JS_01);

MY_WRK_RECORD. HTML_AREA_01.value = & html;

With the above code, I have the effect of having this set function when the page is loaded.

I have another box HTML (HTML_AREA_02). There is nothing special about this one that I use just to inject a call to my 'MyNewFunction' JavaScript function

I then added a new field to an existing page network. This new field is in a derivatives/work record related to the grid. The FieldChange event for my domain that is newly added, I added the following code:

Local channel & html;

& html = ' < script type = "text/javascript" >$.» MyNewFunction(); < /script > ';

MY_WRK_RECORD. HTML_AREA_02.value = & html;

Does anyone know how do PS refreshes do not in this way? Is there a different event I should use? Do not forget that I use the grid/FieldChange features so that I can possibly grasp the key value of the row, I'm on and query the database to get the child lines for the line that the user has clicked. Thank you.

If your RowInit is at level 0, it should be fine. In this case, it should only run once and only set $. MyFunc once. To confirm this, you can add the following JavaScript code:

if ( !. $. MyNewFunction) {console.log ("$.")} MyNewFunction is already defined")}

What you live with the field in the grid, is that the field is filled again whenever the client sends an Ajax component on the server request. This repopulation of all data fields called your naked JavaScript every time. JavaScript isn't wrapped in a kind of event handler, it's just a naked script ready to be invoked.

The real problem seems to be with your FieldChange. From the code you've shared, looks like you want to call JavaScript every time someone clicks on a button. I do not see in the notes where the new domain with a FieldChange PeopleCode had a button, but I'll assume that it is. If this is the case, then I think I would have done it differently. Instead, I would have used RowInit to fill the JavaScript code in the grid and set a HTML button (or hyperlink) right there in the HTML code. The RowInit for each line of the grid will have pointers to the data of the current line to be able to use these parameters on the $. MyNewFunction method. Moreover, since everything is in the same table, you can use jQuery to identify the current row data. I assume that you already have an iScript to extract data from the database for the child lines?

Tags: Oracle Applications

Similar Questions

  • Windows Update issues. whenever I'm trying to put out a message back to day 1 of 1, do not, after that update automatically shuts

    I have windows xp on my acer netbook aspire one everytime I try to turn it off, a message appears after update 1 of 1, do not turn off update will automatically turn off, this happens everytime I try to turn off. any help is welcome. the update said pc section is being updated with the latest version.

    Note the number of update and reinstall the same from the microsoft Download Center.

    http://www.Microsoft.com/download/en/default.aspx

    Consider to reset windows update components.

    How to reset the Windows Update components?
    http://support.Microsoft.com/kb/971058

  • zone will not update automatically

    Hi all

    I travel a lot around the United States moving in and out of different time zones (Pacific, mountain, Eastern, etc.) I have the time to internet synchronization implemented by using "time.windows.com"but my time zone do not update or synchronize with the time." Example: I have traveled to Pacific at the time of the Rockies recently time, but the time my laptop was still at the time of the Pacific.

    Is there a way to get the time zone to update automatically the correct time zone, as does my Blackberry?

    Fine thanks

    Ferrell63

    I don't think there is, but you can view an additional clock in a different time zone.

    Go to the clock in the Notification area, right-click and select "set date/time".

    Click the 'Additional clocks' tab and select the options of the clock you want.

    It is done like this because changing the time of the computer can adversely affect program and process based on the clock being right...

  • ActiveX and PlugIn Flashplayer installed both - ActiveX only updates automatically

    I'm responsible for a group of Windows-based computers, which some in a non-profit where we have both IE and Firefox (like Chrome) installed. Accordingly, we have the ActiveX and plugin versions of Flash Player installed.  It seems that the automatic updates of the Flash Player only the ActiveX version and not the version of the PlugIn. This has happened for a long time, even on Windows 7. Y at - it a fix for this? Or at the very least, is it possible to reverse the order so that the Flashplayer PlugIn is updated rather than the ActiveX version?

    Edit: To be clear, most of the computers is probably on "Notify me to install new updates", but only the new version of ActiveX installed.  Even if the computer is configured to allow Adobe install updates only the new version of ActiveX installed.

    Hi paradoox,

    For the updates in the background (option 'Allow Adobe install updates (recommended)'), both players are updated, however, the Activex version is first updated and then an hour later the Plugin is updated.

    For Notification updates (option ' Notify me to install updates "), Flash Player checks an update when the Flash content is read.  If an update is available, it creates a registry entry which then launches the Update Notification window when the system is restarted or the user logs on/off voltage.  In this scenario, regardless of the version of Flash Player (Activex or Plugin) was used when checking is one that creates the registry entry and is the one that is being updated.  I know that's not ideal, but it is legacy features and has been so for a long time.  Unless you have changed the update check interval, the default value is 7 days.

    Since you indicate that the Plugin is not updated via background updates, I would examine the FlashInstall.log file to infected computer.  Unfortunately, background updates do not write to the log file unless logging is turned on (which probably you haven't configured), but I can still be able to glean information from the current log on the system file.  Please provide a machine affected log file using the instructions here, the specified item is not found...

    To enable detailed logging background update, add the following to the mms.cfg file: SilentAutoUpdateVerboseLogging = 1.   History updates for a updated once a day, so if you enable it today, it must contain related information in a day or two, depending when the background update task is actually configured to run on impact on machines.

    --

    Maria

  • My copy of Firefox (currently 15.0.1) is updated automatically but did not, so since August 2012, how can I fix?

    The "Restart to update" button shows and did a restart, but there is no update.
    I checked under 'OPTIONS': in the section "Advanced" tab Update 'automatically install"is selected. "Warn me if this turns off modules" & "Use a background service to install updates" is both checked.
    I can download and install the latest version of Firefox, but how can I automatically keep it up-to-date?

    Hello
    Thank you. That would explain it.
    When I migrated to Windows 7 was also when I first set up a separate account with a regular account for use "on a daily basis.
    Which is when the automatic update has stopped!
    Thanks again.

  • When you click on a tab open, how to do the update automatically in the body of the page?

    When you click on a tab open, how to do the update automatically in the body of the page?

    Right clicking on a tab open and using the arrow keys now now moves through open tabs. I liked the old versions where just after having clicked on a tab you can directly go to the page with the arrow keys to navigate.
    Y at - it something that I can change the subject: config to change this behavior?
    Thanks in advance.

    Firefox has yet to set the focus in the area of browser if you click on a tab.

    Only with very old browser versions you could set the focus to a tab by clicking a tab.

    This problem is probably caused by an extension.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the start safe mode window or make changes.
  • Why my photos are not being updated on all my devices which or login to iCloud?

    Why my photos are not being updated on my iPad if all my devices are signed in iCloud?

    On your iPad, tap settings > iCloud. Make sure the Photo is on.

    Additionally, make sure that your iPad uses the same account as your other devices iCloud to synchronize data.

  • Each update (automatic) lost all my passwords (and existing 'aid' is a nightmare)

    I read a LOT of other people who have this problem, and I've seen no good answer. (Answers require several days of analysis, and I don't have much time.)

    Whenever Firefox updates automatically, it loses most of my passwords!

    Yes, I read that there is a 'profile' blah blah blah. But does that mean that I have to go through all kinds of loops, when this automatic update occurs?

    If so, I gladly leave Firefox and switch to another browser.

    I never had this problem with any browser, never with Safari, I left only because he did not work with many websites.

    I use a Mac, OS 10.6.8

    Thank you

    Why not update manually? If you do it this way, the profile is not in use when the update takes place, so nothing in it should be corrupted.

  • My Firefox 6.0.2 is updated automatically, but continues to say that it is updated when there is a Version 7 now available. What should do?

    I am running Firefox v6.0.2. "About Firefox" says that Firefox is updated and the updated channel. Firefox is updated automatically. There is now a Version of Firefox 7. There is no pending updates in the download file. Why is it not updated? Should what steps I take to get the update will take place? SoC

    Firefox 7.0 had a bug affecting a number of people as well as its updates have been temporarily suspended. A version 7.0.1 will come out soon to update you.

  • How to get all the updates automatically?

    Sorry if this is a silly question.

    I just bought a Toshiba satellite laptop.
    My previous laptop was peripheral to another manufacturer and they did all the updates automatically.

    Please could someone tell me if Toshiba does the same thing?

    I have not seen the updates made on this laptop.
    Is there a setting somewhere hand should I activate?
    I hope there is.
    I'm useless to install the software lol.

    Thanks to anyone who responds

    Hello

    On Toshiba laptops, you can find tools preinstalled as Tempro or Toshiba Service Station.
    The two utilities to give an opinion on the new Toshiba driver available.

    Welcome them

  • my profile to update automatically when I add bookmarks etc.

    I read on the profile and where to find it. It updates automatically every time that I add new bookmarks etc AND how should I back up my profile on a key whenever I have add bookmarks etc to the profile please. I just changed for Firefox of IE8.

    Thank you
    Pingu70

    I know how to find my profile, it will automatically update each time that I add new bookmarks etc AND how should I back up my profile on a stick:

    The files in your profile are updated When you close Firefox, and your backups/restores/renames/deletes of files must be made when Firefox is down. Once a day early morning when Firefox is running, your favorites are saved by Firefox in the bookmarkbackups folder.

    You do not want to save your bookmarks, whenever you have changed the (at least I don't). You can create your own backup of your bookmarks to your USB drive at any time through Firefox and restore this backup at any time through Firefox perhaps half a minute to make either once you press the button.

    What I really recommend that when Firefox is declining would backup not only your current profile, but all your Firefox profiles and that should fit on most USB sticks that you can buy today.

    Profile - backup:
    You should support your Firefox profiles, there is not a lot of data, and you should be back up frequently. There is much more data to other applications in your Windows user library and you should be backup data there, too.

    When you back up all your data to external hard drive (500 GB to 3 TB) user profiles Firefox would be included.

    But it's about Firefox. For Firefox, a USB key would probably suffice to backup one or more profiles.

    backup of your Firefox profiles (the following is all on one line)

    xcopy C:\Users\< user name>/d/h/y/c/q/s \AppData\Roaming\Mozilla\Firefox\Profiles\*.* g:\profiles\*.*

    If you want to carry your bookmarks with refer you to them you would not use the backup .json because it is only for restoration with a complete replacement of your bookmarks. If you want something you can see elsewhere that you might want to put a file to bookmarks exported on your USB key as well.

    Don't know if you know how to use XCOPY to a .bat file or not, but that's how I got all my backups made with applications not least not applications that use files running. The following will not help much if you are not familiar with them.

    For those who may not know how to find their profile just type on: support support on the address bar, and then click the "Open folder containing" in the troubleshooting information page. If Firefox does not work, you may need to use other means.

  • Updated Firefox to update automatically so that the internet has been disconnected, and now it's showing I updated Firefox. What should I do?

    I started Firefox even if the internet has been disconnected. But before opening, Firefox updated automatically, not advising me that I was disconnected. It shows now that I have the newest version of Firefox. What should I do?
    Operating system: Windows XP Professional Service Pack 2.

    He's going to have downloaded the update while you were connected and the next time you start Firefox, it will have installed upgrading if you were connected or not.

  • iTunes cannot be opened while it is being updated

    I use an iMac and upgraded to El Capitan version 10.11.1 a month ago.  Now when I select iTunes I get a box that says "iTunes cannot be opened while it is being updated" (and your only option is to press OK).  This message is constant and never changed.  I tried a week ago, abandoned and now have tried several times throughout the day.  Same thing all day.  I had a similar problem with the photo after the upgrade and it just started working unexpectedly several weeks after the update.

    Any suggestions?

    Thank you!

    Good morning funcourt,

    The first thing I would say to you receive the iTunes error message would be to upgrade your OS X to the latest version, which is the OS X 10.11.2.

    Download update of OS X El Capitan 10.11.2 Combo

    Another common troubleshooting step would be to start your computer in Mode safe

    OS X El Capitan: start in safe mode

    Start in safe mode can help you diagnose problems you're having with your Mac.

    Important: To print these instructions, click the Share button in the Help window, and then choose print.

    1. Choose the Apple menu > shut down.

    2. After your Mac stops, wait 10 seconds, then press the power button.

    3. As soon as you hear the startup tone, hold down the SHIFT key.

      You must press the SHIFT key as soon as possible once you hear the startup tone, but not before.

    4. Release the SHIFT key when you see the gray Apple logo and progress indicator.

    To exit safe mode, restart your Mac, but no press during the startup.

    Boot into single user mode

    Ways to start your Mac

    Last modified: September 30, 2015

    If these two steps do not resolve your issue, try to create a new account to isolate if the problem is with your user account or if it is the scale of the system.

    How to test a question in another account on your Mac.

    How to test with another user account

    You can find out if unexpected behavior is related to the user file or a parameter in trying to reproduce the problem to a different user account. This process includes creating a new user account, connect to it and test for the issue.

    Create a test user account

    1. In the Apple menu, choose System Preferences.
    2. Click the users and groups in the System Preferences window.
    3. Click the lock icon and enter an administrator name and password.
    4. Click on the button Add (+) below the list of users.
    5. Choose a type of user in the new pop-up menu.
    6. Give the user a name and first name, account name, and password.
    7. Click OK.
    8. Close the System Preferences window.

    If there are documents from your user account that you want to test with original, place a copy of these items in the shared folder in the users folder. Press the Option key while dragging a file in this folder to create a copy.

    Connect to the test user account

    Log out of your current user account by choosing logout in the Apple menu, and then open a session the new account that you created. If you are prompted to login with your iCloud or Apple ID account when you log in, skip this step.

    Try to reproduce the problem

    Try the same steps that caused the unexpected behavior to appear. For example, if you are unable to print, try printing from this user account. If you were unable to connect to the Internet, try to navigate on a website of this user account.

    If you use specific test settings depends on (for example using a specific e-mail account or an account iCloud) implemented the same test user account. For email and other parameters, you can use the Internet accounts pane in system preferences to set up these types of accounts. If your home folder files are necessary for tests, copy them into the shared folder in the users folder (/ Users/Shared). After you connect as a user test, copy these items to the same location in the test user home folder to test with.

    If a problem occurs in account only one user

    Is using the same steps in a user account test does not cause the same unexpected behavior, most likely you don't need to reinstall applications or OS X.

    • If a problem occurs only in a single application, check the documentation or Web site for instructions on troubleshooting specific preferences or the definition of the application files.
    • If you need help with a problem or a specific alert message, search the Apple support Web site for the text of the alert message you see.

    If a problem occurs in more than one user account

    If the same unexpected behavior occurs in more than one user account on your Mac, try checking for software or hardware problems.

    Once you have finished

    When you are finished testing, disconnect from the test account by choosing logout in the Apple menu. Then, connect to your original user account.

    You can Remove the account to test user created when you are finished. Make sure you're completely finished stable, and you don't need the files or settings you have created or copied there until you delete it.

    Get help

    If you need assistance with a problem software or hardware, Please contact Apple technical support. If you are working with a consultant, engineering or service provider to resolve a problem, remember to mention all the steps you have already tried and the results. Also mention the alert messages that you saw in the context of the question. You can take a screenshot of all the messages that appear to refer to it later.

    Last modified: July 9, 2015

    Take care

  • Whenever I try to open iTunes on my macbook, it says cannot open while it is being updated. How can I fix it?

    Whenever I try to open iTunes, a dialog box tells me that iTunes is updated and that iTunes doesn't open while it is being updated. How can I fix this problem?

    Please launch the App Store application. From the Store menu, choose

    Search the unfinished downloads...

  • I got a new open word doc and is logged when Windows Vista did an update automatically and restart, now I seem to have lost

    original title: lost document

    I got a new open word doc and is logged when Windows Vista did an update automatically and restart, now I seem to have lost! Any suggestions? A system restore wouldn't work?

    If you have not saved the document before the reboot - and Windows always give a lot of warning before restarting automatically - while the file disappeared.  There is no way to recover; System Restore does apply to system files, not data.

Maybe you are looking for