Include attributes in View criteria which are outside of written query

I have a select query which is group by on a state column
If i use date and status columns in my above query ... then i need to include those in my group by function and my number of rows displayed is increasing based on date and status
My use case query panel has statename, state and fromdate and todate
Now i am able to build a view criteria on statename.... but because i have not included date and status column in my query... i am not able to include those cols in my view criteria
Is there any chance that i can include attributes in my view criteria which is outside of my written query in vo.. i have the attributes in my table not in query

Can this be done using transient attributes in the respective vo and using them in view criteria
my question is how to append this attributes through view criteria to the respective query

Similar Messages

  • How to change the view criteria at run time for af:query

    Hi,
    I've a usecase where I need to change the view criteria of the af:query at run time.
    Use case:
    =======
    1) Consider a check box (Show Emps Under Dept 10) in the query panel when user selects and clicks 'Search' button should show the employees under dept 10. If user searches without selecting the check box, the results should show all the employees in all the departments.
    2) I need to have a check box always in the query panel. Its mandatory.
    The way I implemented:
    ==============
    1) Created a transient variable 'Show Emps Under Dept 10' in the EmployeeVO and also created a bind variable bind_DeptNo.
    2) Create a view criteria 'AllEmployees' which has only the transient attribute as the view criteria item and whose value set to 'false' by default.
    3) Created another view criteria 'EmpUnderDept' which has 'DepartmentId' as the view criteria item and whose value set to the bind variable 'bind_DeptNo'.
    4) Dropped the view criteria 'EmpUnderDept' as the 'af:query' panel in the jspx page.
    5) Overridden the queryListener as '#{EmpBean.empSearch}'
    6) Has the below code in the empSearch method as below. When user selects the check box, applying the other criteria 'EmpUnderDept' and setting the bind variable to '10'.
    public void empSearch(QueryEvent queryEvent) {
    // Add event code here...
    QueryDescriptor queryDesc = (QueryDescriptor) queryEvent.getDescriptor();
    ConjunctionCriterion conCrit = queryDesc.getConjunctionCriterion();
    List<Criterion> criterionList = conCrit.getCriterionList();
    List criterionValues = new ArrayList();
    Object criteriaValue = null;
    int criteriaNo = 0;
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    FacesContext facesContext = FacesContext.getCurrentInstance();
    for (Criterion criterion : criterionList) {
    AttributeDescriptor attrDescriptor = ((AttributeCriterion)criterion).getAttribute();
    System.out.println("============== attrDescriptor.getName() =================== " + attrDescriptor.getName());
    criteriaValue = ((AttributeCriterion)criterion).getValues().get(0);
    if(criteriaNo==0) {
    Boolean val = (Boolean) ((AttributeCriterion)criterion).getValues().get(0);
    if (val.equals(true)) {
    OperationBinding method = (OperationBinding) ADFUtil.findOperation("ExecuteWithParams");
    if(method!=null) {
    Map params = method.getParamsMap();
    //params.put(key, value)
    method.getParamsMap().put("bind_DeptId", 10L);
    method.execute();
    ADFUtil.invokeMethodExpression( "#{bindings.EmpUnderDeptCriteiaQuery.processQuery}", queryEvent);
    } else {
    //ADFUtil.invokeEL("#{bindings.ExecuteWithParams.execute}");
    ADFUtil.invokeMethodExpression( "#{bindings.AllEmployeesCriteriaQuery.processQuery}", queryEvent);
    But this approach is not working and its always showing all the employees in all the departments.
    Please let me know if there is a way to change the view criteria at run time depending on the values set at run time for one of the view criteria items.
    JDev version am using is '11.1.1.5'
    Thanks,
    Lakshman

    Hi Shay,
    It worked for me without overriding the executeQuery() method in the ViewImpl.java.
    Instead of creating 2 view criteria, I created only one which has both transient variable and the DepartmentId = <bind_DeptId>. With the above code, it worked properly. Now I am using only one view criteria.
    Thank you.

  • Unable to view files which are more than 4megabyte from microsoft word

    hi, i had this problem after updating to latest os for my iphone..
    my mailbox couldn't open files that are larger than 4mb anymore. whenever i tired to open the file from my iphone4, the mail app will crash.
    please help me!

    Just checked the model of card youre using by Hardware ID
    PCI\VEN_02&DEV_0002&SUBSYS_00A02&REV_0A = SB0220 SBLi've! 5. Digital,
    and I think if this is correct, you'll may find some other frustrationed owners asking the
    same question you have.
    Have you tried these drivers
    and/or
    these drivers
    About this issue you and the others are having:
    [url="http://forums.creative.com/creativelabs/board/message?board.id=soundblaster&message.id=4670" target=_blank>See this thread[/url]
    BTW:
    You perhaps can install Audigy 2 drivers and software to your card. Here are the instructions how to do it.
    It's quite easy process. Download Audigy driver/software package (~20MB) (link is there), extract it into some directory. Download the patch (link is on Automatic Method sentence)and follow instructions how to patch the instalation package. Then installation process. I've modded my Audigy 2 to Audigy 2 Zs using a similiar method and everyting else, but GraphicMixer, works great.
    .jtpMessage Edited by jutapa on 08-24-2005 06:38 AM

  • How to include a static file which is outside Applicaton Context in JSF?

    I need to inlcude lot of static contents which are residing in outside Application Context root in JSF.? is there any better way to do include static files which are outside the Context root?

    The total no of static content files will be around 20000 to 30000 and i will only know the file name at run time from the user input.

  • Passing two values in two different views using view criteria in adf bc

    I have two tables. Message and MessageProperties. Message table is connected with itself as same as Employee table of HR. Means a Message can have various child message. MessageProperties contains the message properties. A message can have various properties. I want to show the message only if it has a particular value in MessageProperties,then its properties,its child message. If its child message have the same value in MessageProperties,then it shows that. Likewise it should give me a tree structure with its all properties.
    When I am hardcode the value then its shows fine.
    SELECT Message.MESSAGE_ID,
    Message.MSG_CONTENT_ID,
    FROM MESSAGE Message, MESSAGE_PROP MessageProp
    WHERE (MessageProp.Message_Id=Message.Message_Id) AND ((MessageProp.Key='From' OR MessageProp.Key='To') AND (MessageProp.value='B'))
    But when I use the Bind variable in view criteria then I am not able to achieve this.
    1. How to do that in adf bc and how to link message and messageprop with this condition?
    2. How to pass two parameters in serviceinterface FIndViewCriteria method i.e. messageId and value so that it will show only that message having that value?

    Thanks Timo,
    It helps me a little bit.
    It only shows me the parent message id and its properties. But it is not showing its child message id and its properties.
    Let me explain you step by step what I have done.
    1> I have created a view MessageView with two entities i.e Message and MessageProp and include the value attribute of MessageProp in it.
    2> I have created the default MessagePropView from MessageProp Entity.
    3> In MessageView I have modified the query which you have given.
    4> I have created the Bind variables.
    5> I have created a view criteria and in that view criteria I have included Message_Id=:Bind_MessageId and Value=:Bind_Value.
    6> I have created an association connecting Message.Message_Id and Message.Parent_Id(1 to * cardinality) because a message can be a parent of many messages.
    7> I have created a viewlink between Message and MessageProp using Message_Id.
    8> I have created a view link between Message and Message using the association which I have created in step 6.
    9> I have created the Application Module. In that,my Data Model looks like
    ---MessagePropView2
    ---MessageView1
    ---------MessagePropView1
    ---------MessageView2
    10> Then I have created the service interface. In service interface view instances,I include these two view and select the GetByKey operation from basic operations.
    11> From View Criteria find operations I have included the view criteria which I have created in message view in step 5.
    12> Then I run the AppModuleServiceImpl.java and select the view criteria operation which I have created in step 11.
    13> There I find two bind variables i.e. Bind_MessageId and Bind_Value. I give the values there.
    But it checks whether that message Id(Bind_MessageId) which I have given have that value(Bind_Value) or not. If it has then it shows only that message along with its properties but it is not showing me its childs and their properties.
    I want to show only those child message who have the MessageProp.value as (Bind_Value).
    I hope you understand with the scenario.
    I'll be very thankfull to you if you help me to do this.
    Rohit.

  • Programmtically Setting View Criteria in ADF Query Component

    I have created two view criterias for a View Object and used ADF Query component for searching. User can select any one of the View Criteria from "saved search" in ADF Query component. but i want to set it programmatically based on some business rules. How i can do that?

    No I don't want to set view criteria on search click. Actually I have ADF Query component on my page which is by default disabled. There are also some fields outside the query component on the value of which i enable ADF Query component and wants to set a particular ViewCriteria based on context. All ViewCriterias are defined and listed in "saved search" of ADF Query component but i don't want to allow user to select it but wants to application set it automatically based on context. For it i will be needed to set a particualar ViewCriteria for ADF Query component through code and then refresh ADF Query component to show newly set ViewCriteria. I know how to refresh query component or any other component through code but don't know how to set ViewCriteria on ADF Query component?

  • ADF-View criteria

    Hi all:
    I'm working in Jdev TP3.
    I do view criteria on the view and then I want to do search form with it.
    The view has a transient column to checkbox but I don't know how insert on the view criteria because if I insert it
    doesn't appear on the search form.
    Can somebody help me?
    Thanks in advance.

    Thanks by reply Steve
    The transient attibute is boolean. I did because I have string attribute and I need to show checkbox.
    I add transient attribute to the view criteria and Query Execution Mode put "in memory " because it didn't leave put database.
    When I dropped a view criteria, I used my custom view criteria which included the transient attribute.
    Thanks in advance.

  • Bizarre behavior of a View Criteria for a View Object

    Hey,
    I remarked quite a bizarre behavior of the View criteria that I created for my view object, using bind variables.
    lets say I have the generated query in the View object:
    SELECT Paquet.ID,
    Paquet.WEIGHT,
    Paquet.VALUE,
    Paquet.ORIGIN,
    Paquet.DESTINATION
    FROM PAQUET Paquet
    I want to use the executeWithParams with bind variables for this View object.
    I create a bind variable:p_o
    I create the View Criteria vith the visual editor that generates an additional view clause:
    ( ( ( Paquet.ORIGIN LIKE ('%' || :p_o || '%') ) OR ( :p_o IS NULL ) ) )
    test query works and explain plan as well.
    Now, when I execute the view object on a page with the bind variable properly set, I get the error: java.sql.SQLException: Attempt to set a parameter name that does not occur in the SQL: p_o
    Then I copy the where clause generated by view criteria visual edito directly to the query and delete the View Criteria, and it ALL WORKS FINE
    If has to work like that, then what is the View Criteria useful for? I still think that there is a problem.
    Thanks!
    Taavi

    Hi,
    ViewCriterias are not accessed with ExecuteWith Params. For this the bind variable needs to be in the where clause. Named ViewCriterias are listed separately in the DC list
    Frank

  • Including additional where clause conditions to view criteria dynamically

    Hi,
    We have a set of view objects that serves as LOV for various other view objects. All such LOV view objects have three specific attributes, two date attributes namely EffectiveStartDate, EffectiveEndDate and a String attribute namely UserSwitch based on which the LOV list needs to be filtered.
    All the view objects are having one or more view criterias with specific where clause conditions.
    Apart from those view criteria conditions, invariantly, we need the following conditions also
    :bindEffDate between EffectiveStartDate and EffectiveEndDate and UserSwitch = :bindUserSwitch.
    We wish not to include the above condition in each and every view criteria of each and every view object (Since we have around 800 view objects and a minimum of 2 view criterias per view object). Instead, we created a dummy view object (BaseViewObject) with two bind variables :bindEffDate and :bindUserSwitch and all the LOV view objects were made to extend this BaseViewObject.
    Therefore, whenever a view object atribute is attached with LOV using the above said LOV View Objects, the bind variables of the baseViewObject as well as the view object specific bind variables are available in the view accessors tab of the view object wizard where we can supply values to those bind variables.
    Now, we need to construct the view criteria filter clause. To achieve this, we created a class, CustomCriteriaAdapter.java extending oracle.jbo.server.CriteriaAdapterImpl. In the getCriteriaClause() method, we included the follwoing code:
    public String getCriteriaClause(ViewCriteria pViewCriteria)
    ViewObject vo = pViewCriteria.getViewObject();
    String userSelectSwitch = (String) vo.ensureVariableManager().getVariableValue("bindUserSwitch");
    String effBgnDt = vo.getAttributeDef(vo.getAttributeIndexOf("EffectiveStartDate")).getName();
    String effEndDt = vo.getAttributeDef(vo.getAttributeIndexOf("EffectiveEndDate")).getName();
    String customCriteria = " ( :bindEffDate >= " + effBgnDt + " ) AND ( :bindEffDate <= " + effEndDt + " OR " + effEndDt + " IS NULL ) ";
    StringBuffer completeCriteria = new StringBuffer();
    String criteriaClause = super.getCriteriaClause(pViewCriteria);
    if (criteriaClause != null && !criteriaClause.isEmpty())
    completeCriteria.append(criteriaClause + " AND ");
    completeCriteria.append(customCriteria);
    if (userSelectSwitch != null && "Y".equals(userSelectSwitch))
    String userSelectSw = vo.getAttributeDef(vo.getAttributeIndexOf("UserSwitch")).getName();
    completeCriteria.append(" AND (" + userSelectSw + "='Y' ) ");
    return completeCriteria.toString();
    Issues:
    The LOV list is not filtering the records based on the constructed conditions. Instead it is listing either all of the records considering only the view criteria conditions applied at design time irrespective of the userswitch and effectivedate conditions or the list is empty.
    Here, my questions are,
    1. Am I in the correct approach? If not, guide me in a more proper approach to achieve the same requirement.
    2. If the way I am trying is correct, where things are going wrong and why the dynamic condition is not getting effected?
    Kindly help in sorting out the issue.
    Thanks in advance.

    Hi Jobinesh,
    Thanks for your response and yes, we have done exactly as what you have mentioned. As explained earlier, a baseViewObject along with its Impl class has been created and it will be extended by all the viewobjects meant for serving LOV. Therefore, the superClass for any such LOV viewObject is the baseViewObjectImpl class. In that baseViewObjectImpl(), we have over-rided the criteriaAdapter() method and returned an instance of our customCriteriaAdapter() class.
    Below is the code we are using in the baseViewObjectImpl():
    package model.base.vo;
    import oracle.jbo.CriteriaAdapter;
    import oracle.jbo.server.ViewObjectImpl;
    public class BaseViewObjectImpl
    extends ViewObjectImpl
    * This is the default constructor (do not remove).
    public BaseViewObjectImpl()
    * Over-rided method of ViewObjectImpl class of the framework.
    * Calls the customized criteria adapter so that the default where clauses are added to the view criteria.
    * @return CriteriaAdapter.
    @Override
    public CriteriaAdapter getCriteriaAdapter()
    return new CustomCriteriaAdapter();
    I'll create a sample in HR schema and share with you shortly.
    Thanks and regards.

  • Label of attribute when used as View Criteria item with Bind Variable

    I've a VO attribute used in a named search with this requirement:
    The attribute provides has an optional View Criteria item that has a bind variable operand. The bind variable is in the WHERE clause. The attribute has an LOV. The choice list for the specified View Criteria item should display the label "Effective Release". However, in all other contexts, including the search results table and the dropdowns the user can optionally add in an advanced search, the label displayed for the attribute must say "Release".
    In other words, the default label for the attribute should be "Release" in all but one context - which is that when the dropdown list for the viewCriteria item using the bind variable is displayed, the label should say "Effective Release".
    Note that if the user moves to Advanced Search and selects adds the attribute as a search criteria, this latter usage should be labeled as "Release". (in this case, in other words, the dropdown that displays by default and has the bind variable operand is labelled "Effective Release", the one the user added in advance search is labelled "Release")
    here is the View Criteria item source xml:
          <ViewCriteriaItem
            Name="ReleaseId1"
            ViewAttribute="ReleaseId1"
            Operator="="
            Conjunction="AND"
            Value=":v_ReleaseId"
            GenerateIsNullClauseForBindVars="false"
            ValidateBindVars="true"
            IsBindVarValue="true"
            Required="Required"/>I've experimented by putting "Effective Release" as the label for the bind variable as below. However, ADF does not use that value to display, it defers to the attribute value:
    <Variable
        Name="v_ReleaseId"
        Kind="viewcriteria"
        Type="oracle.jbo.domain.Number">
        <Properties>
          <SchemaBasedProperties>
            <LABEL
              ResId="EFFECTIVE_RELEASE_LOV"/>
          </SchemaBasedProperties>
        </Properties>
      </Variable>The reason for the requirement, if it matters, is that the View Criteria item with the bind variable ("Effective Release" queries a range of values using the analytic function rank(); the bind variable is in the WHERE clause. Otherwise, the dropdown that can be added in advanced search ("Release") looks for exact matches on the attribute value. So since the search functionality is different, the label should be different.
    Am using 11g.
    Thanks for your help.

    Hi
    I have found that when using validation type Key Exists and the VO is in the local application, then the bind variable is available in the Create Validation wizard. When I try and create a validator on a VO that is core to all my applications, then I put that VO into an ADF library, the bind variable parameter is not available for mapping to my entity object attribute, even though I can select the VO to create a view accessor from the ADF library.
    Possible bug?

  • Which are the Tables included in SRM

    Hi All,
    Please help me with the following
    I have a very basic knowledge of SRM.
    Can anybody tell me which are tables included in SRM. For eg. When a shopping cart is created and approved in which all tables data relevant to that is stored.
    Then account assignment details, PO details, GR details are stored in which tables.
    Please reply
    Thanks in advance.
    Regards.

    Hi Rahul,
    i know few tables, which are listed below. i will suggest you to run sql trace with the transaction bbp_pd. use st05 to activate the sql trace, than run bbp_pd. deactivate the trace and view the trace. i am sure that you will get all the tables you needed.
    crmd_orderadm_h
    BBP_PDHGP
    BBP_PDHSB
    CRMD_LINK
    CRMD_PARTNER
    BBP_PDBGP
    PRCD_HEAD
    CRM_JEST
    Regards,
    Shastri.

  • I want to identify those photos which are not included in events so I can process them

    I want to identify those photos which are not included in the Events folder so I can begin to process these photo which remain

    Sorry but your post makes no sense
    Please identify the versions of iPhoto and of the OS that yu have and exactly what yoru problem is
    There are no photos in iPhoto that are not in an event - iPhoto works on a library basis and every photo in the iPhoto library is visible in an event and in photos view - there are no photos that are not in both
    If you are seing something different then either you are looking in the incorrect place or you have a corrupted database - but to help you you need to provide details and symptons
    Your example is simply not possible
    Lets say I have 100 pictures in my iPhoto program but only two Events.  In one Event, I have 20 pictures.  In the other Event, I have 30 pictures.
    All 100 photos are in an event and all 100 photos will show in photos view
    LN

  • How can i find all included pictures which are not in a album? (only in the Library)

    How can i find all included pictures which are not in a album? (only in the Library)

    Hi there,
    I'm afraid I don't quite understand your question. All images are in your Library and only those you specifically select from that Library would be in an Album. What platform are you using? Revel Mac, Elements, web browser, etc?
    Here is a link with some helpful information:
    FAQ: File Basics: How do I Upload, Download, Share, and Delete files in Revel?
    Thank you,
    Glenyse

  • How can i find all included pictures in the Online-Library which are not in a album?

    Hi
    I use Adobe Photoshop Elements 13 with (Revel). My question ist how can i find all included pictures in the Online-Library which are not in a album? I would like only to have pictures in Library which are included in a online album.

    Hi there,
    I'm afraid I don't quite understand your question. All images are in your Library and only those you specifically select from that Library would be in an Album. What platform are you using? Revel Mac, Elements, web browser, etc?
    Here is a link with some helpful information:
    FAQ: File Basics: How do I Upload, Download, Share, and Delete files in Revel?
    Thank you,
    Glenyse

  • Standard Manager executing other programs which are not INCLUDED .

    hello guys,
    We are having eBiz 11.5.9 environment and 9.2.0.6 Database on AIX 5.3 32-bit environment.
    I am new to this client's environment and found that, there are 3 include specialization rules defined for Standard Manager which does not include "Active Responsibilities" program but still this Standard Manager is executing "Active Responsibilities" without any issues.
    How is this possible ???
    Ideally, Standard Manager should only run those 3 included programs ONLY and for rest of the programs which are not assigned to any of the concurrent manager , we should get "INACTIVE/No Manager" message.
    My 2nd question is, when I am running this oracle seeded script $FND_TOP/sql/afrqscm.sql which shows the manager assigned to the perticular request id, it gives the below output,(Below is request id is for "Active Responsibilities")
    ===================================
    SQL> @afrqscm.sql
    Enter request ID : 22035368
    Request 22035368 can be run by the following concurrent managers:
    Running Manager
    20 STANDARD
    0 ALTS
    Below are the active concurrent manager log filenames:
    no rows selected
    ===================================
    In our environment , ALTS is DISABLED manager without having any specialization rules attached to it and its basically a "Backup standard manager".
    I am wondering, what setup is required to have backup concurrent manager like ALTS which will take care of requests in case standard manager goes down ?????
    Ebiz architecture is one Admin/conc/db Tier (Aix 32 bit) and 5 Web nodes ( RHEL Linux 32 bit).
    Thanks,
    Prasad
    Edited by: 881822 on Dec 7, 2011 3:00 AM

    Hi Hussein,
    Thnks for your reply,
    My second doubt is resolved as even though there are no specialization rules assigned to ALTS manager , that means it is exactly the same as that of Standard Manager and will execute all the programs. Below is statement from your mentioned pdf ,
    =========
    Specialize your manager to run only certain kinds of requests. Without specialization rules, a manager accepts requests to start any concurrent program.
    =========
    Regarding your first question, Yes , we do bounce managers once in a month , below is the status of those two conc programs which are INCLUDED in Standard Manager.
    SQL> select 'Concurrent program '||fcp.concurrent_program_name||' is ' ||decode(fcqc.include_flag,'I','included in ','E','excluded from ')||fcqv.user_concurrent_queue_name specialization_rule_details from fnd_concurrent_queues_vl fcqv,fnd_concurrent_queue_content fcqc,fnd_concurrent_programs fcp where fcqv.concurrent_queue_id=fcqc.concurrent_queue_id and fcqc.type_id=fcp.concurrent_program_id and fcp.concurrent_program_name='CPINR080C';
    SPECIALIZATION_RULE_DETAILS
    Concurrent program CPINR080C is included in Standard Manager
    Concurrent program CPINR080C is excluded from TESTPlus General
    SQL> select 'Concurrent program '||fcp.concurrent_program_name||' is ' ||decode(fcqc.include_flag,'I','included in ','E','excluded from ')||fcqv.user_concurrent_queue_name specialization_rule_details from fnd_concurrent_queues_vl fcqv,fnd_concurrent_queue_content fcqc,fnd_concurrent_programs fcp where fcqv.concurrent_queue_id=fcqc.concurrent_queue_id and fcqc.type_id=fcp.concurrent_program_id and fcp.concurrent_program_name='CPDOR270C';
    SPECIALIZATION_RULE_DETAILS
    Concurrent program CPDOR270C is excluded from TESTPlus General
    Concurrent program CPDOR270C is included in Standard Manager
    Thanks,
    Prasad

Maybe you are looking for

  • Windows 8.1 Pro WinHlp32.exe not running

    Immediately after Diskpart-Win80-Win81 fresh install, there are four (4) instances of WinHelp32 on our machine: C:\Windows\en-US\winhlp32.exe.mui C:\Windows\WinSxS\x86_microsoft-windows-winhstb.resources_31bf3856ad364e35_6.3.9600.16384_en-us_66fa9c27

  • Problem mit UBUNTU UtopicUnicorn LiveDesktop auf Thinkpad W 540

    Grüezi mitenand! Mein Versuch dieses System auf dem neuen Thinkpad auszuprobieren scheiterte komplett. Die Live DVD startete zwar anstandslos aber recht bald erschien die folgende Fehlermeldung [       3.883475] tpm_t is 00:05: A TPM error (6) occurr

  • How do you call a function in an attached MovieClip from the current MovieClip?

    Hi there, I have this MovieClip A (converted as a symbol) and put in my main MovieClip B using attachMovie() , and I am wondering how I can call a function defined in A from within B. Is it possible? Thanks

  • Conversion from decimal to char

    Hi experts, i am using some function module which has parameter of type char(132) . now i have to pass packed no  p(7) decimals 3  to  this how to do it .  if i send directly function module raising run time error ( type conflict). how we can do this

  • IWork download problem Macbook Pro 13 Retina Late 2013

    I have Macbook Pro Retina Late 2013 and can't download iWork for free, appstroe still want pay from me :/