The substitution of Session variables with asking Varaible in prompt of

Hi all

(1) I want to show the values of Current_month which is max(reporting_date).created a prompt (drop-down)

(2) when a user changes it to the previous month I say 11/31/2009 current_month values to be values of month 11. How can I achieve this

My work around

-> created a session with the following query variable in the initialization block
 SELECT to_char( MAX( report_date),'YYYY/MM/DD' )  from dual  
-> created the Variable and the option checked on 'enable any user to define the variable '.

-> by guests... Set variable Variable Request-> report_date

-> For Fx in the column Current_month, I use the formula like this
 FILTER((Sold Quantity) USING (Reportdate = VALUEOF(NQ_SESSION.Report_date)))  
When I click on Preview I get results, but when I added the guest with (application of report_date Variable) in the dashboard, it gave me an error

+ State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 22024] A comparison is performed between incompatible types. (HY000) +.

I checked that all the columns are in the format of DATE only...

Pls suggest me a solution


Thank you
saichand.v

An observation: that error you have found because of... non - compatible data types...

See... in your SQL written you in block initialization got char data type...

SELECT to_char( MAX( report_date),'YYYY/MM/DD' )  from dual 

And. That you are assigning to the Date column... it is the reason you get this error...

Tags: Business Intelligence

Similar Questions

  • Session variable with a list of dashboards availalble?

    Hello

    Is it possible to fill one - line-wize?-session variable (using a block variable & init system: USER) with a list of dashboards users will have access (such as the list of dashboards displayed at the top of the Web Portal) once he's logged?

    My client said the obligation to provide each user with a default "Home" (different from "My dashboard") dashboard that will provide an overview of the available dashboards, accompanied by a description of each dashboard.

    So, what is the syntax to use?

    Thank you!

    Randall

    Hi Randall,.

    The BI-serveur is not aware of the presentation server. In other words, that he doesn't know what dashboard a user has access. What you could do is populate a table in the comic book and use the guided navigation to access the dashboard.

    concerning

    John
    http://www.obiee101.blogspot.com/

  • Helps the guest of session variable and dashboard

    Hi, I ran into soemthing that I can't understand.

    In the administration tool, I defined a CURR_MONTH session variable and set the query to find month max in the date dimension. It's all works fine - if I test the variable in OBIEE administration tool, it currently returns "January 2010".»

    In addition, in the responses, I can create a query that moves back calendar information and then put a filter on it so the specific columns is equal to the session variable. It works perfectly - I get the 3 lines of return data that correspond to the 3 days of data we loaded for January 2010.


    However, now that I'm trying to do is set a dashboard with the dimension command prompt date in it. I want the default to months / year equal to the value of CURR_MONTH. However, when I do this, instead of getting the correct value, for some reason some, it becomes the default value I put in place for this variable.

    Any ideas on what I am doing wrong or if it is a bug?

    Thanks in advance,
    Scott

    p.s. using OBIEE 10.1.3.4, with no applied patches. I'll upload pictures when I get home... is not a way to their work stations.

    Hi Scott,.

    I just tested and it works fine for me.

    (1) in your DB guest pass by default to
    (2) select the Server Variable
    (3) NQ_SESSION. CURR_MONTH
    (4) save and test

    Well, that should work for you. Here is a link to a jpg file that you should probably keep for future reference. She'll show you the proper syntax to use in different situations.

    http://shivabizint.files.WordPress.com/2008/10/OBIEE-variables-overview.jpg

    -Joe

  • How to get the value of the embedded content Session Variables

    Hello world.

    I have the following requirement: I want to incorporate a web page of external non-Oracle-BI in my dashboard of Oracle BI. I need the Session Variables (for example NQ_SESSION. USER) to control my external web page. My question is how can I get the value of the Oracle's BI dashboard Session Variables.


    Thank you.

    Allen

    Have you used the narrative mode? The narrative point of view to add html customized to your report, using the values in the table view. @2 refers to the second column in your report, @3 to the third, etc.
    By using an iframe, you can open an external Web page and with @2, you can pass the value of the variable user to the external Web page.

    Kind regards
    Stijn

  • More information about the lack of session variables

    The following code works correctly if called directly, but if it is called remotely (XMLHTTP, Spry) two values went okay, but the session.variables are nowhere to be seen after refreshing the page.

    < cfsetting showdebugoutput = false >

    < cfset application.blog = createObject("component","petitions.client.org.camden.blog.blog").init ('default') >
    < cfset application.blog.authenticate = q (left (trim (url.username), 50), left (trim (url.password), 50)) >

    < cfset session.userId = q.userId >
    < cfset session.userRealName = q.name >

    #session.userId # < cfoutput > < / cfoutput >
    #session.userRealName # < cfoutput > < / cfoutput >

    All variables in session on the other pages are presented and preserved as expected.

    Just in case my < cfapplication is:

    < = cfapplication name "" #prefix #_blog_ #blogname # ""
    ClientComm = 'no '.
    setClientCookies = "no".
    setDomainCookies = 'no '.
    loginStorage = "session".
    sessionManagement = "yes".
    sessionTimeout = #CreateTimeSpan (0,1,0,0) #.
    applicationTimeout = (1,0,0,0) #CreateTimeSpan # >

    and there is nothing in Application.cfm that removes these two specific session variables.

    What is a special behavior of XMLHTTP? or Spry?

    Thanks for help.
    ContiW

    Thank you so much Ian.
    So, no setting of session in the remote file variables.
    Must find the way.

    All the best.

  • In the physical layer session variable

    Hi all

    I am using the session variable in the physical layer, I mean select the statement as region select, back, year of ABC where siteid ='VALUEOF (NQ_SESSION. ("' siteid ')' but it generates a warning saying that

    WARNINGS:
    GLOBAL:
    The repository variable, NQ_SESSION. "' SiteId ', has no definition of value.

    even if I gave the value is equal to zero for not exisiting site in init block, but it is always survey the same caveat.

    is that what I'm doing wrong. Please can you give your valuable suggestions.

    Thanks for your replies! 1

    Ignore this warning and check the answers. Because the RPD will not maintain any session variable value.

  • The use of bind variables with XMLTABLE?

    I tried to use bind variables with xmltable statement. Here, my unit test:

    create or replace function wsdltest return xmltype as
    l_dummy xmltype.
    CLOB l_stt;
    L_Name varchar2 (500);
    CLOB l_xml;
    BEGIN
    l_xml: =.
    ' < name of definitions = 'F1' targetNamespace = "http://xmlns.oracle.com/orawsv/XFILES/F1" xmlns = "http://schemas.xmlsoap.org/wsdl/" xmlns:tns = "http://xmlns.oracle.com/orawsv/XFILES/F1" container = "http://www.w3.org/2001/XMLSchema" xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/" >
    < types >
    < xsd: Schema targetNamespace = "http://xmlns.oracle.com/orawsv/XFILES/F1" elementFormDefault = "qualified" >
    < xsd: element name = "SVARCHAR2-F1Input" >
    < xsd: complexType >
    < xsd: SEQUENCE >
    < xsd: element name = "A VARCHAR2 IN" type = "xsd: String" / >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >
    < xsd: element name = "F1Output" >
    < xsd: complexType >
    < xsd: SEQUENCE >
    < xsd: element name = "RETURN" type = "xsd: String" / >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >
    < / xsd: Schema >
    < / types >
    < name of message = "F1InputMessage" >
    < name of part = "parameters" element = "tns:SVARCHAR2 - F1Input" / >
    < / message >
    < name of message = "F1OutputMessage" >
    < name of part = "parameters" element = "tns:F1Output" / >
    < / message >
    < portType name = "F1PortType" >
    < operation name = "F1" >
    < input message = "tns:F1InputMessage" / >
    < output message = "tns:F1OutputMessage" / >
    < / operation >
    < / portType >
    < connection name = "F1Binding" type = "tns:F1PortType" >
    < style: binding soap = transport "document" = "http://schemas.xmlsoap.org/soap/http" / >
    < operation name = "F1" >
    < soap: operation soapAction = "F1" / >
    < input >
    < soap body parts: = 'settings' use = "literal" / >
    < / Entry >
    < output >
    < soap body parts: = 'settings' use = "literal" / >
    < / output >
    < / operation >
    < / binding >
    < service name = "F1Service" >
    < documentation > Oracle Web Service < / documentation >
    < name of port = "F1Port" binding = "tns:F1Binding" >
    < soap: address location = "http://localhost: 8080/orawsv/XFILES/F1" / >
    < / port >
    < / service >
    < / definitions > ';

    -OK
    l_stt: = ' select * from xmltable (XMLNAMESPACES ("http://www.w3.org/2001/XMLSchema" AS "XSD", default "http://schemas.xmlsoap.org/wsdl/"),)
    [' / / definitions/types/XSD:schema/XSD:element[@name="SVARCHAR2-F1Input ']"
    by the way xmltype(:1)
    columns
    path of xmltype AB ".") you;
    --
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml;

    -ERROR ORA-01006
    L_Name: = ' 'SVARCHAR2-F1Input "";
    l_stt: = ' select * from xmltable (XMLNAMESPACES ("http://www.w3.org/2001/XMLSchema" AS "XSD", default "http://schemas.xmlsoap.org/wsdl/"),)
    [/ / definitions/types/XSD:schema/XSD:element[@name=:2] "
    by the way xmltype(:1)
    columns
    path of xmltype AB ".") you;
    --
    EXECUTE IMMEDIATE l_stt INTO l_dummy using l_xml, l_name;

    Return l_dummy;
    END;

    Any idea?

    Thanks in advance
    Cyryl

    You can try something like

    declare
      l_dummy xmltype;
      l_stt clob;
      l_name varchar2(500);
      l_xml clob;
    BEGIN
    l_xml :=
    '
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Oracle Web Service
    
    
    
    
    ';
    l_stt := q'~ select *
      from xmltable( XMLNAMESPACES( 'http://www.w3.org/2001/XMLSchema' AS "XSD", default 'http://schemas.xmlsoap.org/wsdl/'),
                   '/definitions/types/XSD:schema/XSD:element'
                   passing xmltype( :2 )
                   columns
                   ab xmltype path '.' ) t
         where extractvalue( ab, '/element/@name', 'xmlns="http://www.w3.org/2001/XMLSchema"' ) = :1
     ~';
    l_name := 'SVARCHAR2-F1Input';
      EXECUTE IMMEDIATE to_char( l_stt ) INTO l_dummy using l_xml, l_name;
      dbms_output.put_line( l_dummy.getstringval() );
    end;
    /
    
  • Why the prefix names of variables with a colon?

    PROCEDURE calc_avg_sales
    BEGIN
    : sales.avg: =: sales.month1 /: sales.total;
    EXCEPTION WHEN ZERO_DIVIDE THEN
    : sales_avg: = 0;
    RAISE FORM_TRIGGER_FAILURE;
    WHEN OTHER THEN NULL;
    END;

    Excerpt of Oracle PL/SQL programming ISBN 0-596-00381-1 p. 106

    Why are the variables: sales.avg,: sales.month1 and: sales.total undeclared in the snippet above? He assumes that she is? Why is a: (colon) is placed in front of the variables?

    Why would you think that FORM_TRIGGER_FAILURE is triggered instead of ZERO_DIVIDE?
    In my production environment, I noticed that error messages are sometimes vague to the user and for technical users and would like to make use of a table of errors that would contribute to technical support to troubleshoot the cause of the error, without giving unnecessary details to the end user. Ideally, this would include details of Java Exceptions raised (usually large fireplaces) in applications that are part of the software architecture. How would you with a mechanism for error handling?

    Published by: Jon80 on June 24, 2012 14:02

    Hello

    Jon80 wrote:
    PROCEDURE calc_avg_sales
    BEGIN
    : sales.avg: =: sales.month1 /: sales.total;
    EXCEPTION WHEN ZERO DIVIDE THEN
    : sales_avg: = 0;
    RAISE FORM_TRIGGER_FAILURE;
    WHEN OTHER THEN NULL;
    END;

    Excerpt of Oracle PL/SQL programming ISBN 0-596-00381-1 p. 106

    Why are the variables: sales.avg,: sales.month1 and: sales.total undeclared in the snippet above? He assumes that she is? Why is a: (colon) is placed in front of the variables?

    Variables that start with an act of colon as global variables; they can be defined in a broader scope. The colon helps the compiler identify as being not necessarily defined in the unit being compiled.

    Why would you think that FORM_TRIGGER_FAILURE is triggered instead of ZERO_DIVIDE?

    In fact, I expect PLS-00103 encountered the symbol "DIVIDE" when waiting for the following..., because you have a space (DIVIDE ZERO) instead of a line of underscores (ZERO_DIVIDE). Cut and paste real code when posting here.
    If you fix that, then ZERO_DIVIDE is thrown in the procedure. An EXCEPTION handler keeps some errors that occur at the time reported to the caller. In this case, the EXCEPTION handler is not said "the ZERO_DIVIDE report as an error. Instead, cela... ». In this example, part of what he does on the contrary raises a different error, and it is the only error appearing on the appellant.

    Furthermore, "while some OTHER THEN NULL" is almost always a very bad thing to say.

    In my production environment, I noticed that error messages are sometimes vague to the user and for technical users and would like to make use of a table of errors that would contribute to technical support to troubleshoot the cause of the error, without giving unnecessary details to the end user. Ideally, this would include details of Java Exceptions raised (usually large fireplaces) in applications that are part of the software architecture. How would you with a mechanism for error handling?

    One thing that is oracle is often of short error messages, wave print-screen, but write long posts, detailed in trace files on the database server. Programmers are educated to search a trace file when they see some error messages. You could do something similar. Instead of (or in addition to) burn of trace files, you can insert rows in a table of logging of errors.

  • How to read the XML doc in variable with XPath?

    Suppose that a variable in BPEL contains an entire XML document as (without the quotes):

    "value1 < foo > < bar > < / bar > < bar > value2 < / > < / foo >.

    How to read of BPEL an XPath expression with the value of the second
    < bar > element in a nother variable "target"?

    What do I have to use getvariabledata? How to pass the XPath?

    Peter

    Peter

    Here's how you can get there by business to be divested. You can access it by writing the XML expression (do not select foo--> bar directly on the tree) as below

    bpws:getVariableData ('Variable_name', 'Foo','/ NS4:foo / NS4:barbpws:getVariableData("intCounter")') and assign it to the variable "target". Here the value of the variable integer "intCounter" represents the nth element under the tag "foo". Let us know if you face any issues.

    Hope this will help.

  • How can I activate the values hidden Login form in session variables?

    QUESTION: How can I get form elements hidden for primelang, studylang, country and nationality of the Login form Post table to become the session variables?

    Adobe page at http://kb2.adobe.com/cps/165/tn_16563.html gave me the info that didn't work because the code is old. The first question I asked was answered in useful, but partial and no values are appearing. All this is set out below, and I don't know if I can shorten and still make sense.

    Page 1 has a form of connection with six fields.

    The textfields in form are the user name and password.

    The hidden form fields are: nationality, country, studylang, primelang and their values will be set by incoming was a previous page URL or hard-coded in.

    I am trying to create four hidden fields session variables to avoid having to deploy recordsets on each subsequent page.

    After the "connect" button is pushed, I want that these four form fields hidden, nationality, country, studylang, and primelang and their values, proceed to the next page, as of Session Variables and then be available to all pages so I can use them in the links to other pages and in < img src="folderX/SessionVariableValue/book1.php. > Make sense?

    Each page of support seems to work:
    On the login page, the $MM_redirectLoginSuccess = "yadayada.php"; works very well.

    I used <? PHP if ($_POST) {print_r($_POST) ;}? > to check the post table and it works properly for all areas.

    I created links to the four Session Variables with the same words: primelang, studylang, country, nationality, and them deployed on the recipient page:

    <? PHP echo $_SESSION ['primelang'];? >

    <? PHP echo $_SESSION ['country'];? >

    <? PHP echo $_SESSION ['nationality'];? >

    <? PHP echo $_SESSION ['studylang'];? >

    QUESTION: How can I get the form to primelang items, studylang, country and nationality of the table to enter the head Post code on the recipient page? I have deployed it in the code of the head, but the gentleman who offered assistance previously not a not inform me how to get the hidden field values in the "what".

    <? PHP session_start();
    $_SESSION ['nationality'] = 'whatever ';
    $_SESSION ['studylang'] = 'whatever ';
    $_SESSION ['primelang'] = 'whatever ';
    $_SESSION ['country'] = 'whatever ';

    $nationality = $HTTP_POST_VARS ['nationality'];
    $studylang = $HTTP_POST_VARS ["studylang"];
    $primelang = $HTTP_POST_VARS ["primelang"];
    $country = $HTTP_POST_VARS ['country'];
    ? >

    What is the magic, missing link?

    I tried to use form Variables to pick up the values, but PHP doesn't, or I messed up.  I can't find a FULL explanation of how to create, move, retrieve and deploy the Session Variables anywhere on the web. Thank you for your help.

    What is the magic, missing link?

    You're going to start, but the magic missing link is the realization that "it doesn't matter" is a fictitious string that represents everything you want to assign to the session variable.

    
    

    $HTTP_POST_VARS and $HTTP_GET_VARS are obsolete. You must replace them by $_POST and $_GET respectively.

  • How to check the Session Variables using the analytical web dashboard

    This is my first post. Easy points to the first right answer... If I can figure out how to give points.

    Problem: I need to know how to check that the Session Variables with the Administration of Oracle BI tool are used by the web analytics tool.

    Environment: Windows running Oracle 10g BI. Connect to the database using web analytics http:// < server >: 9704/analytics, web analytics is running in a windows Explorer browser.

    Current situation: the analytical tool is connected to the database and I can use the screen of "Answers" to the table edge to probe the tables look and things as expected.
    In the administration Oracle BI tool I can see the session of web analytics and I see that he thinks that the Session Variables are set correctly.
    I have reasons to doubt that the analytical tool is to get the right variables and I need to check it out.
    I know that I should use the 'Answer' window to create a shape any of a query that includes NQ_SESSION. < my variable >, but I can't understand what the format should be doing the work.

    That's all I need.

    What I do is insert a text in my dashboard object and then set the properties of the text object to display the variable.

    for example to display the DISPLAYNAME variable, the text object properties are:

    User: @{biServer.variables ['NQ_SESSION.]} {[DISPLAYNAME']}

  • Urgent about the session variable

    Hello world

    I have a guest fromdate (calendar ctrl) and to this day (calendar control) and an orderID (here is multiple selection). Now my requirement is I should choose an order ID multiple selection and when I hit between the date should be invited for the fromdate and to this day, and they must spend in the report.
    Please help me how can I go to the 'view' Fordate session variables and 'day' based on orderid select multiple selection.

    Thank you very much for your help.

    Thank you
    Chakr

    Question - Ids come straight from shape is talbe. If so

    Work around... 2 buttons to go means 2 guests

    1prompt - Fromdate and todate with button variables-Go presentation

    2 guest - use the sql function to get values from fromdate and todate presentation values of variables in the where clause. -Go button

    Means, first you select the dates and and click on go. These variables intialises you will see IDs in the 2nd for the selected dates prompt. You can select from there and click on the 2nd GO button.

  • How to filter the Recordsets using the session variable?  Please help this makes me crazy...!

    I'm having the same problem as user "Gabe the facilitator" in a message sent in 2007.

    «My recordset that animates a PivotTable will not filter the results based on a session variable.» I know that the session variables are working because I have the echo of session variable in the page (dragged-n-dropped my session variable since the panels on my page links), and that works fine. So why can't filter my recordset with the same session variable? »

    Here is the code:

    <? php require_once('Connections/mockconn.php');? >

    <? PHP

    session_start();

    ? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    {if (! session_id ())}

    session_start();

    }

    $colname_info = "-1";

    If (isset($_SESSION['email'])) {}

    $colname_info = $_SESSION ['email'];

    }

    @mysql_select_db ($database_mockconn, $mockconn);

    $query_info = sprintf ("SELECT name, last_name, email, password registration E-mail WHERE = %s", GetSQLValueString ($colname_info, "text") ");

    $info = mysql_query ($query_info, $mockconn) or die (mysql_error ());

    $row_info = mysql_fetch_assoc ($info);

    $totalRows_info = mysql_num_rows ($info);

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    Home < title > < /title >

    < / head >

    < body >

    < div id = "info" > Hello <? PHP echo $row_info [""];? > < / div >

    <? PHP

    If (isset($_SESSION['email'])) {}

    echo ' your email: '.' '. $_SESSION ['email'].' '.' good work ";}

    ? >

    < / body >

    < / html >

    PLEASE PLEASE HELP... I've been to this day of...

    How do I filter the recordset based on the value of the session variable

    Then it works fine.

    Each test returned correct results.  We checked one) your session variable is set correctly, b) the SQL statement is properly filtered by email, and c) the returned results are as expected.

  • How to replace the variable with the help OF the operator?

    Hello

    I'm creating a form where the user selects the check box which products he wants to see. After the choice, I should show all sales of this product, but the selection does not recognize the variable after the IN operator, for example:

    SELECT the product, price, quantity
    FROM the sale
    Product WHERE IN (vcProducts);

    Can someone help me?

    Cree

    I guess that vcProduct is a varchar2 variable where you have a chain of your prodids, as ' 4711,4712 concatinated, 4713'. May be you have each place value '. Is not the question, which is not part of the sql syntax set. You either have a list of enumeration or a subselect.

    Where do you need it? In the block or Pl/Sql where clause.
    In the latter case, you can configure the list in a variable (with enclosing "") and set the block where property.

    In the first of may by INSTR is useful, INSTR (vcProduct, vcDelim | table.prod_id | vcDelim) > 0. Make sure you have your list attached and separated by the vcDelim. If you prodct table with the number of lines (million), it can be slow because no index will be used.

    Dynamic sql or.
    Or write a subquery und temp-table.

  • Using the dashboard invites you to initialize session variables

    Hello world

    I want to know if it is possible to have a command prompt of dashboard which is only used to change session variables. This prompt would stay in a tab completely unrelated.


    Is this possible?

    When the user changes the variables in the prompt of

    I guess its value not the variables... .am I get?

    the variables seem to work only in the tab corresponding to the command prompt, even if the guest is configured to be valid in the dashboard.

    (1) scope of application/presentation variables is in the table edge or the page

    (2) as I illustrated it in a demo of dashboard have two pages variable req and multi select when I change the value in the command prompt, it changed the variable quantity value means the value of session variable initialization

    The dat I gave screenshot is what you're looking for or something else?

    Thank you
    saichand.v

Maybe you are looking for