Automatically displaying date of last page change

I think I remember seeing this a year or so ago, but I can't find it.
Is there a way to grab the date that a page was last modified and display that on the page? It seems like there should be and easy way, since the information shows up in the developer reports.
I have the following query which works in SQL*Plus:
select max(audit_date) from flows_020000.WWV_FLOW_BUILDER_AUDIT_TRAIL
where flow_id = 130
and page_id = 306
but in a page definition I get an 'insufficient privileges' message.
I'd to avoid granting select privileges on the table, as I'd then have to remember to redo it with each new version of ApEx as well. And since I can't get the above to work yet, I'm not sure if I could substitute strings like &APP_ID. and &PAGE_ID. into the where clause, so this could just be a Page 0 item instead of hard coding it onto each page.
Any ideas what I'm missing? (Other than when I purge my logs)
Thanks,
Bill Ferguson

(Almost) a couple of small typos in the first select statement.
First, somehow I wound up with two create table lines. Not sure why, but get rid of one. Next, This bit of code didn't have the other DISTINCT in it (I guess somehow I copied the older version, dunno).
So, here's the correct version:
CREATE TABLE LAST_WEB_APP_CHANGE AS (
SELECT DISTINCT pk_field, short_name workspace, NAME app_name, app_id, page_num, last_change_date, flow_user
FROM (SELECT DISTINCT pk_field, app_id, page_num , lv last_change_date
FROM (SELECT short_name|| LPAD (NVL (flow_id, 0), 6, 0)
|| LPAD (NVL (page_id, 0), 6, 0) pk_field,
flow_id app_id, page_id page_num,
last_value(audit_date) OVER (PARTITION BY flow_id, page_id) AS lv
FROM flows_020000.wwv_flow_builder_audit_trail c,
                              flows_020000.wwv_flow_companies
WHERE c.flow_id = flow_id
AND c.page_id = page_id
AND security_group_id = provisioning_company_id
               GROUP BY short_name, flow_id, page_id, security_group_id, audit_date) a
WHERE page_num IS NOT NULL),
          flows_020000.wwv_flow_builder_audit_trail a,
          flows_020000.wwv_flow_companies c,
          flows_020000.wwv_flow_models m
WHERE a.flow_id = app_id
AND page_id = page_num
AND last_change_date = audit_date
AND a.security_group_id = c.provisioning_company_id
AND a.security_group_id = m.security_group_id
AND short_name = '<your workspace name>'
Just to be sure, I retested again this morning and this one does grab (and create) the last changed record in the audit trail and stores it into whatever table name you chooes (if you edit it).
As Vikas said in an earlier post, it best (probably) to do this on each parsing schema, since each parsing schema can have multiple apps associted with it, and it can become a can of works creating a generic schema accessible to all.
Anyway, after the table is created and populated for each schema, then it's easy to create a page to to handle insert/update/deletes for the future maintainability of the data.
Personally, I'm leaning towards a variation of the above code associated with a button, to update the information, maybe a drop table followed by the above code? I need to experiment some.
But, you can create a Page 0 hidden item, I called mine :P0_LAST_CHANGE_DATE, with a SQL source of :
select TO_CHAR (last_change_date, 'DD-MON-RRRR HH24:MI:SS') last_change_date
from LAST_WEB_APP_CHANGE
where app_id = &APP_ID.
and page_num = &APP_PAGE_ID.
Then, on each page's footer, I have the statement:
Page Last Changed: &P0_LAST_CHANGE_DATE.
Variations of the above can also be used to display who changed it last (the flow_user field).
Now, each page will display the date of last change (almost) painlessly). I just need to periodically go out and maintain the table. Maybe a scheduled job run each night?
Somebody want to supply an example of how to do that?
Bill Ferguson

