How to get value in dashboard prompt from database

Hi All,
I am using dashboard prompt (Year Prompt) to filter reports on year basis.
fact table stores the hit date on a particular site linked with date dimension table .
I have Datas in fact table say from year 2005 to 2009 .In dashboard Prompt it is showing me all the years 1990 to 2021(that are in date dimension).
I hard coded the value of years in prompt now it only showing me years 2005 to 2009.
My question is that is their any way that prompt automatically take values from database, those years which are stored in fact table ?
Thanks in advance.

Hi...
Try writing query for dashboard prompt to get desired values..
*select distinct year(FactTable.HitDate) from SubjectAreaName*
To work this.. you should have HitDate column in presentation layer. (You can drag this column from fact in BMM and drop in any dimensions of presentation Layer, and name it as HitDate (Fact).. some thing like this...

Similar Messages

  • How to pass values to dashboard prompts from external applications

    Any idea is well appreciated.
    How can I pass values of dashboard prompts from external applications to the dashboard prompts so that the dashboard is prefiltered based on values sent by external applications.
    Thanks in Advance!
    Kris

    Kris,
    i am able to change the session variable and able to call the dashboard from external app, but i identified prompt value not changing. but Finally i am able to found a workaround for you.
    Use the following URL and it explained here
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    PortalPath is your dashboard location. /shared/abcd is folder where i saved dashboards. dash1 is my dashboard name.
    internally this dashboard includes many reports that uses the session variable. after doing above this i am able to update the session variable to the value i have given in URL, DSN=value.
    You may observer here that calls the dashboard and passes the value but its not updating the prompt value. so workaround for this is edit your prompt,
    change the Default to - SQL Results and place the sql
    SELECT CASE WHEN 1=0 THEN Markets.Region ELSE VALUEOF(NQ_SESSION.DSN) END saw_0 FROM Paint
    again here Market.Region is column from presentation layer and Paint is subject area. After doing this step, your prompt always shows value in the session varible as default.
    Now include reports and dashboard prompt in the dashboard and run this url from external applicaitons.
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    it worked for me and blog this soon. if it works for you mark the question as answered and mark my replies as correct.
    thanks
    - Madan

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • XSL-How to get value of a variable from inside loop-- to the outside loop?

    Pls help
    hi im currently working on this xsl file..
    This works on generating a txt file,my problem right now is
    ' how can i get the value of a variable generated from the inside forloop,
    i have to get the total,sum value of this variables after performing the loop
    ***this is the for loop
    <xsl:for-each select="OutboundPayment">
    <xsl:variable name='id' select='generate-id(OutboundPayment)'/>
    <xsl:sort select="PaymentNumber/CheckNumber" data-type="text" />
    <xsl:variable name='PValue' select='format-number(100*PaymentAmount/Value,"0000000000000")'/>
    <xsl:value-of select='$id'/>
    <xsl:text>D</xsl:text>
    <xsl:value-of select='$DDate'/>
    <xsl:value-of select='$Batch'/>
    <xsl:text>3</xsl:text>
    <xsl:value-of select='format-number(PaymentNumber/PaymentReferenceNumber,"0000000000")'/>
    <xsl:value-of select='format-number(PayeeBankAccount/BankAccountNumber,"0000000000")'/>
    <xsl:value-of select='substring(Payee/Name,1,20)'/>
    <xsl:value-of select='$PValue'/>
    <xsl:variable name='Addend' select='concat($DDate,substring($DAcct,5,5),$Batch)'/>
    <xsl:variable name="LHash">
    <xsl:call-template name="GetHash">
    <xsl:with-param name="A1" select="$PValue" />
    <xsl:with-param name="A2" select="$Addend" />
    </xsl:call-template>
    </xsl:variable>
    <xsl:value-of select="concat('[',$LHash,']')" />
    <!--LHash*i have to get the total amount of this one from the outside loop /---->
    <xsl:call-template name='NewLine'/>
    </xsl:for-each>
    <!--I have to put in here the total value of that LHash/---->
    <!--This is the template on how to get the value of that variable in the inside loop/---->
    <xsl:template name="GetHash">
    <xsl:param name='A1'/>
    <xsl:param name='A2'/>
    <xsl:variable name='TwoSum' select='format-number($A1+$A2,"000000000000000")'/>
    <xsl:variable name='Weight' select='317191314191112'/>
    <xsl:call-template name="WDigit">
    <xsl:with-param name="Cnt" select="15"/>
    <xsl:with-param name="Sum" select="$TwoSum"/>
    <xsl:with-param name="Wgt" select="$Weight"/>
    <xsl:with-param name="Tot" select="0"/>
    </xsl:call-template>
    </xsl:template>
    <xsl:template name='WDigit'>
    <xsl:param name='Cnt'/>
    <xsl:param name='Sum'/>
    <xsl:param name='Wgt'/>
    <xsl:param name='Tot'/>
    <xsl:choose>
    <xsl:when test="$Cnt > 0">
    <xsl:variable name='Multip' select='substring($Wgt,$Cnt,1)'/>
    <xsl:variable name='Factor' select='substring($Sum,$Cnt,1)'/>
    <xsl:variable name='Prduct' select='$Multip$Factor'/>
    <!--xsl:value-of select="concat($Tot,'[',$Cnt,']')"/-->
    <!--xsl:value-of select="concat($Multip,'x',$Factor,'=',$Prduct)"/-->
    <!--xsl:call-template name='NewLine'/-->
    <xsl:call-template name="WDigit">
    <xsl:with-param name="Cnt" select="$Cnt - 1"/>
    <xsl:with-param name="Sum" select="$Sum"/>
    <xsl:with-param name="Wgt" select="$Wgt"/>
    <xsl:with-param name="Tot" select="$Tot+$Prduct"/>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:variable name="Rem" select="$Tot mod 11"/>
    <xsl:variable name="Chk" select="11 - $Rem"/>
    <xsl:value-of select="format-number(concat($Tot,$Chk),'00000')"/>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:template name='GetTotal'>
    </xsl:template>
    Thanks in advance for those who are willing to help.
    -Leighya

    It would have helped if you had posted your code as CODE but as it is, I could hardly read it. My guess about what you are asking is, if you want a template to return a value, just write that value to the result stream inside the template.
    If that wasn't what you were asking, then please post your code in a readable format.

  • Jsp:usebean How to get value of an object from a bean

    I am new to JSP and am struggling from past few days to solve a problem. Consider the below scenario
    Class Book{
    private String author;
    public void setAuthor(String author)
    public String getAuthor(){
    return author; }
    Class Rack{
    private Book []books;
    public []Book getbooks()
    return books;
    public void setbooks([]Book val){....}
    Suppose Books gets populated only using Rack and I have Rack populate in my session, using jsp:usebean or any other tag how can I get value of author? Does using tag handle null value check of books, if books are not set by any chance?
    Regards,
    Dhyan

    I got a way out to access the attribute, i feel it is
    <jsp:usebean id="myRack" class="settings.Rack"/>
    <c:foreach var="book" item="myRack.books">
    </c:foreach>
    I am not able to check if this is correct or not because myRack.books is not having any value set by me in the request scope. How do i get instance of Rack class set by another page in the current request? I can get the value if i use scriptlet but i dont want to use scriptlet.
    I am continiously trying, if I get an answer, I shall post, else pls somebody guide.

  • How to get value in backing bean from application module

    Hi all.. I'm new in jdeveloper and adf..
    I need to use value from backing bean and use that value in application module.
    But I don't know how to get it.
    Do you a have any solution?

    suppose you have myMethod(String argumentName1,String argumentName2) in your Application Module
    then to access a method binding from a managed bean, use the following code,
      BindingContext bctx = BindingContext.getCurrent();
      BindingContainer bindings = bctx.getCurrentBindingsEntry();
      OperationBinding operationBinding =
           bindings.getOperationBinding("name_of_method_binding");
      //Here you can pass the parameters value to the AM method
      operationBinding.getParamsMap().put("argumentName1",value1);
      operationBinding.getParamsMap().put("argumentName2",value2);
      //invoke method
      operationBinding.execute();
      if (!operationBinding.getErrors().isEmpty()) {
         //check errors
         List errors = operationBinding.getErrors();
      //optional
      Object methodReturnValue = operationBinding.getResult();

  • How to get  value on jsp file from ActionServlets class

    Hi All,
    I am facing problem in action servlets class into Struts, I am able to get the value on jsp file from action class with the help of session scope but i want to another method for it , so how i can solve the problem.Plz help me
    Thanks......... in advance

    I got a way out to access the attribute, i feel it is
    <jsp:usebean id="myRack" class="settings.Rack"/>
    <c:foreach var="book" item="myRack.books">
    </c:foreach>
    I am not able to check if this is correct or not because myRack.books is not having any value set by me in the request scope. How do i get instance of Rack class set by another page in the current request? I can get the value if i use scriptlet but i dont want to use scriptlet.
    I am continiously trying, if I get an answer, I shall post, else pls somebody guide.

  • How to get value object (entity abject) from ViewObject?

    How to get data from ViewObject in the form of value object? I know BC4J creates entity object for database table/view (looks like value object) but I did not find api to get entity object from ViewObject.
    Thanks.

    BC4J provides an implementation of the value object design pattern for you, so you don't have to waste time writing your own.
    I wrote a whitepaper illustrating how to take advantage of this at:
    Implement Collections of Value Objects for MVC Apps with BC4J
    This allows clients (like a servlet, a JSP, a Swing client, etc.) to get value objects from the collection of value objects that BC4J supports.
    However, if you are writing code inside your view object implementation class and want to access the entity object, just call the accessor that we generate into your view row implementation class for you. For example, for a VO named EmployeeView that uses an entity object named Employee, there will be a private accessor method getEmployee() that will give you the entity.

  • How to get to O.S. prompt from ZFS appliance?

    We only have GUI or a structural prompt access. I know somehow we can type O.S. coomands under a O.S. level prompt. Could somebody please help me on how to get to that layer?
    Thanks!

    It's a bit crude but it should return a comma delimited filelist....
    using System;
    using System.Collections;
    using ps = Photoshop;
    namespace getBridgeFiles
        class Program
            static void Main(string[] args)
                ps.ApplicationClass app = new ps.ApplicationClass();
                String Code = "var fileList;"+
    "if ( BridgeTalk.isRunning( 'bridge' ) ) {"+
    "var bt = new BridgeTalk();"+
    "bt.target = 'bridge';"+
    "bt.body = 'var theFiles = photoshop.getBridgeFileListForAutomateCommand();theFiles.toSource();';"+
    "bt.onResult = function( inBT ) { fileList = eval( inBT.body ); }"+
    "bt.onError = function( inBT ) { fileList = new Array(); }"+
    "bt.send(8);"+
    "bt.pump();"+
    "var timeOutAt = ( new Date() ).getTime() + 5000;"+
    "var currentTime = ( new Date() ).getTime();"+
    "while ( ( currentTime < timeOutAt ) && ( undefined == fileList ) ) {"+
    "bt.pump();"+
    "$.sleep( 100 );"+
    "currentTime = ( new Date() ).getTime();"+
    "}}"+
    "if ( undefined == fileList ) {"+
    "fileList = new Array();}"+
    "fileList = decodeURI(fileList.toString());";
                String RC =  app.DoJavaScript(Code, null, null);
                ArrayList list = new ArrayList();
                list.AddRange(RC.Split(new char[] { ',' }));
                for (int index = 0; index < list.Count; index++){
                    Console.WriteLine(list[index]);
                Console.ReadLine();

  • How to get value of some key from Registry Edit in a Java class?

    Hi,
    I want to write a program which needs to access the value for HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.6.0\MSI' paths 'INSTALLDIR' key's value.
    Does anybody have pointers on this?
    Thanks In Advance,
    Kalyani.....

    hi,
    this is the code i am employing and i want to know why i am failing:
    import com.ice.jni.registry.Registry;
    import com.ice.jni.registry.RegistryException;
    import com.ice.jni.registry.RegistryKey;
    import com.ice.jni.registry.RegStringValue;
    import com.ice.jni.registry.RegistryValue;
    * @author ayesha
    public class ReadingRegistryValueFromRegistry {
         private static String TOP_KEY_NAME="HKEY_LOCAL_MACHINE";
         private static String KEY_NAME="SOFTWARE\\JavaSoft\\Java Development Kit\\1.5.0_08 ";
         private static String ARG_KEY="JavaHome";
         * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
    System.out.println(getGMDBPathFromRegistry()+"111111111111111111111111111111111111111111111111111111111");
         private static String getGMDBPathFromRegistry(){
              String gmDBPath=null;
              RegistryKey topKey=null;
              String topKeyName=TOP_KEY_NAME;
              //System.out.println(topKeyName+"33333333333333333333topkeyname");
              String keyName=KEY_NAME;
              //System.out.println(keyName+"5555555555555555555555555555555keyName");
              String argKey=ARG_KEY;
              //System.out.println(argKey+"66666666666666666666666666666666666666666666666666666666argKey");
              topKey=Registry.getTopLevelKey(topKeyName);
              System.out.println(topKey+"somethingsomething");
              if(topKey==null){
                   return gmDBPath;
              RegistryKey subKey=Registry.openSubkey(topKey,keyName,RegistryKey.ACCESS_READ);
              try{
              System.out.println(subKey.toString()+"value i got in here");
              catch(Exception e){
                   System.out.println(e.getCause().toString());
              if(subKey==null){
                   return gmDBPath;
              try{
                   gmDBPath=subKey.getStringValue(argKey);
              catch(RegistryException ex){
                   return gmDBPath;
              return gmDBPath;
    I want to read from the registry entry the value of java.
    Any suggestions are eagerly awaited.
    ayesha.

  • How to get value of a structure from a standrd program to Z program

    There is a standard program which generates a file when it is run a file is created
    The name of the file is stored in a structure. I am submitting this standard program in my Z program I have to get the file name from the structure

    Hi,
    Does this help?
    you can retrieve the content of a structure from another shared memory by assigning it with a field symbol:
    e.g.
    FIELD-SYMBOLS: <staffel> TYPE table.
    * get itab data from SAPMV13A
    ASSIGN ('(SAPMV13A)STAFFEL[]')  TO <staffel>.
    Kind regards, Rob Dielemans

  • How to get java.sql.Timestamp data from database

    Hello, i'm new to EJB and i can't get java.sql.Timestamp data, but when i'm trying to get java.lang.String data it works fine.
    * @ejb.finder
    * query="SELECT OBJECT(c) FROM userSCHEMA AS c
    *      WHERE c.lastName LIKE ?1
    * AND c.firstName LIKE ?2
    * AND c.registeredDate < ?3"
    * signature="java.util.Collection findPatient * (java.lang.String lastName,
    * java.lang.String firstName,
    * java.sql.Timestamp)"
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.sql.Timestamp</method-param>
    </method-params>
    Where i made a mistake ?

    The main problem that I'm faced with, is that the
    java.sql.Timestamp now has only one constructor, it
    takes "long", i.e., milliseconds.That's because a Timestamp is just an offset from a particular instant of time. It doesn't have a timezone.
    Please note that I'm not trying to "print", i.e., I'm
    not interested in using the SimpleDateFormat.Then what are you interested in? You appear to be trying to create a Timestamp with a particular timezone, which doesn't make sense as I already noted. Is there a reason for this?

  • Get rid of SQL ID from database

    1. The SQL query is running nore than 30 mints with SQL ID aaaaabbb7RRRR . we killed the seesion and clear cache
    again we ran the query, the query is assigned to same sql ID aaaaabbb7RRRR we killed the seesion and clear cache
    ran query one more time it is assigned to same ID again
    anyone know how to get rid of SQL id from Database
    Edited by: user8680248 on 19/04/2010 22:32

    user8680248 wrote:
    I have shutdown the database and restarted , I can see the query assigened to teh same SQL IDYou seem to think SQL_ID is uniquely generated for each SQL Statement.
    I'd come to he conclusion that it is derived from the hash value of the SQL statement. Which to me means that the same SQL statement would result in the same SQL_ID. Some internet hits that support my way of thinking are
    http://www.experts-exchange.com/Database/Oracle/10.x/Q_23843388.html
    http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/
    http://www.slaviks-blog.com/2010/03/30/oracle-sql_id-and-hash-value/
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:10353453905351
    from which I note that Tanel shows a way of converting the Hash value (derived directly from the statement) to the SQL_ID, and Tom says "sql_id survives database instance restarts and reloads."

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • Solaris 10: How do I get to the {ok} prompt from here?

    My Sparc box which is running Solaris 10 stopped working due (I think) to a power outage. Now I can't get it to boot up. I'm not interested in trying to recover the contents of the hard-disk. I just want to make the machine usable again. So I am trying to install the OS from the CD Rom drives. I have removed the hard drives so that it doesn't try to boot off them
    This is what I see on the serial connection:
    INIT: create: Permission denied
    create: Permission denied
    create: Permission denied
    create: Permission denied
    create: Permission denied
    create: Permission denied
    create: Permission denied
    create: Permission denied
    create: Permission denied
    create: Permission denied
    INIT:
    ->
    What I need to know is how do I get to the {Ok} prompt from here?
    How do I get to the Ok prompt from here?
    Edited by: 994606 on Mar 20, 2013 12:10 PM
    Edited by: 994606 on Mar 20, 2013 12:12 PM

    Use a serial cable to connect to the server, then with either putty or teraterm connected power on the server. When it displays something similar to this:
    Sun Fire V890, No Keyboard
    Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
    OpenBoot 4.30.4.c, 32768 MB memory installed, Serial etc
    etc.
    etc.
    Use the putty special command to send a break signal or use teraterm control --> send break. The server will drop to the ok prompt.
    This is how I do it on all our servers as required and works a treat.
    Thanks.

Maybe you are looking for

  • How can I paste an AP Group into a WLC so I don't have to do it by hand?

    I'm creating a new AP group across a WiSM farm.  All WiSMs will get the same AP Group. Problem is, the interfaces were created with spaces, such as "vlan 90".  Other interfaces, created with names, such as "MyWLAN" will paste in. (controller) >config

  • How to create image swap buttons

    I'm not sure where to post this question, but it involves images and was wondering if Fw is the place to start. I want to create a retro car radio navigation for a web site. Old push-button radios usually had an indicator that travelled behind the nu

  • Mini Server makes odd noise from speaker!

    Anyone else getting a noise from their Mac Mini server speaker that sounds like a file being deleted? No regular pattern to when it comes, it's unprompted and happens even when no one is logged on to the network. I have a (used) Mac Mini 2011 with tw

  • ======= Xtended Configuration Management-Runtime Error=========

    Hi Experts, Need your immediate response/feedback for the below Error explained brieflyu2026 We are able to download/replicate the Products & KB objects into CRM System from R3. After that we have done the followings steps to configure the VC product

  • Commit() doesn't work...why?

    Hi, I have a problem with this code       user = getProfilsUtilisateursLogin();       user.setMaxFetchSize(1);       user.setNamedWhereClauseParam("var_CpCdUtilisateur", userLogin);       user.setNamedWhereClauseParam("var_ChPassword", null);       u