Session in view filter

Hallo,
is there a possibility to use session in view Filters in Web Dynpro?

I close this thread !!!

Similar Messages

  • Passing Session variable of DATE data type to opaque view filter

    Hi Everyone,
    Can you guys please help me in passing session variable of DATE data type in RPD's physical layer 'opaque view' filter for Oracle database
    I tried following syntax, syntax wise I didn't got getting any error, but at the same time this opaque view is not fetching any records as well. my session variable is "END_DATE" and its value is 1998/12/31:00:00:00(as shown in RPD session windows, datatype is DATETIME)
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TIME_ID =TO_DATE( 'VALUEOF(NQ_SESSION.END_DATE)','MM/DD/YYYY')
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TIME_ID = TO_DATE( 'VALUEOF(NQ_SESSION."END_DATE")','MM/DD/YYYY')
    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, TIME_ID FROM SH.SALES
    WHERE TRUNC(TIME_ID) = TO_DATE( 'VALUEOF(NQ_SESSION."END_DATE")','MM/DD/YYYY')
    In past, I was able to pass a session variable into a opaque view filter using DATEOF function, but that was in DB2.
    I appreciate your time and help

    Finally, I got right format. here it is
    to_date(substr('valueof(NQ_SESSION.END_DATE)',1,10), 'yyyy-mm-dd')
    and here is the source from where I got this information
    Using OBIEE Session Variables in Select Tables in the Physical Layer

  • How to make Hibernate's Open Session In View Pattern work with Portal?

    I have a need to implement Hibernate's "Open Session In View" pattern in Portal's Page Flow and its JSP (View).
    Traditionaly, this can be done via a servlet filter, have the filter open the session and close the session, all the Page Flow action and JSP are inside the window between session open and close. For non-portal env, a single HttpRequest maps to only one Page Flow, this approach works.
    But for WebLogic Portal, a HttpRequest might trigger a Portal page to render multiple Portlets, each Portlet has its own Page Flow. Using this filter approach might force all Page Flow to share one open Hibernate Session, not we desired.
    So in WebLogic Portal, how can I manage the Hibernate Session life cycle so that Page Flow action and JSP can share one opened Hibernate Session?
    JZ

    Nevermind. Did a little searching and someone else explained that you have to add these items like they are toolbar buttons. Only then is there anything to drag. Someone please tell the developers at FF that they are idiots and to please fix the status bar before everyone jumps ship on them. This is ridiculous.

  • List View Filter - I want to create List View based on a specific user

    I want to create a List View Filter based on specified user ID. I dont want to specify the [Me] for filtering the view based in current logged in User.
    I want the view to be based on specific user ID for Ex: "AD\JohnDoe"
    Thanks
    Nate

    The People/Group Picker field has several options for how the name is displayed. For example you can set it to be the friendly name or the account name. When you create your View Filter, make sure that you are using the same format as the field's display
    type.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.

    Hi there,
    Does someone know in SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.
    Thanks,

    Hi,
    Per my knowledge,
    it is by design that the data type multiple lines of text can only use “contains” and “begins with” operators.
    You can also filter the list view using SharePoint Designer,
    Open your list AllItem.aspx page in SPD ->click “Filter” > in “Field Name” select your multipe line of text field, in “Comparison” will displayed four choices.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • View Filter

    I need help on a view filter. I tried it via view UI setting but does not work. 
    Then I am working in designer with the following code. I got an error when I open it in browser “Cannot complete this action. Please try again.”. I appreciate if someone
    can help me out on the query. Many thanks.
    If in code, the condition should be
    (OutstandinginvoiceTotal > 0)
        (Today() - InvoiceDate > 60
    && Today() – InvoiceDate < 30) ||    
        (Today() - InvoiceDate_2 > 60
    && Today() – InvoiceDate_2 < 30)
    Here is the view filter
    <Query><Where>
        <And>
    <Gt><FieldRef Name="OutstandingInvoiceTotal"/><Value Type="Currency">0</Value></Gt>
    <And>
    <Geq><FieldRef Name="InvoiceDate"/><Value Type="DateTime"><Today OffsetDays="-60"/></Value></Geq>
    <And>
    <Lt><FieldRef Name="InvoiceDate"/><Value Type="DateTime"><Today OffsetDays="-30"/></Value></Lt>
    </And>
    </And> 
    <Or>
    <And>
    <Geq><FieldRef Name="InvoiceDate_2"/><Value Type="DateTime"><Today OffsetDays="-60"/></Value></Geq>
    <And>
    <Lt><FieldRef Name="InvoiceDate_2"/><Value Type="DateTime"><Today OffsetDays="-30"/></Value></Lt>
    </And>
    </And>
    </Or>      
        </And>
    </Where></Query>

    I play around and the following works now. However, I need to add InvoiceDate_3 to InvoiceDate_5. I just copy the same block for InvoiceDate_2 to InvoiceDate_3 but it errors out?
    <Query><Where>
       <And>
          <Gt><FieldRef Name="OutstandingInvoiceTotal"/><Value Type="Currency">0</Value></Gt>
          <Or>
           <And>
              <Geq><FieldRef Name="InvoiceDate"/><Value Type="DateTime"><Today OffsetDays="-60"/></Value></Geq>
              <Lt><FieldRef Name="InvoiceDate"/><Value Type="DateTime"><Today OffsetDays="-30"/></Value></Lt>
           </And>  
           <And>
              <Geq><FieldRef Name="InvoiceDate_2"/><Value Type="DateTime"><Today OffsetDays="-60"/></Value></Geq>
              <Lt><FieldRef Name="InvoiceDate_2"/><Value Type="DateTime"><Today OffsetDays="-30"/></Value></Lt>
           </And>     
          </Or>
       </And>
    </Where></Query>

  • View Filter Presets - Yes, they can be iterated, and set, but...

    Anybody know how to create a view filter?
    For example, my first use case would be to filter on PV2003 - anybody know how to do that?
    (Back in the good ol' days I would just run a plugin to set custom metadata, then filter on the custom metadata (like Jeffrey Friedl's Focal Length Sort did), but isn't there a better way in SDK3.0? - Even if undocumented, for example, create a view-filter preset file that accesses unexposed fields... - Lightroom would probably have to be restarted to use it though, hmmm..
    Any help?
    Thanks,
    Rob

    John,
    I do have a few more cores but I think the big difference is LR3 vs LR2.  I am still in 2.5 awaiting some performance fixes before switching to v3.  I continue to test LR3 on both my desktop (8 cores) and laptop (2 cores).  Here is what I am finding:
    In version 2.5, it takes approximately 4 times longer to fill the shadow field if all are empty than simply checking.  So my rate of 2-3,000 per second is primarily checking - but that is what it will be doing most of the time once the initial fill is complete.  I see very little difference between my laptop and the desktop for this test.
    Running v 3.0 it much, much longer to fill the fields than in v 2.5 - maybe a slow as 25/second.  Again, I see very little difference between the laptop and the desktop.  The worst part is that in 3.0 the incremental fill takes just as long as the initial fill - this might be related to the issue whereby issuing a Ctrl-S is not longer incremental but updates all images (hopefully an error on Adobe's part that will be corrected soon).
    Conclusion, I think what you are seeing is primarily a difference between v2 and v3 of Lightroom; however, you seem to be getting much of that performance back by using the batch commands which, as a side note, I have not yet implemented since those commands just came out with v3.  I just loop through the catalog and read metadata one image at a time.  The relevant code (not pretty so don't laugh) is basically:
    --###################### task code  ###########################################
    LrTasks.startAsyncTask( function()
    -- get a reference to all the photos in the entire catalog
    local cat_photos = nil
    catalog:withReadAccessDo( function()
         cat_photos = catalog.allPhotos
    end )
    -- determine number of photos to be processed
    local ncat_photos = #cat_photos
    -- confirm the action since it can be massive on large number of photos
    local message = "Are you sure you want to create the duplicate field for the folder name and set the Metadata errors field of the " .. ncat_photos .. " selected images?"
    local returnbutton = di.confirm( message,nil,"Yes")
    if returnbutton == "cancel" then
         progressScope:done()
         return
    end
    -- get access to the current catalog
    catalog:withWriteAccessDo("Construct Captions", function()
    --di.message("Jeff Dialog",tostring(#cat_photos),"info")
    local cap_string = "Checking/Updating " .. tostring(ncat_photos) .. " images "
    progressScope:setCaption(cap_string)
    -- loop through each of the photos selected
    local indexnum = 0
    for i, photo in ipairs(cat_photos) do
    indexnum = indexnum + 1
    local fold = trim(photo:getFormattedMetadata('folderName'))
    local kws       = photo:getFormattedMetadata('keywordTags')  -- retrieves keywordes ENTERED
    local sfold     = photo:getPropertyForPlugin(_PLUGIN, 'shadowFolder' )
    -- remove blanks that don't work for filter bar purposes
    local shadfold  = string.gsub(fold, " ", "")
    shadfold  = string.gsub(shadfold, "_", "")
    local firstchar = string.find(shadfold,"%a") -- finds first alpha character
    if firstchar == nil then firstchar = #shadfold+1 end
    shadfold = string.sub(shadfold,1,firstchar-1) .. "|" .. string.sub(shadfold,firstchar,#shadfold)
    -- if in year/mo format, then insert dash between year and month
    if firstchar == 7 then
         shadfold = string.sub(shadfold,1,4) .. "-" .. string.sub(shadfold,5,#shadfold)
    end
    -- COPY folder without blanks or _ to duplicate field
    if shadfold ~= sfold then
         photo:setPropertyForPlugin(_PLUGIN, 'shadowFolder', shadfold )
    end
    end      -- of looping through selected photos
    end )    -- of catalog:withWriteAccessDo
    end)     -- of task
    --###################### end of task code  ###########################################
    Here's to hoping 3.1 brings our performance back!
    Jeff

  • View Filter Value DP_VIEW_FILTER and Pass it to multi data providers

    Hi
    We are using the following command to view filter values and expand in the dataprovider_1
    SAPBWOpenWindow(SAP_BW_URL_Get()"&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=DP_VIEW_FILTER&DATA_PROVIDER=DATAPROVIDER_1&IOBJNM="iobjnm, "FILTER",800,600);
    (got the code from a PDF that showed how to use drop down for to select multiple values)
    Is there a way to pass this value to multiple data providers like shown below?
    SAPBWOpenWindow(SAP_BW_URL_Get()"&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=DP_VIEW_FILTER&DATA_PROVIDER=*&MULTI=X&IOBJNM="iobjnm, "FILTER",800,600);
    There is a bug in this code and i am not sure how to use the Dataprovider = * and Multi = X!
    In dropdown box, i gave affected data providers as all three..
    no luck..
    Please help. thanks

    Put * and X in single quotes
    Try using the folllowing
    SAPBWOpenWindow(SAP_BW_URL_Get()"&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=DP_VIEW_FILTER&DATA_PROVIDER='*'&MULTI='X'&IOBJNM="iobjnm, "FILTER",800,600);
    Edited by: Rakesh Pattani on Dec 20, 2007 10:52 AM

  • Session Variable in filter view error

    Hello,
    My prompt is defaulted to current 12Weeks. I used session variable in the prompt to capture 12 Weeks (Current Week and Current+12).
    so the default value is @{biServer.variables['NQ_SESSION.PERIOD_STDATE']} where PERIOD_STDATE is my session varible.
    I am using a filter view to display the filters being applied.
    When the user opens a tab, the filter view is throwing error
    ***The syntax of the expression to be evaluated is invalid.***
    ***Expression: @{biServer.variables['NQ_SESSION.PERIOD_STDATE']}***
    My report is running fine. I just have the date column as prompted in my report request.
    When the user hits go button on the prompt then the filter view comes up just fine.
    What is that I am doing wrong? Why does the filter view gives result after hitting GO button?
    Please help.
    thanks,
    deep

    Hi,
    1. Set the default using logical SQL. Select <presentation table>.<presentation column> from <subject area> where <presentation table>.<presentationation column> =valueof(NQ_SESSION.<session variable>)
    2. You dont have to write the exact syntax for entering the session variable in the default values. You just need to use the session variable name after selecting the session variable type in the drop down.
    Hope this helped/ answered.
    Regards
    MuRam

  • List View (filter) based on multiple fields

    Hello. I've created an infopath form where a Project Manager is able to name 12 project members in various departments using a people picker field for each project member field. Is there a way to filter the list so that it shows only
    the projects the individual project members are involved in based on whether he/she shows up in any of the 12 member fields? The members are not necessarily the ones creating the list item. I am limited to 10 filters in the view settings
    in the sharepoint list so that won't work. Any assistance would be greatly appreciated.
    Have a great weekend.
    Cory

    Hi Cory,
    I’m sorry, from that way you can filter by current user, but also can’t add more than 10 parameters. The only way to add
    more than 10 filters is to use xpath by check add xslt filtering, then click edit.
    I have a try on my server, please check the following steps.
    Create a parameter by click parameters.
    On the data view parameters dialog, click new parameter, name Param1. From parameter source, select server variable, set LOGON_USER as server available name. Then click ok.
    Go to filter, on filter criteria dialog, check add xslt filtering, then click edit.
    Add the following xslt code.
    [@people.title=$Param1 or @people1.title=$Param1 or @people2.title=$Param1 or @people3.title=$Param1 or @people4.title=$Param1
    or @people5.title=$Param1 or @people6.title=$Param1 or @people7.title=$Param1 or @people8.title=$Param1 or @people9.title=$Param1 or @people10.title=$Param1 or @people11.title=$Param1]
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • List view - filter with parameters

    Hi,
    I need to define a list view to filter data with parameters.
    I saw how to do it with the SPD in another post
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/92271aa4-6582-4ea5-a10f-deaf02d2b62c/filtering-the-list-view-by-passing-date-parameters-using-sharepoint-desginer-2010?forum=sharepointcustomizationprevious
    But  need to do it in visual Studio (via definitins or Object Model).
    How can I do that in Visual Studio?
    Help is really appreciated.
    Many thanks,
    DD

    Hi,
    According to your description, you might want to create a list definition with the filter value from query string from URL. Then when you create a list instance with this list
    definition, you will be able to filter the list view page by appending parameters to the URL in the address bar.
    You can achieve this through modifying the Schema.xml file in the list definition project in Visual Studio like this:
    How to create custom list definition
    http://msdn.microsoft.com/en-us/library/office/gg276355(v=office.14).aspx
    http://www.codeproject.com/Articles/412429/SharePoint-Create-List-Definition-and-Instanc
    CAML Query Schema
    http://msdn.microsoft.com/en-us/library/office/ms467521(v=office.15).aspx
    Then we can filter the list with such an URL:
    http://sp/Lists/List1/AllItems.aspx?Param1=2014-08-24&Param2=2014-08-28
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Multiple sessions with Viewer 3.3.61

    Hi,
    I have Discoverer Server set up on a single machine, using OAS as the HTTP server, and Viewer 3.3.61.
    If a user tries to run 2 queries at the same time (opens up two browser windows), one of the queries will be cancelled (usually te first query started).
    Why is this? Is this normal functionality, or do I need to set something up for multiple sessions? If I need to set something up, where can I find documentation?
    Thanks,
    Suzanne
    null

    Suzanne,
    I think this is normal for Discoverer. It seems to be that there is a session for each user login. Thus a single query for each login. This is just my observation.
    Christopher

  • Error using WEEKDAY function in view filter

    I want to be able to display all events in a calendar for the following week (Saturday to Saturday). I have created a column called week_end that is a calculated column and gives the date of the Saturday after the event:
    =[Start Time]+(7-WEEKDAY([Start Time]))
    I then want to use a filter based on Today as follows:
    Show only items when week_end is greater than
    [Today]+(7-WEEKDAY([Today]))
    and less than  
    [Today]+(7-WEEKDAY([Today]))+7
    However I get the error: Filter value is not in a supported date format
    Any ideas what the problem is? I seem to be able to do things like [Today]+3, but I want the view to be from Saturday to Saturday regardless of what day I look at it.
    Thanks
    Kate

    Hi,
    According to your post, my understanding is that you wanted to display all events in a calendar for the following week (Saturday to Saturday).
    You can't use complex formula in Filters - you have to keep it simple like [Today]-30 for last 30 days.
    The solution is to turn the problem on its head and add calculated columns to work out the start of the week and the end of the week then filter when the current date is between those dates (i.e. Start <= [Today] AND End >= [Today])
    Please follow the steps as below to achieve what you want:
    Create a “WeekStart” calculated column, select “Date and Time” as a data type returned by the formula:
    =[Start Time]-WEEKDAY([Start Time])
    Create a “WeekEnd” calculated column, select “Date and Time” as a data type returned by the formula:
    =WeekStart+7
    Create a “PerWeekStart” calculated column, select “Date and Time” as a data type returned by the formula:
    =WeekStart-7
    Modify view, show items only when the following is true:
           PreWeekStart is less than or equal to [Today]
           And
           WeekStart is greater than [Today]
         5. Open the view, it will
    display all events in a calendar for the following week.
    Generally, the week goes Sunday to Saturday. If you want to display all events in a calendar for the following week (Sunday to Saturday), you need to modify the calculated column:
    WeekStart: =[Start Time]-WEEKDAY([Start Time])+1
    WeekEnd:   =WeekStart+6
    Here are two similar threads for you to take a look at:
    http://blog.pentalogic.net/2012/09/complete-guide-to-filtering-sharepoint-lists-by-the-current-week/
    http://rehmangul.wordpress.com/2010/10/06/filter-views-based-on-a-week/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to set a session in Java Filter?

    I make a filter,in this filter,I check a request parameter,if this parameter equals a assigned name,I put a flag into a session,like follows:
    public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws IOException,ServletException
    String name=request.getParameter("name");
    if(name.compareTo("John")==0){
    session.setAttribute("isLogin","true");
    But when I run above program,I will get a error,because session is not defined. I know HttpSession is get by HttpServletRequest.getSession(),
    but public void doFilter is only provide ServletRequest,not HttpServletRequest! I want to know whether there is a method which I can get HttpSession in Filter?
    Any idea will be appreciated!

    Hi. You should be able to simply cast The ServletRequest like this:
    (HttpServletRequest)request
    If you run a webcontainer, you're pretty sure its a Http-request.

  • SharePoint 2010 Datasheet View - Filter not displaying correctly on list

    Hi,
    I have a list where I want to filter in datasheet view.  The filter will work correctly when I first open Internet Explorer:
    However, if I open the list again and go into datasheet view I get the following filter which does not display correctly:
    Has anyone else come across this?
    Mark

    Hi Mark,
    please have a try on this kb too:
    http://support.microsoft.com/kb/2760758/en-us
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for