Avoiding Blind query from executing while clicking sort button on table.

Hi All,
I am using jdev11.1.1.6
I made a simple ADF search page with few mandatory search criteria's.
The result table can be sortable and filterable by the user.
The page is working fine as expected with the search criterai's, but i found a problem in the page.
Once my page got loaded, before entering any search criteria, if i scroll down to the result table and clicked on the "sort" button on any column, my base page query is getting executed
without any search criteria i.e a blind query is getting executed. i need to restrict this. This is not expected.
Is there any inbuilt properties for restricting this or this has to be done manaully.
please help me with this issue.
Regards
Siva
Edited by: Minion on Oct 18, 2012 11:13 AM

Hi Pandu,
Thanks for the response,
I am having more than 80 columns in the table, this means, i need to set the sort property for each and every column separately?
Do we have any table level property to restrict it.
First of all is this an intended behavior of ADF ?
I have implemented few security to access my page, such that only few user can able view all data by restricting few search criteria's result.
But due to the above mentioned problem my works on implementing security is not working. regardless of the type of user if i just click the sort button its giving all the data for all users.
Please guide me a best method for restricting this
Regards
Siva

Similar Messages

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • Need to send mail to user while clicking update button

    Hi
    I am new to APEX.
    I have a requirement. When clicking an update button the a mail should automatically send to user mentioned in the form. How can i achieve this. Please help.
    Regards
    Hisham.A

    Hi,
    Do not create duplicate post about same problem
    Re: need to send a automatic mail to an id while clicking a button
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • URGENT can anyone let me know how to include sort buttons in table maintian

    hi
    can anyone let me know how to include sort buttons in table maintianence
    as generally table maintianec done have sort buttons i need to include the sort buttons kindly let me know on that asap
    or can we use module pool in between table maintianece screen
    if yes how touse and how to cod for that
    regards
    Arora

    You can change the coding of Table Maintenance.
    >> Goto SM30, give table name and goto Display/Maintain mode and copy all the GUI status from standard program into your function group. Add sort button in the GUI Status of Maintain & Display mode.
    >> Goto to tablemaintenance screen generated using SE51.
    >> Select change mode.
    >> After PROCESS BEFORE OUTPUT, create one module to assign your function group program name to " X_HEADER-GUI_PROG = "
    >> In PROCESS AFTER INPUT, add another module at the end to perform the action.
    -Alpesh.Saparia

  • Screen get changed while clicking on button in enhancement CEWB_TSK_SCREENS

    Hello Everybody
    I am implementing one BAdI CEWB_TSK_SCREENS for customizing in CEWB transactions and I have developed one screen for that.
    I have one table control on the same screen and I am providing some buttons like 'DELETE' 'CREATE' or 'DISPLAY' to perform some activity on table control.
    But whenever I clicked on button the screen get changed and it sets to some other screen.
    Can anybody help me out on the same?
    regards,
    Bhavin

    hai,
      i am also new to this,i am trying on that only ,it is not allowing me change the screen is there is a need for access key for that, reply me .iam waiting for ur reply.
    shan

  • Paramerterized Interactive Reports - is there a quick solution to stop the query from executing when entering the page prior to user clicking go.

    Example
    Currently, when the user enters the page the interactive report runs (without the user hitting "go")and - indicates no data found because one of the "parameterized" fields is required and the sql is not setup for nulls.
    I'm Looking for a way to not perform a query  at all -------until the user hits go for the first time on the page - then each time they re-enter the page in the same session it would be ok to auto submit the query.
    I believe I can setup a hidden item and check on my interactive report E1 not null.  Then create a "computation" on "after submission" that would set this value to a value - say 1.
    I can seem to be able to get this to work however.
    In my interactive report - I'm wondering what "condition type" should I be using.  Any thoughts would be greatly appreciated.

    In this case I just have 2 parameters.  The goal is to allow the user to "pre filter" BEFORE rendering the interactive due to the possible size of the report.  This pre fliter could be by say- order type or region or branch etc.
    Right now, I believe its all one region - see below.
    My first attempt, I put a branch on the after submit on the go button and then put a condition on the interactive report.  This worked but caused a looping issue when trying to select a column on the interactive report itself.  My guess is , because that drop down was also using that same go button.
    Anyway, please advise how to best  "pre filter" prior to rendering an interactive report.  Should I have two seperate regions or can I use one region.  Any assistance would be greatly appreciated. 
    Order Parameters 2 
    Before Header 
    Branches
    Computations
    Processes
    After Header 
    Computations
    Processes
    Regions
    Before Regions 
    Computations
    Processes
    Regions 
    Body (3) 
    Search 
    Items 
    P6_TEXT
    P6_ITEM_NUMBER
    Region Buttons  P6_GO
    Order Type &P6_TEXT 
    Report Columns 
    Order Type
    Operating Unit
    Order Number
    Line Number
    Item Number
    Invoice Week
    Items 
    P6_NAME
    P6_ITEM_NUMBER_ALT
    Position 01  Breadcrumbs
    After Regions 
    Computations
    Processes

  • Avoid focus request from JScrollPanel while tabbing

    hi, i have a JTable into a JscrollPane and some compos outside.how can i jump from table to compos without double tabbing. setFocusCycleRoot(false) didn't work.
    Whats wrong?

    Couldn't say for sure, but if you wish to avoid something from gaining the focus in the tab order you use:
    java.awt.Component c.setFocusable(false);
    It should work on a JScrollPane as jScrollPane is decended from java.awt.Component.
    James.

  • Disable checkbox lists while clicking Radio button

    Hi ,
    I have a checkbox list come from LOV based on a select from database table.
    I have added a Radiobutton only (not redirect not submit since I have to restrict the option as this is based on requirement).Now I want to disable the checkbox while I am clicking the radio button .
    Is it any way possible .
    Thanks in advance .
    Cheers,
    Debashis.

    ok, I create two radio buttons (Enable and Disable)(P8_RADIO). I created a LOV of users with checkboxes (P8_CHECK). When I click on disable all the checkboxes are disabled and enabled when I click on enable.
    First add this to your radio
    P8_RADIO's HTML Form Element Attributes
    onclick="disable(this)"
    Then, add this to the page HTML Header
    <script language="JavaScript" type="text/javascript">
    <!--
    function disable(pThis)
    var trigger = document.wwv_flow.p_v02.value ;
    var rads = document.wwv_flow.p_v02 ;
    if (pThis.value == 'ENABLE')
    for(var i=0; i<rads.length;i++ )
    { document.wwv_flow.p_v02[i].disabled = false; }
    } //end of if
    else
    for(var i=0; i<rads.length;i++ )
    { document.wwv_flow.p_v02[i].disabled = true; }
    } //end of else
    } //end of disable funtion
    //-->
    </script>
    **note**p_v02 is the name of the checkboxes.
    Hopefully this will help you and i explained it better than I did last time

  • How to open a new OAF page in new window while clicking submit button

    Dear All
    I am facing one problem.I have to pass some parameter in new page only after validation.I can't do validation in processRequest bacause I perform validation after clicking the submit button.
    So I have to write redirect code in processForm Request. I can not use simple "Button" bean since I have to set destination uri which could be set only in processRequest.But I can not pass parameter with it in process request.
    Thats why I have decided to use submit button but there is not target frame option in property inspector,So I am not able to open it in new window.
    Kindly give me some suggestion .
    Thanks in Advance

    hi,
    u can use submit button. U need to handle submit button press in processFormRequest method.
    if(pageContext.getParameter("Submit"!=null))
    // validate your parameter
    if parameter u capturing are valid then...
    pageContext.setForwardURL(func, params ...............) // check devguide for details
    if u want to access these parameter in second page . you can write this logic to processRequest of target page.
    U can refer toolbox tutorial drilldown and createpage examples for implementation details.
    Regards,
    Ram

  • Error while clicking submit button?

    Hi All,
    I am trying to implement selectOneListbox component. This displays all the data which I required. I am also able to retrieve indiviual data. I checked this using alert in java script.
    The problem which I am facing is that I have a command button on the page. Once I click the submit button. I am getting an error.
    org.apache.jasper.JasperException: javax.servlet.jsp.JspException: Duplicate component ID 'form1:_id0' found in view.
    I am unable to proceed. Please let me know any solution for the problem.
    Regards
    Rishab

    HI All,
    I have fixed this issue. This was problem with RSA. The id was not getting generated. So explicitly I added the id and it worked.

  • Need to send a automatic mail to an id while clicking a button

    hi
    i am new to APEX. My current assignment is when click on a button a mail should go to a particular mail id automatically.
    Please help me to achieve this.
    Regards
    Hisham.A

    Hi,
    See APEX_MAIL package documentation
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_mail.htm#CIHDIEJI
    Also this OBE might help. It should work also with APEX 4.x
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31email.htm
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How can we create a popup window for confirmation while clicking of button

    HI Friends,
    I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
    I also need two buttons on popup window i.e. 'Yes' & 'No'.
    On yes i want to perform some operation and on No i want to cancel that operation.

    Hi Narendra,
    try using the following code in ONACTION of ur button for popup :
    * Popup
       *  Generate Popup
        DATA lo_window_manager TYPE REF TO if_wd_window_manager.
        DATA lo_api_component  TYPE REF TO if_wd_component.
        DATA lo_window         TYPE REF TO if_wd_window.
        lo_api_component  = wd_comp_controller->wd_get_api( ).
        lo_window_manager = lo_api_component->get_window_manager( ).
        lo_window         = lo_window_manager->create_window(
          window_name          = 'W_POPUP'
         window_position = if_wd_window=>co_center
          message_display_mode = if_wd_window=>co_msg_display_mode_selected
          button_kind          = if_wd_window=>co_buttons_yesno
          message_type         = if_wd_window=>co_msg_type_none
          default_button       = if_wd_window=>co_button_yes
        DATA:  l_api TYPE REF TO if_wd_view_controller.
        l_api = wd_this->wd_get_api( ).
        " subscribe action for Ok button
        lo_window->subscribe_to_button_event(
                     button            = if_wd_window=>co_button_yes
                     action_name       = 'OK_POPUP'
                     action_view       = l_api
                     is_default_button = abap_true ).
        lo_window->open( ).
    regds,
    amit

  • Exception while clicking button on UWL that launches WebDynpro Application

    Hi All,
    I am getting a portal runtime error while clicking on Button thatu2019s there in UWL. When user clicks on this button a webdynpro abap application should get launched. However we are getting exception. Button is added via UWL configuration file. Everything is working fine in Development system however this issue is there in QA system only.
    Here is the piece of code written in UWL configuration file.
    <ItemType name="uwl.task.webflow.TS00008267.MK1_500" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="MK1_500" externalType="TS00008267" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="WebDynproApplication" value="ZTE_EXP_DETAILS"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="WI_ID=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="WebDynproNamespace" value="SAP"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    Below are the details of portal exception.
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template '&lt;System.Access.WAS.protocol&gt;://&lt;System.Access.WAS.hostname&gt;/sap/bc/webdynpro/&lt;WebDynproNamespace&gt;/&lt;WebDynproApplication&gt;/;sap-ext-sid=&lt;ESID[url_ENCODE]&gt;?sap-ep-iviewhandle=007&lt;ESID[HASH]&gt;&amp;sap-wd-configId=&lt;WebDynproConfiguration&gt;&amp;sap-ep-iviewid=&lt;IView.ShortID&gt;&amp;sap-ep-pcdunit=&lt;IView.PCDUnit.ShortID&gt;&amp;sap-client=&lt;System.client&gt;&amp;sap-language=&lt;Request.Language&gt;&amp;sap-accessibility=&lt;User.Accessibility[SAP_BOOL]&gt;&amp;sap-rtl=&lt;LAF.RightToLeft[SAP_BOOL]&gt;&amp;sap-ep-version=&lt;Portal.Version[url_ENCODE]&gt;&amp;&lt;ProducerInfo&gt;&amp;sap-explanation=&lt;User.Explanation[SAP_BOOL]&gt;&amp;&lt;StylesheetIntegration[IF_true PROCESS_RECURSIVE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;DynamicParameter[PROCESS_RECURSIVE]&gt;&amp;&lt;ForwardParameters[QUERYSTRING]&gt;&amp;&lt;ApplicationParameter[PROCESS_RECURSIVE]&gt;'; the problem occured at position 310. Cannot process expression &lt;System.client&gt; because Invalid System Attribute:
    System:    &amp;#39;SAP_LocalSystem&amp;#39;,
    Attribute: &amp;#39;client&amp;#39;.
         at java.lang.Throwable.<init>(Throwable.java:194)
         at java.lang.Exception.<init>(Exception.java:41)
         at java.lang.RuntimeException.<init>(RuntimeException.java:43)
         at com.sapportals.portal.prt.runtime.PortalRuntimeException.<init>(PortalRuntimeException.java:57)
         at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:123)
         at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:166)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:111)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:200)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:115)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:177)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:200)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:115)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:177)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:963)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:249)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:0)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:92)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:30)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:35)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:101)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Please guide how to resolve same.
    Regards,
    Madhvika
    Edited by: Madhvika Joshi on Apr 8, 2011 2:52 AM
    Edited by: Madhvika Joshi on Apr 8, 2011 2:52 AM
    Edited by: Madhvika Joshi on Apr 8, 2011 2:57 AM

    Here is the code for Config file
      <ItemType name="uwl.task.webflow.TS00008267.QT1_500" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="QT1_500" externalType="TS00008267" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="WebDynproApplication" value="ZTE_EXP_DETAILS"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="WI_ID=${item.externalId}"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="WebDynproNamespace" value="SAP"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>

  • Query from all_tab_columns

    I'm looking for a query from ALL_TAB_COLUMNS which should give me all table names containing both the columns below:
    'TIME_PERD_ID' and 'CTRL_PERD'
    Help?
    Thanks,
    Bhagat

    You can try the below:
    [email protected]> create table t1(c1 int, TIME_PERD_ID int, CTRL_PERD int);
    Table created.
    [email protected]> create table t2(c2 int, TIME_PERD_ID int, CTRL_PERD int);
    Table created.
    [email protected]> create table t3(c2 int, TIME_PERD_ID int);
    Table created.
    [email protected]> select a1.table_name
    2 from all_tab_columns a1, all_tab_columns a2
    3 where a1.table_name = a2.table_name and a1.column_name = 'TIME_PERD_ID'
    4 and a2.column_name = 'CTRL_PERD'
    5 /
    TABLE_NAME
    T1
    T2
    Best regards
    Krystian Zieja / mob

  • Show view container elements on click of button in view

    Hi All,
    I have a view ,in that view I have 1 View Container UI Element.In ViewContainer I have a Table.
    I have a button in my view.onclick of that button I want to open a view Container's table.
    Could anyone please suggest me what are all the steps i have to follow for this?
    Regards,
    Karthick

    Hello Karthick,
    1) Create custom controller.
    2) Create attribute with type Visibility in custom controller.
    3) Add custom controller in "required controllers" for embedded view and for container view.
    4) Create attribute with type Visibility in embedded view and container view.
    5) Map visibility attribute from custom controller to container view and from custom controller to embedded view.
    6) in container view in wdDoInit put wdContext.currentContextElement().setVisible(WDVisibility.VISIBLE);
    7) In action handler for button put something like:
         final int ordinal = wdContext.currentContextElement().getVisible().ordinal();
        wdContext.currentContextElement().setVisible(WDVisibility.valueOf(ordinal%2 + 1));
    While clicking on button table would be shown or hidden.
    Best regards, Maksim Rashchynski.

Maybe you are looking for