Af:query filter state becomes incorrect on navigating away and back to page

Hi,
I've added two named view criteria to my VO. One to show all records ('All Records') and one to show records created by the currently logged in user ('My Records'). I've added an af:query element on my page to allow the user to select one of these two named criteria. This all seems to work, however I've noticed I'm getting some strange behaviour when I navigate to a different page and then return to my filtered page.
When I load the page 'All Records' shows by default, I can switch between 'My Records' and 'All Records' successfully (data set changes). However if I do the following:
- select 'My Records'
- navigate to another page
- navigate back to the original page
'My Records' is still selected (great) and the table still shows the results of 'My Records' (great), but when I now select 'All Records', I seem to be only operating within the scope of records created by the currently logged in user. So 'All Records' now shows the same as 'My Records'.
It seems that by navigating away from then back to my page, I'm fixing whatever criteria were being applied to the VO at the time I left the page. Then all queries from that point on operate only on a reduced data-set.
How can I stop this happening? I'd ideally like to be able to fix this without having to reset the filter back to 'All Records' whenever a user enters the page. I like the fact that the selected search is remembered, I just want All Records not become broken. I've tried pressing 'Reset' on all the queries, but this doesn't help.
Any ideas on how what's going wrong here?
Edited by: japher on Aug 17, 2009 3:25 PM

There are several issues related to ADF Faces query components. One of them is that these components do not remove eventual previously applied view criterias. In fact query components keep track of last applied view criteria since current entry into the page. If you have entered the page, applied a view criteria and executed the query and after that you have switched the view criteria and executed another query, then everything is OK (since you have not left the page and it keeps track of the first applied criteria). But if you have left the page between the two query executions, then the previously applied view criteria remains applied (since you have applied it before current entry into the page) and it affects the query result.
There are several workarounds of this problem. One of them is to include your ViewObject twice into ApplicationModule's data model - 1st one with 1st ViewCriteria pre-applied and 2nd one with 2nd ViewCriteria pre-applied - and to use two ViewObject instances in your application instead of switching ViewCriterias. Another workaround is to set custom query processing method in "queryListener" property of the query component. You have to implement a custom processQuery() method in some managed bean that clears any unnecessary applied ViewCriterias at the beginning and after that invokes the standard implementation of processQuery() method of the corresponding FacesCtrlSearchBinding. In order to be able to find the corresponding search binding within your custom method you will have to get the binding's name. You can either hard-code it within your custom method or use <af:setPropertyListener> tag to write the binding's name to the pageFlowScope, for example.

