JavaScript problem

Hi all

I work in the apex 4.2.2.00.11.  I am facing a problem of javascript that makes no sense to me, and hoped that someone here might be able to explain it.

I've set up a report based on a collection.  In the query, I have several columns where I used the APEX_ITEM. TEXT function.  The plan is that when one of the fields changes I could trigger a javascript function to set another field to a value.

function setAction(pThis)
{
var vRow = pThis.id.substr(pThis.id.indexOf('_')+1,4);
 var field = 'f15_'+vRow;
var field_val = html_GetElement(field).value;
alert("Field to change "+field);
alert("Field value "+field_val);
html_GetElement(field).value = 'D';
}

In the SQL on the individual items, I set the p_atributes value to ' onchange = "setAction (this); » »

When I run the page and update the fields, nothing changes in the area of the f15_ and the value of field alert shows field_val are not defined.  Now, I know that this function works because he came from another page that was built by using the tabular presentation Wizard.  Best I can tell, is that it has something to do with the line number that is added to the field id IE in my wizard generated form that the id 'f15_' is f15_0001 through F15_0032, since this is the number of lines is displayed on the form.  In my form created manually, I put the p_item_id = > ' F15_ #ROWNUM #'.  This translates into the id field generated as f15_1 through f15_32.  I tried to pad the rownumber to match what the wizard does, but it does not help.  I get the same message not defined in the alert and the value that I try to put does not change.

Anyone has an idea how I might be able to go beyond that?

Any help would be appreciated.

Tom

For the original problem:

You set the p_item_id with a F15 uppercase, but in javaScript, you try to reference a f15 lowercase

Tags: Database

