How to query automatically in quickQuery component

Hi,
I have a quickQuery component and a table in the page. On entering the page initially, I would like to query automatically to show all data in the table. Currently, no data is shown in the table until doing a search in the quickQuery component. I know that for query component (not quickQuery) we can check the "Query Automatically" box in the UI Hints of the Named View Criteria. However, for quickQuery, it is based on All Query Attributes. So where can we set to query automatically?
Please advise.
Thanks.
-Mina

Here is the code snipplet:
<af:panelHeader text="Workforce Relations" id="ph2">
<af:quickQuery label="Search" searchDesc="Search" id="qryId2"
value="#{bindings.ImplicitViewCriteriaQuery.quickQueryDescriptor}"
model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}">
<f:facet name="end">
<af:commandLink text="Advanced" rendered="false" id="cl1"/>
</f:facet>
</af:quickQuery>
<af:table value="#{bindings.ItasResourceRelationsVO1.collectionModel}"
var="row"
rows="#{bindings.ItasResourceRelationsVO1.rangeSize}"
emptyText="#{bindings.ItasResourceRelationsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.ItasResourceRelationsVO1.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.ItasResourceRelationsVOCriteriaQuery.queryDescriptor}"
queryListener="#{bindings.ItasResourceRelationsVOCriteriaQuery.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.ItasResourceRelationsVO1.collectionModel.selectedRow}"
selectionListener="#{bindings.ItasResourceRelationsVO1.collectionModel.makeCurrent}"
rowSelection="single" id="resId1" width="100%"
columnStretching="column:resId1c1"
editingMode="clickToEdit"
partialTriggers="::cb1 ::cb2 ::cb3 ::cb4 ::cb5 :::qryId2">
</af:table>
</af:panelHeader>
If I removed the <af:quickQuery> component in the page, then the table renders with data on the first load of the page. But if <af:quickQuery> is added, then no data is rendered in the table until a search is performed. So how can the page still renders with data on the first load of the page when <af:quickQuery> exists?
Any advice is appreciated.
Thanks.
-Mina