Similar Messages

  • Sql query-filter if 1 set of data exists and in the same time 2 set doesnt

    Hi guys,
    I need to write a query where I filter on certain data being present, but in the same time other data from the same table being not present.
    For example:
    ProceduresTable:
    Type 1
    Type 1
    Type 2
    Type 2
    Type 1
    MyTable:
    Name
    OtherFields
    JoiningTable (many to many)
    ProceduresTable_Key
    MyTable_Key
    I need to select all records from MyTable and Procedures for which there are procedures from Type 1 but there are no procedures from Type 2 in the same time.
    So far I've been only able to do that by using subqueries and I think there should be an easier way to do that.
    Here is what I have:
    Select * From MyTable, Procedures, JoiningTable Where JOINING_CONDITIONS AND Type = 1 AND NAME_SOME_COLUMN NOT IN (SELECT NAME_SOME_COLUMN FROM ... WHERE Type = 2 and inner.Name = outer.Name)
    Hope you understand my meta code. I have Oracle 9 db.
    Thanks a lot!

    Hi,
    Welcome to the forum!
    Whenever you have a question, it helps if you post a specific example. Include CREATE TABLE and INSERT statements for a little sample data, and also post the results you want from that data.
    if you can use commonly available tables (like those in the scott or hr schemas) to illustrate your proble, then you don't have to post the sample data; just the results.
    For example, I think you're asking something like this:
    "How can I find information about people in the sciott.emp table who are in a department that has at least one CLERK ( that is, a row with job='CLERK') but no SALESMAN? That is, I want these results:
    {code}
    ENAME DEPTNO JOB
    CLARK 10 MANAGER
    KING 10 PRESIDENT
    MILLER 10 CLERK
    JONES 20 MANAGER
    FORD 20 ANALYST
    ADAMS 20 CLERK
    SMITH 20 CLERK
    SCOTT 20 ANALYST
    {code}
    One way is to use CASE expressions instead of WHERE clauses to test for the criteria, then using the reults of the CASE expressions in the WHERE clause.
    For example:
    WITH     got_cnts     AS
         SELECT     ename,     deptno,     job
         ,     COUNT ( CASE
                             WHEN  job = 'CLERK'
                       THEN  1
                         END
                    ) OVER (PARTITION BY deptno)     AS clerk_cnt
         ,     COUNT ( CASE
                             WHEN  job = 'SALESMAN'
                       THEN  1
                         END
                    )     OVER (PARTITION BY deptno)     AS salesman_cnt
         FROM     scott.emp
    SELECT     ename,     deptno,     job
    FROM     got_cnts
    WHERE     clerk_cnt     > 0
    AND     salesman_cnt     = 0
    ;The problem here is that you can't always tell, by looking at any one row, if it should be included or not; in this case, you need to know something about the department as a whole. Analytic functions can look at the department as a whole, but analytic functions are computed after the WHERE clause is applied, so to use the results of the analytic functions in a WHERE clause, we need to do the analytics first, in a sub-query, and the WHERE clause later.
    Sometimes (as in the example above) analytic functions are useful; other times, aggregate functions are more appropriate, depending on the exact requirements.
    Edited by: Frank Kulash on Apr 12, 2010 9:00 AM

  • Use navigation model and runtime created pages

    Hi,
    I have my Portal Application created in JDeveloper, with set of base pages. Pages are stored in default-navigation-model, so I could use i18n in navigation rendering. I'd also like to use runtime pages management. When I enter admin panel, I can add new pages, change order of pages created in jdeveloper, or show/hide them. However those changes are not reflected in the portal, navigation always looks the same, still displays pages I've marked as hidden - is navigation cached somewhere?
    If I create new page in admin panel, it isn't displayed in navigation too. However I could click on this page title in admin panel, go to this page and edit its content - of course even then page is not displayed in the meny, none of menu items is marked a highlited.
    What am I doing wrong? I followed Yannick's tutorial http://www.yonaweb.be/webcenter_tutorial/closer_look_at_navigation_model and switched from page hierarchy to navigation model. Maybe this is the reason?

    I got back to your tutorial and haven't found a place where it'd be explained directly. Maybe "between the lines", but as for Webcenter newbie I haven't notice it.
    I switched back to pages hierarchy. I was using navigation model to achieve i18n in navigation, however I also had problems about that, and as you suggested me once in another thread I changed page titles to PortalBundle keys and rendered values from bundles manually.
    Therefore now comes the second question in this area - is it possible to use page hierarchy, runtime crated pages and still localize page titles?
    P.S. As an experienced Liferay Portal developer, I really try to see any benefits of Webcenter in building custom portals area and still I can hardly find any... ;)

  • Custom navigation: sorting and hiding certain pages / communities

    We have constantly struggled with our navigation in the portal. Our current setup is to not display anything where name begins with 'Hide - ', so if a community has 10 pages but only 3 should show up in the navigation, 7 of the pages need to be named "Hide - ..." This obviously has some disadvantages as the word Hide - is visible some places. Another issue is the differentiation between a 'page' and a 'community' to end users. Our portal looks like a website users have no idea what the difference is. To them, everything is just a page. Currently we group and style pages and communities different, like so:
    parentcomm
    --subpage1
    --subpage2
    --subcomm1
    --subcomm2
    I'm trying to come up with some ways to improve the navigation. One idea would be to set a custom property isHiddenFromNav that would be read presumably in a custom tag. This is currently the way that the sorting of communities works, a sortorder property is filled in. I'm curious about the performance of reading custom properties, however. Is it faster to use the database api or the search api? How can i ensure these values are cached?
    As far as improving the usability, i'm exploring mixing pages and communities, so a community just looks like a page (but with a plus or an arrow to indicate there is more stuff there).

    In our customization we are using 4 custom property's for portlets. Moreover, we are not basing on portal cache, we have implemented static hash table's where each property is stored. PEI is taking care about the refreshing properties in hash tables on current portal instance (NewEditObjectActions.xml), there is also code responsible for sync new value with other portal servers.
    As portal server we are using WAS 6.0 (4 machines, 8 jvm on each server). WAS has nice feature DRS (Data Replication Service, easy to use, operate with one jndi name) which propagate new value over all claster members .
    Bellow you can find some informations about our performance test.
    Home page contain usually ~10 portlets
    Scenario details:
    - Virtual users: 1500
    - Ramp up: 3 virtual users logging in every 2 seconds
    - Think time: 5 sec
    - Top load duration: 45 minutes
    - Virtual user’s browser flow:
    Login (1 time)
    Home Page (100%)
    Perform some operation in 2 portlets (search, go to archive, back, search)
    Change language (5%)
    Logoff (just 1 time, at the end of the test)
    Results: average time response less than 3s, ~250 pages/s.
    I hope this will be helpful for you.

  • Problems about  query filter (BEx).

    Hello there,
    I have some problems about  query filter (BEx).
    I have master data and I want to use attribute in this master data to dynamic filter in query(BEx).
    But this attribute is key figure. I can't done it now. TT
    Is this possible? If yes, could anyone advise how this is to be done?
    Thanks in advance.

    Hi
    In BEx there is option as 'Exceptions' & 'Conditions'. If you go in condition, you can specify range for key figure output. This is either predefined or by user selection. You create the condition as per your requirement & it will show you filtered data.
    How to create conditions you will find easily on this site.
    You can create as many conditions as no of filters you want. You can create these at query level also at report output level.

  • How can I disable 'backspace' key from navigating back a page?

    Several times over the last couple weeks, I type up a very well thought out response on Facebook in political conversations with friends. An hour or two into my work, I hit backspace with the intent of editing what I wrote (maybe after I scrolled or something, so maybe I unintentionally took the edit window out of focus). The navigator takes me back a page and I lose my two hours of work. Infuriating! Shortcuts with the ability to wipe out two hours of works should be disable-able. Not only that, I feel that is an unsafe shortcut for this very reason, and would have added a SHIFT modifier key or something like that. I think I invented a cool word: disable-able.

    You can set the Integer pref <b>browser.backspace_action</b> to <i>2</i> on the <b>about:config</b> page to disable the backspace action. BTW Shift + Backspace does the reverse: going Forward if possible, so that is taken as well.
    * http://kb.mozillazine.org/browser.backspace_action
    *http://kb.mozillazine.org/about:config

  • After firefox 30 was installed this week the browser is slow but will not allow navigation away until finished

    After firefox 30 was installed this week the browser is slow on sites with a large amount of information, data to set up,or many pictures or videos but will not allow navigation away until completely finished. Stop and back does not help it just continues the original site. Prior to release of 30 although slow it did allow navigation away or back.

    Hello dexrek
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    '''also,''' in your system details we can see that you have in your[http://kb.mozillazine.org/Profile_folder_-_Firefox#Windows profile folder] a [http://kb.mozillazine.org/User.js_file User.js] file.
    (The user.js file does not exist by default. If you create the file forget it, if not, delete the User.js file. Note that some programs create and write in the User.js file also).
    thank you

  • Query WHERE statement to compare db record date

    Hello
    I can't get this where statement to work. I have it now so it is not throwing any errors, but it also isn't doing what it is supposed to.
    I am trying to match records date in my table with the actual calendar date, if there is a match, my cfif will take that match, and make it a link in the proper date. (it is a small calendar with the month, and the days of week with dates, each date will be normal, accept if there is a record for that date, it makes a link.
    This is my code, like I said, It doesn't throw an error, but it is not working either.
    My Query:
    <cfquery name="CaleventRec" datasource="#APPLICATION.dataSource#">
    SELECT events.eventDate, events.ID AS ID
    FROM events
    WHERE eventDate >= #CreateODBCDate("07/12/2005")# AND eventDate = #Days#
    </cfquery>
    This is the cfif statement:
    <cfoutput query="CaleventRec">
    <cfif Days EQ '#eventdate#'>
    <a href = "detail.cfm?id=#ID#">#Days#</a>
    </cfif>
    </cfoutput>
    this is all the code together:
    <cfquery name="CaleventRec" datasource="#APPLICATION.dataSource#">
    SELECT events.eventDate, events.ID AS ID
    FROM events
    WHERE eventDate >= #CreateODBCDate("07/12/2005")# AND eventDate = #Days#
    </cfquery>
                            <!--- Set the ThisDay variable to 0. This value will remain 0 until the day of the week on which the first day of the month falls on is reached. --->
                            <cfset ThisDay = 0>
                            <!--- Loop through until the number of days in the month is reached. --->
                            <cfloop condition = "ThisDay LTE Days">
                                <tr>
                                <!--- Loop though each day of the week. --->
                                <cfloop from = "1" to = "7" index = "LoopDay">
                                <!--- This turns each day into a hyperlink if it is a current or future date --->
                                   <cfoutput query="CaleventRec">
              <cfif Days EQ '#eventdate#'>
                                   <a href = "detail.cfm?id=#ID#">#Days#</a>
                                   </cfif>
              </cfoutput>
                                <!---
                                    If ThisDay is still 0, check to see if the current day of the week in the loop matches the day of the week for the first day of the month.
                                    If the values match, set ThisDay to 1.
                                    Otherwise, the value will remain 0 until the correct day of the week is found.
                                --->
                                    <cfif ThisDay IS 0>
                                        <cfif DayOfWeek(ThisMonthYear) IS LoopDay>
                                            <cfset ThisDay = 1>
                                        </cfif>
                                    </cfif>
                                <!---
                                    If the ThisDay value is still 0, or is greater than the number of days in the month, display nothing in the column. Otherwise, dispplay
                                    the day of the mnth and increment the value.
                                --->
                                        <cfif (ThisDay IS NOT 0) AND (ThisDay LTE Days)>
                                        <cfoutput>
                                        <!--- I choose to highlight the current day of the year using an IF-ELSE. --->
                                            <cfif (#ThisDay# EQ #currentday#) AND (#month# EQ #startmonth#) AND (#year# EQ #startyear#)>
                                                <td align = "center" bgcolor="##FFFF99">
                                                    <cfset dayview = #dateformat(createdate(#year#, #month#, #thisday#), "mm/dd/yyyy")#>
                                                    <font class = "calendartoday">#ThisDay#</font>
                                                </td>
                                            <cfelse>
                                                <td align = "center">
                                                    <cfset dayview = #dateformat(createdate(#year#, #month#, #thisday#), "mm/dd/yyyy")#>
                                                    <font class = "calendar">#ThisDay#</font>
                                                </td>
                                            </cfif>
                                        </cfoutput>
                                        <cfset ThisDay = ThisDay + 1>
                                        <cfelse>
                                            <td></td>
                                    </cfif>
                                </cfloop>
                                </tr>
                        </cfloop>
    I know my where statement is incorrect, I am also not sure if my cfif statement is correct either. Can anyone help me figure this out?
    thank you!
    CFmonger

    All the rest of the code works. The only part of this that doesn't work is the trying to make a link part.
    Let me  show you where I am, and what I did, then maybe you will see I am closer to the solution... I think. I made this calendar so you can cycle through the months. So if you are looking at June, you see Sun - Sat and the dates for each day of the week in the month of june. You can then choose to click the next button that will bring up the month of july, and you can keep on going as long as you want.
    That is one function and it working as of right now. This Calendar also shows what day of the week we are on. If it is June 16th then June 16 is yellow. This also works.NOw, what I need to do it to have my query, not only filter out the records for the month, (if we are in June, then the Query separates out the records for June, the date in my DB is set to mm/dd/yyyy) This query also needs to match it to a number, the days of the month. So, if there is a record on the 25th of June, then the 25th of June will be a link to another page using it's ID in the address line. If you go to July and there are lets say 3 records for that month, then all 3 dates will become a link to the same other page using it's ID in the url.
    This is what I have now. I tied the Query into the next / prev function so it filters the month, so far it seems to work, I can do a cfdump up to the point of my cfif statement and get the proper number from the date, my cfif is not firing so If I do a dump after it, it doesn't dump anyhting.
    I will post JUST the query code, then post the whole calander code so you can see it all together.
    The Query / link code:
    <!--- This is part of the next / prev nav to cycle through the months --->
    <cfset NextMonthYear = DateAdd('m', 1, ThisMonthYear)>
    <cfset NextMonth = DatePart('m', NextMonthYear)>
    <!--- My Query --->
    <cfquery name="CaleventRec" datasource="#APPLICATION.dataSource#">
    SELECT events.eventDate, events.ID AS ID
    FROM events
    WHERE eventDate Between #NextMonthYear# and #NextMonth#
    </cfquery>
    <!--- my output / cfif stement --->
    <cfoutput query="CaleventRec">
    <cfset comparison = DateCompare('#dateFormat(eventDate, 'dd')#', '#Days#', 'd')>
    <!--- When I do a cfdump here, I get the number of the first record with a day date in the DB for the month of june
    <cfdump var="#dateFormat(eventDate, 'dd')#">
                                   <cfabort>--->
    <cfif #Days# EQ ('#dateFormat(eventDate, 'dd')#')>
    <!--- When I do a dump here, I do not get anyhting, no numbers it doesn't fire
    <cfdump var="#eventDate#">
    <cfabort>--->
    <a href = "detail.cfm?id=#ID#">#Days#</a>
    </cfif>
    </cfoutput>
    ok, now that is the part to stream in the DB info into the calander.
    Here is all the code, like I said, it all works, just not making each day a link that has a record in the DB.
    <!--- Declaration of the variables --->
           <cfparam name = "month" default = "#DatePart('m', Now())#">
    <cfparam name = "year" default = "#DatePart('yyyy', Now())#">
    <cfparam name = "currentday" default = "#DatePart('d', Now())#">
    <cfparam name = "startmonth" default = "#DatePart('m', Now())#">
    <cfparam name = "startyear" default = "#DatePart('yyyy', Now())#">
    <!--- Set a requested (or current) month/year date and determine the number of days in the month. --->
    <cfset ThisMonthYear = CreateDate(year, month, '1')>
    <cfset Days = DaysInMonth(ThisMonthYear)>
    <!--- Set the values for the previous and next months for the back/next links.--->
    <cfset LastMonthYear = DateAdd('m', -1, ThisMonthYear)>
    <cfset LastMonth = DatePart('m', LastMonthYear)>
    <cfset LastYear = DatePart('yyyy', LastMonthYear)>
    <cfset NextMonthYear = DateAdd('m', 1, ThisMonthYear)>
    <cfset NextMonth = DatePart('m', NextMonthYear)>
    <cfset NextYear = DatePart('yyyy', NextMonthYear)>
    <cfset PreviousDay = DateAdd('d', -1, ThisMonthYear)>
    <cfset CurrentYear = DatePart('yyyy', Now())>
    <table border="0" width="100%" bgcolor ="#ffffff">
                <tr>
                    <td align = "center" valign="top">
                        <table border="0" width="100%" height="100%">
       <tr>
          <th align="center" colspan="7" bgcolor="#2b4e6e">
       <cfoutput>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="15%" align="left" valign="middle">
      <cfif (LastYear lt CurrentYear) OR (LastYear lte CurrentYear AND LastMonth lt startmonth)>
    <cfelse>
      <a href ="index.cfm?month=#LastMonth#&year=#LastYear#" class="calNav">Prev</a></cfif></td>
            <td width="72%" align="center" valign="middle"><FONT SIZE="3" face="Arial, Helvetica, sans-serif" color="##ffffff">#MonthAsString(month)# #year#</FONT></td>
            <td width="13%" align="right" valign="middle">
      <cfif (NextYear lt CurrentYear) OR (NextYear lte CurrentYear AND NextMonth lt startmonth)>
    <cfelse>
    <a href = "index.cfm?month=#NextMonth#&year=#NextYear#" class="calNav">Next</a>  </cfif></td>
          </tr>
        </table></cfoutput></th>
       </tr>
       <tr>
        <td><FONT SIZE="2" face="Arial, Helvetica, sans-serif" color="#333366">Sun</FONT></td>
        <td><FONT SIZE="2" face="Arial, Helvetica, sans-serif" color="#333366">Mon</FONT></td>
        <td><FONT SIZE="2" face="Arial, Helvetica, sans-serif" color="#333366">Tue</FONT></td>
        <td><FONT SIZE="2" face="Arial, Helvetica, sans-serif" color="#333366">Wed</FONT></td>
        <td><FONT SIZE="2" face="Arial, Helvetica, sans-serif" color="#333366">Thu</FONT></td>
        <td><FONT SIZE="2" face="Arial, Helvetica, sans-serif" color="#333366">Fri</FONT></td>
        <td><FONT SIZE="2" face="Arial, Helvetica, sans-serif" color="#333366">Sat</FONT></td>
       </tr>
    <cfquery name="CaleventRec" datasource="#APPLICATION.dataSource#">
    SELECT events.eventDate, events.ID AS ID
    FROM events
    WHERE eventDate Between #NextMonthYear# and #NextMonth#
    </cfquery>
                            <!--- Set the ThisDay variable to 0. This value will remain 0 until the day of the week on which the first day of the month falls on is reached. --->
                            <cfset ThisDay = 0>
                            <!--- Loop through until the number of days in the month is reached. --->
                            <cfloop condition = "ThisDay LTE Days">
                                <tr>
                                <!--- Loop though each day of the week. --->
                                <cfloop from = "1" to = "7" index = "LoopDay">
                                <!--- This turns each day into a hyperlink if it is a current or future date --->
             <cfoutput query="CaleventRec">
             <cfset comparison = DateCompare('#dateFormat(eventDate, 'dd')#', '#Days#', 'd')>
              <cfdump var="#dateFormat(eventDate, 'dd')#">
                                   <cfabort>
              <cfif #Days# EQ ('#dateFormat(eventDate, 'dd')#')>
              <cfdump var="#eventDate#">
                                   <cfabort>
                                   <a href = "detail.cfm?id=#ID#">#Days#</a>
                                   </cfif>
              </cfoutput>
                                <!---
                                    If ThisDay is still 0, check to see if the current day of the week in the loop matches the day of the week for the first day of the month.
                                    If the values match, set ThisDay to 1.
                                    Otherwise, the value will remain 0 until the correct day of the week is found.
                                --->
                                    <cfif ThisDay IS 0>
                                        <cfif DayOfWeek(ThisMonthYear) IS LoopDay>
                                            <cfset ThisDay = 1>
                                        </cfif>
                                    </cfif>
                                <!---
                                    If the ThisDay value is still 0, or is greater than the number of days in the month, display nothing in the column. Otherwise, dispplay
                                    the day of the mnth and increment the value.
                                --->
                                        <cfif (ThisDay IS NOT 0) AND (ThisDay LTE Days)>
                                        <cfoutput>
                                        <!--- I choose to highlight the current day of the year using an IF-ELSE. --->
                                            <cfif (#ThisDay# EQ #currentday#) AND (#month# EQ #startmonth#) AND (#year# EQ #startyear#)>
                                                <td align = "center" bgcolor="##FFFF99">
                                                    <cfset dayview = #dateformat(createdate(#year#, #month#, #thisday#), "mm/dd/yyyy")#>
                <font class = "calendartoday">#ThisDay#</font>
                                                </td>
                                            <cfelse>
                                                <td align = "center">
                                                    <cfset dayview = #dateformat(createdate(#year#, #month#, #thisday#), "mm/dd/yyyy")#>
                <font class = "calendar">#ThisDay#</font>
                                                </td>
                                            </cfif>
                                        </cfoutput>
                                        <cfset ThisDay = ThisDay + 1>
                                        <cfelse>
                                            <td></td>
                                    </cfif>
                                </cfloop>
                                </tr>
                        </cfloop>
                        </table>
                    </td>
                </tr>
            </table>
    It is kind of complicated and this is why I need help. Maybe I am wrong in the variables I am pulling, but like I say in my comments, so far I pulled the day part of the month I am in out of the records up until my cfif stement.Can this be done with what I have done so far? No need to rewrite the whole calander, just the part with the query if I miss what you are saying.

  • How can I use a variable in webi query filter

    I created a webi report using the fiscal year/month(period) field as a filter to show a window of 18 periods.  The report works just as requested using a between filter on fiscal period with prompts for both the start and ending periods.  Now I'd like to calculate the start period based on what was entered in the prompt for the ending period (e.g. enter 201106 for the TO prompt on the between statement and have the FROM statement filled in as 201001.)  I can create variables in the report to display both the user response to the ending period prompt and the calculated starting period, but I cannot figure out how to incorporate that calculated starting date into the FROM side of the between query filter.
    Any suggestions? 
    Thanks,
    Doug
    Sorry I got my froms and to's mixed up in the first draft. Edited by: Doug Roswold on Mar 4, 2011 6:27 PM

    Let me understand what you want to do.  You don't want to use two prompts, just one, insn't it?
    I mean, instead of:
    Filter area:
    Date between "From prompt" to "To Prompt"
    You want something like:.
    Filter area:
    Date between Variable  to "To Prompt"
    if I'm not wrong that's not possible to achieve in Webi Query  Panel.
    Can you modify your universe? The only way to achieve it is modifying your universe, creating your formula in the universe and assigning it to an object, so you can use this new object in your filter area like this:
    Date between MyUniverseObject  to "To Prompt"
    Edited by: PadawanGirl on Mar 4, 2011 8:15 PM

  • Error Message in Query Filter on attribute of 0MATERIAL filters charac.

    Hi All,
    i have a query with few variables , i used navigational attributes of 0material......
    I am getting the below Warning Message...  Ineed to supress the below Error Message....
    Please let me know the solution...
    Error Message: Filter on attribute of 0MATERIAL filters charac. values without master data
    Diagnosis
    Currently, it cannot be guaranteed that SIDs and master data exists for all characteristic attributes for the DataStore object to be read.
    There is a restriction on a navigation attribute of the listed characteristic in the query. This filters all characteristic values of the master-data bearing characteristic for which there is not yet master data out of the result.
    For performance reasons, this filtering is unavoidable.
    System Response
    Procedure
    In case of doubt, find other restirctions directly on the characteristic values of the characteristics contained in the DataStore object.
    Procedure for System Administration
      Notification Number DBMAN 345 
    Thanks All

    Dear all SAP Gurus,
    we've solved this problem and this is the solution:
    The warning is triggered by the method CL_RSDRV_ODS_QUERY-PROCESS_SFC_WITH_ATR when the BExFlag of the InfoProvider is not set. Using DSOs for direct update there is no change to change the BExFlag. As a result queries based on a DSO for direct update always throw the above mentioned warning when filter-characteristics are attributes.
    Regards, Clemens

  • Rich Client Query Filter Pane question

    I've browsed through various forums without finding an answer to my problem. I'm frustrated and hope someone else has been there/done that and can offer a suggestion to ease my pain.
    We're using BOXI 3.0, and my question is specifically about deciphering/maintaining the contents of the query filter pane in InfoView and/or Web Intelligence Rich Client.
    We have some complicated reports with numerous optional prompts. We realize this is not optimal, but need to maintain this reports until we can replace them.
    The filter panes are very complicated, since there are so many prompts, ANDs, and ORs and nested statements.
    Is there a way to see which universe component a query filter field is connected to? In the query results pane (on top), I can click on a field and it's source is highlighted in the universe tree view on the left. That doesn't happen when you click a field in the query filter pane.
    Is there some way I've not found yet, or is this an enhancement request for BOE? Thanks in advance.

    I guess this an enhancement request for BOE because I've never seen an option like that.  And I really wish that option existed.
    The only way I could think of to solve this problem is renaming all the objects of your universe.  This way you may know what class any object is related to when using the query filter panel.
    For example: You have 3 classes in the universe: Users, Quotes, Invoices.  Rename them with a prefix, let's say:
    U-Users
    Q-Quotes
    I-Invoices
    Then all the objects belonging to Users must be renamed with the U- prefix:
    U-User name
    U-User id
    And the same applies for the other classes objects:
    Q-Quotes:
        Q-quote id
        Q-User id
         Q-Amount
    I-Invoices:
       I-Invoice id
       I-Quote id
       I-Amount
    So if in one query filter panel you have a filter using the object Quote id, you'll see if this Quote id comes from Quotes or Invoices, because of the prefix Q- or I-.
    I don't know if it is a good practice but I hope it helps.
    Regards,
    Erika Atencio Harris
    Edited by: PadawanGirl on Jan 19, 2011 10:10 PM

  • Query on Stat Cube

    Hi,
    I am trying to get query list based on last used date.
    I ran query on stat cube 0BWTC_...
    Also, i got list of queries from the view v_compdir_compic in bw backend.
    But the query list i get from stat cube query is less than what i get from View table.
    there are aprox 300 less queries.
    can u please tell me why the list is different ?
    thanks,
    KS
    Edited by: Keral Smith on Nov 4, 2008 10:04 AM

    Hi Abhijit,
    We have all BW statistic cubes loaded on november 1st.
    which are 0bwtc_c01,.......they are for aggregate, for OLAP, for OLAP navigation etc.
    so how come the list of queries are different than V_COMPDIR_COMPIC ?
    any clue ?
    thanks,
    KS

  • Query Filter JDBC

    I had the following problem: I had to do queries with JDBC but if the user insert sql reserved word or commas, the system trows an error becose de sql sentence is incorrect. Somebody know any filter for this question.
    Thank you.

    And be sure you read up on how to set bind variables in the PreparedStatement. It will do you no good whatsoever to simply change the type of Statement. There are dozens of JDBC PreparedStatement examples. Be sure all your bind variables in your SQL statement are replaced with '?'.
    - Saish

  • TFS 2012 - WebAccess - how to define which Query will run by default when navigating to WORK- WorkItems page

    When we nagivate in IE in TFS Web Access, to the WORK -> Work Items page, TFS runs the AssignedToMe query and focuses on it as sort of default query that runs in such event. We have some teams under the team project, but AssignedToMe is not sensitive
    to Team, only to Team Project, hence when navigating to the page of the specific team, this query shows the same per all teams :(.
    In order to bypass this, we'd like to set a specific team query to be the default one to run when navigating to the team's page, instead of AssignedToMe, and thus have the result specific to each team scope.
    Alternatively if it is possible to somehow filter AssignedToMe query according to Team Scope it would be great. Alas there's no @Team field yet, and we don't wish to create multiple AssignedToMe queries and name each specific to each team, nor do we wish
    to put team queries in MyFavorites while naming them specifically per team..
    Kindly advise, thank you

    Hi Moital,  
    Thanks for your post.
    As far as I know there’s no default way to the default query(AssignedToMe) in Work Items page, we usually add uses in different teams. If the user want to view the work items in one specific team, he can create a my query to filter work items according team
    field value.
    Yes, as you said there’s no @Team value in Team field to filter current team’s work items in work item query, so if you want create the shared query according team values, you need create this shared query for each team.
    For the Team field, please refer to the information in this document:
    https://msdn.microsoft.com/en-us/library/dn144940(v=vs.110).aspx.
    For this scenario, you can submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them
    seriously.  
    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.

  • How to set Query SQL Statement parameter dynamically in Sender JDBCAdpter

    Hi All,
    I have one scenario in which we are using JDBC Sender Adapter.
    Now in this case,we need to set Query SQL Statement with a SELECT statement based on some fields.
    This SQL statement is not constant, it would need to be changed.
    Means sometimes receiver will want to execute SQL statement with these fields and sometimes they will want to execute it with different fields.
    We can create separate channels for each SQL statement but again that is not an optimum solution.
    So ,I am looking out for a way to set these parameters dynamically or set SQL statement at Runtime.
    Can you all please help me to get this?

    Shweta ,
    <i>Sometimes receiver will want to execute SQL statement dynamically</i>....
    How you will get the query dynamically? Ok Let me assume, consider they are sending the query through file, then its definitely possible. But u need BPM and also not sender JDBC receiver adapter instead, receiver JDBC adapter.
    SQL Query File ->BPM>Synchronous send [Fetch data from DB]--->Response -
    >...............
    Do u think the above design will suit's ur case!!!!
    Best regards,
    raj.

Maybe you are looking for

  • Track changes showing multiple entries for a single change?

    Hi there .. I'm using Pages '09 v4.1 to edit MS Word '97 documents. I've been using the 'track changes' feature to work on chapters in a book and have done so with no problems so far (about 6 chapters so far in separate files). I went to start the ne

  • Error when creating a travel request with Advance amount

    Hi Gurus, When I create a travel request with an Advance amount and try to save the same, the system throws up an error msg : "Trip country does not exist in the system (T005). However, it allows me to create the travel request without this error if

  • Please help me choose a Mac Mini

    I have not owned any mac computer and have been waiting for the new mini for a few months. I need a decent mac computer without having to spend too much to program iOS and maybe some photo viewing and casual editing. So the OS X is important to me. T

  • Nokia Lumia 520(back,windows logo and the search b...

    May  I know if the lumia 520 (Back, Windows logo and the search buttons-on the front of the device) - does it have the white lights on lighted up when in dark places or it does not have any lights at all? I have tried reset the phone, change the brig

  • Is it possible to join two video files?

    Is there any way i can use mac os to join two AVI files together, and then create a new copy of the combined video to show on my iPad. if i can avoid using iMovie that would be great. thanks