Page Access Protection -Arguments Must Have checksum question

If we want to call popup page that is defined as "Page Access Protection -Arguments Must Have checksum", then HTMLDB_UTIL.PREPARE_URL has to be called for every used URL-OK!
<br><br>
This calculation is easy to perform in "OnLoad-Before region" process, where some hidden varible is assigned as:
:P_HIDDEN_VAR_URL:= HTMLDB_UTIL.PREPARE_URL('*f?p=&APP_ID.:2:&APP_SESSION.::NO::P_PROCESS:1');<br>
and later used in call:
javascript:popupURL('&P_HIDDEN_VAR_URL.');<br>
AFAIK, this approach has a limitation if popup links are placed in table grid. If in grid link is defined as:
<*a href="*javascript:popupURL('*f?p=&APP_ID.:2:&APP_SESSION.::NO:RP,2:P_PROCESS:#ID#')">#SOME_FIELD#</a><br>
then no "HTMLDB_UTIL.PREPARE_URL" cannot be used, because every value depend on each grid row (ID field).
<br><br>
So is there a solution in such a cases to call popup page that have mentioned type of page access protection?
<br>
THX!

See results below for call to prepare_url in SQL*Plus. It doesn't do anything, as you can see. The function can only generate a secure checksum (to be ultimately verified later within the application context) if it has some secret knowledge that is known only within the application context. So to expect it to work outside that context may be a requirement that conflicts with security aims.
Is your requirement to use apex_mail.send from a job? Maybe you could generate the links with user-level checksums from within the application (for every possible user/argument value combination) and save them off in a table for retrieval by the mailer program. Just a thought.
SQL> select apex_util.prepare_url('f?p=211:2:5103232296113234:x') from dual;
APEX_UTIL.PREPARE_URL('F?P=211:2:5103232296113234:X')
f?p=211:2:5103232296113234:x::::
SQL> select apex_util.prepare_url('f?p=211:2:5103232296113234:x','3') from dual;
APEX_UTIL.PREPARE_URL('F?P=211:2:5103232296113234:X','3')
f?p=211:2:5103232296113234:x::::
SQL> select apex_util.prepare_url('f?p=211:2:5103232296113234:x','2') from dual;
APEX_UTIL.PREPARE_URL('F?P=211:2:5103232296113234:X','2')
f?p=211:2:5103232296113234:x::::
SQL> select apex_util.prepare_url('f?p=211:2:5103232296113234:x','1') from dual;
APEX_UTIL.PREPARE_URL('F?P=211:2:5103232296113234:X','1')
f?p=211:2:5103232296113234:x::::
SQL>
Scott

