How to filter a form with pagination?

Hi all,
I've converted an app to Apex 3.1 (thanks to helpful folks here), but am stuck on the final form. I'd like to streamline the master-detail form, skipping over the tabular report in the detail. Here's (almost) a shell of what I'm trying to do:
[http://apex.oracle.com/pls/otn/f?p=57085|http://apex.oracle.com/pls/otn/f?p=57085]
I'd like the select list in the top region to be able to filter the results in the lower region, showing one row of info at a time in a form. The above example isn't nearly as complex as the real form I'm using, of course, but it should show what I'm trying to do.
I've set up the computation for P1_EMPNO as:
select min(empno)
from "#OWNER#".emp
where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL...with a conditional that P1_EMPNO is NULL. Likewise, the row fetch contains the same WHERE clause as above.
I've been running around in circles trying to debug this, prototyping several forms to test combinations of branches, SQL, and such, but no luck.
Has anyone done this before? I see some semi-close threads here, but they seem to end up as a report.
TIA!
Rich
Edited by: socpres on Dec 1, 2008 1:48 PM -- minor edit: changed SQL to use code tag

Hi Rich,
Sorry - just seen this.
Yes, I have done something similar before (though the filters were handled on a separate page, the principle would be the same).
The important parts are the selection of the first record, the IDs for the Next and Previous records, the conditional display of the Next/Previous buttons and how to set the current EMPNO id.
1 - As you have a form on the page already, the first record can be set using a Before Header page computation that is conditional on the PK field being null and using your code as the source:
select min(empno)
from "#OWNER#".emp
where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL2 - You should then have hidden NEXT and PREVIOUS items on your page. These should be calculated using Before Header computations on EVERY page load (ie not conditional) and using SQL queries:
Previous (say Item name of P1_PREVIOUS_EMPNO):
select NVL(max(empno),0)
from "#OWNER#".EMP
WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
AND EMPNO < :P1_EMPNONext (say Item name of P1_NEXT_EMPNO):
select NVL(min(empno),0)
from "#OWNER#".EMP
WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
AND EMPNO > :P1_EMPNO3 - Your Next button should be conditional on P1_NEXT_EMPNO not being 0 and your Previous button should be conditional on P1_PREVIOUS_EMPNO not being 0
4 - The Next button should trigger a branch that sets the value of P1_EMPNO to P1_NEXT_EMPNO and your Previous button should set P1_EMPNO to P1_PREVIOUS_EMPNO
5 - Your branches triggered by the Filter and Reset buttons should reset P1_EMPNO to null (the computation will calculate this again)
Then, when the page loaded, the first EMPNO that matches the filter is determined and the next/previous EMPNO's are automatically calculated and the buttons shown/hidden as appropriate. Clicking Next or Previous will move through the records and new Next/Previous EMPNO's are calculated each time. When a new filter is applied or the page is reset, the EMPNO is cleared out and recalculated based on the current filter.
Andy

Similar Messages

  • How to format a form with adf

    Hi,
    I want to format an adf form like this :
    http://dl.dropbox.com/u/33421977/adf_form.PNG
    To do this I have used af:panelDashboard and af:panelBox with af:panelFormLayout inside.
    Now I don't want to use panelBox anymore, but I don't know how to achieve this without panelDashboard/panelBox.
    What is th best aproach to do this? Can you send me some links which explain how to format a form with adf?
    Thanks.

    Is just a question of style. In the real application this form is included in another panelBox. So it looks too... I don't know how to say it... too heavy?
    In fact I don't want to see these panelBoxe's borders. Maybe I have just to change the style of these boxes? Do you know if it is possible?
    But more generally, what is the right way to format adf forms? Can I achieve this sort of formatting just using panelFormLayout?

  • How to call a form with dabble clicking on a record with one time where

    Hi All,
    How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
    record with onetime where clause. Can anyone help me in this regard.
    Now i am calling a form with parameter with onetime where but this should avoid.
    Thanks in advance
    Arif

    Hello,
    I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
    All records executes. Please correct my code--
    Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
    :GLOBAL.MODE:='EDIT';
    :GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
    CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
    DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
    DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
    IF :GLOBAL.MODE='EDIT' THEN
    GO_BLOCK('PROBLEM_REQUEST');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
    END IF;Arif

  • How to link a form with MSC2N

    Hi,
    Somebody know how to link a form with MSC2N.
    I want to complete the characteristic in the classification and after I want to print them with MSC2N;
    Thanks a lot for your help.
    Best regards
    Kari

    I explain you my problem.
    I want to link a form with MSC2N in order to print all the characteristic, and  all the informations of the good issue.
    That's why I want to link a form with MSC2N.
    My customer ask me to ceate a form with these informations and I don't kow how to join the characteristics in MSC2N and the datas which come from MIGO.
    Somebody could help me?
    Thanks a lot
    Kari

  • How to design a form with multiple lang(Arabic and Eng) in a page

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to design a form with multiple lang(Arabic and Eng) in a pge

    Hi All,
    Could you pls help me how to design a form with multiple languages. when I set the form proprties-->Form Locale as Arabic. English text is comming in reverse and when set the FormLocale as English, Arabic text is comming in revese.
    Pls help me how to design
    Thanks in advance.
    Regards,
    Jayakar

    I am not sure how you can have two different languages inside the same PDF.
    Alternatively, if you want to place only the static labels, you can convert all the static label in one language to images and set the form language setting to other. And place the images inside the form using Image field. For example, you can keep the form language as English and then convert all the arabic language labels/ Static text to images.
    Anotherway,
         Have same sections in both the languages and hide and unhide based on the user selection of the language..
         if your user chooses Arabic, then you can unhide the Arabic sections and change the form language properties programmatically..
    Thanks
    Srini

  • How to Open multiple form with only one screen painter file

    Hi all ,
    I want to reopen the form without closing the active form ,i want to use same srf file ..
    I have already try it but form already exist error occur .
    pl help me , how to do it ?
    how to open multiple form with same srf file without closing active forms .
    thanks in advance,
    msw

    <?xml version="1.0" encoding="utf-16" ?>
    <Application>
      <forms>
        <action type="add">
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">            
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>          
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
          <form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE1" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
            <datasources>
              <dbdatasources>
                <action type="add">
                </action>
              </dbdatasources>
              <userdatasources>
                <action type="add"/>
              </userdatasources>
            </datasources>
            <Menus>
              <action type="enable">
                <Menu uid="1282"/>
              </action>
              <action type="disable">
                <Menu uid="5890"/>
              </action>
            </Menus>
            <items>
            </items>
            <ChooseFromListCollection>
              <action type="add">
                <ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>
              </action>
            </ChooseFromListCollection>
            <DataBrowser/>
            <Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
          </form>
        </action>
      </forms>
    </Application>

  • I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?

    I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?

    Chrome uses its own (incompatible) PDF viewer.
    Download the PDF to your local disk, then fill it from there with Adobe Reader.  Or use a browser that uses the Adobe PDF plugin.

  • How to populate smart form with new values

    Hi!
    I am new to smart form . Can anybody help me in how to populate smart form with some new fileds. Actually i have to populate credit memo form with some customized values..

    Hello,
    Please elaborate your query more in order to be comprehendable.
    Regards,
    Shehryar

  • How to use Adobe forms with F150 Dunning Run

    Hi,
    I want to use Adobe forms with the transaction F150 Dunning Run.
    How do I get the adobe form in customizing? I have put the FM 'FI_PRINT_DUNNING_NOTICE_PDF' in business transaction Event, BF31 - P/S modules of SAP app - 00001720, Fi-FI. But it is still not recognizing the ADOBE form.
    Any help is greatly appreciated.

    Hi,
    I am also working for calling custom adobe form instead of sapscript.
    While configuring BTE 1720, i noticed that configuring BTE only FI-FI application does not solve the purpose. You need to assign function module FI_PRINT_DUNNING_NOTICE_PDF for all Application Area Indicator.
    Adding to IS-PS will allow to print for customer.
    This solved my problem. But this setting is global so you need to take care of it.

  • How to submit a form with checkboxes in a page flow?

    I'm having some trouble with a form that contains several checkboxes, and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean, can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

    I am new to this, but I think this may solve your problem:
    I am not sure if this is what you are looking for, but you can create a LinkedHashMap
    with the req key/value pairs in the page-calling action in the pageflow and then
    pass that via a getRequest().setAttribute("myCheckboxes",myCheckboxHashMap);
    You can then access it in code using the optionsDataSource portion of the netui:checkBoxGroup
    - ie
    <netui:checkBoxGroup dataSource="{actionForm.thisCheckbox}" optionsDataSource="{request.myCheckboxes}">
    Hope this helps!
    m
    "Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
    I'm having some trouble with a form that contains several checkboxes,
    and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an
    XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give
    me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean,
    can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

  • How to 'flatten' interactive forms with Fixed Pages?

    I have a large project I am working on that is automating the population of forms with strict layouts. (Provided by State governments for licensing requirements). I have the need to generate flattened version, or image of the document as one of the last steps of the process. The final step is to use "Insert Pages" to include into the newly created PDF, other PDFs that were attachments to the original document. These would include employment histories, Residential histories, etc. all are in PDF format.
    The current method is to print the main document to "Adobe PDF", and save the file as a PDF to the file system. This newly saved PDF will accept Inserted pages as it is no longer deemed interactive with Fixed Pages, where the original with Fixed Pages will not accept insertions.
    I have not been able to find a way of doing this via Javascript.
    My goal is to find a way to flatten or image the document, then insert the attachments into the main document to create one compound instrument that records the licensure filing, and can be printed off and sent to the government, and retained for proof of filing.
    Any ideas of how to replicate the print to "Adobe PDF" function and retain a handle to the new document object would be greatly appreciated. The fileName feature on the print method seems to be limited to ".ps", and ".prn" extensions.
    Thank You
    Mark

    I have not been able to Add Pages to a form that has Fixed Pages - either through the UI, or JavaScript. Options are greyed out in the UI.
    Could you expand on what you mean by "You can set the Designer properties to Print Form"?
    Thanks
    Mark

  • How to create a form with the Designer Peopletools

    Help friends of the forum:
    Any page of examples of how to create forms with the tool in PeopleSoft Application Designer

    http://www.oracle.com/technology/documentation/psftent.html
    Down Peopletools 8.xx PeopleBooks and look at the PeopleSoft Application Designer
    It walks you through the whole Process

  • How to print a form with digital signatures

    I created a form that was signed digitally and submitted electronically. When I look in my summary table, the signature shows, but when I create a pdf of the form, the signature does not show. How can I print the forms with the digital signature showing?

    Yu -
    There is no need to post the same question repeatedly - this does not affect how quickly we can respond.
    Merging with:
    How to print a form in a UIX page and
    how to print a form in a UIX page?
    Andy

  • How compatible is Oracle forms with OCX / ActiveX components

    How compatible is Oracle forms 6.0 with OCX / ActiveX components?
    IFve got to very nice activeX controls (ctSchedule and ctMday)
    from DBI-TECH(www.dbi-tech.com) but they donFt work properly
    within Forms. They work great within VBA (word).
    Sometimes they donFt display things well or donFt react to the
    mouse in the properly manner.
    What can be wrong os is Oracle forms not 100% activeX compatible.
    Thanks
    Guido Reulen
    [email protected]
    null

    Hi b w,
    I do not know much about Simply Accounting, however, if the Crystal Reports can be integrated with this software, then their tech support would be the best one to answer the issue with limited access to reports.
    Secondly, if you can get an ODBC driver for your Simply Accounting, you might be able to create reports in Crystal reports (Again with no guarantee as Simply Accounting does not fall in the supported platforms for Crystal Reports).
    I would suggest you to contact the tech support of Simply Accounting to know if there is any specific version of Crystal reports that works best with your software.
    It is simple to create highly professional reports with Crystal reports and you can either refer to the help included with the software or can log on to SAP support site and download the Crystal Reports user's guide to get step by step instructions on creating reports.
    Please do let us know if you have any further questions.
    Regards,
    Abhishek Jain.

Maybe you are looking for

  • Can I return a Macbook air and get another one just after a day I bought it?

    I just purchased a Macbook air 11" for someone today and aparentley he wanted a 13' so I made a mistake!!!! But I have opened the box and used the mac for an hour before I was told that they really wanted a 13". so can i return the notebook and buy a

  • MDM qualified range - concern

    Hello Experts, I am using qualified range to generate customer number based on the account group. But its not allowing me to syndicate the alphanumeric values since it expects numbers only. If I enter the remote system & key mapping details in the re

  • Multiple SP calls in an AppModuleImpl class

    Hello, I have a question about the ApplicationModuleImpl class. The application we are building will include many Database Stored Procedure calls and View Object invocations. My understanding of the ADF framework and best practices is that these call

  • Changing external HD for TimeMachine

    Hello everybody, It's been a loooong time since I've post in Apple discussion forum (in fact, since I was on MacOS 9.1!!!) Ok, here's the details : iMac 2008 MacOS 10.6.8 (french) and a brand new 2To external HD (LaCie). I already use a 500Go MiniSta

  • Passing Data from ComboBox to ListBox.

    Hi everyone, I'm new with the whole flex 2 environment and i'm need some help getting data passed from a ComboBox to ListBox. I don't know whether i'm going about this the right way. Senario, the person using this application will be able to select a