OAAdvancedTableBean.queryData doesn't use dynamic filter on VO

My page contains two regions:
1. Search region with fields and button Go
2. Search results
At first search results region was made on ordinary table and I used initQuery method to set filter and execute query. table displayed results of execution query.
Then I changed it to advancedTable and had to use it as in devguide:
1. initQuery with executeQuery=>false 2. queryData with checkForExecuted=>false
It populates advancedTable with data but... without dynamic filter wich I set in initQuery. I'm getting full VO without where condition
There's my mistake? Pls help
JDev for apps 11 RUP6

Hi ealex,
I create one search page & Results advanced table(Based upon VO) on same page based upon VO. I want to show the all search records in Table/Advanced Table. Now my page is running fine if I click on GO button page is refreshed but no results in results table. It shows the default message like "No search Found".
How can I display the records in either normal Table or Advanced Table?
If u have the sample code for displaying the records in Table please forward to me. My mail id: [email protected]
Here is my SQL script & CO, AM & VO codes please correct on my code anything I missed here.
Any mistakes in my code?
I am using JDeveloper 9.0.3
OAFramework version is 11.5.10.K
Please help me on this ASAP. It's urgent.
Thanks in Advance.
My Select Stmt:
SELECT * FROM
(select wn.nid notification_id
,ou.name company
,I.PAY_GROUP_LOOKUP_CODE paygroup
,'AP' source
,pf.full_name initiator
,pv.vendor_name supplier_name
,I.GL_DATE FROM_TO_DATE
from ap_invoices_all i
, po_vendors pv
, hr_operating_units ou
, per_all_people_f pf
, FND_USER FU
, (SELECT trim(substr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),
1,instr(substr(substr(WN.subject,(instr(WN.subject,'Invoice ') + 8),100),1,100),' for'))) inv_no
,notification_id nid
FROM WF_NOTIFICATIONS WN
WHERE WN.MESSAGE_TYPE = 'APINV'
AND WN.STATUS NOT IN ('CANCELED','CLOSED')) wn
where i.vendor_id = pv.vendor_id
and i.invoice_num = wn.inv_no
and i.WFAPPROVAL_STATUS = 'REQUIRED'
and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
and i.org_id = OU.organization_id
AND OU.name like nvl(:company_name,name)
and i.pay_group_lookup_code = nvl(:pay_group,i.pay_group_lookup_code)
and exists (select ad.invoice_id
from ap_invoice_distributions_all ad
where ad.invoice_id = i.invoice_id
and ad.accounting_date between nvl(:from_date,ad.accounting_date)
and nvl(:to_date,ad.accounting_date))
and 'AP' = nvl(:source,'AP')
and i.created_by = fu.user_id
AND fu.EMPLOYEE_ID = pf.person_id
AND pf.full_name like nvl(:initiator, pf.full_name)
UNION ALL
select po_num.nid notification_id
,ou.name company
,ps.PAY_GROUP_LOOKUP_CODE paygroup
,'PO' source
,pf.full_name initiator
,pv.vendor_name supplier_name
,P.CREATION_DATE FROM_TO_DATE
from po_headers_all p
,po_vendors pv
,po_vendor_sites_all ps
,hr_operating_units ou
,per_all_people_f pf
,(select trim(substr(wn.subject,24,instr(wn.subject,' for')-24)) po_no, notification_id nid
FROM WF_NOTIFICATIONS WN
WHERE WN.MESSAGE_TYPE = 'POAPPRV'
AND WN.STATUS NOT IN ('CANCELED','CLOSED')
and wn.subject like 'Standard Purchase Order%') po_num
where p.SEGMENT1 = po_num.po_no
and p.vendor_id = pv.vendor_id
and p.org_id in(select organization_id
from hr_operating_units
where name like nvl(:company_name,name))
and pv.vendor_name = nvl(:vendor_name,pv.vendor_name)
and p.AUTHORIZATION_STATUS = 'IN PROCESS'
and p.CANCEL_FLAG = 'N'
and 'PO' = nvl(:source,'PO')
and p.agent_id = pf.person_id
and pf.full_name like nvl(:initiator, pf.full_name)
and pv.vendor_id = ps.vendor_id
and ps.org_id = ou.organization_id
and ou.name like nvl(:company_name,name)
and ps.PAY_GROUP_LOOKUP_CODE = nvl(:pay_group,ps.PAY_GROUP_LOOKUP_CODE)
and trunc(p.creation_date) between nvl(:from_date,trunc(p.creation_date)) and nvl(:to_date,trunc(p.creation_date))
In CO PFR Code:
if (pageContext.getParameter("Go") != null)
OAQueryUtils.checkSelectiveSearchCriteria(pageContext, webBean);
String COMPANY = pageContext.getParameter("COMPANY");
String PAYGROUP = pageContext.getParameter("PAYGROUP");
String SOURCE = pageContext.getParameter("SOURCE");
String INITIATOR = pageContext.getParameter("INITIATOR");
String SUPPLIER_NAME = pageContext.getParameter("SUPPLIER_NAME");
Boolean executeQuery = BooleanUtils.getBoolean(false);
Serializable[] parameters = { COMPANY, PAYGROUP, SOURCE, INITIATOR, SUPPLIER_NAME, executeQuery};
Class[] paramTypes = { String.class, String.class, String.class, String.class, String.class, Boolean.class };
am.invokeMethod("initSearch", parameters, paramTypes);
OAAdvancedTableBean table = (OAAdvancedTableBean)webBean.findChildRecursive("ResultsTable");
table.queryData(pageContext, false);
AM invoke Method():
public void initSearch(String company,
String paygroup,
String source,
String initiator,
String supplier_name,
Boolean executeQuery)
WorklistFindVOImpl vo = getWorklistFindVO1();
if (vo == null)
MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "WorklistFindVO1") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
vo.initQuery(company, paygroup, source, initiator, supplier_name, executeQuery);
VO Code:
public void initQuery(String company,
String paygroup,
String source,
String initiator,
String supplier_name,
Boolean executeQuery)
StringBuffer whereClause = new StringBuffer(500);
Vector parameters = new Vector(5);
int clauseCount = 0;
int bindCount = 0;
setWhereClauseParams(null); // Always reset
if ((company != null))
String companyname = null;
try
companyname = new String(company);
catch(Exception e) {}
whereClause.append("COMPANY= :COMPANY");
whereClause.append(++bindCount);
parameters.addElement(company);
clauseCount++;
if ((paygroup != null) && (!("".equals(paygroup))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("PAYGROUP = :PAYGROUP");
whereClause.append(++bindCount);
parameters.addElement(paygroup);
clauseCount++;
if ((source != null) && (!("".equals(source))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("SOURCE = :SOURCE");
whereClause.append(++bindCount);
parameters.addElement(source);
clauseCount++;
if ((initiator != null) && (!("".equals(initiator))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("INITIATOR = :INITIATOR");
whereClause.append(++bindCount);
parameters.addElement(initiator);
clauseCount++;
if ((supplier_name != null) && (!("".equals(supplier_name))))
if (clauseCount > 0)
whereClause.append(" AND ");
whereClause.append("SUPPLIER_NAME = :SUPPLIER_NAME");
whereClause.append(++bindCount);
parameters.addElement(supplier_name);
clauseCount++;
setWhereClause(whereClause.toString());
if (bindCount > 0)
Object[] params = new ObjectbindCount;
parameters.copyInto(params);
setWhereClauseParams(params);
if ((executeQuery != null) && (executeQuery.booleanValue()))
executeQuery();
} // end initQuery()

Similar Messages

  • Webi Report Output using dynamic Filter

    Suppose my report output contains doc. number & document date which shows data of one year which filter is applied on global level means at query filters level.
    Now I want to show output of only last 3 months from current date(report run date) on the basis of document date.
    So how to proceed further in such scenario.
    Please reply ASAP.
    Thanks
    Pradip

    You can filter it on the report level or the block level. Highlight either one and then add the filter (make sure the filter window is open).
    Thanks

  • Dynamic Filter a Table using BI

    Hi All
    I need to be able to dynamically filter a table, VC can not do this, but is it possible to do it using BI?
    Jarrod Williams

    Hi,
    Using the Filter info-actor, it is not possible to use it dynamically.
    But as previously said, you can use the result of query as an input variable for the next query.
    JH

  • CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there

    CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there a way around this?  Is there a patch to correct it?

    To build CD's???
    What problem does Encore have with DL?
    If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore.

  • Alternative to using dynamic variable / NOW () in Content FILTER

    Good morning all,
    Could someone suggest an alternative to using NOW () in the WHERE clause of LTS? Using ExpirationDate>NOW() works, but unfortunately, this request can't be cached (because reports using dynamic statements using NOW () and TODATE () don't get cached).
    I've identified a possible solution - creating a variable that would use first day of current month with this Initialization block:
    SELECT LAST_DAY (ADD_MONTHS (CAST(SUBSTR(SYSDATE,1,10) AS DATE), -1))+1 FROM TIMEDIM_TABLE WHERE CAST(SUBSTR(SYSDATE,1,10) AS DATE)=CALENDAR_DATEAs a result the variable is showing: TIMESTAMP '2009-05-01 00:00:00' in Default Initializer field. This seems to be working - I'm just not sure why not all he reports get cached.
    My question is - is this valid way for this and is there a better way to accomplish this?

    Hy Wildmight,
    Here an article :
    Why a Query is Not Added to the Cache ?
    http://gerardnico.com/wiki/dat/obiee/bi_server/cache/obiee_bi_server_why_no_cache
    If you use a repository variable, the cache work and the entry will be deleted next time you update it.
    Success
    Nico

  • How do I use dynamic JSP vars in a form tag with implicit sessions?

    I'm using iAS 6 SP4 and 'lite' sessions w/ sticky LB on Win2K for development and need to use a dynamic variable (via an = scriptlet) to specify the URL a form tag's ACTION method posts to. The implicit URL session encoding attempts to add the hidden input tags to the form but part of it is getting cut off. If I remove the dynamic var scriptlet from the form tag it works fine. How can I use dynamic vars and implicit URL session encoding?
    Here's my code sample:
    <FORM NAME='Create' METHOD='POST' ACTION='<%= servletRootStr %>CreateServlet' TARGET='_top'>
    Output is:
    <FORM NAME='Create' METHOD='POST' ACTION='http://my.server.com/NASApp/WebStuffApp/Create' TARGET='_top'>T NAME="GXHC_gx_session_id_" TYPE="HIDDEN" VALUE="GXLiteSessionID--8351372849698357580" ></INPUT><INPUT NAME="GXHC_GX_jst" TYPE="HIDDEN" VALUE="d692bc3d662d6164" ></INPUT>
    Because the <INPUT> tagon the first session var is cut off, up to the T, the page obviously fails. Can this be fixed with a config setting, or is it a bug in iPlanet??

    Thanks for helping me Anurag.
    The problem I tried to solve was that I want the result from my service methods
    in XML format. I thought a callback/polling was the best alternative, am I right?
    Since the callback option doesn´t work I will try to poll the service.
    Are there any other options for solving my problem??
    Thanks again!!
    /A
    "Anurag Pareek" <[email protected]> wrote:
    >
    Andrej,
    I guess you are trying to invoke a Webservice which defines a callback
    method
    from a JSP, and want the JSP to handle the callback made by the webservice.
    For a client to be able to handle a callback made by a Webservice, it
    has to be
    a web service in itself.
    Even some web service tools do not support 'Solicit responses' and hence
    they
    would not generate handlers for the callback methods by default. You
    can download
    a callback WSDL in such cases and implement it on the client side. The
    server
    side web service will then callback to that webservice.
    The other option to callbacks is to use polling methods. This can be
    done from
    any client such as Java client/ JSP client or a .NET client.
    Hope this helps. Let me know if you have any further questions.
    Regards,
    Anurag
    "Andrej" <[email protected]> wrote:
    I´ve tried this but with no success..
    How do I recieve the data in a servlet/JSP-page?
    Thanks.

  • PPS dynamic filter creation - not your normal thing but we need a solution, dont think Performance Point can handle it!

    My challenge at the moment is that I need to create a dynamic filter. To explain this is a cascading filter but not your normal cascading filter,
    ie, Year/Month/day etc.
    Here we have a single Dimension, Organisation. It contains every level of a business,
    Site,
    Dept, 
    Company name,
    Division
    Holding
    Strategic Area
    From these as a default we have 4 built hierarchies with a different combination of the above.
    Activity (Strategic Area, Dept)
    Organisation (company Name, site, Dept)
    Sites (Division, Site)
    Holdings(Holding, Strategic Area, site, Dept)
    At any given time we have have additional Hierarchies created within the Dimension, further adding to the hierarchy list.
    We now have a challenge where we require our users to be able to in the first filter select the Hierarchy they want to use, ie, Holdings, Site, Organisation
    or Activity. This should then cascade to the second filter and contain the relevant hierarchy and levels as a multi select filter. Of course this also needs to be connected to number of graphs, charts and scorecards on the page, dynamically. 
    I have gone around the houses to get this to work but not having any luck. Tried the variety of filters available, MDX, member selection, tabular,
    SharePoint, and attempted to mix and match to get this to work. I cannot find a way but I don't believe this is not possible.
    If it is not possible we must look around for another front end solution for our BI Dashboards which I would prefer to avoid. Any response or suggestion
    would be much appreciated.
    Regards,
    Sheb

    Hi Sheb,
    Please check the articles below and see if cascading filter in PerformancePoint Dashboard can be help:
    http://technet.microsoft.com/en-us/library/hh272541(v=office.15).aspx
    http://www.dotnetcurry.com/showarticle.aspx?ID=872
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to keep files from disappearing when using Dynamic link to AE from PremProCS4?

    I am at my wits end here and hope someone can offer a solution.  I use Dynamic Link in PremProCS4 to link a clip in my timeline to AfterEffects.  I follow the instructions in my book and everytime I close my files and reopen..I loose the clip along with the effects...I get the place card instead.  Here are the steps I do as per the Adobe Classroom in a Book Explains:
    I double click on my .MTS file in the Project Board so it comes up on my Source Screen.
    I take select the part of the clip I wish to use in my timeline and drag it to the appropriate spot on a video layer.
    I then right click the "clip" and select "Replace With After Effects Comp"
    I then name the new file.  name or whatever.aep
    It opens in AE
    I then apply two simple effects... keying and a cartooning effect I use from NewBlue Cartooner.
    As instructed I then go directly back to PremPro and do a "render" by pressing the Enter Key.  This does not work since I only get a yellow bar above the clip instead of a red on???
    So then I save the PremPro project and close it then go to the AE project, save and close it.
    When I reopen PremPro the file has a place card in it and in AE it says I am missing a file.
    I have tried many different ways to do this process including re-importing the .MTS file.
    I can close PremPro and reopen it and all is the same as long as I don't close the AfterEffects project.  Once AE is closed it looses the file.  On a note here I keep all my computer source files in the same place and it never changes plus they are in my PPro Project as well.  I never change the names so this isn't this reason.
    Is there a tried and true method to select a piece of clip in the video layer in Prem Pro and add effects from AE and not have it misplace the files?
    Thanks  Kate

    Hi Mylenium, and thank you for taking the time to respond.
    Your idea of renaming comps got me to thinking..hmm.
    So I went back with a fresh mind this morning and tried something else..and it worked...so far anyway.
    So far I figured it out... 
    Since the normal process to do this doesn't work for me ..and apparently many others..here is the solution for those of you having similar issues.
    In PremPro select the desired clip you wish to place effects on
    Rename it and save
    R click and "Replace with AE composition"
    Name new file
    You will see three files pop up in AE in the project panel.
    The original source clip .. in my case.. shows an icon that lets me know it isn't the true file.
    Highlight this file with a click and then go Ctrl H (for PCs)
    The group of computer source clips you use for your project will come up.. double click on the original clip you had imported into your PPro project.
    The source file icon in AE will change to an icon that denotes the true file...save
    Go to your still open Ppro project and make sure it carried the effects over..save.
    Now you can save and close the AE project.
    So for this works for me today and I hope this helps anyone else dealing with a similar issue.
    Thanks.

  • How to keep files from disappearing when using Dynamic link to AE in PremProCS4?

    I am at my wits end here and hope someone can offer a solution.  I use Dynamic Link in PremProCS4 to link a clip in my timeline to AfterEffects.  I follow the instructions in my book and everytime I close my files and reopen..I loose the clip along with the effects...I get the place card instead.  Here are the steps I do as per the Adobe Classroom in a Book Explains:
    I double click on my .MTS file in the Project Board so it comes up on my Source Screen.
    I take select the part of the clip I wish to use in my timeline and drag it to the appropriate spot on a video layer.
    I then right click the "clip" and select "Replace With After Effects Comp"
    I then name the new file.  name or whatever.aep
    It opens in AE
    I then apply two simple effects... keying and a cartooning effect I use from NewBlue Cartooner.
    As instructed I then go directly back to PremPro and do a "render" by pressing the Enter Key.  This does not work since I only get a yellow bar above the clip instead of a red on???
    So then I save the PremPro project and close it then go to the AE project, save and close it.
    When I reopen PremPro the file has a place card in it and in AE it says I am missing a file.
    I have tried many different ways to do this process including re-importing the .MTS file.
    I can close PremPro and reopen it and all is the same as long as I don't close the AfterEffects project.  Once AE is closed it looses the file.  On a note here I keep all my computer source files in the same place and it never changes plus they are in my PPro Project as well.  I never change the names so this isn't this reason.
    Is there a tried and true method to select a piece of clip in the video layer in Prem Pro and add effects from AE and not have it misplace the files?
    Thanks  Kate

    Hi Curt, and thank you for taking the time to respond.
    Its odd how I've been trying to figure this one out for a long time and I tried your suggestion but it didn't make any difference..darn.
    In the AE forum they say this is quite common and no one really knows why...double darn.
    So I went back with a fresh mind this morning and tried something else..and it worked...so far anyway.
    So far I figured it out... I guess I just needed to ask the question and write it all out to help get my brain working in the right direction: 
    Since the normal process to do this doesn't work for me ..and apparently many others..here is the solution for those of you having similar issues.
    In PremPro select the desired clip you wish to place effects on
    Rename it and save
    R click and "Replace with AE composition"
    Name new file
    You will see three files pop up in AE in the project panel.
    The original source clip .. in my case.. shows an icon that lets me know it isn't the true file.
    Highlight this file with a click and then go Ctrl H (for PCs)
    The group of computer source clips you use for your project will come up.. double click on the original clip you had imported into your PPro project.
    The source file icon in AE will change to an icon that denotes the true file...save
    Go to your still open Ppro project and make sure it carried the effects over..save.
    Now you can save and close the AE project.
    So for this works for me today and I hope this helps anyone else dealing with a similar issue.
    Thanks.

  • Materialized view with dynamic filter

    I have a query which has a dynamic filter in the where clause. Dynamic in the sense, the value in the where condition will be obtained only when the query is run.
    The user interface is Business Objects tool i am using, based on the user login variable, the query is formed. Is there a possibilty to create a materialized view using this query.
    The query looks like this. The part in BOLD section is the filter. This query is taking long time and hence i am going for materialized view. Please suggest a solution
    SELECT
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_5_DESC,
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR = ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_PERIOD BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_PERIOD ) then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when
    PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1
    AND PERIOD_DIM.FISCAL_DAY_IN_YEAR BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_YEAR )
    then SALES_FACT.NET_SALES_USD else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR = ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR )and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.MUNITS_SOLD_QTY else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_PERIOD BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_PERIOD ) then SALES_FACT.MUNITS_SOLD_QTY else 0 end),
    SUM(case when
    PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.MUNITS_SOLD_QTY
    else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_YEAR BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_YEAR )
    then SALES_FACT.MUNITS_SOLD_QTY else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR = ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR ) and PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then
    SALES_FACT.CASES_SOLD_QTY else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_PERIOD_NBR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_PERIOD_NBR )and PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_PERIOD BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_PERIOD ) then SALES_FACT.CASES_SOLD_QTY else 0 end),
    SUM(case when
    PERIOD_DIM.FISCAL_YEAR=( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR ) then SALES_FACT.CASES_SOLD_QTY
    else 0 end),
    SUM(case when PERIOD_DIM.FISCAL_YEAR= ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR )-1 AND PERIOD_DIM.FISCAL_DAY_IN_YEAR BETWEEN 1 AND ( DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_DAY_IN_YEAR )
    then SALES_FACT.CASES_SOLD_QTY else 0 end),
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR,
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_MONTH_NAME,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_6_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_7_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_8_DESC,
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SOLD_TO_CUST_NAME),
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SHIP_TO_CUST_LOC_NAME)
    FROM
    DM_SALES.SALES_ORG_DIM,
    PERIOD_DIM,
    SALES_FACT,
    DM_SALES.CURRENT_DATE_PERIOD_DIM,
    SHIP_TO_CUST_DIM
    WHERE
    ( SALES_FACT.INVOICE_DATE_KEY(+)=PERIOD_DIM.PERIOD_KEY )
    AND ( SHIP_TO_CUST_DIM.SHIP_TO_CUST_KEY=SALES_FACT.SHIP_TO_CUST_KEY )
    AND ( SALES_FACT.SALES_ORG_KEY=DM_SALES.SALES_ORG_DIM.SALES_ORG_KEY )
    AND ( PERIOD_DIM.PERIOD_KEY<=DM_SALES.CURRENT_DATE_PERIOD_DIM.PERIOD_KEY )
    AND
    ( DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_5_DESC=(SELECT DM_SALES.SECURITY_HEADER.SALES_ORG_POSITION_DESC from DM_SALES.SECURITY_HEADER
    WHERE DM_SALES.SECURITY_HEADER.BOLOGIN = @VARIABLE('BOUSER')) ) AND
    ( PERIOD_DIM.FISCAL_YEAR>=DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR-1 )
    GROUP BY
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_5_DESC,
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_YEAR,
    DM_SALES.CURRENT_DATE_PERIOD_DIM.FISCAL_MONTH_NAME,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_6_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_7_DESC,
    DM_SALES.SALES_ORG_DIM.POSITION_LEVEL_8_DESC,
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SOLD_TO_CUST_NAME),
    CONCAT (CONCAT(SHIP_TO_CUST_DIM.SOURCE_CUST_NBR,'-'),SHIP_TO_CUST_DIM.SHIP_TO_CUST_LOC_NAME)

    You could potentially create a single materialized view that had no restriction on the BOLOGIN column and allow Oracle to use that materialized view to be used to satisfy requests from the different users. You may need to add appropriate indexes to the materialized view for that to be a reasonable option, depending on how many distinct BOLOGIN values you expect.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to set a dynamic filter to a prompted one?

    Hello:
    I have a dashboard prompt whose values determine the columns for a constructed dynamic filter column using case statement.
    There is another dashboard prompt whose value determine the the values for the dynamic filter column.
    I have a need to set this dynamic filter to the operator 'is prompted'. According to the OBIEE documentation, the requirement for 'is prompted' filter is to have the dashboard prompt column match with the filter column.
    I currently use a presentation variable for the dashboard prompt column that gives the filter value.
    How do I make my dynamic filter to be prompted (for pre-filtering results as a default behavior) and subsequently use the presentation variable (derived from the dashboard prompt) if a user enters the appropriate prompt values?
    Here is an example:
    Dashboard prompt: Location Type-> (State, District, City) (The case statement on my filter determines the appropriate logical column State or District or City)
    Filter Value: Dallas (pv1)
    The dynamic filter will generate "City" = '@{pv1}' (Dallas in the above example)
    I want this dynamic filter to be set to 'is prompted' for pre-filtering results as a default behavior.
    Thanks for reading this far and looking forward to your suggestions.
    Regards
    Sankar Bala

    Please read this carefully, you may find what you are looking for:
    Dynamic dashboard prompts and columns used in multifunctional report, full guided navigation
    http://108obiee.blogspot.com/2009/08/dynamic-dashboard-prompts-and-columns.html
    Or this one:
    http://obiee101.blogspot.com/2009/04/obiee-dynamic-prompt-content.html
    Regards
    Goran
    http://108obiee.blogspot.com

  • Content Query not producing results when using [Me] filter

    Hi
    I'm using a Content Query web part and I'm trying to show the most recent document modified by each site user by applying it across the site collection and using the Filter, Modified By [_Hidden] equals [Me]. However, this doesn't seem to work for any user
    - the web part is always blank. I have tried different combinations such changing equals to contains, and using the Modified By field etc - nothing gives me the correct results. If I instead take the [Me] out and instead use the "people chooser"
    and set to a specific person then I seem to get the results I would expect - however I cannot hard code a given user.
    Does anyone know how to use [Me] correctly?
    Thanks

    Hi  sjb500,
    According to your description, please take steps as below to meet your demand:
    With the page layout open in Design view, double-click the Content Query Web Part.
    In the Content Query Web Part dialog box, click the plus sign (+) next to Query to expand it.
    In the Source section, click Show items from all sites in this site collection.
    In List Type section, in the Show items from this list type, click Document Library.
    In the Content Type section, in the Show items of this content type group list, click Document
    Content Types.
    In the Content Type section, in the Show items of this content type list, click Document.
    In the Additional Filters section, under Show Items When, click Modified By [_Hidden] in
    the first box, click Is Equal To in the second box, and then click [Me].
    In the Content Query Web Part dialog box, click the plus sign (+) next to Presentation to expand it.
    In the Grouping and Sorting section, in the Sort items by list, click Modified
    and Select Show items in descending order.
    Click OK.
    Reference:http://office.microsoft.com/en-us/sharepoint-designer-help/display-data-from-multiple-lists-with-the-content-query-web-part-HA010174134.aspx
    [Me] is a variable that stands for the user who is currently viewing the page that contains the Content Query Web Part in the browser.
    Here is some scenarios using [Me] in Content Query Web Part:
    http://social.technet.microsoft.com/Forums/en-US/346ffbe6-d7ba-467e-b7f5-6d6e289677a1/user-tasks-web-part
    Please inform me freely if you have any questions.
    Thanks

  • 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?

  • Dynamic Filter not being refreshed

    I have a problem with a dynamic filter refreshing properly.
    In a 7.0 Bex Query,  I have a variable where I put in a Sales Rep.  Based on the Sales Rep entered ('Z_M1Y_SALESREP04' ), I have a user exit that reads that Sales Rep and goes and gets all their customers:
    IF i_step = 2.
        READ TABLE i_t_var_range
             WITH KEY vnam = 'Z_M1Y_SALESREP04' INTO ls_var.
    When I run this for the first time, lets say Sales Rep A, it goes out and gets all the correct customers (shown in the Dynamic Filters of the Information tab).  Now, if I change Sales Rep A to Sales Rep B, I am still getting Sales Rep A's customers.  Does anyone know why it still shows Sales Rep A's customers?
    Thanks,
    Patrick

    If your using BEx Web for executing this query, try deleting the cache on your browser before re-executing the query with the new Sales Rep. The other thing you may want to consider is adding the following code prior to the READ TABLE statement:
    CLEAR: ls_var.
    This will ensure that the variable being read into won't have any values in it before it's being populated.

  • When to not use dynamic in C#

    I'm making a class similar to the following:
    public class KeyValue
    public readonly string key;
    public readonly object value;
    Value could be of any object type as a result of this design.
    Alternatively, I could just use dynamic for value and it'll make my life easier, because it would mean no type-casting, and also because, as far as I understand, I could use value types without needing to box/unbox.
    Is there any reason not to use dynamic and to use object instead? Because I can't think of any.
    Note: I realize generics are much more suited for this, but it doesn't work for my needs. The above is really a simplification just for the purposes of this question.

    Hi
    StrikeBT,
    >>Is there any reason not to use dynamic and to use object instead? Because I can't think of any.
    The compiler ignores the variables
    defined by dynamic. So it will brings some errors in runtime.
    For example:dynamic typing is that it often hides bugs that would be otherwise revealed during compilation. Such bug then only manifests on run-time, which of course makes it much harder to detect.
    Please take a look at the example in the following articles. Note the samples it would be helpful to understand more.
    What is the difference between “dynamic” and “object” keywords?
    dynamic type in C#.4.0  Where and how to use? How does it differ from var and object?
    >>Note: I realize generics are much more suited for this, but it doesn't work for my needs.
    Yes,  for example code as below
    public interface IXRefData
    // TODO: add definition here
    public class XRefComponent<TData>
    where TData : IXRefData
    public void Update() { }
    public class XRefPickData : IXRefData { }
    public class XRefPackData : IXRefData { }
    public class XRefUpdator
    private List<dynamic> components = new List<dynamic>();
    public List<dynamic> Components
    get { return components; }
    set { components = value; }
    class Program
    static void Main(string[] args)
    XRefUpdator updator = new XRefUpdator();
    // Now we can add two different classes to list Components
    updator.Components.Add(
    new XRefComponent<XRefPickData>());
    updator.Components.Add(
    new XRefComponent<XRefPackData>());
    Thanks,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • XLLT mapping program

    Hi, I have to send an Idoc from SAP to a 3rd party using webservices. The request message( for web service) has 5 inputs.Idoc has to as a first input rest of the inputs are hard coded values.     Now I want the Idoc in the form of a string on the tar

  • Why was mobile e-mail retired?

    I have no idea what type of response to expect here.  It is pretty clear that Verizon has no regard for my needs as a 13+ year loyal customer.  My loyalty has remained because Verizon provides the services that I want and need at a fair price.  Howev

  • Can I get OCR software for a 8600 plus with a mac??

    can I get OCR software for a 8600 plus with a mac?? if so , how? This question was solved. View Solution.

  • Low Battery time after Mountain Lion Update

    I would like to know why the Mountain Lion uses more energy... because i realized that my MBP 2011 is using more battery... before I updated it, it usually take 5 or 6 hours to be empty and now it is taking 3 or 4 hours on it's better time... =x is t

  • Mac os 10.3.9 emulation in 10.4 or later.

    I have a program that runs in 10.3.9, but was not written to run in later os 10.4 etc. I cant upgrade my mac to run all the other software that will work in 10.4 and must keep this mac as a dedicated machine for this one program. Anyone hav a fix or