Filtering report data based on user login and Parameter fields

Post Author: mronquillo
CA Forum: General
Hi,I am running a report that filters data based on the user login. To do this, I created a formula called @user that compares the login name (using the CurrentCEUserName field) and returns the user's name. If the user login is not a login specified in the if statements, it returns the parameter field "user_name":For example: if CurrentCEUserName = "loginname1" then "User's Name 1"else if CurrentCEUserName = "loginname2" then "User's Name 2" else if CurrentCEUserName = "loginname3" then "User's Name 3"  else if CurrentCEUserName = "loginname4" then "User's Name 4".. .else {?user_name}   In select expert, I have a condition which filters data based on the string returned from that formula:{Table.Name} = {@user}  This works fine and when the users run the report they only their own data. However, they are still prompted to choose a parameter field regardless if of the value returned by the @user formula. Oddly enough, regardless of what parameter field they choose, they will still only see their own data (i.e. if John chooses "Bob" from the parameter list, he will still only see John's data.)If I remove the "else {?user_name}" line from the @user formula, then the users are not prompted anymore. However, if they are not a "valid" user - that is, if any of the if statements in the formula are not true for their login name - then they will see no data. What I want to do is make the report ONLY prompt the user to choose a parameter field if their login name is not "valid". That is, if the @user formula is able to return a string value for their login name, then they will jump right into the report without being prompted to choose a parameter - otherwise, the user will be prompted to choose a name from the parameter list. I thought my formula would allow this (hence the "else" clause), but it seems that if a parameter field is present in any formula, then the report automatically prompts the user to choose a parameter. Is what I am trying to accomplish possible in CR (I'm using CR v10.0) or is there a better way to do what I am trying to do?Thanks in advance.

Post Author: sharonmtowler
CA Forum: General
try, or something like that
(if CurrentCEUserName ={?user_name} then true else ({Table.Name} = {@user}) )

Similar Messages

  • How to display filtered data based on user login

    We have a SSRS report (.rdlc) which gives the report about Online count of machines. Report is incoperayed in Asp.net.
    We have many filters in This report. Now we have to retrict the report based on user login to the application .
    For ex: report has a drop down for Regional Admin. Now if one person login to the application he has to view only his region online count.
    How can we do this in SSRS?. We have our application hosted in Microsoft Azure . Please suggest

    Hi csmbrnoc,
    In Reporting Services, if we want to filter data based on user login, then there must be some relationship between the UserID and the Region in the dataset. For example, there is a field named UserID in the dataset, and each ID map some region and the corresponding
    “Online count of machines”. In this scenario, just as Visakh suggested, we can use built-in field User!UserID to obtain UserID of the current user, then directly add a filter to the dataset as below:
    Expression: [UserID]
    Operator: =
    Value: [&UserID]
    If there are any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to determine Organizational Data based on User Login

    Dear all,
    How to determine organizational data based on user login in Activity transaction, currently org determination is happening after entering customer number in the transaction.
    We have used 'Responsibility' determination rule for this configuration. Now the requirement is to determine org data based on user login.
    In Org model we have assigned user to org data through a business partner. But still org data is not getting determined in the transaction.
    Please help me to trace out the problem.. your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    You just have to use other organization determination rule. In your case this would be rule 10000194 (ORGMAN_12). This determination rule delivers the responsible organizational unit of the user
    User is defined as a business partner in the container attribute 'PARTNER'. If not, the system user (sy-uname) is used.
    So you have to do the following:
    - use this determination rule
    - in BP link username with employee
    - assign in PPOMA_CRM employee or user to organizational unit
    This should solve your problem.

  • How to get Logo in report dynamically Based on user login?

    requirement is like this:
    same report format will be used by 3 different users, but the different logo should appear based on their login..

    place all 3 images in the template, then wrap an if statement around each. something like:
    <?if:userLogin='User 1'?>image goes here<?end if?>
    if that doesn't work try sticking each in a table with no border and doing the same with the if statements

  • Default DFF based of user login and value set

    Hi All,
    My requirement is: Default the value of a DFF based on a value set and the person who logs in.
    My value set is:
    Person A - Value 1
    Person B - Value 2
    So, if person 1 logs in - the DFF value should be Value 1.
    If person 2 logs in - the DFF value should be Value 2.
    How can this be achieved?
    Alex

    You can default the value by using SQL in the default type for the particular DFF segments. You can get the user id from $PROFILES$.USER_ID. You can derive the employee id / name from the user id (provided you do indeed tag an employee to the FND User definition)

  • User login and activity report

    Hi
    We have SAP enterprise portal 7.0 SP9 installed. Now, I want a report which will give data like the users(ids)  and thier login time on this portal in a particualar time period. It would be better if i get the activity report of those users as well.
    Regards
    Dharmendra

    Hello,
    you can use portal activity report or google analytics to achieve this
    http://help.sap.com/saphelp_nw04/helpdata/en/58/728ea01cf64fff996b827f2a06f9b1/frameset.htm
    Google Analytics:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b94044-7008-2b10-1680-c04e4526367b
    jo

  • Output different data based on user select

    Hi everyone,
    Quick question, I would like to output different report columns based on user select, eg., users would be presented with two choices in a radiobutton list, eg., 1 and 2.
    I have query results that contain columns A, B, C, D, E, F, G.
    If user selects 1 then the output should be columns A, B, C, D, E.
    If user selects 2 then the output should be columns A, B, C, F, G.
    I am sure this is possible and easy? If so, what topic should I be reading/searching internet on?
    Please advise.
    Thanks!

    I would say that this is most often something that your user interface should be dealing with (i.e. which columns should be shown).
    There is no way to do that in SQL.
    In PL/SQL it is a simple situation of creating two cursors and simply deciding which one to open.
    <pre>declare
    l_cur sys_refcursor;
    begin
    if :user_selection = 1 then
    open l_cur for select A, B, C, D, E from tbl;
    else
    open l_cur for select A, B, C, F, G from tbl;
    end if;
    -- use the cursor
    close l_cur; -- or return to user interface
    end;
    /</pre>
    Hope this helps.

  • View logs in windows server (User login and logout )

    Hi Guys,
    I want to see the user login and logout times to the systems. I want know on which systems (Hostname) they logged into that account. 
    Could you please help me. Thanks in advance

    Hi
     You can check the log's on event viewer console,here is good article for your needs,please check;
    https://support.microsoft.com/en-us/kb/556015?wa=wsignin1.0

  • Tracking User login and logout times

    I need to track User Login and Logout times. Does anyone know of a easy way or program to do this?
    thanks
    b

    /Applications/Utilities->Terminal->type in this command, and hit the return key:
    last
    For more information, see http://www.osxfaq.com/tips/unix-tricks/ Week 17.

  • WLC 4400 issue on "user login policies" parameter.

    Hi,
    I'm using a Cisco Wireless controller in my company.
    (the model is a AIR-WLC4402-50-K9 in 4.2.207.0 version).
    The WLAN is configured with WPAv2 AES and 802.1X (PEAP MS-CHAPv2) authentication on an external Microsoft IAS server (2003 R2).
    the authentication rely on Active Directory login and password.
    The user authentication works fine and the WLAN too.
    But it's possible for a single user to log on different laptops with the same AD login and password and use the wireless network.
    And it has to be forbiden by  "user login policies" parameter set to 1 on the WLC (in security parameters).
    Does anybody says if it's a known issue and how to solve this problem?
    thanks,
    raphael Paviot.

    Dancampb,
    Many thanks ,  you're right, I have to find the solution on IAS server side.
    In fact, I have also applied these commands on the controller and the max-user login works (in the case of an externan radius server).
    I have seen it in the "message logs".
    (Cisco Controller) config>advanced eap max-login-ignore-identity-response disable
    (Cisco Controller) config> netuser maxuserLogin 1
    But the problem still remain , because the IAS server is not case sensitive for user logins instead of the Wireless Controller.
    For exemple:
    raphaelpaviot login and RaphaelPAVIOT login are:
    -one user for the IAS server.
    -two different users on the WLC.
    cordially.

  • The types of the parameter field and parameter field current values are not compatible.----

    HI,
    I am attempting to set report parameters in my .jsp code via URL parameters.
    I am able to set the report name, server connection dynamically however when attempting to set the Parameters I receive:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKParameterFieldException: The types of the parameter field and parameter field current values are not compatible.---- Error code:-2147213303 Error code name:invalidParameterField
    The parameter on the report is a String Type, named for this example p1.
    The value that p1 represents is LERAD
    My code:
    String stringValue = request.getParameter("p1");
    CRJavaHelper.addDiscreteParameterValue( clientDoc, "","p1", stringvalue);
    returns the above mentioned error.
    I have tried:
    String stringValue = (String)request.getParameter("p1");
    which returns the above error
    And;
    String stringValue = new String(request.getParameter("p1")).toString();
    which returns
    java.lang.NullPointerException
    java.lang.String.<init>(Unknown Source)
    org.apache.jsp.callReport_jsp._jspService(callReport_jsp.java:105)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    I notice that the CRjavaHelper.java declares this addDiscreteParameterValue as accepting an Object type for the newValue.
    Any ideas???

    Hi,
    nevermind.
    case sensitivty strikes again.
    my URL param was P1 ( case sensitive)

  • Filter standard reports based on user login

    Hi All,
    Is there any way to filter standard form reports (not PLD), based on the user currently logged in. for example, if user 'sales1' has logged in,  he should be able to see the sales report(say sales analysis) for the documents made by him only. there does not seem to have any access on the query being passed to this report. so even customization does not seem to be the solution. kindly help if any one knows a better way or a way at all.
    thnks and regards,
    Binita Joshi

    Hi Petr,
    thanks for replying.
    Before posting, I had already searched in SAP B1 forum and there , for a similar problem, it was advised to use SDK so I posted here.
    I knew, SDK seems to be the way. but, again, As I wrote, I wanted to know, whether there exists a way to filter the standard reports based on the user login. I don't want authorization or setting rights, sort of things.
    but, suppose If user A wants to see the sales documents reports then, he should be able to see the reports of the documents made by him only. so we will have to filter the records based on the Usersign field in marketing documents' tables but, I am clueless on, where should I give this filter.  and I am afraid there is no way to do that. make your own reports and block the access of system reports.Pls right back if U have more to say.
    regards,
    Binita Joshi

  • Current week/current Month/YTD data based on user response

    Hi
    I have one attribute request_created_date
    Based on this i want to create one more attribute which will have lovs as week(Request_created_date for current week),monthly(Request_created_date for current week),
    YTD(Request_created_date for current year to date).
    Now i want to use this new attribute (Having LOV as week/Month/YTD) as a report prompt so that user itself can select whether he wants to see
    week/month/YTD data in report.
    To Add to this :
    Req is something like this if user select week , Req_created_dates should be filtered for all the dates of cureent week.
    Req is something like this if user select month , Req_created_dates should be filtered for all the dates of cureent month.
    Req is something like this if user select Year , Req_created_dates should be filtered for all the dates of cureent year.
    How can i achieve this?

    Add One variable
    Time_Data ="Weekly"
    Create Input control (Radio Button)
    Use Custom LOVs (Add Weekly , Monthly , Yearly ).
    Set Default (Weekly).
    Now Create Another Variable
    User_Want = ReportFilter([Time_Data])
    Now filter your Report for week , Month or Year (as per Selection) using If else Statement .
    For eg.
    For Week
    [Created_Date] Between RelativeDate(CurrenDate();-7) And CurrentDate()
    For Month
    (Year([Created_Date]) = Year(CurrentDate())  And Month([Created_Date]) = Month(CurrentDate()))
    For Year
    (Year([Created_Date]) = Year(CurrentDate())

  • How to change Rendering Extension in sql server Reporting Services based on User Permissions

    Hi,
    I want to provide SQL server reporting services rendering extension based on user Access.
    For Example
    User1 can have options of Rendering to EXCEL and PDF
    User2 can have a option of CSV
    i read one article which is useful for report basis rendering extension changes. but i want to give user basis rendering options.
    http://www.mssqltips.com/sqlservertip/3569/how-to-change-rendering-extensions-in-sql-server-reporting-services/?utm_source=dailynewsletter&utm_medium=email&utm_content=headline&utm_campaign=20150406
    Thanks in advance.
    GVRSPK VENI

    You can use a data driven subscription for that
    Maintain a table with rendering extension information for various users ie their AD user login. Then setup a data driven subscription based on table values
    You will be creating a dataset with query for retrieving userid as well as rendering extensions and then just set the value as Get value from database for  render Format and To properties 
    For more details refer
    http://beyondrelational.com/modules/2/blogs/101/posts/13460/ssrs-60-steps-to-implement-a-data-driven-subscription.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Logic to select Report name based on User's input.

    Hi Guru's
    Good Morning!
    I have a requirement to create a XMLPUBLISHER Report Whihc is Called as ITEM COUNT SUMMARY + ITEM COUNT DETAIL REPORT Following below
    are my ParameterS
    0.REPORT NAME
    1.ORG
    2.ORG COUNTRY
    3.ITEM SELECTION
    4.ORDER TYPE
    5.STATUS
    6.RECEIPT DATE FROM
    7.RECEIPT DATE TO
    8.TRANSIT DAYS
    REPORT NAME: PARAMETER WILL LET THE USER to select the requrired Reports to be run.
    ORG: is the Names of the SHIP FROM ORG
    ORG COUNTRY: is a Dependent Parameter based on the ORG (i.e When a SHIP FROM ORG is Selected the ORG CHOICE Should have the CHoices for the selected ORG and when Nothing Selected from that ORG it should run for every ORG COUNTRY in that SHIP FROM ORG Currently we have two ORG COUNTRY PER SHIP FROM ORG say(USA, CANADA)
    ITEM SELECTION: We need to Run this Report based on Item Selection ( The Logic should handle a total item selection whihc are comma seperated for upto 29
    items)
    ORDER TYPE : Types of Order Again this can be a List of Comma Seperated Values for order Types
    STATUS: STatus should be Comma Seperated (ENTERED,WAVED,NOTWAVED,SHIPPED)
    TRANSIT DAYS: Transit Days
    RECEIPT DATE FROM: This is the Starting DATe range for the REport to be run
    RECEIPT DATE TO: This is the END DATe range for the REport to be run.
    The ITEM COUNT SUMMARY Report should allow the users to run the report 3 ways
    1.ITEM COUNT RUN BY ORDER TYPE ( for all the STATUS)
    2.ITME COUNT RUN BY STATUS ( FOR all the ORDER TYPES)
    3.ITEM COUNT RUN BY TRANSIT DAYS
    And My approach is I have three Queries Created for the above and in the DATA DEFINITION File
    I have them Listed my DATA DEFININTION ( Sorry as my Query's GO More than 70+ LINES for Each Query I thought I will just paste the Order How i have arranged my queries in the Tempalte)
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <dataTemplate name="TPC_ITEM_COUNT_SUMMARY" description = "TPC_ITEM_COUNT_SUMMARY" version="1.0">
    <properties>
         <property name="xml_tag_case" value="upper"/>
    </properties>
    <!-- parameters for the Report -->
         <parameters>
         <parameter name="report_name" dataType="varchar2"/>
         <parameter name="item_selection"          dataType="varchar2"/>
         <parameter name="order_type"               dataType="varchar2"/>
         <parameter name="pstatus"               dataType="varchar2"/>
         <parameter name="org_name"               dataType="varchar2"/>
         <parameter name="org_choice"               dataType="number"/>
         <parameter name="first_receipt_date"     dataType="date"/>
         <parameter name="last_receipt_date"     dataType="date"/>
         <parameter name="from_date"               dataType="date"/>
         <parameter name="to_date"                    dataType="date"/>
         <parameter name="transit_days"          dataType="number"/>
         </parameters>
    <dataQuery>
    <sqlStatement name= "HDR">
    <![CDATA[
    SELECT UPPER('The ABC Corporation, Ltd.')     AS "COMPANY"
                   ,'Item Count Summary - '||INITCAP(:report_selection)||' for Company '||:org_name AS "REPORT"
                   ,'Order Types - '||UPPER(:order_type) AS "ORDER_TYPE"
                   , SYSDATE AS "RUN_DATE"
         ,'Receipt Date'||' '||TO_CHAR(NVL(TO_DATE(:first_receipt_date,'DD-MON-YYYY'),SYSDATE),'YYYYMMDD')                     ||' '||'thru'||' '||TO_CHAR(NVL(TO_DATE(:last_receipt_date,'DD-MON-YYYY'),SYSDATE),'YYYYMMDD') AS "RANGE"
    FROM DUAL;
    ]]>               
    </sqlStatement>
    <sqlStatement name= "BY_STATUS">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by STATUS
    ]]>
    </sqlStatement>
    <sqlStatement name= "BY_ORDERTYPE">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by ORDERTYPE
    ]]>
    </sqlStatement>
    <sqlStatement name= "BY_TRANSITDAYS">
         <![CDATA[
    Query for ITEM COUNT SUMMARY by TRANSITDAYS
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_HDR" source="HDR">
              <element name="COMPANY" value="COMPANY" />
              <element name="REPORT" value="REPORT" />
              <element name="ORDER_TYPE" value="ORDER_TYPE" />
              <element name="RANGE" value="RANGE" />
    </group>
    <group name="G_BY_STATUS" source="BY_STATUS">                
              <element name="RCPT_DT" value="RCPT_DT"/>
    <element name="ITEM"     value="ITEM" />
              <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION" />
              <element name="ENTERED"     value="ENTERED" />
    <element name="WAVED"     value="WAVED" />
    <element name="NOTWAVED"     value="NOTWAVED" />
    <element name="SHIPPED"     value="SHIPPED"/>
    </group>
              <group name="G_BY_ORDERTYPE" source="BY_ORDERTYPE">                                         
    <element name="ITEM"          value="ITEM" />
              <element name="ITEM_DESCRIPTION" value="ITEM_DESCRIPTION" />
              <element name="RCPT_DT"     value="RCPT_DT"/>
              <element name="ORDER_TYPE"     value="ORDER_TYPE" />
    <element name="QUANTITY" value="QUANTITY" />
              </group>
    </dataStructure>
    </dataTemplate>
    Now My Problem is How Do i Get a Logic to Let the Report Name Selection To be REferenced in the Data Definition file..
    I would like to request you to Please help me out in arriving at a Solution for Implementing the Logic
    When the USer selects ITEM COUNT SUMMARY BY ORDER TYPE I want "BY_ORDERTYPE" to be Executed and so on..
    Is there a Way That I can Write in my Data definition file as
    DECODE(:REPORT_NAME ,'ITEM COUNT SUMMARY BY ORDERTYPE', Run query for BY_ORDERTYPE,
    ,'ITEM COUNT SUMMARY BY STATUS', Run query for BY_STATUS,
    ,'ITEM COUNT SUMMARY BY TRANSIT DAYS', Run query for BY_TRANSITDAYS,run query for DETAIL REPORT);
    Also My Item Description Contains Special Characters like Registered Symbol, Copyright Symbol How would I force my XML Parser to Still consider them as TEXT's
    May I Directly Specify <?xdofx:DECODE :REPORT_NAME = 'ITEM COUNT SUMMARY BY ORDERTYPE' THEN BY_ORDERTYPE ?> in the DATA DEFINITION file , I think this is only allowed in RTF please Help,
    Thanks
    vasanthanand

    Thanks for the Reply sir,
    When you say Write the Code, you are referring to the Package is that correct,unfortunately I am not implementing this via PL/SQL Package.
    you mentioned that I can Implement the Logic in the Data definition file( which is a XML file), how and Where I have print use that IF construct (or) Can you Please Print the Code snippet in the Model XML template that i have pasted in my Post.
    May i know what is this
    ln_req_id := fnd_request.submit_request -- for XML1 For...
    Sorry about my ignorance...

Maybe you are looking for

  • FI INTEGRATION WITH OTHER MODULES

    Hello Everyone, I would like to have little details information of: FI- MM Integration FI- SD  Integration FI- CO Integration FI- CO -  (What is FI-CO Online reconciliation) Thanks, Sneha

  • How do I find and get rid of a virus?

    I was on a website called 'thedarehub.tv' to watch a movie, and when I went to click on a link to watch it, another window popped up and said "There was a virus on one of the pages and now your computer has a virus". (FYI, I did not download anything

  • How to convert color image(24 bit) YUV 4:2:2 to gray scale 8 bit image

    I am using sony DFW-X700 color camera for one of vision applications.Does NI Compact Vision System(CVS) support YUV 4:2:2 format(8 bit each).I want to do gray scale processing, so i need to convert the YUV color into gray scale (8-bit) in the softwar

  • How to add subscreen in material master

    Hi as the subject line says. i want to add subscreens to the material master view screen. lets suppose i have a sales view 1 screen where you can maintain the tax indicators for the material. this subscreen was hidden and could not see in the materia

  • Safari not refreshing webpages that fail to load.

    I have a problem with Safari. When loading multiple tabbed pages, sometime the pages do not load and I get a server not found message. No problem I think, happens often when loading so many, I'll just use command-R and refresh the page. Problem is wh