Control Query in PFR of LOV

Hi All,
I would like the LOV to take the query that I add programmatically. Basically, I am setting where clauses dynamically.
This works fine when I set the programmatic query to true and add it in the process Request usind Criteria Items.
But the problem again occurs when we come back to the LOV page and click on Go button there. This part is being controlled in pfr, but my query does not get appended to the LOVVO query that I created dynamically as in process Request.
Please let me know how to make the LOV to take my query part that is added programmatically in process form request.
Thanks,
Padmaja

Hi All,
Thanks for your suggestions and quick responses.
1. The issue still persists.
2. Disable Validation is set to True for my LOV.
3. Answer to Ram's point:
The pseudologic for where clause thats being added is
in LOVCO PR:
if (vo != null) {
if (condition1)
set WhereClause1
else
set WhereClause2
Its working perfect when I give the value in base page and click on LOV Torch.
But once I am in the LOV page, we have search criteria and search text there. Once I change the value there or simply click on Go (without even changing value in search text), I see that the control goes to process form request. There I tried to attach my programmatic where clause just to make sure that the data appears conditionally. But here when the user clicks on Go button in the LOV page, the framework does not take the dynamic query from CO.
I am not sure if my approach is correct or is there any simpler way of doing it.
Thanks,
Padmaja

Similar Messages

  • How Can I use a Variable  in Data Controls query. Frank Kindly check...

    Hii,
    I am using JDeveloper 11g ADF BC.
    My Requirement is that I hv a login screen which is taken from [http://blogs.oracle.com/shay/simpleJSFDBlogin.zip].
    I hv attached BC in this application. I want to use the login usercode in the next pages after login screen. Next screen contains 3 list items which will be populating based on the user. So I created <af:selectOneChoice> using the BC( Just drag & dropped the column into the page from the data controls). But in the data control i want to use this usercode for passing the condition. Now Data is coming without any condition.
    So How can I use the usercode in the Data controls query.
    When I tried to display the usercode in the next page it is showing by binding the value. its code is follows
    <af:outputText value="#{backing_getUser.uid}"
    The program for checking the username & Password is follows.
    package login.backing;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.layout.RichPanelFormLayout;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import java.sql.*;
    import java.util.List;
    import java.util.Map;
    import oracle.adf.view.rich.component.rich.output.RichMessage;
    import oracle.jdbc.OracleDriver;
    public class GetUser {
    private RichInputText uid;
    private RichInputText pid;
    private RichCommandButton commandButton1;
    private RichInputText inputText1;
    private RichInputText inputText2;
    public void setUid(RichInputText inputText1) {
    this.uid = inputText1;
    public void setPid(RichInputText inputText2) {
    this.pid = inputText2;
    public RichInputText getUid() {
    return uid;
    public RichInputText getPid() {
    return pid;
    public void setCommandButton1(RichCommandButton commandButton1) {
    this.commandButton1 = commandButton1;
    public RichCommandButton getCommandButton1() {
    return commandButton1;
    public String login_action() {
    // Add event code here...
    String user = this.getUid().getValue().toString();
    // String pass = inputText2.getValue().toString();
    String pid = this.getPid().getValue().toString();
    Connection conn;
    conn = getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery ("SELECT usercode FROM guser where usercode = '"+user.toUpperCase()+"' and pwd=F_TEST('"+pid.toUpperCase()+"')");
    if (rset.next()) {
    conn.close();
    return "good";
    conn.close();
    } catch (SQLException e) {
    System.out.println(e);
    return "bad";
    public static Connection getConnection() throws SQLException {
    String username = "ACCTS";
    String password = "ACCTS";
    String thinConn = "jdbc:oracle:thin:@SERVER1:1521:G5PS";
    DriverManager.registerDriver(new OracleDriver());
    Connection conn =
    DriverManager.getConnection(thinConn, username, password);
    conn.setAutoCommit(false);
    return conn;
    public void setInputText1(RichInputText inputText1) {
    this.inputText1 = inputText1;
    public RichInputText getInputText1() {
    return inputText1;
    public void setInputText2(RichInputText inputText2) {
    this.inputText2 = inputText2;
    public RichInputText getInputText2() {
    return inputText2;
    -----

    Hi,
    I didn't look at the example, but if you want to secure your application then you should use container managed security. Read this .
    Anyway, you could add this before return "good"; in your login_action()
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("username", user);Then, you can access this from anywhere in the application by using #{sessionScope.username}.
    Pedja

  • Control Query for broadcaster

    Hi al,
    I need to send a report by mail in PDF format to a user which is a filtered report of a general report.
    Meaning: I have a general report of sales (A) and I need to send by e-mail report A filtered by sales group and by current month (B).
    In order to do this I have created a control query which filters the sales group and the month, and when broadcasting the report I choose the control query.
    When I execute the broadcaster I get 2 PDF files: one is filtered as my request and the other is filtered only by the sales group but not by the month so I get a report with all months since the begining of the year.
    The second report is unnecessary - How can I get rid of it?
    Thanks,
    Hagit

    1st : no wanswer by now.
    2nd : don't filter in the Broadcastsetting, filter in the Broadcastquery to avoid a broadcast for every filter value.
    Edited by: Heinrich Krupp on Apr 16, 2009 11:44 AM
    Edited by: Heinrich Krupp on Apr 16, 2009 11:44 AM

  • How can I create variant of control query?

    Dear Expert,
    I am using BEx Broadcaster to bradcast query as a report.
    In tab Filter Navigation, I enter the control query, but the variant always gives me "(No Selection Possible)".
    How can I create variant of control query?
    I try to create variant via variable entry page when I excute my query.
    The variable show in table "RSRPARAMETRIZA" but not show in BEx Braodcaster.
    Thank you,
    Zilla

    Hello,
    Please run this control query on the portal and then save variant you require. If you want this variant to be available
    to all users make sure that the user specific flag is unchecked while saving the variant.
    Regards,
    Michael

  • Crystal Report using BW Query that contains replacement path (control query

    I have a Crystal report built on a BW query.  The BW query contains a replacement path on a characteristic (as a control query).  The control query has additional variables that the main query is not using.  The crystal report is not recognizing any of the variables that the control query includes.  How do I get the crystal report to recognize the control query variables?

    Post your question BEX and B1 and/or classic SAP data source issues to the Integration Kit forum

  • How to retrieve dynamic filter value submitted from control query to .....

    How to retrieve dynamic filter value submitted from control query to broadcast query.....
    I'm trying to change the hierarchy version determined by a userexit variable in the broadcast query.
    The Hierarchy Version should be dependent on the input filter delivered by the bursting query.
    But how do I catch the dynamic filter value which has been submitted by the bursting query,
    with other words:  where does the bursting query store it's out put while sequentially starting the broadcast query value by value?
    BTW: the filter value from the bursting query appears under "dynamic filter values" in the information of the broadcast query...
    Any thoughts are welcome!
    Edited by: Heinrich Krupp on Jun 24, 2009 1:25 PM

    Further information,
    Report is used via webi only, not Xcelsius or Dashboard.
    Report is consuming BI Web Services.
    Although we can pass in prompt values to BI Services, I couldn't find if we could pass a variable or dimension object into this field. Anyone knows?

  • Precalculated web template w/control query

    I create a precalculated web template with settings:
    1. Data
    2. HTML web pages
    3. Control query
    I scheduled the package. How do I access the views from control query in Web Template URL?

    Hi Raynald,
    1. When you marked "HTML web pages" then "Data" are calculated automatically.
    2. the html-pages can you see in RSRAPS.
    3. To started this page in IE:
    - see the index.htm
    - http://ipaddress:prot/sap/bw/BEx?sap-language=%20&bsplanguage=%20&CMD=LDOC&TEMPLATE_ID=ZQUERY&DATA_MODE=STATIC&filter=...
    Sven

  • Can I use control query and Variant?

    Can I use control query and Variant?
    I tried both but it’s not working, what’s my requirement is in a web template having material, distribution as drop box and I have to create for all countries(Like USA, Canada,China…)so what I did , I created a control query as material& distribution and I created variants for countries. After precalculating it’s not working.
    Any help ll be appreciated
    Thanks

    Yes you can use Control Query AND Variant in your Setting. Maybe you did not setup you Web template correctly?

  • Recipient determination characteristic not in control query RDRD 525

    I am trying to create a Broadcast Setting in BEX Analyzer based on a workbook using Broadcast by E-Mail (bursting).  I want to use a control query to determine the recipients of the broadcast.  When I select the query that I want to use I get the following error:
    Recipient determination: Characteristic 0VENDOR is not in control query X_Z7_ZPUR_M03_Q0002_PRESEL
    The message number is RSRD 525. 
    The characteristic that I am using for recipient determination is 0VENDOR and it DOES exist in my query.  I can get the broadcast to work if I manually enter a list of vendors that I want to receive the broadcast but that is not practical.  The recipient determination is based on whether the vendor has open items which causes them to be in the output of the preselection query. 
    Does anyone know how to resolve this?
    Thank you for your help

    Hi, everybody.
    I already solved this problem. Thanks a lot.
    For this I selected the controls in a exit variable that should be selected in from table time-dependent  from infoobject. This solution ran just for BWD and BWQ, because there was a lot of data in BWP.
    Then I made a first query that has selected the controls. After that, in the original query I defined the substitution path relating with the first query.
    Thanks again,
    Elisabeth

  • Variant for Control Query on Bex Broadcaster Filter

    I am trying to create a Bex Broadcaster setting on a query via query designer (query -->Publish --> Bex Broadcaster). In the Filter Navigation Tab, I want include a filter using a control query with variants. My control query has a variable that is set to (single value, mandatory,manual input) and i created a variant for the control query on the web. I am able to create the Bex Broadcaster setting and enter my control query but when I go enter the variant it always gives me "No selections available".
    Another issue that i am having is - when I try to create a filter on a characterisitc in the Bex Broadcaster and give mulitple values in the filter, it ends up generating seperate excel files (distribution type is e-mail) for each value in the filter. Is there any way i can consolidate all these results and get it to generate on single file?

    1st : no wanswer by now.
    2nd : don't filter in the Broadcastsetting, filter in the Broadcastquery to avoid a broadcast for every filter value.
    Edited by: Heinrich Krupp on Apr 16, 2009 11:44 AM
    Edited by: Heinrich Krupp on Apr 16, 2009 11:44 AM

  • How to Broadcast Control Query based on User Exit Variable

    Hi Gurus,
    How to Broadcast dashboard based on Control Query based on User Exit
    Variable to different users via mail in BW 3.5 version. Any document or
    steps to achieve this will be very helpful.
    Regards
    Vishwanath

    Hi Surendra,
    Thanks for the reply and your suggestion. It will be great if you can help me to answer the below:
    1) What exactly we mean by Control Query - Any example will be very helpful
    2) As you mentioned, yes the user exist to be written will be for user-exit variable for dynamic period selection - An Example on how to create this will be helpful
    3) Once the above variable is created, what are the steps to include this variable in the Bex Query?
    4) Once all the queries to be used in dashboard are implemented with the exit variable, how to create a variant to be used in Broadcasting?
    5) How and where to configure the email recipients (to whom this dashboard will be sent via mail)?
    6) How to set up the BW broadcaster in BW 3.5 using the control query ?( My question is though we have to send the dashboard to the users, which has multiple queries, how a single control query with variant will help us).
    Awaiting your reply.
    Thanks and Regards
    Vishwanath

  • Precalculation & Control Query

    Dear experts,
    in Report Agent (RSA1old) I have a precalculation for Web Template Containing Query A -  using Control Query C for the precalculation (Precalculation settings are data and web template).
    Control Query is based on an InfoObject, which is also InfoProvider and just shows the hierarchie of the Business Units in the rows.
    Query  A uses the Business Unit in the free characteristics - users of the Web Template have to select on the business units (out of a hierarchy, but nodes may also be selected).
    The precalculation job finishes fine - but on executing the web template I have the feeling, that for some selections on the business unit numbers appear really fast (from precalculation) and for other selections on the business unit selection takes ages (and is probably calculated on execution and not from precalculation!!!)
    How can I find you if report is using the precalculated values?
    Do you have any advice - it is really appreciated!
    Kind regards,
    Angelika

    Hi,
    everything is SAP standard.
    The shortdump is in
    class builder: cs_rsr_request
    method: EXTERNAL_LIST_NOTIFY
    44       ENDLOOP.
    45 *     Hierarchy active -> eqsid -> node
    46       IF l_s_dim_int-hry_active = rs_c_true.
    47         LOOP AT <l_sx_slicer>-eqsid ASSIGNING <l_sid>
    48                  WHERE table_line <> rrsi_c_sid-summe_l
    49                    AND table_line <> rrsi_c_sid-summe_c
    50                    AND table_line <> rrsi_c_sid-summe_q.
    51           l_s_node-sid = <l_sid>.
    *>>>           APPEND l_s_node TO <l_sx_slicer>-node
    .* 53         ENDLOOP.
    As I already said nothing self made everything is sap standard.
    Thanks & regards,
    Mario

  • Af:query component with cascading Lov's

    Hi All,
    I have Cascading LOV's model setup in Business Components and they work fine in a form or table
    but they are not working inside af:query component as there is no autoSubmit attribute on the query component itself
    can someone help me to resolve this
    Thanks in Advance

    I have found a way
    using bindings attribute of the query component it was able to go to backing bean on any LOV change in there we need to manually refresh the bindings then it works

  • Query Bind Parameters and LOV's [JHS 10.1.3.1]

    Using the JHeadstart Developer's Guide instructions (starting section 3-69) I have started to learn and then implement Query Bind Parameters in JHeadstart - but I am being met with nothing but troubles.
    Is there anything 'special' that I have to do in order to get a query bind parameter to work with a LOV? I have followed the instructions in the Developer's Guide but just replaced the bind parameters that would otherwise be in a Dynamic Domain into a LOV group in the JHeadstart Application Definition file..
    To be precise about all of this, I have been trying to get this to work with the HR database schema. So, like in the mini-tutorial I have a query bind parameter on a Employee table View Object set as a LOV to the ManagerId field on the Departments View Object (set in Form View).
    What is actually happening when I open up my LOV, is that no rows are ever displayed in the LOV pop-up window.
    What am I doing wrong?

    Michael,
    Take a look at this thread:
    Re: Group Used as LOV does not return records
    You have to use a managed bean to "communicate" the value of the Employees base page to the LOV page definition.
    Steven Davelaar,
    Jheadstart Team.

  • Simple SQL Query and Parameters and LOV

    Newbie and trying to work thru building a simple sql query with a single table query and use a parameter and lov.
    Can anyone point me to an example.
    simple query:
    select cust_id, name_desc, name_add1, name_add2, name_city
    from customer_table
    where cust_id = :cust_parm
    This works in straight sql and in the query builder by prompting for the customer ID. When building a parameter using LOV or search, it doesn't seem to detect the variable.
    Thanks..
    DD

    If you are using version 11g, then as soon as you save the query in the data model, it should notice the parameter and ask if you want to add the parameter to the data model. What version of BIP are you using?
    What happens if you exclude the parameter from the query and simply hard-code the criteria? Can you generate XML data?
    From your wording, it sounds like you're trying to create a parameter from the LOV dialog. LOVs and parameters are totally distinct. After each are created separately, then you configure the parameter to use the LOV.

Maybe you are looking for