Similar Messages

  • I just downloaded Lion.  Now when I open Safari, it automatically opens to the last page visited.  How do I reset it to open to a blank page as it did previously?

    I just downloaded Lion.  Now when I open Safari, it automatically opens to the last page visited.  How do I reset it to open to a blank page as it did previously?

    Dealing With The Resume Feature of Lion
    Managing Mac OS X Lion's application resume feature.
    If you shutdown your computer you should get a dialog asking if you want applications to resume on the next startup. Simply uncheck the box to prevent that from occurring. Open General preferences and uncheck the option to Restore windows when quitting and re-opening apps. You can also install a third-party utility to control resume features on individual applications: RestoreMeNot or Application State Cleaner.
    It is possible to completely stop the Resume feature although I'm unconvinced that it is that annoying. Nevertheless see the following:
    If you have not yet done so you must first make your /Home/Library/ folder visible. Open the Terminal application in the Utilities folder. At the prompt paste the following command line:
    chflags nohidden ~/Library
    Press RETURN. Quit the Terminal application.
    In the Finder navigate to the /Home/Library/Saved Application State/ folder. Delete the contents of the folder. Back up to the /Home/Library/ folder. Select the Saved Application State folder. Press COMMAND-I to open the Get Info window. In the Sharing and Permissions panel at the bottom click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window.
    Quit all open programs except the Finder (this is very important.) Next, navigate to the /Home/Library/Preferences/ByHost/ folder. Look for a .plist file with "com.apple.loginwindow." in the file name followed by some numbers in hexadecimal. Select the file. Press COMMAND-I to open the Get Info window and in the Sharing and Permissions panel click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window. If you also find a file with the same filename but with a last extension of ".lockfile," then you should delete it.
    The above should eliminate the Resume feature system-wide. Note that any future system updates or upgrades will likely undo these changes. You will then need to repeat this procedure assuming there are no major changes in OS X related to it.

  • END-OF-PAGE not displayed in the last page of the classical report.

    Hi all..
    The END-OF-PAGE is not displayed in the last page of the classical report.
    SY-LINCT value is 30.
    Lines displayed in the report per page is 24.
    [3 for TOP-OF-PAGE and 3 for END-OF-PAGE]
    My Internal table has 6942 records.
    It comes 289 pages with 24 records in a page and 290 th page with 6 records.
    The END-OF-PAGE is not coming for the 290 th page.
    Please help.
    Thank You.
    Karthi M R.

    There are multiple links in SDN on this subject; Please search,
    end-of-page

  • Retrieve data on last page of spool request

    Hi Experts,
    Is there any FM available , which I can use to fetch data on last page of a spool created by a background job running for a report.
    I tried to use RSPO_L_RETURN_RAW_DATA , but dont know the various parameters value to be passed for fetching data for last page only.
    Please suggest
    -Thanks ,
    harkamal

    Hi Experts,
    Is there any FM available , which I can use to fetch data on last page of a spool created by a background job running for a report.
    I tried to use RSPO_L_RETURN_RAW_DATA , but dont know the various parameters value to be passed for fetching data for last page only.
    Please suggest
    -Thanks ,
    harkamal

  • Terms and conditions not getting displayed on the last page

    Hi All,
    I have to display a smartform, on the front side of the page i have to display material details and on the back side of the page i have to display terms and conditions. I' am unable to print the material details and terms and conditions in duplex mode, but on the last page only material details are getting displayed, terms and conditions are not getting displayed.
    Can you please help me how to make the terms and conditions get printed on the back side of the last page.
    Thanks,

    I'm a bit confused by the statement "I' am unable to print the material details and terms and conditions in duplex mode".
    I suppose you meant to say "I am able to print the material details and terms and conditions in duplex mode", correct?
    If the problem is that on the last form page, the T&C is not getting printed on the back of the form, you could force the T&C page by using a flow logic command as the very last element of the main window, which gets processed when all the data is already output. For the command, use the 'Go to New Page' and specify the page name for the Terms & Conditions.
    In case this causes an issue that the last page is printed twice (since the T&C page is likely defined with the next page being NEXT_PAGE), then copy the already existing T&C page, call it LASTPAGE and leave the Next Page attribute empty.

  • Help on jsp code to display data in same page using using ajax ?

    Is there any jsp code to display in same page using using ajax ?

    Re: need help on how to display data in same jsp page. Locking.

  • Want to display footer in last page

    Hi Experts,
    I developed a classical report for service order print.
    The pages increases,  if there are more line items .
    My requirement is to display the footer in the last page only, not all the pages.
    So please help me regarding this.
    Thanks in advance.
    Regards
    Pavan

    Ok So this is a classical report and you need to set the footer only at the last page .
    In ur code use the control break
    LOOP AT ITAB.
    AT LAST.
    write:/ 'Footer text'.  "<---
    ENDAT.
    ENDLOOP.
    I hope you are discussing this about a report only .
    I hope this is not a  script requirement.
    if it is so then
    /: IF &NEXTPAGE& EQ 0 
          whatever footer you want. 
    /: ENDIF 
    Vijay

  • Ability to display data in Different Page Sizes in a Single RTF

    We have a requirement to show different page sizes in a Single RTF file .
    Please let me know you have worked on such a functionality as part of earlier assignments.
    Requirement Detail:
    We have 2 templates (One Legal (8.5*14) and One Statement ( 5.5*8.5)) as part of the same report in 2 different pages.
    Conditionally we need to show xml data in either the Statement or the Legal Format .
    Issues Currently faced:
    1.     When the Statement is chosen as a user parameter: (Attachment : ReportoutputforStatement.pdf)
    -     The data is super-imposed on the Legal layout instead of showing it on the Statement layout . Hence the page dimensions are not as expected in the report.
    -     There is a extra last page in the report which is blank with the Statement Layout.
    2.     When the Legal option is chosen as a user parameter: (Attachment : ReportoutputforLegal.pdf)
    -     The Data is appropriately shown on the legal layout
    -     There is a extra last page in the report which is blank with the Statement Layout.
    Regards:
    Nagaraj.s

    Have you tried creating two subtemplates and conditionally calling them based on the parameter chosen?
    If I understand correctly,currently you have a single RTF template (2 pages) that includes the two different layouts..
    Thanks,
    Bipuser

  • Terms and Conditions to display in the last page of Script

    Hi Experts,
    My requirement is to print the Terms and Conditions in the Last Page of a PO. so for that, I have created one LAST page. Previously i have FIRST Page and Next Page in the Script. In the LAST Page it has to windows. One is for Logo and another one is for Terms and Conditions. I am trying to print to Terms and Conditions through a Standard Text ( Created in SO10) in the Terms and Conditions window.
    The page flow are like FIRST-->NEXT, NEXT>LAST, LAST---->LAST
    Please guide me how shall i proceed to get the output. It would be better if we get the output with out doing any change to the driver program.
    Thanks,
    Priyabrata

    Dear Priyabrata
    The page flow should  like FIRST-->NEXT, NEXT>NEXT, LAST---->
    And call your page in main window at last element.
    This will surely solve your problem.
    Regards,
    Vijay

  • No Data on Last Page of Report

    Hi - I have a 3 page report in Crystal Reports for Visual Studio 2005. It is being rendered via a VB .NET web page that is using the CrystalReportViewer that has the page navigation buttons. Quite often (but not all the time) when you click the navigation buttons to go to the last page it has the text objects for the page but not any of the data fields. The data is completely blank.
    Sometimes when you navigate back to the second page and then go to the third page the data appears. Or some customers click the Print button and then they can see the data.
    The report was working well on an old clunky web server and I believe the problem started when we switched to a new web server. Is the new web server rendering too fast for Crystal or something?
    Any ideas to help view data on page 3 all of the time?

    Hi, Wendy;
    That is pretty strange. Have you ensured that the new server has updated Video drivers? Have you installed the latest service pack for Crystal Reports for .NET 2005?
    https://smpdl.sap-ag.de/~sapidp/012002523100006007872008E/crvs05sp1.exe
    Regards,
    Jonathan

  • Displaying Footer on last page of report

    Hi:
    Is there a way to display the footer only on the last page of a report? For example, if I have a three-page report, I need the footer to be displayed on the third page only. Any help would be greatly appreciated. Thank you kindly.
    Sincerely,
    Dinesh.

    Hi,
    Use the Syntax <?start@last-page:body?><?end body?> before the footer , if your template is facing any exception include a Section break in continuous (one of the Section break types) before the above mentioned syntax.
    Best Regards,
    Mahesh

  • JSP and servlets(displaying Data On JSP page)

    Hiii all
    i am new to JSP ...also to servets
    tell me hw to print my data on the JSP page,
    i can print my data on the server,that data i want to print on JSP page
    if u all have e.g's it will be very good
    Thanks in advance
    Take Care
    Rahul :)

    What do you mean "print data on a JSP?" If you simply mean display dynamic content, you should def read up both on sun's resources and other googled resources for JSP walkthroughs...

  • How to display data on separate page based on account

    Hi all,
    I have a parameter on my report and it takes list of account ids. I want to display the data in a separate page for each account. For example: If I enter 100,101 then
    101 data should start on separate page after completion of 100 account data.
    Thanks in advance.

    Hello,
    You can create the SQL query in order to set the account as a group and use the
    property "Maximum Records Per Page" of the repeating frame associated to this group to 1.
    Regards

  • How to get system date automatically in date field once page is loaded

    Hai all,
    I am a newbie to jsp programming. I had a jsp page where there is a date field with a calendar available. Initially when the page loads it should have the system date in the date field. If the user wants any other date there he can select it from the calendar. But how can i get the system date to be loaded initially into the date field? Should i use the javascript here?
    Thanks in advance....

    #SYSDATE

  • How to display data in report page footer ?

    Hi friends, we have heading popup defined in PLUS. but I don't know hw I can place information in the footer part of the report page.

    Hello Sabine, Hello Vignesh,
    I have also started working in discoverer. The version is 9.0.4
    I cannot find the Menu File --> Page Settings option neither in Discoverer Administrator nor in Discoverer Plus. Will you pls tell hw I can get them.
    I have to implement Date of creation as well as page "m of n" functionality in the reports' footer.

Maybe you are looking for

  • The efficiency of data value references to avoid buffering arrays

    I would like to get NI's formal position on this question.  It was my understanding that DVR's of arrays are an efficient way of avoiding array copying when branching would ordinarily occur in their absence. This seems to be confirmed here: http://zo

  • Need advice on comments in iPhoto and sending photos to other people

    Two related questions. 1) I'm on a study abroad and I want to send photos home to my family. My parents use computers and my grandparents don't, so I want to email photos to my parents so that they can print them and show them to my grandparents. I w

  • How to run video which needs adobe  flash player

    How to run video in iPad which required adobe flash player.

  • Leave a copy of messages on server?

    OSX6.8, Macmail 4.6 running in IMAP. How do I setup to leave a copy of messages on server, so that I can also read the emails on my iPhone? In POP I think there was an option in Prefs>account>Advance. With IMAP, it is replaced with "Keep Copies for o

  • Nohup file

    Hi, The nohup.out is getting big after starting server. Is there any way to rotate it ??? thanks,