Is there any way to hook into the SQL report pagination process?

I have a SQL report (based on EMP) with a radiogroup row selector.
The scenario 1 and 2 are in place
1) When the employee row radio group is clicked the P900007_JOB the text item is populated with the JOB for the employee.
2) When the page is initially displayed or submitted via the button the first row’s radio group is programmatically clicked and therefore populates the additional job information in P900007_JOB
Info (radio Group) Employee No Name
(+) 7369 SMITH
() 7499 ALLEN
() 7521 WARD
P900007_JOB CLERK
1-3 Next>
Once the report has been displayed and the next or previous pagination is used then none of the radio groups will be selected and the data in the P900007_JOB text item will still display the job of the last selected employee row.
What I require is on pagination some sort of mechanism to either
a) Call the page_init() that should then set the first row as selected and populate the text item via the programmatic click. (preferred option)
b) OR blank out the additional text item P900007_JOB.
Is there any way to hook into the pagination process?
I have a work around – Set the ‘Enable Partial Page Refresh’ to ‘No’ but this means a full refresh every time the pagination is used.
Details of my page
Report Region (Based on EMP table) – radio group as a row selector
select     APEX_ITEM.RADIOGROUP(1,EMPNO,'X21',null) CHECKRG, EMPNO,
     ENAME,
     JOB
