Passing a value around JS for element Page JS does not
I have several lines being generated by the region of PL/SQL code that creates several objects of apex_item. An identifier unique is assigned to each element by adding the line number to a name, i.e. item_nbr_1, item_nbr_2, new_item_1, new_item_2, etc. The item_nbr_n column has a JS that are associated with onChange. Within the JS I get the line number and assign to a variable as in<script type="text/javascript">
function checkItem( pThis ) {
var l_ndx = pThis.id.substring(9);
$s('P1115_NDX', l_ndx);
var l_itemnbr = $v('item_nbr_' + l_ndx);
.
.
.
This $s ('P1115_NDX', l_ndx); is it so I can keep the line number to view later if necessary. More on that later.In the end, if the item_nbr is entered exactly matches one and a single item in our product list, the checkItem function makes a call AJAX to a level application process and passes the value entered in the field item_nbr generated dynamically, through the item_nbr and line number, alias l_ndx. The APA process. then fill other fields of the line identified by l_ndx, such as description, cost, price, etc.
If the item_nbr is entered corresponds to the first characters more of an element or does not match any at all, the user is presented with an area of search criteria with which they can modify the entered item_nbr and/or add other search criteria. On this area of search, the user also has the option to request that this item be sought by purchases and added to the list of products.
It all works well so far, with the use of a variety of functions in JS and AJAX calls. The problem is the process of a new element. If the user clicks on the button new item in the search criteria area, I want a JS call to check the new_item_n on the appropriate line. However, at this time I have more the line number to add to the 'new_item_' so that I can "check" the box.
So, back to the $s ('P1115_NDX', l_ndx); escaped to above. I show the point of P1115_NDX, so I can confirm that the value is used. However, the newItem function does not seem to be able to read the value of the page element:
function newItem() {
var l_ndx = $v('P1115_NDX');
/* l_ndx = 5;*//* Test for correct operation if the value is hard coded. It works */
alert("The index of the check box is " + l_ndx);
$x('new_item_'+l_ndx).checked = true; /* This courtesy of Hari from Trying to Set an APEX_ITEM.CHECKBOX with JavaScript */
}
With the hard-coded test line commented, the alert does not return a number and the check box is unchecked. When the test line is not commented, this code works fine.Thus, the result is, how should I store and subsequently make reference to the number line which began a series of events?
Thanks, especially for reading this,
Gregory
Published by: Gregory Hansen on October 21, 2010 09:06
Gregory,
In your function newItem try to get use of the page variable value
var l_ndx = $x('P1115_NDX').innerHTML
Based on your statement:
Gregory Hansen wrote:
So, back to the $s ('P1115_NDX', l_ndx); escaped to above. I show the point of P1115_NDX, so I can confirm that the value is used. However, the newItem function does not seem to be able to read the value of the page element:
It seems that P1115_NDX is a display only element so you can see what is happening. In this case the above should work.
Note that if you switch to a hidden item I think you need to go back to the $v (without the .innerHTML) rating.
HTH
Brother
Tags: Database
Similar Questions
-
How can I get my account HP Connect give me credit for the pages that they have counted print which did not actually print because the computer did not communicate on the printer correctly.
Hello @Gunth,
Welcome to the Forums of HP's Support. I guess when you are referring to the credits of the page you want to say that the instant the ink program. I would like to help.
This isn't something that can be controlled from your connected HP account. You will need to speak to a representative of the competent Department of ink instant. (A congratulations to move things in the right direction would be appreciated). The question now is how to communicate with the instant the ink service.
Here is the solution/answer:
The following link will give you the phone number for the different departments of the ink instant.
Simply choose the one that applies to your country of residence.
-
you just buy and update installed for elements but app will not take my serial No.
Just bought and installed udate for elements mut app does not accept the serial No.
Please see the Ko: http://helpx.adobe.com/x-productkb/global/my-serial-number-doesn ' t - work.html .
Kind regards
Romit Sinha
-
Unable to update the password. the value provided for the new password does not respect length, complexity, or history of the field requirements
Hello
I suggest you to send your request in this forum for better support. -
After the transition to Windows 7, there was a problem with Firefox. To work with the text to the award by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not ascend to the top as it was earlier, and like that occurs in other browsers. It is necessary to press the other key "down" which is him very troublesome. Resettlement on an earlier version (8.0) earlier irreproachably working, gave nothing. I ask you to help
You must activate the module bar (Firefox > Options or view > toolbars;) CTRL + /) or find bar to make Firefox scroll the page while selecting the text (Ctrl + F).
-
Hi there... How can I sort this problem as this message looks back constantly on google Account... ERROR POSSIBLE WITH GWT. The value of time compilation agent MODULE XML FILE user (ie6) does not match the value of user.agent (ie8) run time
Hello nEve Adam,.
Thanks for the return of the response. Below, I've added some links Google support on this issue. I hope this helps.
ERROR: Problem Possible with your *. GWT.XML file module. The value of compile time user.agent (opera) does not match
http://www.Google.com/support/forum/p/blogger/thread?TID=2d6d9bd1326a07c4&hl=en
In addition,
Message from Web page
-
My new laptop usb port for the left side does not, only 1 work on 3 Please help me
Hello:
Have you installed the drivers for W7 32 bit amd chipset?
If this isn't the case, you must install them and reboot the PC to get the 3 for usb ports work.
You want the first file on the Web page.
http://support.AMD.com/en-us/download/chipset?OS=Windows%207%20-%2032
-
4clipika for satluj police (Punjabi) does not work with windows 8
R/Sir
4clipika software for satluj police (Punjabi) does not work with windows 8, but it works with 7 and windows xp. Please solve this problem.
BSwakaf
I suggest you cont developer patches or updates. It is for the developer to make it work with win 8-not the other way around.
-
my toolbar (for the PDF edition) does not appear in a newly opened PDF file. What is the problem?
Hi Joanne,
If you are unable to display the toolbar by choosing View > show/hide > elements elements toolbar, please send along a screenshot of what you see. (And just double check that you open your PDF files in Acrobat and not player - that is a mistake that I make here and there).
Best,
Sara
-
Mac App Store Photoshop elements 12-editor does not open
I bought Photoshop elements 12 Publisher from the Mac App Store. The application has been downloaded and marked as installed.
When I try to open the application, I get an error message and PSE does not open.
I installed on a MacBook Pro running the latest OS X 10.9.2.
The laptop has a 64 bit CPU Core 2 Duo with 4 GB of RAM and a lot of free space on the disk.
The error message I get is:
"Adobe Photoshop elements than 12 editor does not open due to a problem.
"Check with the developer to ensure that Adobe Photoshop elements 12 editor works with this version of Mac OS X." You may need to reinstall the application. «Don't forget to install the updates that are available for the application and OS X.»
I tried to re - install the app via the App Store. However, after having to pay a second time for an application that does not work on my Mac, I did not so.
Does anyone have any ideas as to what can happen and how to solve this problem?
Bruban
Well, it turns out, it seems that I was right. I just received confirmation in the family Custom Photoshop community thread that I started that in fact Photoshop Elements does not work on a case-sensitive volume. If you have a case-sensitive volume, it is also your problem. So, I'm leaving for the Mac App Store to see about a refund. Wish me good luck.
Tom
-
JavaScript to create the bookmark on the page that does not yet exist
Hi all
Is there a way to write js to a bookmark that goes to a page that does not currently exist?
For example, I have a 20 page pdf document. We have FileMaker Pro that can 'Add' to a PDF of additional pages. So when FileMaker pro adds two new pages (bring us up to 22 pages), I have 2 bookmarks 'existing' in the original 20-page pdf document which, when clicked, will go to page 21 and 22 respectfully.
Is it possible and everyone would have the JS I would put in this bookmark?
Thank you in advance!
Here is what I posted in the other forum that you posted this, in case it might help someone here:
The JavaScript code would be:
Go to page 21
pageNum = 20;If there is less than 21 pages, it will go to the last page. If you want to avoid this problem, you could do something like:
Go to page 21, if there are at least 21 pages
If (> 20 numPages) pageNum = 20; -
I have iphone 5 c. I've updated new version 10.0.2. Now Weather app is working for different cities but does not not for my site which has already been demonstrated in latitude and longitude. Similarly maps application does not also work for my site.
Settings > privacy > location Services > confirm you always give permission to these applications to use your location.
If not, try these standard troubleshooting steps.
-Reset: hold the Home and Power buttons until you see the logo Apple (10-15 seconds).
-Restore your iDevice: https://support.apple.com/en-us/HT204184
If your backup is in iTunes, make sure that it is encrypted.
-
File sharing Mac for iphone via Airdrop does not
File sharing Mac for iphone via Airdrop does not. Please suggest me.
In the finder of mac and iPhone, I clicked on "Let me o find out for everybody". IPhone is still not release shows.
IPhone is the model of 5 s (10 iOS) and mac MAc mini end of 2014 (OS X EL Capitan - 10.11.4).)Cross the writeup here. Make sure that both devices have Wi - Fi and Bluetooth connection 'On '.
Use AirDrop to send the contents of your Mac - Apple Support
-
AppleID asks a password for an ID that does not exist
When I try to update my apps on my phone I wonder to enter a password for an AppleID that does not exist.
I am connected and can't seem to download applications, but not updated. I don't have this problem with my iPad using the same account, just the iPhone.
Help please!
Girlactik wrote:
When I try to update my apps on my phone I wonder to enter a password for an AppleID that does not exist.
This identifier Apple is not simply "composed" without any basis.
- The iPhone is already possessed? Maybe it's the Apple ID of the previous owner?
- Maybe it's the Apple ID you entered by mistake at settings > iTunes and App Store? Or settings > iCloud?
- Wouldn't be the Apple ID of the owner of the apps? You use apps (or music or books) someone else bought?
-
Firefox 10 for Mac - 11 installation does not work with Cooliris I have to install Firefox 10
Firefox 10 for Mac - 11 installation does not work with Cooliris I have to install Firefox 10
Double post please see also /questions/925441 #answer - 326583
Maybe you are looking for
-
Panasonic KXLC005 PCMCIA drivers for Windows 95/98
Hi all I'm a driver source for my external PCMCIA CD-Rom drive for my PC laptop Toshiba T2130CT. However I seem to have trouble finding the driver Panasonic KXLC005 All the sites that I tried to get all this has some kind of spyware or suspicious exe
-
How to change language Vista - second part
Hello Before the thread is blocked someone could explain to me how a German company cannot install an English version of Windows on a new hard drive, but still the recovery media is sent to Germany so that I can install Windows in English? I hope tha
-
Computer laptop Qosmio F15 does not illuminate when the power switch / stop is pressed
My Toshiba Qosmio f15-av201 does not turn when you push the power button, even if the lights of ac adapter & battery are both on (on). Indeed, the yellow light that is supposed to turn on the power button when the laptop is turned off does not appear
-
Extract information from your unique - how the equation works?
Hello y at - it a detailed explanation or step by step on how works the equation used by your single extract? The equation is: I want to know or understand how frequency, amplitude and phase are established. Also, what is x (n)? Thank you.
-
Cannot stay connected to the network, even after replacing my old router.
I have a laptop Toshiba Satellite L655 is one year old and its operating system is Windows 7 home Premium I have Comcast internet service and use a NetGear wireless router. Recently, about 2 months ago I got this router in Comcast, in replacement of