Modify Dynamic Prompt Values based on User Name

Hi,
I did some searching for this issue on the forum and could not quite find anyone with the same problem.  If I missed something, please except my apologies in advance.
I have created a report within Crystal Reports 2008 with dynamic prompts.  The report pulls possible values for the report directly from my database (MS SQL 2005).  This works well.
I have deployed the report, with eclipse, under tomcat using the free JRC components provided by SAP.
This is a financial report which allows users to view the budget of a department.  Each user will have one or many departments that they should have access to.  Not everyone sees the same departmental information.  I have a table that contains the user name of each individual and the department code they should have access to.
One of the dynamic parameters I have in the report now lists all department codes.  Would it be possible to pass to the report a user name that would limit the listing within the department code parameter to only those departments the user name has access to (as specified in the security table I have setup for this)?
I need to do this within the JRC and not the Business Objects EDGE server.  With this in mind, I do not believe I can use any of the RAS components of the JRC.
Thanks, in advance, for any advice or help you may be able to provide,
Dave

Moved to Java SDK forum where the JRC is answered.

Similar Messages

  • How to highlight a row in IR based on User Name

    Hi,
    What is the best way to highlight a row in a IR, based on User Name. ie APP_USER.
    Suppose if a APP_USER log in to the application, the row in the IR corresponding to the APP_USER should alone be highlighted.
    (Edit button is not visible in the IR)

    Hi,
    APP_USER value is uppercase. Your name column values are lowercase.
    Example code that I did post string comparison is case sensitive.
    I did change your example dynamic action JavaScript to convert cell value to upper case
    this.affectedElements.find('table.apexir_WORKSHEET_DATA td[headers="NAME"]').each(function(i){
        var lThis=$(this);
        if(lThis.text().toUpperCase()=="&APP_USER."){
            lThis.parent().children().css({"background-color":"#55A955"});
    });Now it should work
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Passing dynamic prompt value using Report Engine SDK

    Hello Experts,
    I have created a webi report which contains prompt. Using SDK, I would like to catch the value of prompt which is selected by a user at runtime.
    e.g. If prompt contains values year, quarter, month, etc and user has selected value of u2018Quarteru2019 at run time, then I would like to catch that value using Report Engine SDK.
    I tried to implement prompt.getCurrentValues(). However that is not working.
    Can someone please help me to figure out the way to catch this dynamic prompt value using Report Engine SDK?
    Thanks,
    John

    Where is the prompt values being set, and where are you trying to catch it?
    Workflow description is missing here.
    Sincerely,
    Ted Ueda

  • Restricting the Prompt Values based on Fact table data

    Hi,
    We need dashboard prompts in OBIEE reports that will fetch data from dimension tables. Our all dimensions are conformed dimension having joined with multiple fact tables.
    Because prompts are showing data from dimension table, it is showing all dimension data and few data might not present in the particular fact table that we have used in the report.
    For Example:
    We have one Calendar dimension table that has 20 years data that means all dates. Now we have two fact tables Fact1 and Fact2.
    In Fact1 we have records related to only 2007 Years data. And In Fact2 We have 2008 years data.
    Now We are creating two separate reports in two separate page in one dashboard where the prompt is same. That is Calendar date prompt.
    So In report1, The prompt will be Calendare and Result will be from Fact1. But as the calendar prompt from Calendar dimension, it showing all 20 years data though only 2007 years data is valie.
    Similarly for Report2, It is showing all calendar dates in the prompt where Fact2 is having 2008 year data.
    I want to show only 2007 years dates in the prompt for Report1 and 2008 years dates for Report2. That means I want to restrict prompt values based on the fact.
    It will be great if someone can suggest on this.
    Regards,
    SS

    Hi, I have a similar problem.
    I have two dimensions: time and customer.
    The two dimensions are joined into two Fact Table (Order, Forecast).
    I created a dashboard prompt with two selections: the first is the Year (time dimension) and the second is the Region (customer dimension) with the option "cosntraint."
    When I select a Year, not all Regions are shown, but only those that are present in one of two fact table for the year chosen. Which fact table?
    What criteria will limit the values of the Region?
    Thanks

  • How to get BP kind based on user name?

    Hi,
    How to get BP kind based on user name?
    Is there any table other than BUT000 which gives the Business partner no. and BP KIND?
    What is BLUEPRINT table?

    Hi John,
    do you mean Type:
    1     Person
    2     Organisation
    3     Group
    or Role like
    000000     Business Partner (General)
    BBP000     Vendor
    BBP001     Bidder
    BBP002     Portal Provider
    BBP003     Plant
    BBP004     Purchasing Company
    BEA001     Billing Unit
    BUP001     Contact Person
    BUP002     Prospect
    BUP003     Employee
    BUP004     Organizational Unit
    BUP005     Internet User
    The Role can be found in BUT100.
    Regards
    Gregor

  • Dynamic variation of prompt clause based on user selection

    Hi,
    I would like to know if there is any possibility to change the query to have 'IN' clause or '=' clause based on user prompt selection.
    Say, if user enters single value for a prompt, the query should have = clause and when enters multiple input, the query change to IN clause.
    HummingBird tool has the capability to dynamically change between = and IN based on the prompt selection.
    There seems to be some issue in performance because of the IN clause we’ve used while passing single prompt value when compared to Hummingbird tool.
    Is it possible in BI Publisher???

    Hi ,
    It is not possible to select the IN or = based on Prompt selection directly..
    You can Use IN..that will work as = also..
    Thanks,
    Ananth

  • Setting prompt value based on another prompt selection

    I have 3 prompts. The first one contains 'Y' and 'N'. The other 2 are for start-date and end-date so the report runs for this date range. I would like the start-date to be set to, say, '01/01/2009' if the user selects 'N' in the first prompt. If the user selects 'Y', the start-date will be set to, say, '02/01/2010'. These values are not dynamic though.
    Please let me know how I can do this.
    Thanks,
    Bhusan

    Sandeep,
    Here is what I did.
    1. The first prompt has 'Y' and 'N' that comes from a database table. So did not have to create these.
    2. The second prompt - Used the following SQL for Show - select (case '@{LegacyVal}{N}' when 'N' then '01/01/2009' when 'Y' then '02/01/2010' end) from SubectArea."Registration Date". I kept "All Choices" checked. In the default to, I selected "All Choices".
    Now when I test this and select any value from the first prompt, the second one does not change. It keeps the All Choices value always. What am I doing wrong here? I went through the earlier posts and tried to follow the steps, but looks like I am not doing the right way.
    Thanks,
    Bhusan

  • Widget to get drop down values based on user input query string

    Hi,
    I have a requirement, where in user types in some text and clicks on a search button. On button click, a drop down or some box appears which has result based on the input string (from json ). User can select one of the values in the drop down or box. User should be able to select values from drop down or box only.
    How can I achieve this. Is there any custom widget in CQ for this, or I have to write my own widget.
    Can i use SuggestField widget for this? if yes, please give some example for this widget.
    I want something similar to "authselection" widget. In case of authselection widget user names come from CQ, in this case user name will come from some other system using a CQ custom json.
    If user types "gopa" and click on search , i should be able to call a json with query parameter "gopa" & the result from the query will be in the drop down.
    Regards,
    Gopal

    Hi Gopal,
              Out of the box there are many example. You can look for siteadmin has a reference.
    Thanks,
    Sham

  • Trying to set attribute value based on user selection of another attribute

    I am trying to set an attribute value based on the user's selection of another attribute using JSP EditCurrentRecord. When the user chooses the AreaId from the combo box I want to look up the value of the RgnID, preferrably without the user seeing this field at all. Below is my code which does not work. When I run it I get Error Message: null. Any suggestions are appreciated!!
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(pageContext, "MyProject2_package1_SRSecurityModule.UsrAreaWhView");
    RowEditor.setTargetUrl("UsrAreaWhView_SubmitInsertForm.jsp");
    RowEditor.createNewRow();
    RowEditor.setDisplayAttributes("OracleId, RgnId, RegionKey, AreaId");
    RowEditor.useEditField("OracleId");
    RowEditor.getFieldRenderer("OracleId").setPromptText("Oracle ID");
    RowEditor.useEditField("AreaId");
    RowEditor.useComboBox("AreaId","AreaWhView","Area","AreaKey");
    RowEditor.getFieldRenderer("AreaId").setPromptText("Area");
    RowEditor.useEditField("RgnId");
    RowEditor.getFieldRenderer("RgnId").setPromptText("Region");
    RowEditor.getRowSet().getViewObject().getCurrentRow().setAttribute("RgnId",RowEditor.getRowSet().getViewObject().getCurrentRow().getAttribute("RegionKey"));
    RowEditor.setReleaseApplicationResources(true);
    RowEditor.render();
    %>
    </jsp:useBean>

    ok, sorry everyone for making it confusing; this is what I am
    trying to acheieve;
    I would like the user to populate my database with thier
    username AND userID. I have a dropdown box with thier username
    dynamicly populated already, what I am trying to achieve, is a way
    of when the user selects thier username either another dropdown or
    a hidden field is automatically populated with the appropiate
    userID (to match thier username). Now I could just have two
    dropdowns and they select both, but i'd rather avoid the
    possibility of mismatches, and that is why I would like it to be
    automatic and based on thier username selection...
    Does that make sense....?

  • SQL Server 2012 Always ON routing to particular server based on User Name

    I have configured SQL Server 2012 with AlwaysON availability groups. I could route my connections to Secondary node when I put the applicationintent = readonly on the connection string. However I would like to route all of my connections from particular
    user name to my read only node. How can I accomplish this without changing connection string (Reason is I would like to be able to route connections for read only query to some older application client that doesn't support applicationintent parameter).

    Hello,
    There is nothing built in that will allow you to dynamically re-route connections based on usernames. This may be achieved outside of SQL Server through some sort of network appliance, but I can't say for sure.
    Would it be possible to upgrade the SQL Client (to 2012+) for the old application and then change the connection string?
    Sean Gallardy | Blog |
    Twitter

  • Key figure value based on user input.

    Dear Friends,
    We are using BI7.00 and NW2004S. In one of our report to monitor the number of notification closed and the number of notification open upto the user selected month. For this i have created a Query which has selection screen value as month. I have created a condition which will fetch the difference in days (notification completion - notification creation date) based on user entered value.  For example if user enters 10 in the selection screen, report will fetch the notifications which have diffrence in days as 10.
    The condition is okay for the above. What user actually wants is the number of notifications completed and that pending based on the value he enters in the screen. For example he enters 10 in the screen, system should show the values as shown below
                    > 10 days    
    Completed                Pending
              3                           2 
    I tried various options but could not achieve this.
    Experts help expected. Kindly provide solution.
    Regards,
    M.M

    Hi,
    As per my understanding 1 firstly u have to find out
    the no of days (diff between dates notification completion, notification creation date .)
    then u have to create condition on no of days which u
    have find.there u have to create one user entry
    variable for the user can enter his own parametrs.
    Right?????
    If It is right..
    here are the steps..
    1st:in the query designer at key figure coloumn create
    one local formula.in that local formula create formula
    variable with replacement path.in that take reference character
    notification completion.in the next tab take replace ment
    as key.in the last tab select "date".
    2nd: do the same thing for the notification creation date.
    3 rd : create 3 rd local formula and do the substraction
    for the first 2 local formulas.
    4th:create codition on the difference which u have find with
    on that condition u can create one user entry varibale.
    5th:while u defining the query put these 2 dates,i,e
    notification completion, notification creation date in the character block.
    If not system will ignore the formula variable which u created in
    above steps.
    Hope this wil help u.
    regards....KP

  • Multiple communication channels for file adapter based on user name

    I am using this Idoc-to-File scenario, using FTP for sending the files to file server. Target directory is determined by user id which is unique for a field called ASC.  Field ASC is a part of incoming Idoc. There are 40 ASC; that means I have 40 user ids/password. Is there way of creating a file communication channel where user id/password can be supplied dynamically. Or there is an alternative to creating 40 different channels, one for each ASC.
    Thanks,
    Dehra

    Hi,
    you need to create 40 channels if you have users
    as dynamically you can only create:
    File Name
    Directory
    File Type
    File Encoding
    Temporary Name Scheme for Target File Name
    with FTP adapter
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Prompt value based on another prompt(Multi Select prompt)

    Hi Expert,
    I have two multiselect prompt Continent and conutry
    my req is when I select continent in the first prompt then second prompt sholud show the country based on first prompt value.
    Ex : If I select Asia in continet then country prompt sholud show only Asia's country.
    any sugeestion pls.
    i know constraint but only possible in drop down prompt..

    Hi,
    Constrain is not applicable for edit box only.We can use it for drop down list and multi select also.Other wise go for the presentation variable.
    mark if helpful/correct...
    thanks,
    prassu

  • P.O Release based on user name

    Hi,
    Detail Issue :
    As we are bascially a constuction company and we have many sites all over india. For each site we have given separate user name & password. And now if a P.O is created in a user name (ex: ABC) from one site it can be released by another site user name (Ex: XYZ). But our company has said that if a P.O is raised by Site with their username (EX: ABC) only that site with their login (Ex: ABC) should release the P.O. And if another site with their login try to release the P.O raised by different site they should not have the authorization.
    As different sites are different projects for us so the Confidential info about one project should not be leaked to another project.
    So if there is any user exit for the above issue pls reply.
    Thanks
    Regards
    Dinesh

    Dear,
    Only one user exists or created in each site???
    Basing on your query, its understood that one user only exists for one site. Basically one user (Employee in general) mean on individual entity. Many employees means many users.
    Now come to Releasing PR - Superior authority (Management / Supervisor level) has to release PR using their login user and its recorded in PR accordingly. Same user creating PR and releasing PR (even you maintain authorizatiosn for ME52N) not suggistible.
    Secondly if come straight to  P.O is raised by Site with their username (EX: ABC) only that site with their login (Ex: ABC) should release the P.O not bye XYZ, restrict XYZ for view and change PR of ABC created with BASIS authoriations.
    Regards,
    Syed Hussain.

  • Passing dynamic prompt values.

    Hello,
    I have around 250 Webi reports that i need to schedule to run on a monthly basis, and using the scheduled month/year as prompt value.
    What is the best way i can accomplish this?
    If i set an individual report to run recurrently every month, it will always use the prompt's default values or the values i set manually at the CMC, but that doesnt work for me because i need the prompts to be different each time they run..
    I cant use the magic date solution because 99% of the reports use UserResponse() for year and month on table headers and similar.
    Is this possible with coding? Can i code a script and schedule it to run every month, that will run through my list of reports to pass them the correct prompt and refresh them?
    What is the recommended way to achieve something like this?
    I already have a VB script that schedules an individual report to run immediatly, but i cant pass the prompts..
    Thank you for your patience

    Hi Oscar,
    I have attached a JSP file (renamed to .txt) with the code i used to fill the prompts dynamically with date variables (year, month, full date, etc).
    You will need some libs. You should copy another web application deployed on the bo server tomcat and use that folder or read the SDK manual for the exact necessary libs - sorry, I have read this list somewhere but i cant remember where.
    This code is not exactly great, far from it, but it has some comments and should give you a helpful start. I wish I had this when i needed it.
    You need to know a bit of java to understand it.
    After you have this working you just need to call the JSP to schedule the reports. We used a vbscript scheduled on the Windows Task Scheduler to call this every month. Each JSP schedules an entire folder full of reports.
    Cheers, and good luck.
    Fernando

Maybe you are looking for