$a_report to refresh a report, but it is not picking up the variable binding
HelloAPEX - Express 4.1.0 Application
Browsers - all
Database - 11g 2
I have a tree on a page region. When a user clicks on a leaf of the tree, I want to be able to use the ID to refresh a report in a different region on the same page
Code for when the user clicks on the map
$('div.tree_li_a').click (function() {}
node_id = $(this).parents('li:first').attr ('id');
If (node_id.substr (0, node_id.indexOf('|')) == 'Y')
{
$s ('P4_SELECTED_VALUE', node_id.substr (node_id.indexOf('|') + 1));
Alert ("value: ' + $v ('P4_SELECTED_VALUE')");
$a_report ('28576803999973770 ',' 1','20 ', ' 20');
$a_report ($v ('P4_REPORT_ID'), '1','20 ', ' 20');
};
});
SQL statement
SELECT *.
PRODS p WHERE PROD_CODE =: P4_SELECTED_VALUE
The problem I have is that when the report is run (I know it's refreshing) the P4_SELECTED_VALUE of the link variable is null.
Pop alert contains the correct value, and when I do the visible P4_SELECTED_VALUE it also contains the value?
Any help is very appreciated
Rob
Rob,
You insert P4_SELECTED_VALUE value in the APEX session before refreshing the report.
Add following the JS function in your page
//insert value into session using JS
function fnSetSessionState(pItem, pValue) {
var vAjaxDummy = new htmldb_Get(null, $v('pFlowId'), null, 0);
vAjaxDummy.add(pItem, pValue);
var vDummy = vAjaxDummy.get();
vAjaxDummy = null;
}
and your code...
$('div.tree li a').click( function() {
node_id = $(this).parents('li:first').attr('id');
if (node_id.substr(0,node_id.indexOf('|')) == 'Y')
{
$s('P4_SELECTED_VALUE',node_id.substr(node_id.indexOf('|')+1));
alert('Value Set: ' + $v('P4_SELECTED_VALUE'));
fnSetSessionState('P4_SELECTED_VALUE',$v('P4_SELECTED_VALUE'));
//$a_report('28576803999973770','1','20','20');
$a_report($v('P4_REPORT_ID'),'1','20','20');
};
});
That's how I used the version 3.2 or earlier. But now I prefer to use declarative dynamic actions...
Kind regards
Hari
Tags: Database
Similar Questions
-
I use trusteer for banking report, but it will not support the beta version of firefox 9, suggestions
Trusteer informed me that a new version of their report software that is compatible with Firefox 9 is available at http://download.trusteer.com/Gcur4Wtnu/RapportSetup.exe
-
Recently bought studio 15 laptop with windows 7 and I try to run need for speed pc underground game on her, but she does not appear and the message "speed.exe has stopped working" appears on the screen. can someone help us?
Hi Andy,.
I checked the reported compatibility list, and the game is listed as compatible. Work in 64-bit or 32-bit Windows 7? I will try to reinstall the game, if you did an upgrade from Vista to Windows 7 recently. If it is a new installation and does not, please visit the EA's Web site to get the latest patch for the game to see if that helps address your problem. Let me know if you've done all that and you still have questions, and we can try something else.
Kevin
-
I installed "downloadhelper". It shows in the list of add-ons/extensions, but it does not appear in the toolbar. I reinstalled foxfire, various foxfire files updated, tried other modules, but none of this helps.
Have you tried to click on "Restore default settings" in the palette to customize?
Have you checked the settings in the VDH extension?
-
I tried everything I know to uninstall the new version of Firefox. I also installed Aurora beta and it had the same behavior, and I managed to uninstall that. I can't open a browser ff to work on it with the help of a large part of your support information. I click the icon, but it does not start on the desktop but the clock running as Task Manager. I have to end task in Task Manager to close it. I can not uninstall and tried the system restore, but this also does not work due to another problem with my antivirus program.
If this is on a Windows computer, see this link from Microsoft;
The problems that the programs cannot be installed or uninstalled -
Asked me to take over the COMPUTER Department of a small Christian school. They are running SBS 2003. They bought licences for additional client access in 2004, but they are not loaded to the server and they can't find the hard copy of the licenses to load them in. Also, they purhcased of XP Pro and Office 2003 licenses (I have the disks and keys to install but do not know how many licenses they own) and they are not either of the paper copy of these licenses. Is there a way to contact Microsoft to get the licenses? Any help would be appreciated.
Bill
original title: recover lost Volume Licensing
I just figured this out...
I called the 1-866-230-0560 Option 3 Volume licenses and talked to someone who searched under the name of the school in order to locate licenses. It is even searched under our zip code and found other licenses that have been purchased by the school where the dealer abbreviated the name of the school.
I hope that this is useful information to others in the same situation.
Bill
-
Due to a hard drive crash, I had to reformat my hard drive,
therefore lost my copy previous update of MS Money.
I reloaded the software from the CD, but it does not automatically download the update needed to read my existing data files.
Can someone help me read my old data files?Microsoft or anyone have made available as a patch to download?
Hi Derek,.
Since the problem is related to Microsoft Money, I suggest you post your question on the Forums of money from Microsoft.
-
I downloaded a video from my camcorder, but it does not play because the video is MP4.
I download the video from the camcorder, but it does not play because the video is MP4. How can I play download MP4 player
The free version of Apple's QuickTime might be worth a try:
(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)Apple QuickTime:
http://www.Apple.com/QuickTime/Download/thankyou/index.html -
Salvation; I instaled a new Windows XP Home edition on my computer hp laptop, but it's not conect to the internet through my wireless card.how can solve this?
Did you use the recovery process HP plant or install using a different operating system disk? If the latter, you need to install the drivers for all your hardware, including drivers for wireless network cards. You will get only the pilot specific support for your laptop model HP Web site tech.
If by "wireless card" you mean that you have a 3G USB modem through your cell phone provider, contact the cell phone provider for help with that. MS - MVP - Elephant Boy computers - don't panic!
-
I want to really go to Inbox, but it does not appear in the list of programs, so how do I get rid of him, for free please if possible?
Hello
Try the free version of revouninstaller to remove it:
http://www.revouninstaller.com/revo_uninstaller_free_download.html
-
I have a network of offices with windows 7 and XP PC 6 PC 7. Each day network neighborhood loses the xp computers. I can always ping them but they do not appear on the network. The PC xp always had access to the internet and can still ping windows 7 PC normally, but I can't connect to the shares or see them in the network neighborhood. The question seems to come and go during the day and can be due to the network traffic? I am lost at this point. A reboot of the xp PC is not resolved, but a restart of the server main window file 7 pc solves it for a while. Help!
Hello
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads
-
We just got this PC and tried to establish user accounts. He said that accounts of users (2) are there but they do not appear in the record and 1 single user is available.
Hello
Press the Windows key + R, type netplwiz command run, click OK. In the user accounts window, you should be able to see all the user accounts on your system.Hope this helps, good luck :) -
I paid at the rate of CC of Photoshop "the photographer", but Photoshop has not appeared on the computer! I don't see him! Where to look and how to download? Please, help me
Hello
Please visit https://helpx.adobe.com/creative-cloud/help/download-install-app.html
It will be useful.
Kind regards
Shelly
-
Packer of creative cloud in creating a package that I can install do not. He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files
After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.
These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.
If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.
That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.
I hope that if anyone else is having problems so it suits.
-
I bought the pack, but it does not give me the option to download the full version. Just the trial thr. Why?
If these solutions do not work, please contact our staff of support directly by following this link: contact Adobe customer service.
For more information, please visit: FAQ: how to contact Adobe for support?
Maybe you are looking for
-
HP Compaq 6400 - optical drive not recognized
Hello!I have a laptop HP Compaq NC6400, running Windows XP Pro 32-bit. After a battle with malware earlier in the spring, Windows XP does not recognize the CD-DVD drive. How can I fix this? Thank you.
-
I sent an email and it is constantly delivered every 4 minutes. How to stop?
The email is sent every 4 minutes. What can I do to stop?
-
Default font in my system became the Georgia suddenly
Default font in my system became the Georgia suddenly. It does not all default programs. But now, some pages Web that I'll love has Georgia police. Some of the fonts in the games like Maplestory are affected too (just for this PC that I use). Is ther
-
error 0 x 81000005 on the Windows Vista backup - home
Please help me. It is the 2nd request for the same problem. I can not get a backup on Windows Vista. Keep 0 x 81000005 error - get the message on the desk and say: low disk space. Checked the recovery drive D and available space is 0. Help me before
-
masking of addresses with Vista winmail
How can I send to multiple addresses in Winmail and hide the addresses? I can't find a way of setting a BCC field