Runtime control of AutoCustomizationCriteria query

Hi,
I have a PoSearch page with a queryBean with Auto Customization Criteria (ACC) construction with a simple search panel. My requirement is that when I navigate from another page to the PoSearch page, I need to execute the underlying queryBean with one of the search criteria in the panel. This is value is being passed as param through the setForwardUrl api.
Is there a way to programmitically handle the ACC, i.e. populate the search criterion and execute the queryBean, when I navigate to the PoSearch page from another page??
Since I couldnt find such techique in the devguide, I tried dynamically building my whereClause for the underlying VO in the queryBean (Posearch page) and was able to execute the query and display the results perfeclty when I do the navigation. But now the problem is, when I stay on the same PoSearch page after initial execution of query (i.e. the manual whereClause binding and vo execution after navigation from another page) and try to perform any other search by entering some other search criteria and press the 'Go' button, it does not do anything and no results are displayed as the query is not executed. Am I missing something or what would I need to do to achieve my requirement. Also the AM's are different on both pages, the initial page and PoSearch page.
Thanks and appreciate all your suggestions and insight.
-Vikram

Here is my controller code - both PR and PFR.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
// Always call this first.
super.processRequest(pageContext, webBean);
String qtrName = pageContext.getParameter("QtrName");
OAMessageLovInputBean qtrText = (OAMessageLovInputBean) webBean.findIndexedChildRecursive("Qtr");
qtrText.setValue(pageContext,qtrName);
/*if ("Y".equals(pageContext.getParameter("PartIcon")))
OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
String qtrId = pageContext.getParameter("QuarterId");
Serializable[] params = { qtrId };
am.invokeMethod("initParticipantVO",params);
pageContext.removeParameter("PartIcon");
} // end processRequest()
* Procedure to handle form submissions for form elements in
* region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
// Always call this first.
super.processFormRequest(pageContext, webBean);
OAAdvancedTableBean partTable = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("ParticipantsTblRN");
OAWebBean actionBean = (OAWebBean) partTable.getTableActions();
OAMessageChoiceBean actionList = (OAMessageChoiceBean)actionBean.findIndexedChildRecursive("item1");
String listValue = pageContext.getParameter("item1");
String listValue1 = (String) actionList.getValue(pageContext);
//if (actionList != null)
String qtrId = pageContext.getParameter("QtrID");
OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("item2") != null)
if (("LONG").equals(listValue))
Serializable[] formFormat = { "L" , qtrId};
am.invokeMethod("AddToForm",formFormat);
pageContext.getApplicationModule(webBean).getOADBTransaction().commit();
else if (("SHORT").equals(listValue))
Serializable[] formFormat = { "S", qtrId };
am.invokeMethod("AddToForm",formFormat);
pageContext.getApplicationModule(webBean).getOADBTransaction().commit();
else if (("ENROLL").equals(listValue))
am.invokeMethod("EnrollToClass");
pageContext.getApplicationModule(webBean).getOADBTransaction().commit();
else if (("REMOVE").equals(listValue))
am.invokeMethod("removeParticipant");
pageContext.getApplicationModule(webBean).getOADBTransaction().commit();
} // end processFormRequest()

Similar Messages

  • How to pass runtime parameters to Oracle Query from xMII server

    Please can anybody  help me that how to pass runtime parameter to Orcle Query  from xMII server.

    It works the same way as I described in this thread [How to pass runtime parameters to MySQL Query from xMII server].  It does not matter the datasource MII will work the same for all queries, at least for passing in parameters.  How to write those queries and their datatypes will be the differences.

  • How to pass runtime parameters to MySQL Query from xMII server

    Please can anybody help in How to pass runtime parameters to Orcle Query from xMII server

    The answer is the same as for your other thread.  The mechanism is the same regardless of the end database.  The SQL  syntax will be different for each database vendor depending upon which functions you are invoking.  The main areas of difference between SQL Server, Oracle, DB2, etc. deal with dates (times also) and strings, but there are others as well.
    Regards,
    Mike

  • How can I filter a table from Data Control without enter query

    I have a table from a web service data control based on WSDL.
    I want to filter the table without input query at filter text box. Without filter text box, each would filter the table with a hardcoded query internally.
    For example, when user click A menu button then it filters the table where type = '1' and B menu button filters the table by type='2' and C menu button filters the table by type=' ' .
    How can I filter the table without enter query?
    Could anyone point me to a solution please.
    Thanks.
    jdev 11.1.5
    Edited by: 893364 on Oct 26, 2011 12:15 PM
    Edited by: 893364 on Oct 26, 2011 12:21 PM

    Hi,
    when you created the table, did you try selecting the "filter" option. Select the table and go to the Property Inspctor. In the tool bar of the Property Inspector there is an icon to change the configuration. Its adding filter filter fields for the user to search in.
    Option 2: The data of the Web Service actually is held in the iterators. If you wanted to filter the WebService query, I would not use the WS DC but a JAX-WS proxy in a POJO to fetch the WS Data. Then have the Data Control created from the POJO. You could have a method exposed on the POJO that allows you to filter the internally held data
    Frank

  • Getting Runtime error while executing Query on Multiprovider

    Hi ALL,
    When i m executing a query on multiprovider it is giving me runtime error as:
    *Error Reading the data of the infoprovider
    An Exception with the type CX_SY_ARITHMATIC_OVERFLOW occured
    overflow in the operation.*
    I ran this query today morning also it ran successfully, now it is giving this error.
    Please help me.
    Thank you.
    REDDY

    Hi check
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/sapsys-000-compute_int_times_overflow-cx_sy_arithmetic_overflow-1704462
    Thanks
    Reddy

  • Runtime error in My Query

    HI!
    I created a abap query and added few additional fields with codes in them and tried running the query. When I run teh query with selections on my selection screen it runs well and gives me output correctly but when I run it open without any selection I geta  runtime error with following description.
    Short text
        Field symbol has not yet been assigned.
    __What happened?__    Error in the ABAP Application Program
        The current ABAP program "AQZZZSD=========ZSD_LISTOFFLST" had to be terminat
         because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis    You attempted to access an unassigned field symbol
        (data segment 27).
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN
        - You address a field symbol that pointed to the line of an
          internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "GETWA_NOT_ASSIGNED" " "
    I am not sure why its running ok when I provide selection and it gives error when I ran it open.
    Thanks

    The code where it shows error :
    loop at gt_konv assigning <fs_konv>
       where kposn = vbrp-posnr
         and ( kschl = 'ZPRL' or kschl = 'ZWRO' or
               kschl = 'ZSPT' or kschl = 'ZWSU' or
               kschl = 'ZOTH' or kschl = 'ZQUA' or
               kschl = 'ZTAR' or kschl = 'ZCMD' ).
        add <fs_konv>-kwert to unitpr.
      endloop.
      unitpr = ( unitpr / vbrp-fkimg ).
      uomup = <fs_konv>-kmein.
      If lines( gt_konv ) gt 0.<<<<<<<<,<<<<<<<Runtime error point is here
      clear psagediff.
      IF ( PRICEDIFF <> '0.00' AND  LPRICE <> '0.00' ).
        PSAGEDIFF = ( PRICEDIFF / LPRICE ) * 100.
        else.
         PSAGEDIFF = '0.00'.
         endif.
         endif.
    * Logic in code section
      case v_pricetype.
        when '00'.
          pricetype = 'Others'.
        when '01'.
          pricetype = 'List'.
        when '02'.
          pricetype = 'Off-List'.
        when '03'.
          pricetype = 'No Price'.
      endcase.

  • Runtime Error when executing Query in the web

    Hello,
    when i try to execute a query on the  web, i get the error
    Exception in BI runtime
    Log ID: 005056BD15DA005E000000A900000A3400043C8F00E4DD8B
    Initial cause
    Message:
    'user' missing
    Stack trace:
    com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: 'user' missing
    Message:
    No connection possible to BI master system VB0CLNT800
    Stack trace:
    com.sap.ip.bi.base.service.connection.ConnectionException: No connection possible to BI master system VB0CLNT800
    Can anyone please tell me , how to fix this ..
    Thanks
    Raj

    you mwy check this to trouble shoot front end
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation

  • Having troubles passing values of Shuttle control to SQL Query of Report and Chart Region

    Hello,
    I am very new to APEX and need help for one of the Pa.I have a shuttle control on my page which populates Categories. Once user selects Categories from this control, I wish to pass the values to following SQL query :
    select * from emp_class where category IN ( LIST of VALUES FROM RIGHT SIDE SHUTTLE).
    I tried various ways of doing this including writing a java scripts which reads shuttle value, converts it into below string
    'Category1',Category2',Category3'. Then I set this value to a text box. And then I was expecting that below trcik would work
    select * from emp_class where category IN (:TXT_VALUES)
    I am sure this is not right way and hence its not working. Can you please guide me here with options?
    Many Thanks,
    Tush

    b96402b4-56f7-44ba-8952-fb82a61eeb2c wrote:
    Please update your forum profile with a real handle instead of "b96402b4-56f7-44ba-8952-fb82a61eeb2c".
    I am very new to APEX and need help for one of the Pa.
    Don't understand what this means. What is "Pa"?
    select * from emp_class where category IN (:TXT_VALUES)
    I am sure this is not right way and hence its not working. Can you please guide me here with options?
    This is a common fallacy. In
    select * from table where columnvalue in (7788, 7839, 7876)
    (7788, 7839, 7876) is an expression list and the predicate is evaluated as a membership condition.
    In
    select * from table where columnvalue in :P1_X
    :P1_X is a scalar string, incapable of containing multiple values.
    In an APEX standard report, a PL/SQL function body returning an SQL query report source with lexical substitution can be used to produce a "varying IN-list":
    return 'select * from table where columnvalue in (' || :P1_X || ')';
    where P1_X contains fewer than 1000 values, has been sanitized for SQL injection, and string values are properly quoted.
    Some people suggest the following approach, which will also work in APEX interactive reports:
    select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0
    However this is non-performant as it eliminates the possibility of the optimizer using indexes or partition pruning in the execution plan.
    See varying elements in IN list on Ask Tom, and emulating string-to-table functionality using sql for efficient solutions.

  • Getting runtime erro for Jump query

    Hi,
    A particular user is getting runtime error while doing Jump query, all others are able to do the same for the same query,
    any solution pls
    Regards
    RKR

    Hello,
    What is the runtime error that the user gets?
    Also is it analyzer based or web based report.
    In case of Web Report, check which IE version he is on...
    Regards,
    Shashank

  • How to apply pagination to data bind to asp:Repeater control using Camel Query.

    Hi All,
    I am having a <asp:Repeater> control to which i bind the data from share point list. 
    I want to apply pagination to that data which is bind to Repeater. I am using CAMEL query to get data from list. 
    How can i apply the pagination to this data fetch by camel which is bined to Repeater control.
    Thanks
    amol

    Hi,
    From your description, you might want to use CAML to query the needed items from a SharePoint list, then use a Repeater control to bind to these data with paging allowed.
    If so, here is a solution like this: Use
    CAML to query a collection of items and save them into a
    DataTable object. Then use the PagedDataSource object to achieve the paging for us and associate it to a
    Repeater control.
    Here are two links will provide more details:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/7af4c865-a44a-4ccb-864d-9d834f8b2b87/bind-sharepoint-list-to-asp-repeater?forum=sharepointdevelopment
    http://sharepointdotnetfalls.blogspot.in/2013/07/repeater-control-with-paging-in-share.html
    Best regards
    Patrick Liang
    TechNet Community Support

  • Abap runtime error in sap query

    hi all,
    i was using a query to generate a specific report for quite some time. and it was running well. but since yesterday morning the query started giving the following error msg while executing:
    "variant STANDARD not created"
    i tried giving other variant but failed. so i decided to run te report witout variant. for this i went for CHANGE mode of query and i removed query and made the report RUN WITHOUT VARIANT. after tat system didnt asked for variant but while executing it started giving ABAP dump.
    where to check? please suggest
    Warm regards,
    BKR

    Hi,
    When it give dump,it is clearly display which & where it is unable to execute ststement.
    Take help ogf ABAPer.
    Kapil

  • Runtime Control Creation

    Hi,
    I want to create Check-Boxes or Radio-Buttons on Forms at runtime while having certain conditions...
    How can I create those on Runtime?
    Any help will be appreciated.
    Thanks.

    You can't create them on runtime what you can do is create them at design time but make them not visible. then at runtime you can change their properties to become visible.

  • How do I...Conditionally control Replacement Path Query execution?

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path query variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is, if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

    Hello SDN:
    We are on BW 3.5 SP16.
    We are currently using a replacement path Query(RP) with variables
    to populate a variable in another Query(T).
    The problem we are having is with performance.
    The entry of variables in replacement path Query(RP) is optional (This is necessary there cannot be required values)
    When results from Replacement Path Query are small performance is fine. (e.g. 10 seconds)
    When results from Replacement path query are large performance suffers. (e.g. 1+ minutes)
    Users are free to leave the replacement path query variables empty resulting in a large set of data to be replaced. This is the worst performance case.
    We would like to discover a way to conditionally execute the replacement path query. That is, if users do not enter values for the replacement Query(RP) variables do not execute the replacement path query(RP).
    Does anyone know if this is possible within reason and in customer exit space?
    We have reviewed the situation from all angles and the requirement for the replacement path FUNCTIONALITY and the freedom for the user to leave variable values blank remains.
    I've been searching and reading SDN and SAP notes for about a week and do not find threads which address this situation.
    We are also exploring Customer variable exits to mimic replacement path functionality
    (different topic subject="How do I...Mimic Replacement Path with Query using Customer Variable Exits?")
    Any help will be appreciated
    Many thanks
    David Schuh

  • Control where WAD query opens (Browser or Portal)

    Hi gurus,
    a hyper link for a query which was built with WAD can be sent via E-Mail.
    If the recipient has no portal the query opens in a web browser. Thats fine.
    But if a additional SAP Portal is available currently the activated link opens in portal.
    Could it be handled that the link opens only in web browser?
    Where could this be adjusted?
    Thanks in advance!

    Hi,
    If you really do not want to publish in the Portal, then you may have to de-activate or delete I-views which are created for these Queries. Because, Queries will be published in the Portal only by creating i-views.
    Regards,
    Suman

  • MSI Control Centre settings query

    Hi all, the older versions had an option via the taskbar icon to automatically load current settings on reboot. The option is no longer available on my Windows 7 64-bit installation. Anyone any ideas why MSI would remove the option to have your settings applied automatically & make it so that to load a custom fan profile you have to manually load it on every boot up? 
    Also are there any other alternatives for fan control (mine are controlled via voltage not PWM so speedfan doesn't do the job for me).
    Anyone any ideas?   

    Set the default behavior you wish the fans to exhibit using the uefi / bios or click bios II. Use control center for on the fly changes that are temporary.

Maybe you are looking for

  • Activating SIS structure error while maintaining update rules

    Hi Experts please reply <removed by moderator> i am trying to activate self defined SIS structure but at the time of creating maintain update rule in transaction MC24 i am getting error please guide what i am missing DDIC structure S990 for info stru

  • Python, Windows binary distribution dbxml 2.5.13

    I'm having trouble completing the installation of the binary distribution of Dbxml 2.5.13: I seem to be missing the Python bsddb libraries. On XP SP2 I installed ActivePython-2.5.4.4-win32-x86.msi and dbxml-2.5.13.msi. In c:\Program Files\Oracle\Berk

  • Session holding lock..need to find the apps user holding that SID

    Hello in v$lock a session is blocking another session..Sid is displayed there now i can kill that session if it is holding a lock for too long and i do so too But i want to know which apps user was it..there more than 500 users that connect from EBS

  • External JNDI Client, jndi.properties/connection

    How can I lookup up a object jms/ConnectionFactory, which I've confirmed is in this namespace with a external java program client. I have the Client jars in the class path. It connects, tries to lookup jms/ConnectionFactory. But I get javax.naming.Na

  • What's the prupose of "ip route null0"?

    We often saw configuration of putting the summary address of an internal private network in "ip route .... null0". What's the purpose of it? Why the traffic to the internal network doesn't get dropped on the router it is configured? Would the null0 s