Similar Messages

  • Session State Protection - Arguments must have Checksum - Help Required

    Hi everyone,
    I am using apex 4.0 and have set:
    Session State Protection = True
    Page Access Protection = Arguments must have checksum
    Application Item Protection = Cecksum required - Session Level
    Page Data Entry Item Protection = Cecksum required - Session Level
    Page Display-Only Item Protection = Cecksum required - Session Level
    On pages which contain a Interactive report the calls to other pages to update and or delete a record passing the PK of the record work OK.
    I have set these as follows:
    In the Interactive report LInk Colomn --> Link Attribute = onclick="new top.Ext.apex.PopupWindow( { url: this.href, title: 'Edit Classification Details', width: 530, height: 500, listeners: {'success': gReport.search} } ).show(); return false;"
    Target = Page in this Application
    Page = 302Item = P302_IDCLASS
    Value = #IDCLASS#
    Page Checksum = - User Default -
    The problem is on the "Create new record" button which is located on the Interactive report page. I have defined the button as:
    Button Attributes = onclick="new top.Ext.apex.PopupWindow({ url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:302::::', title: 'Create New Classification', width: 530, height: 500, listeners: {'success': gReport.search} }).show(); return false;"
    Action when button click = Redirect to Page in this Application
    Page = 302
    Clear Cache = 302
    When I click the button I get the following message:
    Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum. If you are unsure what caused this error, please contact the application administrator for assistance.
    If I change the Button attributes to be:
    onclick="new top.Ext.apex.PopupWindow({ url:'f?p=&APP_ID.:302:&APP_SESSION.::NO:::::', title: 'Create New Classification', width: 530, height: 500, listeners: {'success': gReport.search} }).show(); return false;"
    It works OK, bu the page items are not clear.
    Could someone please explaing to me what am I doing wrong so I understand my mistake ?
    Thank you
    Daniel

    Here's an interesting situation. I have been having great results with the prepare_url function, until I needed to pass a column value from a report into a popup.
    Originally, in the Column Link --> URL in the Report Attributes I had this. This worked great when there was no session state protection enabled.
    javascript:popUp('f?p=&APP_ID.:17:&SESSION.::&DEBUG.:17:P17_EVENT_LOG_ID:#EVENT_LOG_ID#','450','375');When I enabled session state protection and changed the URL link to this
    javascript:popUp('&VW_EVENT_LOG.','450','375');and then created an application item and computation in order to pass a checksum along
    APEX_UTIL.PREPARE_URL (
      p_url => 'f?p=&APP_ID.:17:&SESSION.::&DEBUG.:17:P17_EVENT_LOG_ID:#EVENT_LOG_ID#',
      p_checksum_type => 3
    );the checksum seems to get passed fine, but the column value for the EVENT_LOG_ID is being concatenated to the end of the checksum instead of being passed as the value for P17_EVENT_LOG_ID. I also noticed that the clear cache page (17) looks like it is also being attached to the beginning of P17_.., but I'm not sure if that's to be expected or not.
    It took me a while to figure it out, but when I started looking at the error message closely, I could see that the checksum is identical except for the last two digits, which coincidentally are the same as the ID for this record.
    The checksum computed on the request, clear cache, argument names,
    and argument values (17P17_EVENT_LOG_ID [C6161B29B4C078F68DCF430133407754] ) did not match the checksum
    passed into the show procedure (C6161B29B4C078F68DCF43013340775490). Any thoughts on how to pass a column value with a checksum to a popup window?
    Thanks,
    Joe

  • My old email account was disabled and I can't remember my password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my information because I can't answer the security questions correctly...

    My old email account is disabled and I can't remember my itunes password - how can I reset my password or move $ to a new itunes/email account?  It seems I must have mis-typed my account information because I can't answer the security questions correctly...

    ➡ https://iforgot.apple.com/

  • I have a question. For the past week I have not been able to access my iTunes app it always kicks me out. I've turned it off and on and still nothing. I was wondering how can I get it to work or what should I do. Thank you

    I have a question. For the past week I have not been able to access my iTunes app it always kicks me out. I've turned it off and on and still nothing. I was wondering how can I get it to work or what should I do. Thank you

    You need a computer with iTunes and an internet connection
    Try:
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              

  • I accidentally deleted documents from Pages on my iphone - and now they won't show up on my mac anymore either.  I must have saved them just on icloud and not on my mac, too.  is there anyway to recover these documents?

    I accidentally deleted documents from Pages on my iphone - and now they won't show up on my mac anymore either.  I must have saved them just on icloud and not on my mac, too.  is there anyway to recover these documents?

    On a mac, when you save docs to icloud, a local copy is also saved.  It's saved at:
    ~/Library/Mobile Documents
    Note that Library in the user's home folder is now hidden, so you'll have to set Finder to view hidden files.
    The Mobile Documents folder has subfolder where copies of the doc/data files are stored.
    If the file(s) are no longer there, then use your Time Machine backups to get copies back to the mac.

  • I have a question about extracting pages.  When I do the function, adobe saves the individual files as " file name space page number ", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I a

    I have a question about extracting pages.  When I do the function, adobe saves the individual files as "<file name><space><page number>", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I am using excel to concatenate some data to dynamically build a hyperlink to these extraced files.  It casues me problems, however, for the space to be the the file name.  Is there any way to change the default behavoir of this function to perhaps use a dash or underscore instead of a space?

    No, you can't change the default naming scheme. You can do it yourself if you extract the pages using a script instead of using the built-in command.

  • My Apple Macbook hard drive crashed and I had to replace. Now trying to reload CS5 and having issues. When I click download from Adobe download page, a screen pops up saying "Access Denied". I have serial number, but don't even get to a page to enter. Ple

    My Apple Macbook hard drive crashed and I had to replace. Now trying to reload CS5 and having issues. When I click download from Adobe download page, a screen pops up saying "Access Denied". I have serial number, but don't even get to a page to enter. Please help…Thanks!!

    Make sure you have cookies enabled and clear your cache.  If it continues to fail try using a different browser.
    You can also download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • HT4168 I have created an 100 page booklet in Pages, with many photographs, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?

    I have created an 100 page booklet in Pages, with many photographs, and much written word, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?....
    Basically what I want to do is publish the document into both an eDocument, and a hard copy document. What is the best way to do this?

    No Peter, this statement came right off the Apple ePub statement when outlining how to use ePub. the full context is:
    Creating ePub files with Pages
    Summary
    Learn how to create ePub files with Pages.
    Products Affected
    Pages '09
    ePub is an open ebook standard produced by the International Digital Publishing Forum. Pages ’09 lets you export your documents in ePub format for reading with iBooks on iPhone, iPad, or iPod touch.
    iBooks supports both ePub and PDF file formats, and you can export both from Pages.
    When to use ePub or PDF
    Use ePub when text is the most important part of your document, for example when you create a book, a report, a paper, a thesis, or classroom reading material.
    More details on using ePubUse PDF when layout is the most important part of your document, for example when you create a brochure, a flyer, or a manual with multiple illustrations.
    More details on using PDF
    Creating an ePub Document to Read in iBooks
    You can export any Pages word processing document to the ePub file format for reading in an ePub reader, such as the iBooks application on the iPad, iPhone, or iPod touch. Documents created in page layout templates can’t be exported to the ePub format.
    Documents exported to ePub format will look different than their Pages counterparts. If you want to get the best document fidelity between the Pages and ePub formats, style your Pages document with paragraph styles and other formatting attributes allowed in an ePub file. A sample document is provided on the Apple Support site that features styles and guidelines to help you create a Pages document that’s optimized for export to the ePub file format, which you can use as a template or a guide. To learn more about using paragraph styles in Pages, see the topics under the heading “Working with Styles” in the Pages built-in help.
    To read your ePub document in iBooks on your mobile device, you must transfer the ePub file that you create onto your device.
    To use the “ePub Best Practices” sample documentTo learn more about using the ePub format and get a better feel for how a Pages document might appear as a book in iBooks, it’s a good idea to download the “ePub Best Practices” sample document. After reading the guidelines and instructions within the document, you can use it as a template to create your own document. You can also import the styles from the sample document into a new document you create.
    Download the “ePub Best Practices” sample document at the following web address:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    Do either of the following:Use the sample document as a template.Import the paragraph styles from the sample document into a new or existing Pages document.
    Export the document you create to ePub format to see how it looks in iBooks.
    Preparing an existing Pages document for export to ePub format
    Documents exported to the ePub format automatically appear with page breaks before every chapter. A table of contents is automatically generated, which allows readers to jump quickly to any chapter title, heading, or subheading in the book. In order to create a meaningful table of contents, it’s important to apply appropriate styles within your document. The ePub reader uses the paragraph styles to determine which items should appear in the table of contents for your book.
    Note: The Pages document must have been created using a word processing template.

  • I have my Mac with Mountain Lion and my IPad synched and have Pages on both. I have doc in Word on my Mac I want to access on my IPad while I am away travelling. But I can't locate them. Where should I look to find my previously saved Word docs?

    I have my Mac with Mountain Lion and my IPad synched and have Pages on both. I have doc in Word on my Mac I want to access on my IPad while I am away travelling. But I can't locate them. Where should I look to find my previously saved Word docs?

    Welcome to the Apple Support Communities
    It looks like you haven't got them on iCloud. On your Mac, open Pages and drag the Word documents to the iCloud window

  • I must have made some change to my Pages preferences.

    I am working on a book using Pages (iWork 09).  I have had no problem with opening two Pages documents I have created and have then both display on the desktop.  I readjust their sizes and they sit there side by side.  I don't remember making any changes to any preferences.  Just recently, whenever I open the first document and it pops onto the desktop.  Great.  Now, when I go to open the second document that I want to sit right beside the first document, the second document opens okay but the first document that I opened "zips" off the desktop.  What have I done wrong?  I know I must have made some inadvertent change because I have been doing this (putting both documents side by side ) for months.

    Hi Julia D.
    Welcome to the Support Communities!
    The article below will explain how Apple ID's are used with various services like iCloud and the iTunes Store.
    Do all of the members of your family share the same Apple ID for both?
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Here is some specific information for setting up the Messages app:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Ensure that iMessage is turned on in Settings > Messages.
    To send and receive iMessages, your device must have a valid cellular or Wi-Fi data connection.
    iPhone: Troubleshooting Cellular data
    iOS: Troubleshooting Wi-Fi networks and connections
    iMessage registration validates your Apple ID for use with iMessage. If you are unable to activate iMessage, follow this article.
    If an iMessage cannot be sent, it will be resent using SMS or MMS, depending on the content. You can turn this behavior on or off in Settings > Messages > Send As SMS. Carrier messaging rates may apply.
    Verify that the Apple ID or phone number is listed in Settings > Messages > Send & Receive.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    I hope this information helps ....
    Happy Holidays!
    - Judy

  • I purchased a new MacBook Pro and when transferring files iphoto did not transfer.  I have a question mark in the place of the icon.  My pictures are in library but can't properly access iphoto.  Thank you

    I purchased a new MacBook Pro and when transferring files iphoto did not transfer.  I have a question mark in the place of the icon.  My pictures are in library but can't properly access iphoto.  Thank you

    Sure-glad to help you. You will not lose any data by changing synching to MacBook Pro from imac. You have set up Time Machine, right? that's how you'd do your backup, so I was told, and how I do my backup on my mac.  You should be able to set a password for it. Save it.  Your stuff should be saved there. So if you want to make your MacBook Pro your primary computer,  I suppose,  back up your stuff with Time machine, turn off Time machine on the iMac, turn it on on the new MacBook Pro, select the hard drive in your Time Capsule, enter your password, and do a backup from there. It might work, and it might take a while, but it should go. As for clogging the hard drive, I can't say. Depends how much stuff you have, and the hard drive's capacity.  As for moving syncing from your iMac to your macbook pro, should be the same. Your phone uses iTunes to sync and so that data should be in the cloud. You can move your iTunes Library to your new Macbook pro
    you should be able to sync your phone on your new MacBook Pro. Don't know if you can move the older backups yet-maybe try someone else, anyways,
    This handy article from Apple explains how
    How to move your iTunes library to a new computer - Apple Support''
    don't forget to de-authorize your iMac if you don't want to play purchased stuff there
    and re-authorize your new macBook Pro
    time machine is an application, and should be found in the Applications folder. it is built in to OS X, so there is nothing else to buy. double click on it, get it going, choose the Hard drive in your Time capsule/Airport as your backup Time Machine  and go for it.  You should see a circle with an arrow on the top right hand of your screen (the Desktop), next to the bluetooth icon, and just after the wifi and eject key (looks sorta like a clock face). This will do automatic backups  of your stuff.

  • Hi Sir! I have some questions regarding word report generation please.1.How can i add border to a word page?.2.How can i add grid lines to a table generated in word report?.3.How can i add border to a table of word report?.Thanks Imran Pakistan

    Hi !
    Sir I have some questions regarding word report generation using(C language in labwindows) Please.
    1.How can i add border to a word page?.
    2.How can i add border and grid lines to a table generated in word report(Not the " cvi table control" inserted from gui,i am asking about the table generated in word report)?
    3.How can i fill a cell of word report table withe the data type other than "character"?.
    And sir one question about use of timer in cvi labwindows please.
    Sir i'm trying to set minimum delay interval of timer control to 1millisecond(0.001s),as i set ,timer don't cares of the interval that is set by me it responds only to the default minimum time interval which is i think 10milliseconds(i'am using windows xp service pack3 version 2002).
    Regards
    Imran
    Pakistan
    Solved!
    Go to Solution.

    Hello sir!
    Sir i'm using daq6251.But Sir before implimenting it to my final application now i'm just trying to achieve 1millisecond time interval for timer in a vary simple programe i mean at this time no hardware (daq device) is  involved i,m just trying to achieve minimum time interval of 1millisecond.
    Sir i read form "help" of labwindows how this time interval can be set,i'm trying for,as described in help notes but i could'nt.I'm attaching a screen shot sir for you it may helpful for you to explain me.
    And sir also waiting for your kind reply regarding word report generation.
    Thanks.
    Imran.
    Attachments:
    screen_shot_rigistry.docx ‏65 KB

  • I can't access most internet pages because I don't have adobe flash player for my powerbook and the download doesn't seem to work?

    I can't access most internet pages because I don't have adobe flash player for my powerbook and the download doesn't seem to work?

    The message requesting that you download Adobe Flash Player takes you to FP requireing an Intel processor. Doesn't work on a PowerPC processor. I fould a hack, installed it & it works with Firefox, TenFourFox & Safari.
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
     Cheers, Tom

  • We have recently purchased the new I-pad, we have tried to sync our 2 3gs phones w/ I-pad.  Music shows up transparent in I-tunes and won't access.  What must be done to access music?

    We have recently purchased the new I-pad, we have tried to sync our 2, 3gs phones w/ I-pad.  Some Music shows up transparent in I-tunes and won't access.  What must be done to access music?

    You cannot sync iphones to ipads.
    You would sync the ipad to your computer, just as you do your iphones.

  • HT5577 Hi, I can access my account, i have my username and password . But I forget my answer of the security question. And I lost the reset email. Any other way I can reset the reset email? I still have my redeemed gift card money in there.

    Hi, I can access my account, i have my username and password . But I forget my answer of the security question. And I lost the reset email. Any other way I can reset the reset email? I still have my redeemed gift card money in there.

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (93082)

Maybe you are looking for