Similar Questions

  • Help, please! I'm going nuts! JavaScript problem when you try to load the images on the E - Bay auctions and My Space does not look right

    This is the second time I've been here for help and I had to use IE in recent weeks because I still I have this problem. The pictures on individual E - Bay auctions start to load then stop, I think it is a Javascript problem. I already tried the troubleshooting tips for the "images are not displayed" AND I uninstalled/reinstalled Firefox without result. My space does not seem to be display correctly, for example, if I want to change the color of a font in a message boxes appear, but no color... Please HELP somebody! Thank you!

    URL of affected sites

    http://CGI.eBay.com/WS/eBayISAPI.dll?ViewItem & Item = 230497781181 & ADME:B:SS:US:1123 = getting

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.
    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
    .
    You can also try to 'Reset all the preferences for the default user of Firefox' on the starting window of Firefox to solve the issues in Safe Mode - see http://kb.mozillazine.org/Resetting_preferences

  • Firefox 25.0.1 and Facebook have JavaScript problems

    I use Firefox with Mac IOS 10.9 25.0.1 on my Macbook Air. Trying to access Facebook, I tells me that I need to activate JavaScript in my browser or go to the mobile site. I do give me some instructions on the activation of JavaScript, I can find JavaScript in my settings or modules. Safari does not have this problem, but I would prefer to use Firefox. Unfortunately, a search on the web of this question does not bring me any results. Is it me?

    Search Google tells me that others have this same problem with Firefox 25.0.1. So far, the only thing that has worked for everyone was to do a reset of Firefox by going to Firefox > help > troubleshooting information > reset Firefox.

    I tried it and it worked for me! Don't know what was the original problem, but it seems to have been fixed now.

  • Unable to connect to a site web - says Adobe Flash Player and JavaScript problem

    For more than a year, my daughter was able to use the Web site for children for the lively game. Ago about a week after it has loaded the site and clicked on "Let's play", instead of check-in at the login screen, she received the following message - "to view this content, you must activate JavaScript and you need the latest version of Adobe Flash Player. I found this confusing, because we all software up to date. But, just in case where I did everything he said... still no results. I then contacted the web site support and they recommended I uninstall Adobe software and reinstall it. They sent me specific links from Firefox to do. Always without success. I don't know if some updates have taken place in the last week that may have caused this problem with the web site, but it's very frustrating for us. In addition, we are able to connect (as we used to be able to) on IE, but we love Firefox - Please HELP! One last thing, I am also unable to open web site to my work computer, which also uses Firefox. I'm a fool to the computer, so I would need instruction step by step... Thank you!!!

    URL of affected sites

    http://www.ClubPenguin.com

    I had the same problem and it goes back to AdBlock. Once I disabled that, Club Penguin loaded well again.

  • The site of amazon under El Capitan JavaScript problem

    Recently, I have a problem with javascript on the amazon website. After clicking on a link of the website, the browser stops responding.

    The problem goes away if I turn off javascript. It also does not occur on my laptop on which I run OSX 10.7, there seems to be a problem of EL Capitan.

    The problem appears only after I did a search.

    In the Safari menu bar, please select

    Safari Preferences ▹ ▹ research

    and uncheck the box marked

    Include some Suggestions of Safari

  • application Windows, javascript problems

    Hello

    We build a windows application, and we have a few problems with the execution of Javascript in the application itself (not the folios)

    I understand the alert function does not work because it's a browser feature - so used to work within an application.

    but we have a 'reload' link on our store page custom uses of that function location.reload and we can't get that work either - probably for the same reason.

    The code we use is as follows:

    < a href ='javascript:window.location.reload() "> Reload < /a >"

    And this is the error message we get:

    "No apps are installed to open this type of link (bridge).

    Does anyone have any ideas of how we can recharge our store page?

    Thank you

    Vauneen

    You must place your code in onClick method, not in the href attribute.

    See Javascript best practices

    Neil

  • CS6 JavaScript problem

    Hi when I try to load browse in bridge from photoshop CS6 64 bit, it says that it cannot find the javascript plugin, also does not load 2 of my extensions. Namely Kuboto dashboard pro 4 and OnOne enacted.9 perfect. Yet the 32-bit version works fine tried uninstalling and re - install, update all about without success begins to pull my hair out now please help I want to be bald!

    8.1 Windows 64-bit

    Thanks Mick

    Many thanks to JJMack for the answer, software nik deleted and everything is well, even once, would like to understand why it work for so long with nik software then stopped all of a sudden? anyway thanks for your help in solving this problem.

    Mick.

  • Calculation of field not updated - Javascript problem

    I have an Adobe Acrobat DC form with what I believe, is that a simple but question left me speechless.  I have a (InitialDate) field in which the user enters a date.  I have another domain in which the user enters the number of days (AddedDays).  I want the third FinalDate field to calculate the value by adding the specified number of days of AddedDays to the InitialDate.  Here's the javascript code, I added slot calculate the area of the FinalDate.

    The javascript of works very well except when the user CHANGES the date in the field of InitialDate, the FinalDate field is not updated.  If the user changes the entry from AddedDays, the FinalDate field is updated.  Can someone help me?

    (function () {}

    var sDate = getField("InitialDate").valueAsString;

    var d = util.scand ("d/m/YY", sDate);

    var days = getField("AddedDays").value;

    d.setDate (d.getDate () + days);

    If (sDate) {event.value = util.printd ("d/m/YY", d) ;}}

    else {event.value = "No Transmission Date entered" ;}

    })();

    Yes, you must correct the order of computation of field as mentioned above. Exactly how do you this depends on which version of Acrobat you are using.

    While you're in form editing mode, select:

    Acrobat 9: shape > edit fields > set field calculation order

    Acrobat 10: Tasks > other tasks > edit fields > set field calculation order

    Acrobat 11: Tasks > other tasks > set field calculation order

    Acrobat DC: (button in the right panel) more > set field calculation order

  • Button clientListner Javascript problem

    Hello
    I have a button on the pop-up window that calls a javascript function when the button click. However, when clicked on the button, the javascript code invoked and the popup is disappear. It seems that the page refresh or the button has an autosubmit to the server. But I don't want the popup disappear once you have clicked the button.

    Help, please.

    partialSubmit of the button to true.

  • Pantone Swatch JavaScript problem

    Hello, I am working on a script (js) which will change the color of a text from indesign predefined swatch "PANTONE red 032 C".

    I tried creating a new similar shade with CMYK, but I know that's not the way to do it as I need to use the only predefined sample.

    I would be grateful if anyone has an idea on how to address this problem.capture12112013.PNG

    I think that color Mode is RGB. CMYK, Lab or mixed inks. So in AppleScript I'd get the definition of color Pantone and make a new color called PANTONE red 032 C with the model in place like this:

    Tell application "Adobe InDesign CS6"

    tell the active document

    Try

    CS make new color with properties the value {model: spot, color value: {55.29, 72, 43}, space: LAB, name: "Red PANTONE 032 C"}

    try to end

    tell the end

    tell the end

    Even if she did not select a Pantone library it functions similarly

  • Passing parameter to the function header javascript problem

    Hi - I'm trying to pass a string to a javascript function. The javascript function is called an onchange
    event in the attributes of a page element HTML form elements. The call looks like this:

    OnChange = 'lookupObjTypeID ("P3_OBJECTTYPE_NAME")'; (Yes, I want to pass the name of the element, not its value)

    The JavaScript looks like this:

    < script LANGUAGE = "JavaScript" src = "http://www.json.org/json.js" > < / script >
    < script type = "text/javascript" >

    function lookupObjTypeID (source_item_name) {}

    Alert ("running javascript");
    Alert (' name of the Source element: ' | source_item_name);
    }
    < /script >

    The first alert prints the message; the second alert but the source_item_name is null.

    Everything I've seen, this is the right syntax. What's not?

    Thank you
    Carol

    Carol

    Is the in js concatenation operator ' + '. Then

    Alert (' name of the Source element: "+ source_item_name);

    should work.

    CITY

  • JavaScript problem with if/else instructions

    Hello!

    I have a test page.  The goal is to hide the following custom button when you enter the page and allowing it, when the test has passed or failed for the last time.  Then if the user navigates on the same quiz page, the next button should already be displayed.  I'm doing it by assigning a value of 0 or 1 to a variable and triggering an if statement if the value withdraws.

    When you enter the page I run the following code:

    var slideRef = window.cpAPIInterface.getCurrentSlideIndex ();                        Gets the current page number

    CP. Hide ('next_button_KBQ_' + slideRef);                                                        hide the next button

    var isTaken = window.cpAPIInterface.getVariableValue ("L4_KBQ1_taken");   assigns a variable value (variable defined in Captivate with an initial value of 0)

    Console.log ("isTaken value is" + isTaken);

    If (isTaken = 1) {//if this quiz page has been adopted, following button

    CP. Show ('next_button_KBQ_' + slideRef);

    Console.log ("Enabling Next Button");

    } else if (isTaken = 0) {}

    CP. Hide ('next_button_KBQ_' + slideRef);                                                    This should not be necessary, but it's here for testing purposes

    Console.log ("next button should be disabled");

    }

    success and a part of the last attempt of the quiz I run the following code:

    var slideRef = window.cpAPIInterface.getCurrentSlideIndex ();

    window.cpAPIInterface.setVariableValue ("L4_KBQ1_taken", 1);                   assign the variable with a value of 1

    CP. Show ('next_button_KBQ_' + slideRef);

    When I run the course, I get the following console result:

    isTaken value is 0

    Next button activation

    If the button is displayed from the start.  If I take the test and return to the page, the bed console

    isTaken value is 1

    Next button activation

    Then the variable is changing, Captivate reads the value of the variable very well, but it ignores the conditions and display the button in any case from the beginning.  What happens here?

    Thank you!

    You need to use is during the comparison, not =. In addition, you need another if, just another because there are only 2 options.

    If ( == 1 isTaken) {//if this quiz page has been adopted, following button

    CP. Show ('next_button_KBQ_' + slideRef);

    Console.log ("Enabling Next Button");

    } else {}

    CP. Hide ('next_button_KBQ_' + slideRef);                                                    This should not be necessary, but it's here for testing purposes

    Console.log ("next button should be disabled");

    }

  • [CS3] [javascript] Problem with the use of textWrapOffset in textWrapPreferences

    Hello world

    I'm having some trouble with the help of textWrapOffset.

    Alert (mySelection.textWrapPreferences.textWrapOffset);
    mySelection.textWrapPreferences.textWrapOffset [0] = 20;
    Alert (mySelection.textWrapPreferences.textWrapOffset);

    In the code above, the first la premiere alerte alert outputs four film text offsets existing (for example [3, 0, 0, 0]). But after trying to change the top of the textWrapOffset page in the second line of code, the last alert still exits the film ancient text offset and does not show the change. It's as if the textWrapOffset is read-only. Or is there something I'm missing?

    Note that before you run the script, the object selected in InDesign is a simple "Rectangle".

    I hope someone can help!

    Paul

    The value should be set as an array.

             myTextWrapOffset =
    mySelection.textWrapPreferences.textWrapOffset;
             myTextWrapOffset[0] = 20;
             mySelection.textWrapPreferences.textWrapOffset =
    myTextWrapOffset;
    

    Substances

    http://www.in-tools.com

  • Problems with external javascript file

    For some reason, I can't get a text external/javascript [.js] file works correctly on my Web page. I went to Adobe Help Viewer and follow the instructions clearly. But it all comes to a cause I can't seem to see a little icon in fashion design javascript to connect my widget external javascript to support javascript on my page. Why is this? I have the visual aid invisible items checked as well. Here is an article of the code below.

    Rufus65 wrote:
    > I'm sorry, I went from one problem to another, the first problem with the
    > javascript shield was my main problem and the first and its fixed. now, it's a new
    > problem, but I think I can just cut this time around, I got the codes mutilated
    > of this site: http://www.widgetbox.com/#. it allows you to customize your own
    > widgets and I thought that it was legitimate, apparently is not. to solve my javascript
    > problem, basically I want to just a website that has downloadable widgets for me
    > to insert into my website using dreamweaver CS3. That is my main task, I was
    > trying to accomplish. I started 5 steps before this goal which was not brilliant
    > at all. So my main problem [outside my other topic post on my screwed upward
    [> header] is just to get legitimate widgets that are free and easy to use in
    > dreamweaver CS3, cause I don't have time to learn Javascript code or whatever it is
    > close to him.

    Depends on which widgets you want and what you need to make them specifically for you. Maybe start a new thread, listing widgets that you feel you need and what you want to do with them.

    You do not have available in the Insert bar Spry widgets, but they can or may not be able to accomplish some of the things you like to do, be specific about what you want to do on your end, and what you want the end result to be. Send examples if you have.

    Many widgets will require some, if not encoding extended, to get the best out of them. For example, widgets to http://ui.jquery.com/ can do something relatively well, but in Dreamweaver CS3, you need to enter the code to be able to set a lot of options.

    Where it's important, DWCS4 added a "web widgets" option that allows you to install widgets from the Exchange:
    http://www.Adobe.com/cfusion/exchange/index.cfm?s=5&from=1&o=desc&cat=290&l=-1&event=Produ ctHome & exc = 3

    But even once, they may need a little digging intot he code to get the best of them.

    HTH

    --
    Danilo Micen
    | http://blog.Extensioneering.com/
    | Extensioneer WebAssist
    | Adobe Community Expert

  • Safari and all browsers not opening not Java Script links - looks like App problem

    I have 3 ipads and 1 iphone...  A few days ago all except 1 of the iPad and my iphone started showing the same questions...

    In safari, or even with chrome on each of the devices involved, links to Java scripts more open.  It freezes and unresponsive, then crashes.

    It is the case of the bar by clicking on a link in google search (and it's OK if I load desktop application mode) and even emails with links to a Web site.

    Since 3 devices present the problem and is not 1 I guess it has to do with a bad application or the app update (although never had something like this happen before an application.)  The 9.2.1 software on the devices was fine until a few days ago, when this happened

    However, with many applications on devices, I don't know what app or update is causing the problem.  I tried to limit without a bit of luck.

    I have classes compensation tent soft reboot of data backed up and all that, but the problem does not go far.  Even with all of the dragged close apps, it STILL happens. So maybe it's an application that loads anything at startup.

    Because I don't see other instances of something like this that make SMEs also guess that's an app.  Does anyone have any suggestions... On the app store - anyone know if there are diagnostic tools to find an app that can cause a problem?

    Thank you!

    Mike

    Hi MikeAbramsNY,

    Thank you for using communities Support from Apple! I'm sorry to hear that you have this Javascript problem with your devices. If you have a current backup of your data, you can try to restore one of the devices assigned to factory settings and stable in this default state to see if the problem persists. If so, you can find the following article useful:

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

    Concerning

Maybe you are looking for