Problem in pagination

hi,
I am working on the pagination concept using JSP and SQL.
I written stored procedure for pagination..its nicely working and i am using callable statement to call the procedure in my jsp code....if i am passing values within the parameter ..i am getting the answer....but i have to get the value at runtime...
In my jsp code.i am calling the procedure like this:
java.sql.CallableStatement proc =
cn.prepareCall("{call newPage2('%telic%',2,10,24)}");
its working fine...But i have to get the string from html..I have get the values at runtime rather than passing the values directly...
Details about the above parameters which i have used in my code :
The string that be searched - "telic"
2 = Refers to the current page
10 = page size(no of items per page)
24 = total number of records;
for Example if i am searching for the word "telic".I have the fields in the database such as names,address.
The word "telic" has to be searched in the above fields.
My doubts are:
1) How do i pass the text from the HTML to the stored procedure.
2) I am not sure about passing the values to a stored procedure at runtime.
     java.sql.CallableStatement proc =
cn.prepareCall("{call newPage2(?,?,?,?)}");
     How should i pass the values at runtime instead of "?" mark.
3)Suppose if i am using the getParameter method to get the string value..How can i pass the string variable instead of question mark(?).
can anyone help me...
Thanks in advance.

Read the documentation for CallableStatement. There are methods for setting parameters.
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/CallableStatement.html