Similar Messages

  • How do I automate a custom component not implementing UIComponent?

    I have tried using Adobe's instructions for automating custom components by creating a delegate class to use as a mixin, but
    1)  the super() statement in the delegate of the constructor is not recognized by the compiler,
    2) I am not able to use a DisplayObject as an argument to init(),
    3) I am not able to return the custom component as a IAutomationObject from the parent component's getAutomationChildAt method.
    Is it simply not possible to automate a custom component not implementing UIComponent?

    If you look in the library panel, there should be an entry for your custom component - probably something like CustomComponent1.mxml. Drag this out onto the artboard to create a new instance of the component.
    In the case of a custom component, you can't change much on the second instance. If you have something like a text input skin though, you can change the text it is displaying for each instance.
    We are working on making this sort of thing easier in the future, so stay tuned

  • How to execute the output of the below query automatically

    Hi All,
    I want to execute the output of the below query automatically, instead of manually copying it and execute.
    select 'alter database ['+name+'] set recovery simple' from master.sys.databases where database_id > 4 and state_desc = 'online'
    Please provide me a script to do this.
    ThanK
    Kate

    EXEC sp_MSforeachdb N'ALTER DATABASE [?] SET recovery simple';--- This will set the recovery model for all the system database.The query provided by Vikash16, meets my requirement. Thank you.

  • How to get the list of component?

        How to get the list of component through java API in Adobe CQ5?

    There are probably more than a few ways, but here is a little component .jsp code that uses the jcr query api to pull out all the components and list them on a page.  If I know CQ, there might be a way to ask for a list of components another way though, maybe through another API, or possibly a .json url, I might remember reading something about that, somewhere, lol, but this at least gets you the list in a somewhat simple way.
    Code Example:
    <%@include file="/apps/psul/components/global.jsp"%>
    <%@ page import="javax.jcr.*,
                       javax.jcr.query.*"
    %>
    <%
       // Login to create an anonymous session on the default workspace
       Session session = resourceResolver.adaptTo(Session.class);
           //Declare a query for all the components in the system
           String SQL = "select * from cq:Component";
    //side note: if you want just the components in your site area, then make the query more like below...
    //  SQL = "select * from cq:Component where jcr:path like '/apps/yoursitename/%'";
           QueryManager qm = session.getWorkspace().getQueryManager();
           Query query = qm.createQuery(SQL, Query.SQL);
           QueryResult result = query.execute();
           NodeIterator nodes = result.getNodes();
           while (nodes.hasNext()) {
               Node node = (Node)nodes.next();
               %>
                    <p><%=node.getName() %> (<b><%=node.getPath() %></b>)</p>
    <%     } %>

  • How to query database to retrieve code to create existing objects(nonPLSQL)

    Hi,
    I would like to know how to query the database so I can pull out the SQL required to create objects. I can already get the code for PL/SQL objects such as triggers and procedures by using DBA_SOURCE, however I also need to pull out code for objects like indexes, synonyms, libraries and views that are not stored in DBA_SOURCE. My colleague has suggested creating an index file from a metadata export however I only want code for broken objects and I need it to run automatically across all my databases with a single windows command script. Can anyone help me with this? TOAD manages to get the code for the objects but if it isn't stored in the DB then maybe it's creating it on the fly.
    Thanks
    Adam

    If you run an export with rows=N, you can produce a file with all the scripts.
    Otherwise you might want to look at DBMS_METADATA.
    We would just reference the original scripts in our source control, but hey, we're crazy like that.

  • Where/How do I programmatically build the component tree?

    Hi! I'm having a lot of problems trying to make my JSF application work...
    Here's the situation:
    - I have to display a form (questionnaire) consisting of a tree (form - subforms - sections - groups - questions - checkboxes/dropdowns...). Each of these parts are custom components, with custom renderers.
    - This display is only a small part of a wider application (so the custom ViewHandler solution seems impossible to me), and it is done in an imported jsp (using <jstl:import ...>). In this jsp, there is only one component, representing the "root" of the questionnaire, because the structure of the questionnaire is unknown at the beginning.
    - I need to build programmatically (in Java) the component tree of my questionnaire (according to the structure loaded from a database) and integrate it in the component tree of the whole application.
    - The problem is I can't get this to work properly in the JSF lifecycle (either the restoreState/saveState methods aren't called, or the "main" tree doesn't contain my "sub-tree" although everything is rendered properly...). I searched on a lot of forums, I tried a lot of solutions (new UIComponent() vs. application.createComponent(...) / create the tree in the component constructor vs. in the component renderer... ) but none of them seemed to meet my requirements, since it seems to be a tricky situation.
    So, does anyone knows how to achieve this? How and where to build my component tree?
    (ask me if a you need more information about my code!)
    Thanks in advance!!
    Adriano

    Bit_happens wrote:
    - I'm using the "createComponent" method to build my tree (instead of just calling the component constructor), is that right? For example:
    UISubform subformComponent = (UISubform) application.createComponent(UISubform.TYPE);
    //UISubform subformComponent = new UISubform();What is the difference with the plain constructor call?You are not implementation dependent then.
    - Apparently, I have to explicitly add the panelGroup to the component tree, or else it won't be part of the tree. Is that normal? Shouldn't JSF add it to the tree automatically when it finds it in the JSP? I have to do the following:
    UIComponent parent = facesContext.getViewRoot().findComponent("form_subview").findComponent("main_form");
    parent.getChildren().add(panel);
    panel.setParent(parent);- Is there a difference between creating the "sub-tree" in an ascending way, or in a descending way? I.e. first creating the leaves and then going up the branches until I plug the root component into the main tree, or first creating the root component and then going down the branches until all the leaves are created?No, there isn't.
    - I think my custom components themselves should be right, and they're declared in faces-config. It looks like the panelGroup doesn't renders its children, but it should by default, right? When I look at the rendered page source code, the panelGroup is empty:
    <span id="form_subview:main_form:formPanel"></span>- Do you think of anything else I should check? Any tricky setting I could have forgot?Try adding existing components to the panelGroup, e.g. HtmlOutputText. If that works, then I rather think there is a flaw in your component.

  • How MDX query will work while we run BOXIR3 query!

    Hi All,
    I am facing lots peformance issues in terms of reports while running.
    Can somebody can explain how the query runs at backend like when we hit Run query in Webi how it functioins.When the MDX Query will be generated and how the query hits the BI/Underlying database.
    I am basically looking out what happens behind the screen when we run a report in Back end etc.
    I am using BI7.0 and BOXIR3.. Thanks in advance for reply.

    ok Thanks for your reply.Here are the answers for your questions.
    I)how many items are in the BI query ?
    52 dimensions it has and 15 keyfigures(ckfs,Rkfs) and around 250 details objects
    but we are using only the dimension objects in reports,we are not using detail objects I mean to say hardly 3 detail objects we are using in each report.
    Since these objects are navigationla attributes they are automatically created in universe as detailed objecs.So if we remove the detail objects does the performance will increase considerably?
    CAN YOU PLEASE COMMENT ON THIS
    II)how many items are using in the Web Intelligence query panel for each report ?
    In webI Query Panel roughly for each report we are using 10 Dimensions and 5 Keyfigures(Including Ckf,Rkfs) with 6 Prompts
    III)Do the reports share characteristics ? If yes - how many ?
       Yes they share charactorstics .Maximum upto 7 Characterstics  which are shared among the reports like Country,Post code,Group,Tier

  • How I can automatically generate purchase orders in SRM?

    Hi Gurus,
    When I create a Shopping Cart (SC), in "Source of Supply" tab I can select a contract as source of supply.
    How I can automatically generate a purchase order (PO) with contract data (vendor, price, etc.)?  So that the operational purchaser does not have to enter the system to generate the PO.
    In ERP (ECC 6.0) exists ME59N transaction, is there something similar in SRM?
    The system is:
    Component software: SRM_SERVER
    Release: 700
    Level: 0008
    Support package: SAPKIBKV08
    Thanks in advance and best regards,
    Alonso Valenzuela

    Hi,
    Like ME59, there is no option available to create a PO automatically in SRM. If you want you can achieve this in 3 ways.
    1. Creating SC Via CATALOGS ( In this case after approval PO will be created directly and most of the cases PO will be transferred to ECC i.e in SRM that will be in ordered status.
    2. You can select the sourcing relevant indication as 'Never Carried out' (Here if you created a SC without source of supply then all such SC's will be converted into Save status PO's.
    3. Do the modification in DOC_CHECK_BADI to force all SC converting to PO.
    However in Case 2 & 3, still buyer's team manual intervention will be more, then need to update the PO with source of supply.
    Regards,
    Govardhan.

  • How are deliveries automatically created from scheduling agreement?

    How are deliveries automatically created from the schedule line of the scheduling agreement? Can anybody explain this step by step? Can we use the code VL10BATCH for this purpose? If we can, how is this code used?
    Thanks in advance.

    hi
    A customer scheduling agreement is an outline agreement with the customer containing delivery quantities and dates. These are then entered as schedule lines in a delivery schedule. You can either create schedule lines when you create the scheduling agreement or you can create them later.
    You fulfill a scheduling agreement by creating the deliveries in the schedule as they become due. You process deliveries for a scheduling agreement in exactly the same way as you process a normal delivery. After you have carried out the delivery, the system updates the Delivered quantity field in the scheduling agreement item with the delivery quantity.
    The scheduling agreement is used as a basis for delivering a material. The customer sends in scheduling agreement releases, referred to as delivery schedules, at regular intervals to release a quantity of the material.
    Document Types
    To configure document types for scheduling agreements, choose Sales -> Sales Documents -> Sales Document Header -> Define sales document types in Customizing for Sales and Distribution.
    The R/3 System contains the following document types for component suppliers:
    LZ - Scheduling agreement with delivery schedules (no external agents)
    LZM - Scheduling agreement with delivery orders
    LK - Scheduling agreement with delivery schedules (external agents)
    ED - Delivery by external agent (consignment issue)
    EDKO - External agent correction
    RZ - Scheduling agreement returns (no external agents)
    KAZU - Consignment pick-up for external agents
    KRZU - Consignment returns for external agents
    Item Categories
    To configure item categories for scheduling agreements, choose Sales -> Sales Documents -> Sales Document Item -> Define item categories in Customizing for Sales and Distribution.
    The system determines the following item categories for the related document types in
    documents containing materials with item category group NORM:
    Item category LZN for scheduling agreement type LZ
    Item category LZMA for scheduling agreement type LZM
    Item category LKN for scheduling agreement type LK
    Item category KEN for document type ED
    Item category EDK for positive corrections (or the manual alternative EDK1 for
    negative corrections) for document type EDKO
    Item category REN for document type RZ
    Item category KAN for document type KAZU
    Item category KRN for document type KRZU
    Schedule Line Categories
    To configure schedule line categories for scheduling agreements, choose Sales -> Sales Documents -> Schedule lines -> Define or Assign schedule line categories in Customizing for Sales and Distribution.
    The R/3 System contains the following schedule line categories for component suppliers:
    L1, BN, L2, and CN for item category LZN
    E4, E0, E5, and BN for item category LKN
    L2 for item category LZMA (standard for delivery order processing)
    Schedule Line Types
    To configure schedule line types for scheduling agreements, choose Sales -> Sales Documents -> Scheduling Agreements with Delivery Schedules -> Define schedule line types in Customizing for Sales and Distribution.
    Creating Scheduling Agreements
    To create a scheduling agreement with delivery schedules:
    1. In the Sales menu http://Ext. choose Scheduling agreement ->Create.
    2. Enter scheduling agreement type LK (standard) or LZ (external agents) and the
    relevantorganizational data.
    3. Choose ENTER.
    4. Enter the following data:
    Sold-to or ship-to party number
    Purchase order or closing number
    Material or customer material number
    You can use the Description field to identify the scheduling agreement. For
    example,
    you could enter the model year for a particular production series.
    The system allows up to 35 digits for a customer material number.
    Rounding quantity
    Usage
    Choose Goto -> Header -> Sales to enter the usage at header level, or Goto ->
    Item-> Sales A to enter it at item level. The system proposes usage S, for series, as default in both cases.
    Planning indicator
    Choose Goto -> Header ->Sales.
    Target quantity
    Mark an item and choose Goto -> Item -> Sales A
    Partners
    For scheduling agreements with external agents , choose Goto -> Header
    ->Partners to enter the external agent as forwarding agent and special stock partner
    on the partner function screen.
    5. Create a delivery schedule
    Mark an item in the scheduling agreement and choose Goto -> Item -> <Delivery
    schedule>. Enter:
    A delivery schedule number and date
    The cumulative quantity received by the customer
    The last delivery confirmed by the customer
    A schedule line with date, time, and quantity
    To enter additional data in the delivery schedule, choose DlvSch.Hdr (delivery schedule header).
    configuration:
    img->SD->Sales->sales document->scheduling agreements with delivery schedules->
    step1: define schedule line types
    schedule line types are not schedule line categories. Schedule line types are used for information purpose only.
    stds are 1. fixed date 2. backlog 3. immediate requirement
    4. estimate
    step2: maintain planning delivery sched. instruct/splitting rules
    The planning delivery schedule is an internal delivery schedule used to plan requirement s more efficiently.  It is sub divided into 3 parts
    2.1 delivery schedule splitting rules
    2.2 dly schedule instrusctions
    2.3 assign dly schedule splitting rules
    step3: define sales documents type
    step4 : define item categories
    step5: define schedule line categories
    step6: maintain copy control
    PROCESS
    step1:  create scheduling agreement
    VA31
    enter SP,SH valid from, valid to,
    goto ITEM OVERVIEW tab
    enter material, rouding qty
    select ITEM  click on FORECAST DLSCH
    enter different dly dates and qties
    save it.
    step2: create sales order with reference to above
    step3: create delivery
    step4: create billing
    regards
    krishna

  • How to pause automatic refresh in BI 7.0 analyzer?

    Hi,
    I have couple of questions about 'pause automatic refresh' in BI 7.0:
    1. How to pause automactic refresh in 7.0 analyzer? can i just click on the pause refresh icon and it will take of the rest by itself right?
    2.. How to pause automatic refresh of the query in portals?
    Thanks in advance
    Aslam.

    Hi,
    Yes, when just click on the refresh icon again it will pause the automatic refresh or use BEx Analyzer ->Pause Automatic Refresh in the menu.
    Regards,
    PB

  • How to Query search panel internationalization in ADF.

    Hi,
    I am using JDeveloper Studio 11.1.1.2.0 and weblogic server 10.3.2.My Requirement is Internationalization.I did Internationalization(Arabic) In GUI level Its coming
    but Problem is in Query search panel(VO level) i want to change Internationalization ,but it is not comming.I have configured faces-config.xml.but not comming in Query search panel.
    In VO level ,i have change in Control Hints, As a label Tex---> #{UIServiceMessage['_U0627_U0644_U0646_U0638_U0627']} but still same text msg is comming.
    So plz help me how to Query search panel internationalization in ADF.
    Thanks&Regards
    Anup

    hi
    check this
    http://andrejusb.blogspot.in/2008/02/list-of-values-component-in-search-and.html
    Regards

  • How do I automatically write-to-file the text from an applet?

    I'm trying to generate a file containing the text information that I'm getting off a webpage. The information, however, is in the form of an applet that displays the words on my browser. How do I automatically read the info in an applet and write it to a file?

    Is the inforamtion written inside some swing component?
    If yes, then you can read the content of that swing component, after that writing what you have read to a file is easy.

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • How to query opening balance for all customer or Vendor for an speci. date

    Hi,
    How to query opening balance for all customer or Vendor for an specific date?
    Example:
    put any date and query will show all customer/ Vendor  that date opening/current balance.
    Regards,
    Mizan

    Hi mizan700 ,
    Try this
    SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
    T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
    FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
    INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
    WHERE T0.[DocStatus] ='O'
    AND
    (T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
    Regards:
    Balaji.S

  • How to configure Automatic Account Clearing for A/R

    Hi,
    Kindly advice me how to configure  Automatic Account Clearing for A/R
    The client requirement is
    In A/R the customer accounts are not automatically clearing when a payment is posted for that account. We are still seeing all open items and all paid or cleared items when we go to FBL5N and select open items for viewing. Please make account clearing automatic for customer payments.
    Thanks in advance
    Sunitha

    Hi,
    Use T code OB74.
    Maintain for your Chart Of Account, acct type "D", From and to customer accounts and then add the critera you want. Pls note you cannot define more than 5 criteria.
    Then schedule the clearing program job F.13 in the background.
    Cheers.

Maybe you are looking for

  • Print Preview in routing does not show text

    Good morning all... We have a user who is attempting to preview their print job, and currently the print preview function in the routings does not show the standard text.  It displays the page number but nothing else. I am trying to obtain more infor

  • Table or FM for Cost Distribution in ABAP-HR

    Hi Experts, I need to find Cost Center and Internal order for an employee based on his organisation Unit. I have organisation unit ( ex: 608), they are maintaining cost center and Internal Order in PO10 tcode. Could you please let me know table or FM

  • How to activte no bidi filtering option for dat element matnr

    Dear All I want to activate no bidi filtring option for dataelement matnr in table amra But iam unable to do this.I got acess key and try to change but it not comes to edit mode it is in display mode only.Iam not able to select the checkbox.

  • Question: How to dynamically create multiple rows in a table together

    I'm sure this is obvious to a seasoned person but I'm a newbie (just working with Forms for 1 week). In the snapshot below I'm trying when I hit the Add button I'd like the two rows below the header in the table to replicate themselves below in the t

  • Shadow Effect Not Publishing in Slideshow

    I have set a shadow effect on the Hero image box that does show in the design mode of MUSE. But when I preview it in MUSE, preview it in the browser and when it is published, the drop shadow is gone. Any suggestions?