from     EMP
Report Attributes -
Report template :- P900007_ROWTEMPLATE (custom template see later)
Report Attributes Substitution :- id="emp_report" (used in page_init see later)
Enable Partial Page Refresh :- Yes
Columns – All columns are selected as show but job is left out of the template below.
P900007_JOB - Text item in report region (disabled does not save state). Populated with the employees job when the radio group is clicked.
Control region :- HTML region that just holds a button <GO> just to submit the page and redirect back to the same page.
P900007_ROWTEMPLATE (named column row template)
Row template 1
<tr style="cursor: hand; cursor: pointer;" onmouseover="row_mouse_over(this, 1)" onmouseout="row_mouse_out(this, 1)" #HIGHLIGHT_ROW# ">
<td class="t15data" onclick="selectRow('#JOB#');">#CHECKRG# </td>
<td class="t15data">#EMPNO# </td>
<td class="t15data">#ENAME# </td>
</tr>
Before rows
<table class="t15standard" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#" >
<th class="t15header" #ALIGNMENT# >Info</th>
<th class="t15header" #ALIGNMENT# >Employee Number</th>
<th class="t15header" #ALIGNMENT# >Name</th>
After Rows
<tr>
<td colspan="99" class="t15afterrows">
<span class="left">#EXTERNAL_LINK##CSV_LINK#</span>
<table style="float:right;text-align:right;" summary="pagination">
#PAGINATION#</table>
</td>
</tr>
</table>
*Javascript in page Header*
<script src="#WORKSPACE_IMAGES#apex_show_hide_region.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
function selectRow(pJob)
/* console.log('pete got here!'+pJob)*/
$x('P900007_JOB').value =pJob;
/* Start Page init*/
function *page_init*()
/* Used to set radio groups on reports */
/*console.log('START pete got here!');*/
var is_checked = false;
var l_check = $x_FormItems($x('emp_report'), 'radio');
/*Loop and set flag if checked*/
for(var i=0,len=l_check.length;i<len;i++)
if(l_check.checked){
is_checked = true;
/*end loop*/
/*If none checked force a click*/
if(!is_checked){
/*no longer need as doing click below*/
l_check[0].checked=true;
/*Force a click on the first radio group - extra details should then be
populated*/
var l_click = l_check[0].click();
/* console.log('END pete got here!');*/
/*END page_init*/
// -->
</script>
*Application shared component.* – This fires a DB packaged procedure when the page is loaded.
P330_PART_NO_HIST
Process Point On load after Body region
Process Text show_hide_memory.part_no_history_details();
*Packaged Procedure* – This kicks off the page_init javascript in the header (earlier) to click on the radio group in the first row.
PROCEDURE part_no_history_details AS
BEGIN
htp.prn('<script type="text/javascript">' || CHR(10));
htp.prn('<!--' || CHR(10));
htp.prn('page_init();'|| CHR(10));
htp.prn('//-->' || CHR(10));
htp.prn('</script>' || CHR(10));
END part_no_history_details;
Thanks Pete
Edited by: Pete @ LSC on 26-Jan-2010 06:56

Anybody any ideas? Should I be looking down the route of using my own pagination buttons and adding my code to this?
There seems to be a routine $a_report that I can use for the pagination but I am finding it difficult to get the current first and last record values that I would need to pass. I've seen references to below in the form but when I'm using partial refresh they do not seem to change.
wwv_flow.g_flow_current_min_row
wwv_flow.g_flow_current_max_rows
wwv_flow.g_flow_current_rows_fetched
wwv_flow.g_request
Thanks Pete

Similar Messages

  • Is there any way to hook into the TextModel from ICompositionStyle?

    When creating a new custom attribute in IAttrReport there is the ability to hook into the ICompositionStyle interface. But I don't see any way from there to see which TextIndex it is composing. Does anyone know if it's possible?

    Anybody any ideas? Should I be looking down the route of using my own pagination buttons and adding my code to this?
    There seems to be a routine $a_report that I can use for the pagination but I am finding it difficult to get the current first and last record values that I would need to pass. I've seen references to below in the form but when I'm using partial refresh they do not seem to change.
    wwv_flow.g_flow_current_min_row
    wwv_flow.g_flow_current_max_rows
    wwv_flow.g_flow_current_rows_fetched
    wwv_flow.g_request
    Thanks Pete

  • Is there any way to hook up the iPad 2 to an external CD/DVD drive?

    I want to get my girlfriend an iPad for college, but her textbooks frequently come with CD's with supplemental learning resources. She also enjoys watching DVD's. Unfortunately, the iPad lacks a USB port, so it can't be connected to an external CD/DVD drive. Is there any workaround, such as a USB adapter that can be used with the existing iPad interface? Or is there some sort of wireless solution to be able to use an external CD/DVD drive? Knowledgeable feedback is appreciated, and please don't suggest buying a laptop, as I have already considered that. My inquiry refers strictly to my query regarding hooking up an external CD/DVD drive to the iPad 2. Thanks in advance!
    Lou

    louven23 wrote:
    please don't suggest buying a laptop, as I have already considered that.
    Ok - then since the answer to your question is NO - then you have all of ....
    Knowledgeable feedback
    that there is on the subject. There is no way to connect any device to the iPad except for a camera using the camera connection kit.

  • I have an older version of Firefox 3.6.6 I believe I am having an issue with one of the websites I sign into. Is there any way to update to the newest version

    I have an older version of Firefox 3.6.6 I believe I am having an issue with one of the websites I sign into. Is there any way to update to the newest version. Without losing all my bookmarks and saved pass words?

    Hello johngervais, the latest firefox version is 26.0 (today 4 Jan 2014).
    note that [https://support.mozilla.org/en-US/kb/firefox-no-longer-works-some-versions-windows-xp Firefox no longer works with some versions of Windows XP], if you have '''xp with sp2 and above''' you can update to latest version, see : [http://www.mozilla.org/en-US/firefox/26.0/system-requirements/ Firefox 26 System Requirements]
    if you are able to update to latest version then see : [https://support.mozilla.org/en-US/kb/common-questions-after-upgrading-firefox-36 Common questions after upgrading from Firefox 3.6]
    see also : [https://support.mozilla.org/en-US/kb/firefox-just-updated-why-it-asking-me-update-again Firefox just updated - why is it asking me to update again?]
    Don't worry you won't losing bookmarks and passwords after update firefox.
    thank you

  • I deleted emails from VIPs and didn't realise they would be deleted from my Mailbox. VIPs does't appear in Mail on Time Machine. Is there any way I can restore the deleted emails?

    I deleted emails from VIPs in Apple Mail and didn't realise they would be deleted from my Mailbox. I have tried to restore from Time Machine but VIPs doesn't appear. Is there any way I can retrieve the deleted emails? I also have bachups on an external hard drive.
    I have OS X 10.9.2

    You can't download pictures from iCloud by logging into icloud.com.  If you deleted pictures from camera roll AND photo stream, the only possibility is preforming a restore from an iCloud backup, assuming the backup has the pictures in it.  (Many users have been unable to restore and get back their pictures.)
    If the restore doesn't have all the pictures, then they are gone.
    In the future, use photo stream to sync photos from an iPhone to a computer, then copy the photos on the computer from the photo stream album into a permanent album.  Photo stream pics stay there only for 30 days, and only up to 1000 photos are stored.  Don't use photo stream as a storage medium, it's only for copying photos from one device to another.  Always copy (either via USB cable or photo stream) to a computer and then move to an album.

  • The other day I had to reset my phone because i pulled it out from my laptop when it was updating. I then tried to restore it but i clicked the wrong option and it has restored all of my stuff from 2 years ago, is there any way to get back the stuff I had

    The other day I had to reset my phone because i pulled it out from my laptop when it was updating. I then tried to restore it but i clicked the wrong option and it has restored all of my stuff from 2 years ago, is there any way to get back the stuff I had

    maggielou wrote:
    I thought that I had backed up my pictures to icloud, but when I looked online at icloud, I don't see pictures listed.  However, a few of the recent pictures have shown up on my phone.
    IHow could I get these from my MacBook to my phone?
    Thanks again.
    When you log into you icloud account on your computer you are viewing data that you sync to icloud not the backups.  You can't view the backups.
    Look at the two links I provided.
    You still didn't answer any of my two questions I asked.

  • I connected a digital camera memory chip with approximately 100 photos on it. The photos showed up in iPhoto. I believe I deleted the photos from the memory chip before importing them. Is there any way I can get the photos back?

    I connected a digital camera memory chip with approximately 100 photos on it to import into iPhoto. The photos showed up in iPhoto. I believe I deleted the photos from the memory chip before importing them to iPhoto. Is there any way I can get the photos back?

    Terence, thanks that site is a gem...have to explore it more fully at home as it drove security here crazy
    Looks like just the ticket for saving mistakes.

  • Is there any way to hook up to a vga display

    My apple TV is on route and one of my TVs only has a VGA port. Is there any way to hook it up to that TV?

    Welcome to the Apple Community.
    You'd need a hardware converter to do that, even then you will not be able to watch protected content from iTunes and netflix. You may also have aspect ratio issues if your TV is not widescreen, and even with a converter it may not work at all if your TV doesn't support 720p and the converter doesn't also scale.

  • HT201210 My itouch screen froze showing "plug to itunes" after trying to update to iOS6. Is there any ways to export all the pictures from it before restoring?

    My itouch screen froze showing "plug to itunes" after trying to update to iOS6. It still can be turned on and off. But the screen froze showing that message. I perhaps need to restore it. But is there any ways to export all the pictures from it before restoring?

    Only if y can get the iPod out of recovery mode with the program. Otherwise you will have to restore via iTunes which erases the iPod.
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • Is there any way to break into an ipod after it has been disabled

    i need help is there any way to break into an ipod touch after it has been disabled

    Maybe the CIA could get data from an disabled iPod.
    It is easy for anybody to erase the iPod and regain use of the iPod for their own use.  Just place in recovery mode and retore.

  • I want to buy a new apple tv but it used hdmi cables and my house is only wired for analog.  Is there any way I can use the apple tv on analog cables?

    I want to buy a new apple tv but it used hdmi cables and my house is only wired for analog.  Is there any way I can use the apple tv on analog cables?

    Welcome to the Apple Community.
    It's do-able, but I don't think it's a great idea.
    DVI
    Some users with DVI have managed to get their TV's to work with DVI-HDMI cables. DVI carries no audio, so alternative connections need to be explored to enable audio. DVI doesn't necessarily support HDCP as well as other standards used by HDMI (which may or may not be an issue)
    Analogue
    There are hardware converters that will convert HDMI to various other types of output, however there are some issues with doing so that you should be aware of.
    HDCP
    HDCP compliant converters will not allow you to watch HDCP protected content such as that from the iTunes Store. Non compliant converters exist but we cannot discuss them under the Terms of Use for these communities.
    Resolution and aspect ratio
    I'm not aware of any converters that will scale the output from the Apple TV, any TV or projector which is used will need to be widescreen and support resolutions of 720p (Apple TV 2), 720p/1080p (Apple TV 3)
    DAC
    DAC (Example Only - Not a recommendation or suggestion that this is suitable in your circumstances)

  • HT201335 I have an i mac early 2008 10. 8. 2 mountain lion. Is there any way i can do the mirroring to my apple tv.

    I have an i mac early 2008 10. 8. 2 mountain lion. Is there any way i can do the mirroring to my apple tv/ tv?

    Not natively. That requires the newer processor. You will have to use Airparrot
    http://airparrot.com/

  • My iphone was stolen, I used find my iphone app, and found that it was offline, however when tried locking mode option, I pressed remove device by mistake. Is there any way I can restore the iphone to my icloud/ apple Id again? No manual backup on laptop

    My iphone was stolen, I used find my iphone app, and found that it was offline, however when tried locking mode option, I pressed remove device by mistake. Is there any way I can restore the iphone to my icloud/ apple Id again? No manual backup on laptop

    The phone will automatically re-appear when it connects to the Internet. However, don't get your hopes up, as thieves know this & will make sure your phone never re-connects so you can locate it.

  • When sharing screen from work with my home computer, is there any way to turn off the display at home?

    Hi, sorry if this is a silly question, but when I'm viewing my desktop on the home computer from work (as in I've connected by finding my computer in the finder and hit the "Share Screen" button - is there any way to turn off the display at home? It seems a bit of a waste of power to have the screen on when I'm not actually there - I just need to be able to see all my programs etc on the remote screen in order to use them. My home computer is a 2011 iMac running latest Mountain Lion, work is a 2010 MacBook Pro.
    Thanks in advance!
    Matt

    I've set up another user on my home Mac and left that one logged in. Now when I connect from work it asks me if I want to share the screen or log on virtually as my user. I think choosing the second option doesn't power up the screen.
    Matt

  • Is there any way to turn off the auto formatting in Pages?  I just want to type a letter and add pictures and titles, and Pages keeps changing font sizes and doesn't let me "Do it my way".  I HATE this!

    Is there any way to turn off the auto formatting in Pages?  I'm using a blank document, so I figured I could write my letter and add pictures any way I wanted to.  But NO!  Pages keeps changing the font size!  I typed a large heading as a title, and when I try to change to a smaller font for the body of the letter, it changes the size back to the larger size!  I am getting SO FRUSTRATED!  I've spent over an hour trying to get the stupid program to let me just type my letter!  Can anyone help?

    The only one left is the "unsubmitted text" dialogue, which would not be a problem if I were not a Facebook user; after updating the "Richard is..." field (which does not require a manual submit to actually send) I get the above message. This is obviously Safari just not realising that the info has been sent and is therefore (I imagine) one for Apple themselves to answer!!
    You're welcome Rich. Glad to help.
    Not being a Facebook User, I'm not sure how to respond to the error situation. However, this would be something to report to Apple as a bug via the Safari Menu. First, open to the page in question, then select "Report Bugs to Apple".
    Mahalo for the and Aloha from Big Island.

Maybe you are looking for

  • Bold character style does not inherit the paragraph emphasis (Italic)

    Hi, I am using TCS2 (RH 8, FM 9). I have a character style in FrameMaker that makes GUI terms bold.  My text for Notes, Tips and so in is italic and when I apply my GUI character style in FM, the text becomes both bold and italic.  In RoboHelp, my te

  • How to handle SLA in BPM

    Hello Experts, How can we handle SLA/escalation process in BPM. Say we have a scenario if the user does not respond for a specific duration then we need to send the same task to his immediate manager. Any thoughts would be of great help. Regards, Nir

  • SFSY-FORMPAGES not displayed in XSF output

    I am trying to display a smartform as an html output using XSF output option.  However, I am unable to display the total no. of pages.  I am using SFSY-FORMPAGES to display Page x of y.  Does anybody have a suggestion to solve this issue?  We are in

  • Problem in refreshing Tabular Form On closing Modal Page

    Hi ,           I am not able to refresh tabular form region on close of the modal page.           can someone help me ? Thanks and Regards, Madonna

  • BPEL initiateTask java.lang.NoClassDefFoundError

    Hi, I have a process in BPEL PM. When it tries to initiate a user task (initiateTask step) , it failes with java.lang.NoClassDefFoundError. The process works well in our development environment. The development and the production environment is very