Similar Messages

  • Sorting: ORDER BY DECODE Problem on Pagination Query

    Hi,
    I've been searching around the easiest way to perform a dynamic "ORDER BY" clause and the "DECODE()" clause solution seem to be exactly what I am looking for. Unfortunately, It seems the DECODE function is not returning a correct column name value (I think it is returning NULL) since I'm receive the result set as if there was no ORDER BY clause.
    I need some help to get through this!
    Here the version with DECODE (not working)
    It is a Procedure with frstRow, nbRows and var_order as parameters
    The output returns the rows as if no ORDER BY was used
    SELECT c1, c2
    FROM
    SELECT ROWNUM rn, arv.*
    FROM A_AWA_AR arv
    WHERE ROWNUM < (frstRow + nbRows - 1) -- show only some rows determined by procedure
    ORDER BY DECODE(var_order, 1, c1, 2, c2, c1) -- sort by var_order
    WHERE rn BETWEEN frstRow AND (frstRow + nbRows)
    AND ROWNUM <= nbRows
    Here the version without DECODE (working)
    The output returns the rows as expected - ordered by c2 column
    SELECT c1, c2
    FROM
    SELECT ROWNUM rn, arv.*
    FROM A_AWA_AR arv
    WHERE ROWNUM < (frstRow + nbRows - 1) -- show only some rows determined by procedure
    ORDER BY c2 -- sort by var_order
    WHERE rn BETWEEN frstRow AND (frstRow + nbRows)
    AND ROWNUM <= nbRows
    -----

    Here are some results I've been getting... I will try the best I can to explain my problem.
    And by the way the table A_AWA_AR is a VIEW maybe this can help.
    My problem -- I think -- is that I don't understand how DECODE works. I should be a conditional IF-ELSE-THEN-like function but its behavior is not returning what I'm expecting.
    I need a solution where I will be able to sort the first lets say 10 rows using ROWNUM to tag row position (in sub-query) then the main query should only show the rows from 3rd postion to 7th position in the main query (as an example) with RN BETWEEN 3 AND 7. My solution does not work when I use decode but works when i pass the column name directly.
    Here is a simple query returning the values in the order they are found in the view:
    SELECT ROWNUM rn, ROW_ID, SR_NUM
    FROM A_AWA_AR
    WHERE ROWNUM < 10 Results:
    RN                                     ROW_ID          SR_NUM                                                         
    1                                      1-100876        1-60476802                                                     
    2                                      1-10087G        1-60476812                                                     
    3                                      1-10087Q        1-60476822                                                     
    4                                      1-10088A        1-60476842                                                     
    5                                      1-10088K        1-60476852                                                     
    6                                      1-10088U        1-60476862                                                     
    7                                      1-100894        1-60476872                                                     
    8                                      1-10089E        1-60476882                                                     
    9                                      1-10089O        1-60476892                                                      Now this is the query & result I would like to obtain (this is done pretty fast since it returns as soon as it reaches 9 sorted rows):
    SELECT ROWNUM rn, ROW_ID, SR_NUM
    FROM A_AWA_AR
    WHERE ROWNUM < 10
    ORDER BY SR_NUMResults:
    RN                                     ROW_ID          SR_NUM                                                         
    1                                      1-1RV9J7        1-107274499                                                    
    2                                      1-1RVXIF        1-107305575                                                    
    3                                      1-1SHY65        1-108332861                                                    
    4                                      1-22FOSR        1-125023563                                                    
    5                                      1-236F3X        1-126270717                                                    
    6                                      1-28P5EB        1-135542675                                                    
    7                                      1-29P2VY        1-137219038                                                    
    8                                      1-29ZNFH        1-137712221                                                    
    9                                      1-2BLWQR        1-140430339                                                     But with decode even a simple pseudo decode:
    SELECT ROWNUM rn, ROW_ID, SR_NUM
    FROM A_AWA_AR
    WHERE ROWNUM < 10
    ORDER BY DECODE(1,1,SR_NUM)Results:
    RN                                     ROW_ID          SR_NUM                                                         
    1                                      1-100876        1-60476802                                                     
    2                                      1-10087G        1-60476812                                                     
    3                                      1-10087Q        1-60476822                                                     
    4                                      1-10088A        1-60476842                                                     
    5                                      1-10088K        1-60476852                                                     
    6                                      1-10088U        1-60476862                                                     
    7                                      1-100894        1-60476872                                                     
    8                                      1-10089E        1-60476882                                                     
    9                                      1-10089O        1-60476892                                                      Here is the structure I'm trying to get and works when passing a column name:
    SELECT *
    FROM
        SELECT ROWNUM rn, ROW_ID, SR_NUM
        FROM A_AWA_AR
        WHERE ROWNUM < 10
        ORDER BY SR_NUM
    WHERE rn BETWEEN 3 AND 7Results:
    RN                                     ROW_ID          SR_NUM                                                         
    3                                      1-1SHY65        1-108332861                                                    
    4                                      1-22FOSR        1-125023563                                                    
    5                                      1-236F3X        1-126270717                                                    
    6                                      1-28P5EB        1-135542675                                                    
    7                                      1-29P2VY        1-137219038                                                     Now with decode (not working):
    SELECT *
    FROM
        SELECT ROWNUM rn, ROW_ID, SR_NUM
        FROM A_AWA_AR
        WHERE ROWNUM < 10
        ORDER BY DECODE(1,1,SR_NUM)
    WHERE rn BETWEEN 3 AND 7Results:
    RN                                     ROW_ID          SR_NUM                                                         
    3                                      1-10087Q        1-60476822                                                     
    4                                      1-10088A        1-60476842                                                     
    5                                      1-10088K        1-60476852                                                     
    6                                      1-10088U        1-60476862                                                     
    7                                      1-100894        1-60476872                                                      Thanks for the support!

  • Problem during pagination

    i have 3 items. there are 2 items on one page. each item is a custom item renderer with description and a button.
    when i load the application first 2 items get loaded correctly. even wen i click the button it works.
    but when i click "next" button, the 3rd items can be seen but cannot be selected. clicking on its button has no effect.
    what could be the problem ?

    i am using DataGrid. in which only one column is visible and my customItemRenderer is imported using <local:>
    one more thing.
    this new page contains 1 item. when i click next, the page gets reloaded and then "details" button is getting clicked. i am using a custom eventHandler
    private function detail_OnClick(ev:DetailEvent):void{
    if( arrPageData.length == 1 ){
    itemGrid.selectedIndex = 0;
    elseitemGrid.selectedItem = ListOfItems.item.(ItemID == ev.ItemObject.ItemID )[0];
    //ev.ItemObject; 
    gridCanvas.visible =
    false;viewStack.selectedChild = tabCanvas;
    tabOfferHistory.enabled =
    false;panelBidIt.visible =
    true;panelBidIt.enabled =
    true;tabNav.selectedIndex=0;
    resetOfferHistory();
    private function btnPrev_OnClick():void{
    if (pageNumber<=0){
    Alert.show(
    "This is the first page!");}
    else{
    pageNumber-=1;
    setGridData();
    private function btnNext_OnClick():void{
    var iLen:int=arrCompleteData.length; 
    if (((pageNumber+1)*ITEMS_PER_PAGE)>=iLen){
    Alert.show(
    "This is the last page!");}
    else{
    pageNumber+=1;
    setGridData();

  • Report problem (Paginations show record count, report blank)

    I am using a custom report template to show data in detail form and allowing users to use the pagination to move from record to record. I have the maximum rows returned as 1.
    The problem is in a very specific set of circumstances if the query returns only two results the report shows nothing. The pagination show two records (using search engine pagination style) but nothing (with the exception of the top and bottom pagination bars) is displayed until the user clicks on one of the linked numbers.
    Has anyone had similar problems, does anyone have any idea how to correct this problem?
    Thanks in advance.
    Gary

    Check any branches to this page to see that they have "reset pagination for this page" checked. I had a problem with pagination where the user could specify query criteria and the branch back to the page was not resetting the pagination.
    Just a thought,
    Mike

  • Pagination after executequery with a dynamic where clause

    Hi all,
    I have a problem with pagination after setting a where clause dynamically and performing an executequery in ViewObjectImpl.java.
    As a result of this, the amount of records are decreased returned by the viewobject, however the pagination is not changed. It still reflects the previous amount. It changes only if you have selected the last range of the changed recordset
    Does anybody know how to get the pagination to refect the correct amount of the updated recordset of the viewobject?
    Jdeveloper version 10.1.3.4 / Jheadstart 10.1.3.3.81
    Thanks in advance, Erwin

    Hi,
    I would not add this to the VO query. Instead I would create a View Criteria that uses a bind variable. Then in the Application Module Data Model, you select the VO instance and choose edit (button on top) to permanently associate the view criteria)
    Advantages of this approach
    - The VO definition can be used elsewhere without the restriction
    - the bind variable is not mandatory and yu can set it such that if no value is provided a full query is executed
    Frank

  • Pagination - hibernate with JSF table using ObjectListDataProvider

    Hello All,
    How we can use the JSF table component & pagination option avilable in JSC for records pagination using ObjectListDataProvider? Let say I have 100 recorsd and I want to do pagination of them of Page Size = 5 (total pages 20), then how to proceed?
    We have the hibernate working with JSC, and now I am looking for this advanced implementation using JSC & Hibernate.
    Surya
    --Thoughts can bring change                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I have a problem with pagination and hibernate and I want to take a ride on your question: when the page is loaded I load all data from database. Then I have a filter I made that retrieves some of the data and reloads the table, and that works fine. But when I hit the next page button, the table goes to second page, but without the filter, i.e, with all data again.
    I think it has someting to do with the place where I do the initial load, with full data. I've put this code in _init:
        private void _init() throws Exception {
            try {
                Integer empresaId = new Integer(this.getSessionBean1().getCodEmpresaLog());
                    getSessionBean1().getTituloReceberDataProvider().atualizaListaTitulos(empresaId);
            } catch(Exception ex) {  
                log("Erro para pegar empresas : ", ex);
                error("Erro para pegar empresas : " + ex.getMessage());
        }And to filter, I use this method, called by a button:
    getSessionBean1().getTituloReceberDataProvider().filtraListaTitulos(empresaId, sCodCliente, sSituacao, dataDe, dataA);This method repopulates the dataset and it works, but when I change pages it loads full data again. Someone has some light to shed on this?
    Thanks in advance!

  • Bookfile re-pagination issues

    I work in publishing and we deal with bookfiles (indesign CS4) which include chapters that are non-sequential in pagination ie. colour section chapters which slot in the middle of standard text chapters.  We need to include these non sequential chapters in our bookfiles for indexing. Our problem is that despite switching off ALL automatic page numbering options ie. in the "book page numbering" options pallete from within the bookfile and within the "number & section options" pallete in each seperate chapter (where the desired page number is entered twice - under "start page numbering" and "start chapter numbering"), we still have frequent instances where chapters are automatically repaginating and continuing on from the previous chapter (and flipping from rhs to lhs and vice versa).  This issue also extends to exporting our bookfiles as a pdfs - where similar problems with pagination occur.  Looking at other forums this pdf problem at least, seems to be a common issue but the fix of saving files as IDML is not an option for us as we use a third party plugin and saving to IDML effectively strips this out. 
    Does anyone have any suggestions on how to manage these pagination issues?

    here is an example of one of our bookfiles.  Chapter 31-col-architiecture (pages 284-287) is a colour section that slots into chapter 32-architecture-rom7 (pages 280-294).  When this colour section is first added to the bookfile it automatically repaginates the first page to page 295, picking up from the previous chapter rather than maintaining the specified pagination (as seen, corrected, below) and throws the entire bookfile out. By doing so, it also flips the the document to start on the opposite page which has on occasion caused havoc with masterpages. Note it is not possible to physically insert the colour section into the chapter to produce a single chapter due to paragraph styles having the same names yet differing attributes (due to it being a colour section yet the content structured in the same way as the rest of the book).
    our settings are as follows:
    in the bookfile....
    in each chapter.....
    i suspect its the bookfile numbering options that arent able to be over-ridden which is the issue? 
    Note that we need these files in the bookfile for both indexing purposes and cross referencing purposes, and the third party pluggin we use is Typefi which is unlikely to be the issue...

  • Em windows a atualizar um página web enquanto trabalho esta é atualizada de imediato fazendo F5 e em mac isso acontece vários segundos depois.

    Trabalho como programador web tanto em windows como em mac, sendo este segundo sistema ainda muito recente para mim.
    O que sucede, trabalhando em windows com dreamweaver após salvar um ficheiro com alterações no HTML ou CSS fazendo F5 este atualiza de imediato com as alterações realizadas. No mac em vários browsers testados mesmo em ambas teclas de atalho (cmd + R ou cmd + shift + R) este não atualiza de imediato, tenho sempre de esperar vários segundos ou até mesmo mais de 1 min.
    Existe alguma alteração nas preferências que possa realizar para resolver esta situação?

    Também sou usuário de Mac e não tenho enfrentado esse problema, a pagina é atualizada instantaneamente. Como o problema acontece com outros navegadores também, verifique as suas configurações de conexão, possivelmente o problema está aí.
    command + R = atualizar a página (instantaneamente)
    command + shift + R = atualiza a página sem usar o cache (demora alguns segundo, mas é muito rápido também)

  • I can no longer create a PDF with Save As in Excel 2007

    I can no longer complete a full page of my graphs with the "Save As" function in Excell 2007 and have tried various methods to correct my problem from pagination to finally completely recreating the graphs as the original file was created in Excel 2003.  What happens is it cuts off the right hand margin of my pages and scews all the graphs so they do no appear as they do in the print preview of Excel.  Does anyone have any solutions?  Thank you.

    Change the printer to the Adobe PDF printer before you start looking at the print margins and such. (I am assuming you are using the Acorbat process with Excel 2007 and not the MS plug in.) Once you have the printer selected, then look at the preview and such. Excel and WORD both reflow documents based on the printer that is attached. It may be that simple.

  • Book numbering properties window – Section and Sub-section grayed out

    In FM 12, I have a book composed of one front-matter file and 9 chapter files. The chapters (1-9) auto-numbered without any problems and pagination is correct. I want to add section and subsection numbers. Within each file I added autonumber format tags to the headers used specifically for section and subsection titles on the first chapter page and autonumber format tags within the body of the chapters. The autonumber tags are –
    <$chapnum>.<$sectionnum>\t
    <$chapnum>.<$sectionnum>.<$subsectionnum>\t
    for paragraph tags Heading 2 and Heading 3, respectfully.
    When I select numbering in the book file window and click on either the Section and Sub-section tab, the windows are grayed out. I know I'm missing something obvious. I've gone through help files, manuals and tutorials for hours and can't find what I need. Any advice about where I can look to sort this out?
    Thank you.

    Almost, but not quite. FM books (now) have the ability to specify internal Folders and Groups. You can then assign (i.e. move) the relevant FM files into these structures to create more of a hierarchical structure in the book - see: Adobe FrameMaker 12 * About books and also see: Numbering in Hierarchical Books « TechComm Central by Adobe
    Once the file is assigned to a folder or sub-folder, then the section and subsection numbering properties become available for that file.

  • Apex report only show 2000 rows

    Hi Experts,
    I am going to show about 4800 rows in a report and want to show them within a page. In Layout an Pagination, I set 6000 to both 'number of rows' and 'maximum row count' and set 'pagination scheme' to 'not pagination selected'. However, it still only show 2000 row in the page. Is there anything I missed?
    Thanks,
    Daniel

    Daniel Wu wrote:
    In Layout an Pagination, I set 6000 to both 'number of rows' and 'maximum row count' and set 'pagination scheme' to 'not pagination selected'. However, it still only show 2000 row in the page. Is there anything I missed?If 2000 was the previous setting then this is likely to be the common problem of pagination settings being cached for a session. Either log out, restart the brower, and log in again, or manually re-request the page from the browser address bar, adding 'RP' in the ClearCache position in the URL.
    I am going to show about 4800 rows in a report and want to show them within a page. Are you really sure about this? That's a lot of data to throw at someone in one go, and will have adverse effects on performance, usability and accessibility.

  • Paging in Database

    hello all,
    Actually we have a database Oracle10G with RAC having 2 instances. but in one instance always showing a error that is :
    'Significant virtual memory paging was detected on the host operating system.'
    bcoz of this error the speed of databse gets slow.
    Plz help me to solve this prob.

    Let's have this problem straighten down. EM DB Control shows problem with pagination and swap (virutal memory access), it immediately is translated to performance degradation.
    Going back to the basics:
    SGA + OS Required memory + Dynamic Process Memory + OS Margin <= Physical RAM
    If this inequation is not met, result immediatly will be use of VMem. VMem is just a mean for the OS not to panic in case it runs out of physical memory to run processes.
    You must perform one out of two tasks (preferabily both):
    Tune your SGA Memory Structures (Shared Pool, Java Pool, Large Pool, DBBuffCache), by reducing as much as possible their values, so you can make it fit according to the above inequation.
    Increase physical RAM. No way Jose. If the above goal was not met, your Instance is consuming too much memory (compared with the physical installed memory).
    Additioanally, are ther any other processes besides Oracle Processes, running concurrently? Do you have only one Oracle Instance, or do you have additional Instances?
    Try to drop as much ballast as possible.

  • Certos sites necessitam se autocarregar para receber informações como fazer o mozila aceitar isso?

    o site yugiohgameonline necessita se autocarregar para atualizar informações rapidamente.

    Qual o problema, a pagina não esta carregando?
    Verifique se seus plugins estão atualizados e ativados:
    *[http://www.mozilla.org/pt-BR/plugincheck/ Verificar plugins]
    *[https://support.mozilla.org/pt-BR/kb/solucionar-problemas-com-plugins-como-flash-ou-jav Verificar problemas com plugins]
    Apague o cache e os cookies, as vezes pode resolver o problema:
    *[https://support.mozilla.org/pt-BR/kb/como-limpar-o-cache-do-firefox Apagar cache do Firefox]
    *[https://support.mozilla.org/pt-BR/kb/apagando-cookies-para-remover-informacoes-armazena Apagar cookies do Firefox]
    As vezes pode ser um problema causado pela aceleração de hardware, tente desativa-la:
    Alguns problemas com a reprodução de vídeos em Flash podem ser resolvidos ao desativar a aceleração de hardware nas configurações do seu Flash Player. (Consulte [[Usando o plugin Flash com Firefox|este artigo]] para mais informações sobre uso do plugin Flash no Firefox).
    Para desativar a aceleração de hardware no Flash Player:
    #Acesse a página [http://helpx.adobe.com/br/flash-player.html Ajuda do Flash Player].
    #Clique com o lado direito do mouse na animação do Flash Player perto da parte inferior da página.
    #Clique em configurações no menu. A página de configurações do Adobe Flash Player será aberta.
    #Clique no ícone perto da parte inferior esquerda da página para acessar o painel de Exibição. <br/> <br/>[[Image:fpSettings1.PNG]] <br/>
    # Desmarque a caixa '''Habilitar aceleração de hardware'''.
    # Feche a janela de configurações do Adobe Flash Player.
    # Reinicie o Firefox.
    A página [http://www.macromedia.com/support/documentation/br/flashplayer/help/help01.html Ajuda do Flash Player - Configurações de exibição] possui mais informações sobre a aceleração de hardware do Flash Player, caso você tenha interesse.
    Seu problema foi resolvido? Conte-nos.

  • Problem of POP LOV  in a  SQL Report  with pagination

    I am using a pop up lov (along with some other fields), HTMLDB_ITEM.POPUP_FROM_LOV(5, null, 'EMPLOYEE_LIST', '20', '50')), in a sql report. This is a report with pagination. Whenever I select any value from pop up lov on first page of the report it gets populated properly in the corresponding text field. But from second page onwards it doesn’t populate any value.
    For example, my report fetches a total of 50 rows, of which I am displaying 15 at a time. The popup lov comes with a text field for each row. Whenever I do select from popup lov for 1-15 rows which come on page 1, the values come up in the text field properly, but for rows 16-30 on second page, 31-45 on third 46-50 on fourth the values do not get populated. When I changed the pagination settings to display 40 rows..the values were still coming properly on page 1(1-40 rows) and not on the next page. Any clues… how to resolve this problem?

    good find. this is a bug that has already been identified and will be corrected in the upcoming patch release for htmldb. a good work-around for now is to use the equivalent declarative options in the tool. so rather than coding your query like...
    select ename , HTMLDB_ITEM.POPUP_FROM_LOV(2, null, 'DEPARTMENT', '20', '50') as "department" from emp
    ...just code it like this...
    select ename , null as "department" from emp
    ...and then use the column attributes screen for your "department" column to indicate that you'd like that col to be rendered as a "Popup LOV (named LOV)" using your DEPARTMENT list of values.
    hope this helps,
    raj

  • Problem in tabular form based on dynamic view and pagination

    Hi All,
    I have a manual tabular form based on a dynamic view. The view fetches the records based on search criteria given by the user in all cases. But this view fetches ALL records when user clicks on pagination, without considering the search criteria. This is the problem I am facing.
    I am doing the following:
    Since tabular form does not support pl/sql function returning query, I cannot use a table directly. I need my results based on search criteria selected by user. Hence I created a dynamic view and used a "INSTEAD OF UPDATE" trigger to update the table.
    I use a set bind variables procedure, on load before header for setting the variables.
    This view fetches the correct data based on user search always. It creates a problem only in one situation, when using pagination in the report.
    The example can be found at:
    http://apex.oracle.com/pls/otn/f?p=19399:1:
    username = [email protected]
    pwd = kishore
    Here if "manager name" is entered as test, we get 5 records in "Summary of requests" report and 5 records in "Inactive Requests" report. When user clicks on Pagination in any of the reports, ALL the 7 records get fetched in "Summary of Requests" and 6 records in "Inactive Requests". How can I overcome this problem?? The report must consider the search variables even when pagination occurs.
    Is this because, the inbuilt "html_PPR_Report_Page" executes the region query once again by considering all search variables as NULL?
    Backend Code is at:
    http://apex.oracle.com/pls/otn/
    workspace: sekhar.nooney
    Username :[email protected]
    pwd: kishore
    application id = 19399
    My region code is something like:
    select *
    from regadm_request_v
    where access_type = :F110_REGADM
    and status <> 'INACTIVE'
    order by request_id
    My view code is:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGREGOWNER.REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_NAME),'%')||'%'
    AND upper(manager_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_NAME),'%')||'%'
    AND upper(employee_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_SUNET_ID),'%')||'%'
    AND upper(manager_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_SUNET_ID),'%')||'%'
    AND upper(request_date) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_REQUEST_DATE),'%')||'%'
    AND upper(USAGE_AGREEMENT_RECVD) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD,'~!@',NULL,REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD)),'%')||'%'
    AND upper(STATUS) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_STATUS,'~!@',NULL,REGADM_REQUEST_PKG.GET_STATUS)),'%')||'%'
    AND upper(REQUEST_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_REQUEST_APPROVED,'~!@',NULL,REGADM_REQUEST_PKG.GET_REQUEST_APPROVED)),'%')||'%'
    AND upper(nvl(APPROVAL_DATE,sysdate)) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_APPROVED_DATE),'%')||'%'
    AND upper(APRVL_REQUEST_SENT) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS,'~!@',NULL,REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS)),'%')||'%'
    AND upper(NOTIFY_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION,'~!@',NULL,REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION)),'%')||'%'
    I would be glad for any suggestions.
    Andy/Varad any ideas? You both helped me a lot on my problems for the same application that I had faced before in More Problems in Tabular form - Please give me suggestions.
    Thanks,
    Sumana

    Hi Andy,
    The view and the package for setting bind variables work properly in my entire application other than the pagination. A pity that I came across this only now :(
    I have used this same method for holding variables in another application before, where I needed to print to PDF. I used this approach in the other application because my queries were not within the APEX character limit specified for the "SQL Query of Report Query shared component".
    In this application, I initially had to fetch values from 2 tables and update the 2 tables. Updateable form works only with one table right? Hence I had created a view. Later the design got changed to include search and instead of changing the application design I just changed the view then. Still later, my clients merged the 2 tables. Once again I had just changed my view.
    Now, I wanted to know if any method was available for the pagination issue (using the view itself). Hence I posted this.
    But as you suggested, I think it is better to change the page design quickly (as it would be much easier).
    If I change the region query to use the table and the APEX bind parameters in the where clause as:
    SELECT *
    FROM REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    I also changed the ApplyMRU to refer to the table.
    Here the pagination issue is resolved. But here the "last Update By" and "Last Update Date" columns do not get updated with "SYSDATE" and "v(APP_USER)" values, when update takes place. Even if I make the columns as readonly text field, I am not sure how I can ensure that SYSDATE and v('APP_uSER') can be passed to the columns. Any way I can ensure this? Please have a look at the issue here: http://apex.oracle.com/pls/otn/f?p=19399:1:
    I have currently resolved the "last update" column issue by modifying my view as:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGADM_REQUEST
    I modified my region query to use APEX bind parameters itself as:
    SELECT *
    FROM REGADM_REQUEST_V
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    And I use the "INSTEAD OF UPDATE" trigger that I had initially written for update. The code is:
    CREATE OR REPLACE TRIGGER REGADM_REQUEST_UPD_TRG
    INSTEAD OF UPDATE
    ON REGADM_REQUEST_V
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    UPDATE REGREGOWNER.REGADM_REQUEST
    SET MANAGER_EMAIL = :NEW.MANAGER_EMAIL
    , EMPLOYEE_EMAIL = :NEW.EMPLOYEE_EMAIL
    , STATUS_UPDATE_DATETIME = SYSDATE
    , USER_UPDATE_ID = (SELECT v('APP_USER') FROM DUAL)
    WHERE REQUEST_ID = :OLD.REQUEST_ID;
    END;
    Please let me know how I can resolve the "last update" column issue using the table itself. (Just for my learning)
    Thanks,
    Sumana

Maybe you are looking for

  • Sound in Macbook pro is not working correctly! PLEASE HELP!

    A few days ago, the sound in the build in speakers in my macbook pro (Mac OS X 10.6.8) started not working correctly, i did not hit it or anything, just closed it down when i woke up the next day, the sound was not working correctly. i know it is har

  • Number Ranges in Txn. CRMD_ORDER

    Dear All, While creating an order in Txn. CRMD_ORDER, we need to define our custom logic for number ranges. Please suggest on the same. Regards, Ramki.

  • Camera on Standby - Memory Full - Problem Solved o...

    It's not THE PHONE MEMORY OR EVEN THE MEMORY CARD CAPACITY IT'S ALL ABOUT THE IMAGE DESTINATION FOLDER HAVING TOO MANY FILES OR TOO MANY MBs! Thanks to some guy mentioning that this might be rooted in Nokia's formatting of the MicroSD card I was lead

  • Different Disk settings in a RAID setup??

    Hi guys, a quick question, if i setup a striped RAID, using two 1TB Drives, can i : Partition the drive into 2 partitions(this i think i very possible) Can i make the partition i want to use as my system disk be journaled, and the other partition nor

  • 5th Generation iPod Design Flaw?

    My 5th generation 60 gig. iPod crashes often, locks up, doing various weird things. Sometimes its little hard drive also whirring and tapping. Restoring may or may not work. Software up to date. Sometimes a gentle tap on desktop will get it working a