HTMLDB_ITEM.CHECKBOX and Multiple Pages

Hi
I have used a SQL query as a source for a region and I generate checkboxes dynamically using HTMLDB_ITEM.CHECKBOX function. Everytthing works fine as long its in one page. When I set the pagination to show only 15 rows per page and when I click save from the second page (showing rows 16-30) the value of HTMLDB_APPLICATION.G_F01.COUNT becomes zero. And the values of the checkboxes are not recognised. Is this a known issue and any solutuion to it?

Hi,
two part question:
Do I need to pass session state from page to page in the same application? (I do not think so, but I am not sure)
secondly do you know why this code
for i in 1..htmldb_application.g_f01.count
loop
if htmldb_application.g_f01(i) !=0 then
:P14_INFO_ID := htmldb_application.g_f25(htmldb_application.g_f01(i));
end if;
end loop;
in which I am trying to get 1 column for the row that is checked
would result in this in the debugger:
...P14_INFO_ID session state saving same value: "" indicating that the session state for that column was not saved?

Similar Messages

  • HP L7780 Printing - Two-sided and Multiple pages

    The HP L7780 printer is capable of printing two-sided pages and multiple pages per page (e.g. two-up on a single sheet). This works just fine with my WIndows XP systems, but not with my BRAND NEW Pro! I've installed the latest drivers from HP ... any help here?

    Is any of this helpful?
    http://tinyurl.com/b2kjco
    The URL above goes to ...
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00874428&jumpid=otrecdoc/c01463616/en_us/c00874428/loc:2&custom_solutionid=rdc01463616&lc=en&dlc=en&cc=us

  • Nested Tables and Multiple Pages

    Hi,
    I have a problem with nested tables that span multiple pages.
    Lets assume I want to create a list of orders. Each order contains several order items. As long as an order contains less order items than fit to one page the list is rendered correctly. But if an order contain more items all items that can´t be displayed at the first page are cut off.
    I´ve tried so many combinations of subforms with flow content and position content, subform sets and "Allow Page Breaks within Content" as well as Layout Property "Expand to fit" but nothing helped.
    Can someone tell me if and how I can achieve this. In the meantime I do work in Designer directly with a XML datasource. So I could send you the form and example data.
    I´m working with NW04 SP11 and Adobe Designer 6.0
    Best regards
    Helmut

    Hello Helmut,
    There are some limitations and bugs in your requirement.
    Please see the output after copying into notepad.
    1.Eventhough if you give overflow leader , the headers for item table will not repeat.it is a bug.this is not solved in designer 7.1 also.
    2.There are some accessibilty bugs in case of nested table.
    Please follow the below design in the hierachy tab.
    MainTable (subform)
          |---- Header (subform)
          |      |- Header texts for Main table   +
          |      |-     Text for nested table
          |---- DATA_main (subform)     
                 |-Main table fields
              |-ITEMDATA ( Table SUBFORM)  
                     |-Header (Subform)
                     |   |-ItemHeader texts
                     |-DATA_item (subform)
                        |-Item data fields     
    for DATA_main and DATA_item subforms, set repeat count MIN in binding tab.Set all flow content and allow page break with in the content.
    The output will appear in the following manner.
    <b>( Copy the below text into the notepad. )</b>
    <b>Order no.     text                 customer
                    Order items</b>
    =================================================================
    1             Computer             Mr. Smith
       <b>Order item no.     short text          quantity        price</b>  
        10                 PC Tower            1               400.00
        20                 LCD Display         1               200.00
        30                 Keyboard            1                15.00
        40                 Mouse               1                10.00
    2             Notebook             Mrs. Parker
       <b>Order item no.     short text          quantity        price</b>  
        10                 HP Notebook         1               600.00
        20                 Ext. hard drive     1                80.00
    let me know if u didnt get the solution.
    Thanks and Regards,
    Pavan Meda

  • Oracle reports and multiple pages

    I am new the Oracle Reports and I am trying to generate a report that can continue to the another page. For instance, if my list of items exceeds the first page of the report, the remaining items will be printed on the next page. We can get it to continue to the next page, but the formatting of the following pages after the first page needs to be different. Currently, it is placing the remaining items in the same position as the first page. The remaining items should be further up the page.
    In short, how do I generate 1 report with 2 different formats. All pages beside the 1st page will be the same.
    Any guidance is appreciated.

    Please post the details of the application release, database version and OS.
    I would like to ask for your help regarding printing from concurrent requests.
    I am currently having an issue with printing multiple pages from Oracle reports, both in text format and RTF/PDF formats.
    When I generate a multiple page report and print it directly from a concurrent request, print outs generate extra space after each page even though page size is indicated in the reports (all of them are in letter size).What if you print the output file from the OS, can you reproduce the issue then?
    Troubleshooting (Printing) [ID 104528.1]
    An Extra Empty Page Is Printed at the End of Requests Output [ID 1011499.7]
    I have already tried editing the printer drivers both the actual driver config file and through the application but the results are still the same.Can you reproduce the issue with other printers?
    This is very important since printing is done on continuous paper and continuous pre-printed forms
    Any ideas would be greatly appreciated.If the issue is urgent, please log a SR.
    Thanks,
    Hussein

  • Print: zoom AND multiple pages

    Hi,
    I need to print a 4 pages long pdf on one single two-sided page. To do that, i do the multiple pages option: put 2 pages per printed page (2 on the front page, 2 on the back side). Because every single of these four pages is already in very small font size (every pages contains 16 slides), I need to zoom a bit, so that I can erase the most unnecessary space possible (the white marges). Without the zoom, it's written so small that I can't read it; by removing the marges, I can enlarge a bit the space and make it readable.
    With the new pdf version, I can only chose between putting 2 pages on one page, or zoom; not both at the same time. Can somebody tell me how I can to both at the same time please?
    I hope I could clearly expose my problem and that somebody can help me.

    Quite imposing has features that allow you to minimize the space between your pdf pages that are being imposed for the same piece of paper.
    http://www.Quite.com

  • Confusion about backing beans and multiple pages

    Hello:
    I'm new to JSF and am confused by several high level and/or design issues surrounding backing beans. The
    application I am working on (not unlike many apps out there, I suspect), is comprised of several forms which
    collect various query parameters and other pages that display the query results via dataTables. Additionally, the
    displayed results have hyper-text enabled content sprinkled throughout in order to allow further "drill-down" to
    greater details about a given result.
    Obviously, the initial forms are backed by a managed bean that has the getters/setters for each of the various
    fields. From a modularization perspective, I'd prefer to have the query execution in a separate class entirely,
    which I can accomplish via delegation or actionListeners. Where I get confused is in the case that one of the
    hyper-text enabled fields needs to invoke yet another query requiring specific values from the original result.
    In this case, how should I design the beans to store the pertinent selection information AND still be able to
    have the resulting 'details' query in a separate class.
    For example, let's assume that I have a form with a simple backing bean to collect initial query params. The user
    fills out the form and clicks on submit. The action field of the <h:commandButton> tag inside the <h:form>
    delegates to a method which performs the query and returns a navigation string to the results display page. The
    results page then uses a <h:dataTable> tag to display the results. However, through the process of displaying the
    results, it will create the hyper-text links as follows:
                        <h:form>
                            <h:commandLink action="viewDetails">
                                <h:inputHidden id="P_ID" value="#{results.id}"/>
                                <h:outputText value="Click here to see details"/>
                            </h:commandLink>
                        </h:form>Notice that the value="#{results.id}" is the key field (in some case I may need more than one) that the subsequent
    details page will need to perform the query. However, this value is stored in the results attribute of the original
    query backing bean. I do NOT want to add yet another level of queries into the same backing bean as I would like
    to keep the original and details query beans separated for maintenance and style reasons. How then, can I get this
    specific value ("#{results.id}") into another backing bean that could be accessed by the subsequent details page
    and query? In general, how does one map a single display element to multiple backing beans (or accomplish the
    effect of having one 'source' bean's value end up in another 'destination' bean's attr? If this is not possible,
    then isn't the details query/page forced to use the same backing bean in order to get the data it needs? If so,
    how can it determine which id was selected in this case?
    I'd appreciate any thoughts, ideas and suggestions here! Is there a better way to design the above in order to
    maintain the separation of logic/control? What is the 'best practice' approach for this sort of stuff?
    Thanks much in advance!

    This is what I have done in the pass
    <h:commandLink action="#{AppAction.getRecord}" >
    <h:outputText value="#{bbr.id}"/>
    <f:param name = "recordid" value ="#{bbr.id}" />
    </h:commandLink>
    within the getRecord method
    String key = "";
    FacesContext facesContext = FacesContext.getCurrentInstance();
         ServletContext servletContext = ServletContext)facesContext.getExternalContext().getContext();
    key = (String)facesContext.getExternalContext().getRequestParameterMap().get("recordid");
    then call you dbmethod passing in the key of the record the user wants to edit
    and then simply return a string to what page you want the user to go to
    I think this is what your looking for

  • Safari Reader and multiple page stories

    The link below takes you to a five page story in the Washington Post. Reader will only display the first two pages of the story. There is also an ad that appears in Reader at the bottom of the second page. Is there some trick I'm missing to try and get the entire story to display in Reader? I'm able to read other multiple page stories on other newspaper and non-newspaper sites.
    I've tried paging though the story without Reader to see if it would save it in cache and then opening Reader but it still only displays two pages at a time.
    Here's the link:
    http://www.washingtonpost.com/wp-dyn/content/article/2010/07/02/AR2010070202983_ 4.html?sid=ST2010070203263
    BTW, I think Reader is the best new function introduced in a web browser in quite a few years.

    Greetings,
    Thanks for your fast and courteous replies.
    I cannot see any button or other icon at the bottom of Reader that would allow me to continue to the next page. The only icons visible are: Zoom, Email, Print and Close. I tried emailing the story to myself just to see what it would send and I only got the first two pages plus the jewelry ad at the bottom of the second page. It sends the document just as Reader displays it. Sorry if this is something obvious I'm missing.
    Since you can see these buttons and I can't I'm going to assume this is something peculiar to my installation. I can't imagine what that may be but I'll keep rooting around and see what I can find.
    Thanks again!

  • Checkbox and report page in new window

    Hi team,
    I have the following problem.
    On a page I display a report where each row has a checkbox.
    The user can check a row and press a button (button in region)to produce a more detailed report. I want to display this report in a new window. I know that I can use the javascript PopUpURL or PopUp2. The issue I have is that I have to process the checkbox with function htmldb_application.g_f01(i). I can't use that directly. So what I have done is create a hidden field and assign the return value of the formentioned function to it in a Page processing computation. The problem I hit is that page processing is/has not taken place. Therefor the call to the new page is missing a paramater because the hidden field is empty.

    Hi Raymond,
    1. Create a URL redirect branch back to the same page when the VIEW button is pressed
    "f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:&REQUEST.:&DEBUG.:"
    2. Create an Hidden Item P1_HIDDEN_ITEM
    3. Create an after submit computation to null the hidden value item
    4. Create an after submit computation to find out which check box is checked.
    Dynamically generate the popup URL you would like to view into the Hidden Item.
    P1_HIDDEN_ITEM
    3. Create a JavaScript function called showpopup in the page HTML Header region
    &lt;script&gt;
    function showpopup () {
    if ("&REQUEST." == "VIEW")
    if ("&P1_HIDDEN_ITEM." != null)
    popupURL('&P1_HIDDEN_ITEM.');
    &lt;/script&gt;
    4. Call the showpopup function in on load JavaScript region. onLoad="showpopup();"
    Try this and see if it works for you.
    Also I would have changed the Checkbox to a Radio button group because this will limit the user to select only one row.
    Vivek Ananda

  • Working with Instances - Hiding 1 field and multiple pages

    I have a fairly simple form that has some header information and then 6 fields that repeat an unknown number of times, then a second page of summary information. I have two issues that I can't resolve:
    1. How do I set up the repeating rows to flow to a second, or third page if I run out of room on the first page? I still need to show the 2nd page after this data.
    2. How can I set one of the columns in this instance to be hidden/visible based on a user selection (checkbox) in the header area?
    Thanks for any help on this.
    Brian

    Anytime you modify a library symbol you are modifying all instances of it.  You'll need to go thru the code to see how things like text and/or frame numbers are defined.  Unfortunately, with AS1/2 code can live on objects which can make it difficult to find at times.  So not only do you need to check the timeline code but you also need to click on the objects (or objects within objects) to find code living on them.  On top of that, there is a general tendency for templates to be poorly designed - especially if they are free.  So you might have an even harder time trying to reason out how the file works.

  • Tables and Multiple Pages

    Hello, I'm a beginner user of InDesign, using CS5, and am needing some help with tables.
    I'm creating a schedule for an event. I have a 4 page, facing-pages, each page is letter-sized with vertical orientation. I'm inputting the schedule data into a table because that seems to be the easiest way to keep everything aligned and easy to re-organize. My table begins in the lower-half of Page 1, and runs to the bottom of Page 3.
    My questions:
    1) On Page 2 and 3, if I adjust the column width the width is automatically updated on the facing page (e.g. width change on Page 3 auto-updates Page 2). However on Page 1 the width remains the same. Anyway to have it update as well? The text in the tables is linked (e.g. can push text from Page 1 to Page 2)
    2) On each Page I merged the first row of cells to create a 'Date' header (e.g. March 4 2011). As changes are made to the schedule (e.g. events added or removed), and because the text between the 3 pages/tables linked together, sometimes the Date header from Page 3 appears on Page 2, so I then have to repeatedly shorten the height of the Page 2 table so that the Page 3 Date header is 'pushed' to Page 3 properly. Anyway to force a certain row to appear on Page 3? I guess I could create a stand-alone table for Page 3, but then if I adjust column width, it won't be automatically changed on Page 2 anymore.
    Thanks!

    Hello, I'm a beginner user of InDesign, using CS5, and am needing some help with tables.
    I'm creating a schedule for an event. I have a 4 page, facing-pages, each page is letter-sized with vertical orientation. I'm inputting the schedule data into a table because that seems to be the easiest way to keep everything aligned and easy to re-organize. My table begins in the lower-half of Page 1, and runs to the bottom of Page 3.
    My questions:
    1) On Page 2 and 3, if I adjust the column width the width is automatically updated on the facing page (e.g. width change on Page 3 auto-updates Page 2). However on Page 1 the width remains the same. Anyway to have it update as well? The text in the tables is linked (e.g. can push text from Page 1 to Page 2)
    2) On each Page I merged the first row of cells to create a 'Date' header (e.g. March 4 2011). As changes are made to the schedule (e.g. events added or removed), and because the text between the 3 pages/tables linked together, sometimes the Date header from Page 3 appears on Page 2, so I then have to repeatedly shorten the height of the Page 2 table so that the Page 3 Date header is 'pushed' to Page 3 properly. Anyway to force a certain row to appear on Page 3? I guess I could create a stand-alone table for Page 3, but then if I adjust column width, it won't be automatically changed on Page 2 anymore.
    Thanks!

  • Printing Borderless and Multiple Pages per Sheet (PDF)

    Anyway to do this? I have a thousand page pdf doc that I need to print out but want to maximize viewing area. Obviously individually cropping pages is out of the question.

    You may be right about Adobe Reader.  However in Adobe Acrobat X Pro you can simply choose Print>[select booklet button] and choose your options there.  You will see a preview.  Because of the ratio between 8.5x11 and 2-up 8.5x11 you will have a "letterbox" white border on the top and bottom of your pages but you will be able to print with no gutter and no margin on the edges.  Your printer must allow for borderless printing and you must have enough ink.  You will have to have a high-end printer that can print borderless if it is a laser printer but most ink-jet/photo printers can print borderless.  However the downside is that you will have to replace your inks quite frequently and you will have to print duplex probably manually.  You will want a paper weight sufficiently heavy enough to accomodate printing on both sides because otherwise the opposite page will bleed through making it difficult to read.

  • Java , html and multiple pages

    Hello,
    I've created a java applet that generates html pages.
    These html pages are bills.
    However when bills are really large, i need to split it up in several pages.
    Since i use different font sizes, the number of lines on a page change. Sometimes it fits nicely, sometimes it's a mess.
    How can i make html output better? Xml?
    Thanks

    Take a look at FOP on xml.apache.org, render XML into PDF.

  • HTMLDB_ITEM.CHECKBOX  p_checked_values Length 4000

    Hi,
    I am using the HTMLDB_ITEM.CHECKBOX and the values that are checked by default is dynamically generated. Once the length of p_checked values crosses 4000, I get the following error.
    ORA-01704: string literal too long
    Please suggest if there is a workaround for the same.
    Thanks,
    Rajesh.

    I am trying to generate a report. This is how the query is returned.
    q := ' select HTMLDB_ITEM.CHECKBOX(1,empid ,NULL,'
    || ''''
    || v_existing_selection
    || ''''
    || ','
    || ''':'''
    || ')'
    || '"Select",'
    || ' col2'
    || ' col3'
    || ' col4
    || 'from table 1,table2'
    The v-existing selection which indictes the boxed to be checked by default is formed dynamically. It has the list of all the Ids that satisfy a particular criterion.
    So, when the number of Ids are more, the v_existing_selection length increses adn at one point, it crosses 4000 and i get the error stated above.
    Please advice.

  • Whats mass printing ?multiple page formating?

    whats mass printing ?multiple page formating?

    hi..
    plz follow the mentioned web link for mass printing ..
    and multiple page formatting is ...
    sapscript does not support multiple page formatting where as smartform does.
    Multiple page formating is nothing havinfg different page formats in  a form.
    eg..
    sapscript zform has 3 pages..
    1 page has portrait
    2 page has landscape format and 3rd page has landascape.
    this is not possible with sapscript..it tends to error. however, you can do so in smartform. Also this is sometime possible in sapscript by creating different form for each page and using the same print program.
    regrds,
    shamim.

  • Checkbox in Tabular Form (Solution to span multiple pages)

    Hi,
    We had a case where a large report needed to have check boxes. These check boxes would populate a list of id's which we then processed for a specific task. By default APEX doesn't support this.
    After spending some time on this, I thought I'd post my solution to help any others who experience the same problems. For this example we will use P10
    1. Create a new "normal" report.
    SELECT e.*, APEX_ITEM.CHECKBOX(1,e.EMPNO,'onClick="updateList(this);"',:P10_LIST, ',') AS Cancel,
    FROM emp e
    2. Create a hidden item called P10_LIST
    3. Add an HTML region to the page whose template is "No Template" (do this so it doesn't show up. Call the region "JavaScript". Set its sequence to 1
    4. Add the following in the JavaScript region:
    <script src="http://SERVER_NAME/String.js" type="text/javascript"></script>
    <script src="http://SERVER_NAME/Ajax.js" type="text/javascript"></script>
    <script type="text/javascript">
    function updateList(pObject){
    vItem = 'P10_LIST';
    myAjax = new Ajax();
    vList = myAjax.getItemValue(vItem);
    //Determine to remove or add from list
    if (pObject.checked) {
    //Add item
    vList = vList.listAppend(pObject.value);
    else{
    //Remove from list
    vList = vList.listRemoveItem(pObject.value);
    }//if
    //Set the session value
    myAjax.setItemValue(vItem,vList);
    //Set the HTML value
    document.getElementById(vItem).value = vList;
    </script>
    This script:
    - Loads the List from the session
    - Modifies the list
    - Stores it in the session
    5. The JavaScript region references 2 files, which you'll need to add to your server. They are as follows:
    Ajax.js
    function Ajax(){
    // TODO: Enter proper names etc.
    this.appProcessNameNull = 'AJAX_null';
    this.appProcessNameReturnItem = 'AJAX_ReturnItem';
    this.tempItem = 'P0_AJAX_TEMP';
    * TODO: Document
    * Sets Item in session
    Ajax.prototype.setItemValue = function(pItem,pValue,pAppProcess){
    if (pAppProcess == null)
    pAppProcess = this.appProcessNameNull;
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=' + pAppProcess,0);
    get.add(pItem,pValue);
    gReturn = get.get();
    * TODO: Document
    * @param pItem Name of item to get
    * @param pTempItem Name of temp item
    * @param pAppProcess Application Process to call which will return item
    * @return session value
    Ajax.prototype.getItemValue = function(pItem,pTempItem,pAppProcess){
    if (pTempItem == null)
    pTempItem = this.tempItem;
    if (pAppProcess == null)
    pAppProcess = this.appProcessNameReturnItem;
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=' + pAppProcess,0);
    get.add(pTempItem,pItem);
    gReturn = get.get();
    return gReturn;
    String.js
    // From http://www.somacon.com/p355.php
    String.prototype.trim = function() {
         return this.replace(/^\s+|\s+$/g,"");
    // From http://www.somacon.com/p355.php
    String.prototype.ltrim = function() {
         return this.replace(/^\s+/,"");
    // From http://www.somacon.com/p355.php
    String.prototype.rtrim = function() {
         return this.replace(/\s+$/,"");
    * Appends value to list
    * @param pValue Value to add to list
    * @param pDelimeter Defaults to comman
    String.prototype.listAppend = function(pValue, pDelimeter){
    if (pDelimeter == null)
    pDelimeter = ',';
    vStr = this;
    if (vStr.length == 0)
    vStr = pValue;
    else
    vStr = vStr + pDelimeter + pValue;
    return vStr;
    * Removes a value from list
    * @param pValue Value to remove from list
    * @param pDelimeter Defaults to comman
    String.prototype.listRemoveItem = function(pValue, pDelimeter){
    if (pDelimeter == null)
    pDelimeter = ',';
    vStr = this;
    vStr = pDelimeter + vStr + pDelimeter;
    // Remove value
    vStr = vStr.replace(pDelimeter + pValue + pDelimeter, pDelimeter);
    //Remove prefix and suffix items
    if (vStr.length > 0 & vStr.charAt(0) == pDelimeter){
    vStr = vStr.substring(1);
    if (vStr.length > 0 & vStr.charAt(vStr.length-1) == pDelimeter){
    vStr = vStr.substring(0,vStr.length - 1);
    return vStr;
    6. On Page 0 Create a hidden Item called: P0_AJAX_TEMP
    (Note: this is can be used for all your AJAX calls)
    7. Create an Application Process called: "AJAX_null". Process Text: null;
    8. Create an Application Process called: "AJAX_ReturnItem". Process Text:
    begin
    htp.prn(v(v('P0_AJAX_TEMP')));
    end;
    If you look at the Ajax.js you'll notice points 6,7, and 8 are all customizable etc... I just put it in so you can test right away.
    Now the user can select items on multiple pages (if pagination applies). Once they hit a submit button you can use P10_LIST to process your values.
    Hope this helps.
    Martin

    Hi Martin,
    I was trying to use your funda in my App. But i dont know why it is not doing anything.
    Also i'm facing a very small but severe problem with one of my report. I am using checkbox. So that user will be able to select all those records he/she wants. but the problem is that when i'm selecting few records with the help of the check boxes, selections are there. When moving to other page and coming back to that page, selections are gone. I think selections should not go like this. Otherwise the user will get confused.
    Can you tell me how can retain the check box selections??
    Thanks
    Sudipta

Maybe you are looking for

  • Can anybody help with some subtleties to this code?

    Hello, I was wondering if anyone could take a look at the code in general for me, which is to go in an 'effects' pedal.  The first while loop is for a footswitch that either reads high or low.  It controls the mode of the pedal.  the first mode is th

  • Creating a Better Search Form

    Hi, I'm trying to figure out how to create a dynamic search form using Coldfusion 8. Right now if I enter multiple words in my search field the results omit certain records. For example, if I put "toy blue" in the search field it will return results

  • Bitmap Index Not Used in PROD and used in DEV

    I am in a situation where in in DEV Bitmap Index is used and in PROD bitmap Index is not used. I checked the count, in PROD I have 10 mil rows and in DEV I have 16 mil rows. Optimizer is CHOOSE and also when I tried to force to use index in PROD, I g

  • "No camera attched" error..using iSight in iMovie HD

    I am using: iMac G5 2GHz OSX 10.4.2 iMovie HD 5.0.2 I have all software updates downloaded. I have all programs closed except iMovie. I only have the iSight (firewire port) and a Mighty Mouse (USB port) plugged in. Keyboard is bluetooth. When I run i

  • New Events in iPhoto Aren't Saving

    I recently got a new camera (Nikon S1800) and I'm able to import the photos to iPhoto and create an event but they then won't come up in my events. They will stay in Last Import until I upload new photos and then they seem to go missing. I've already