Variable Problem assign

Hi All,
Below is the calculation script.
//ESS_LOCALE English_UnitedStates.Latin1@Binary
SET DATAEXPORTOPTIONS
DataExportLevel "ALL";
Fix ( &CurrMiles, &CurrProj, &CurrVer,"No Project","No Version")
DATAEXPORT "file" " " "D:\&CurrProj.txt";
ENDFIX
I want to create the export file name with my current project name("D:\&CurrProj.txt"),but it is taking as sting since this is double quotes and creating the file name &Currproj.txt.if iam removeing the double qoutes it is treating as a member and giving error /01FEUR.txt member is not existed(01FEUR is my current project)
Please let me know how to create the text file name with my current project name.
Thanks in advance.....

Take a look at the last post in this thread: Re: MaxL with DATAEXPORT and passed parameters
The incomparable John Goodwin shows how to do the Essbase substitution variable assign with the correct backslashes to escape the double quotes for a question just like yours.
Regards,
Cameron Lackpour

Similar Messages

  • BEx Variable - Why assigned to two objects?

    Hello,
    In 7.0 I created a BEx selection variable. When I save the variable I can see this variable under another object - with same technical name -. I have no clue why this variable is assigned to two objects.
    There is no "technical link" between this two objects....
    Any idea?

    i also faced the same issue ...when i Save the query and then again reopened the query .
    the problem got solved.

  • Substitution variable - Problem

    The requirement is to have numeric value to a substitution variable. In essbase there is a provision to set numeric value to a substitution variable . i tried out the below one its not working.
    Create a sub variable and assigned value "12" and tried using the same sub variable in the MDX query but getting error. kindly let me know is it possible to set a numeric value to a sub variable and use the same in MDX formula. Any help would be greatly appreciated.
    I have seen this note in dbag :
    If a substitution variable value is numeric, different rules apply for how you enter the variable:
    If it is not used in MDX statements, enclose a substitution variable value in quotation marks; for example, if the variable name is Month, and its corresponding value is 01 (corresponding to January), place quotation marks around 01 (“01”). Substitution variables usually are used with block storage databases; they are not used in MDX statements.
    If it is used in MDX statements only, such as in formulas in aggregate storage outlines, and the value is numeric or a member name, do not enclose the value in quotation marks.
    Note:
    If a substitution variable value is numeric or a member name starting with a numeral or containing the special characters referred to above is to be used both in MDX and non-MDX situations, create two substitution variables, one without the value enclosed in quotation marks and one with the value in quotation marks.

    i got the way to do

  • Bad Bind Variable Problem

    Hi
    I am trying to create a trigger and facing Bad Bind Variable problem.
    Plz let me know, what's the problem in this trigger.
    CREATE OR REPLACE TRIGGER Tender_tax_update AFTER
    INSERT
    OR UPDATE
    OR DELETE OF ITEM_QTY,ITEM_RATE,TENDER_ACC_QTY ON TENDER_ENQUIRY_ITEM_D REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    Declare
         v_amt TENDER_VENDOR_TAX_D.TAX_AMOUNT%TYPE;
         v_tax_ty TENDER_VENDOR_TAX_D.TAX_TYPE%TYPE;
         v_tax_cd TENDER_VENDOR_TAX_D.TAX_CODE%TYPE;
         v_ven_cd TENDER_VENDOR_TAX_D.VENDOR_CODE%TYPE;     
         v_item_cd TENDER_VENDOR_TAX_D.item_cd%TYPE;     
         v_tenno TENDER_VENDOR_TAX_D.tender_enquiry_no%TYPE;
    Begin
         if inserting then
              v_tax_ty:=:new.TAX_TYPE;
              v_tax_cd:=:new.TAX_CODE;
              v_ven_cd:=:new.vendor_code;
              v_item_cd:=:new.item_cd;
              v_tenno:=:new.tender_enquiry_no;
    select TAX_AMOUNT into v_amt from TENDER_TAX_DETAILS where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
    update TENDER_VENDOR_TAX_D set TAX_AMOUNT=v_amt where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
         end if;
    End Tender_tax_update;
    Database deails are as follows:
    TENDER_VENDOR_TAX_D
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE NOT NULL VARCHAR2(4)
    TAX_CODE NOT NULL VARCHAR2(4)
    PERCENTAGE NUMBER(5,2)
    TAX_AMOUNT NUMBER(15,2)
    ITEM_CD NOT NULL VARCHAR2(10)
    TAX_FLAG VARCHAR2(1)
    TAX_TYPE CHAR(3)
    TENDER_TAX_DETAILS
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE VARCHAR2(4)
    ITEM_CD VARCHAR2(10)
    TAX_CODE NOT NULL VARCHAR2(4)
    TAX_TYPE CHAR(3)
    TAX_AMOUNT NUMBER
    Message was edited by:
    user648065

    facing Band Bind Variable problem.Doesn't the error message tell you which bind variable is the problem?

  • Login Session Variable Problem

    I've created a simple login using the inbuilt DW suite, but I don't seem to be able to display the session variable after they login.
    On the success page it should filter the RS based on the Username and also display the Username etc on the page but nothing is shown. I tested the success page in DW and entered a value for the session var and it works fine, all I can think of is that the session is empty, not coming through, but I'm clueless.
    Any ideas?
    <<<<<LOGIN PAGE>>>>>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['UserName'])) {
      $loginUsername=$_POST['UserName'];
      $password=$_POST['Password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "login_successful.php";
      $MM_redirectLoginFailed = "login.php";
      $MM_redirecttoReferrer = true;
      mysql_select_db($database_connpbxlogin, $connpbxlogin);
      $LoginRS__query=sprintf("SELECT UserName, UserPassword FROM Users WHERE UserName=%s AND UserPassword=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $connpbxlogin) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;     
        if (isset($_SESSION['PrevUrl']) && true) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <<<<<SUCCESS PAGE>>>>>
    $colname_LoggedRS = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_LoggedRS = $_SESSION['MM_Username'];
    mysql_select_db($database_connpbxlogin, $connpbxlogin);
    $query_LoggedRS = sprintf("SELECT * FROM Users WHERE UserName = %s", GetSQLValueString($colname_LoggedRS, "text"));
    $LoggedRS = mysql_query($query_LoggedRS, $connpbxlogin) or die(mysql_error());
    $row_LoggedRS = mysql_fetch_assoc($LoggedRS);
    $totalRows_LoggedRS = mysql_num_rows($LoggedRS);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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" />
    <title>Untitled Document</title>
    </head>
    <body>
    </p>
    <p>username: <?php echo $row_LoggedRS['UserFirstName']; ?></p>
    <p>email: <?php echo $row_LoggedRS['UserEmail']; ?></p>
    <p>Session Data:
      <?php echo $_SESSION['MM_Username']; ?></p>
    </body>
    </html>
    <?php
    mysql_free_result($LoggedRS);
    ?>

    Does your success page begin with session_start()?

  • Can we set a variable by assigning another variable to it

    Hi,
    Can we set a variable by assigning another variable to it. If not how can we implement this.
    Thanks
    Madhavi

    Hi Sutirtha,
    My requirement is
    step1 set VARIABLE1
    step2 set VARIABLE2 = #VARIABLE1
    step3 using VARIABLE2 in Interface to filter data
    Now the value of VARIABLE2 contains #VARIABLE1. its not fetching the value of #VARIABLE1 because of this it is giving an error in the interface like "Invalid character".
    Please check the step2, is that syntax correct?
    --thanxs
    Madhavi

  • Hangman: variable problem

    Good evening. I am in the final stages of finishing up my hangman project but I have encountered a variable problem on 3 lines of code. The compiler doesn't seem to like this line of code "r = in.readLine();" or "word = in.readLine();" obviously it doesn't like this way of reading in. I am seeking any help possible. It would be very much appreciated. Thanks!
    here's the code:
    package hangman;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    import java.io.*;
    import java.text.*;
    public class Hangman {
        public static void main(String[] args)throws IOException
            char[] theWord;
            char[] guesses;
            boolean[] correctGuesses;
            int maxWrong = 6; // We'll give them 6 incorrect
            int numWrong = 0;
            boolean badGuess;
            char guess;
            int numGuesses = 0;
            // Get the word
            theWord = getWord();
            // Initialize correctGuesses
            correctGuesses = new boolean[theWord.length];
            for(int i = 0; i < correctGuesses.length; i++) {
                correctGuesses[i] = false;
            // initialize guesses
            guesses = new char[theWord.length + maxWrong];
            // Keep going until they have guessed everything
    while(!gameOver(correctGuesses) && numWrong < maxWrong) {
                // Print out the current state
                System.out.println("-----");
                // Print out the status
                System.out.print("Status: ");
                for(int i = 0; i < theWord.length; i++)
                    if(correctGuesses)
    System.out.print(theWord[i]);
    else
    System.out.print('_');
    System.out.println();
    // Print out what has been guessed so far
    System.out.print("Guessed: ");
    for(int i = 0; i < numGuesses; i++)
    System.out.print(guesses[i]);
    System.out.println();
    System.out.println((maxWrong - numWrong) + " incorrect guesses remaining");
    System.out.println("*****");
    // Get the guess
    guess = getGuess(guesses, numGuesses);
    // Record it
    guesses[numGuesses] = guess;
    numGuesses++;
    // See if it is in the word
    badGuess = true;
    for(int i = 0; i < theWord.length; i++) {
    if(guess == theWord[i]) {
    correctGuesses[i] = true;
    badGuess = false;
    if(!badGuess) {
    System.out.println("Good guess!");
    } else {
    System.out.println("Bad guess!");
    // If the guess wasn't in the word, increment
    numWrong++;
    if(numWrong == maxWrong)
    System.out.println("Game Over: Sorry you entered too many bad guesses - better luck next time!");
    else
    System.out.println("Good Job - you win!");
    // Get the word
    public static char[] getWord() {
    String word;
    // Get a word
    System.out.print("Please enter a word: ");
    word = in.readLine();
    // And return it as a char array
    return word.toCharArray();
    // See if the game is finished (all the letters guessed)
    public static boolean gameOver(boolean[] g) {
    boolean allGuessed = true;
    // if any element of the array is false
    // then they haven't guessed everything yet
    // and the game is not over
    for(int i = 0; i < g.length; i++)
    if(g[i] == false)
    allGuessed = false;
    return allGuessed;
    // Get a guess
    public static char getGuess(char[] guesses, int numGuesses) {
    char r = 'a';
    boolean done = false;
    // Get a character
    while(!done) {
    // Read and discard the previous newline
    while(r != '\n')
    r = in.readLine();
    System.out.print("Your guess: ");
    r = in.readLine();
    // See if they already guessed this letter
    done = true;
    for(int i = 0; i < numGuesses; i++) {
    if(r == guesses[i]) {
    System.out.println("You already guessed that letter. Please try again.");
    done = false;
    // return the guess
    return r;

    THANKS! i just added a bufferedreader however, the same problem with the variable persists. if anyone can fix it i'd appreciate it dearly!
    code with bufferedreader:
    package hangman;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author unascribed
    * @version 1.0
    import java.io.*;
    import java.text.*;
    public class Hangman {
        public static void main(String[] args)throws IOException
            char[] theWord;
            char[] guesses;
            boolean[] correctGuesses;
            int maxWrong = 6; // We'll give them 6 incorrect
            int numWrong = 0;
            boolean badGuess;
            char guess;
            int numGuesses = 0;
            BufferedReader in;
            in = new BufferedReader(new InputStreamReader(System.in));
            // Get the word
            theWord = getWord();
            // Initialize correctGuesses
            correctGuesses = new boolean[theWord.length];
            for(int i = 0; i < correctGuesses.length; i++) {
                correctGuesses[i] = false;
            // initialize guesses
            guesses = new char[theWord.length + maxWrong];
            // Keep going until they have guessed everything
    while(!gameOver(correctGuesses) && numWrong < maxWrong) {
                // Print out the current state
                System.out.println("-----");
                // Print out the status
                System.out.print("Status: ");
                for(int i = 0; i < theWord.length; i++)
                    if(correctGuesses)
    System.out.print(theWord[i]);
    else
    System.out.print('_');
    System.out.println();
    // Print out what has been guessed so far
    System.out.print("Guessed: ");
    for(int i = 0; i < numGuesses; i++)
    System.out.print(guesses[i]);
    System.out.println();
    System.out.println((maxWrong - numWrong) + " incorrect guesses remaining");
    System.out.println("*****");
    // Get the guess
    guess = getGuess(guesses, numGuesses);
    // Record it
    guesses[numGuesses] = guess;
    numGuesses++;
    // See if it is in the word
    badGuess = true;
    for(int i = 0; i < theWord.length; i++) {
    if(guess == theWord[i]) {
    correctGuesses[i] = true;
    badGuess = false;
    if(!badGuess) {
    System.out.println("Good guess!");
    } else {
    System.out.println("Bad guess!");
    // If the guess wasn't in the word, increment
    numWrong++;
    if(numWrong == maxWrong)
    System.out.println("Game Over: Sorry you entered too many bad guesses - better luck next time!");
    else
    System.out.println("Good Job - you win!");
    // Get the word
    public static char[] getWord() {
    String word;
    // Get a word
    System.out.print("Please enter a word: ");
    word = in.readLine();
    // And return it as a char array
    return word.toCharArray();
    // See if the game is finished (all the letters guessed)
    public static boolean gameOver(boolean[] g) {
    boolean allGuessed = true;
    // if any element of the array is false
    // then they haven't guessed everything yet
    // and the game is not over
    for(int i = 0; i < g.length; i++)
    if(g[i] == false)
    allGuessed = false;
    return allGuessed;
    // Get a guess
    public static char getGuess(char[] guesses, int numGuesses) {
    char r = 'a';
    boolean done = false;
    // Get a character
    while(!done) {
    // Read and discard the previous newline
    while(r != '\n')
    r = in.readLine();
    System.out.print("Your guess: ");
    r = in.readLine();
    // See if they already guessed this letter
    done = true;
    for(int i = 0; i < numGuesses; i++) {
    if(r == guesses[i]) {
    System.out.println("You already guessed that letter. Please try again.");
    done = false;
    // return the guess
    return r;

  • Variables problem in 9.3.0.1

    I have problems declaring and working with variables for both business rules and Calc scripts.<BR><BR>I am trying to use a set of variables for ratio calculations, temporary summation etc<BR><BR>Basically this does not work:<BR><BR>VAR TEMP_VAR;<BR>VAR TEMP_SUM;<BR>VAR TEMP_RATIO;<BR>TEMP_VAR=5;<BR>TEMP_SUM=10;<BR><BR>TEMP_RATIO = TEMP_VAR / TEMP_SUM;<BR><BR>The problem is that I cannot validate the rule<BR><BR>I get XML errors(An HBR object was not retrieved from the EAS xml transfer object.) or just Invalid member name<BR><BR>Any clues would be really appreciated

    Per the tech ref (calc commands), you can only assign values to variables:<BR><BR>In the declaration, such as VAR TEMP_VAR=5;<BR><BR>...or, as part of a member calc block. In Sample:Basic, the following validates OK:<BR><BR>VAR TEMP_VAR; <BR>VAR TEMP_SUM; <BR>VAR TEMP_RATIO; <BR><BR>Sales<BR>(<BR>TEMP_VAR=5; <BR>TEMP_SUM=10; <BR>TEMP_RATIO = TEMP_VAR / TEMP_SUM; <BR>)<BR><BR><BR>Jared

  • OBIEE Session Variable Problem

    Hi:
    OBIEE 11.1.1.5
    I created a new session variable and initialization block. The default value of the variable is 1. The query for the initialization block is SELECT 123456 FROM DUAL. The query in the initialization block tested fine. I bounced the OBIEE instance.
    When I use the Administration Tool to view the Session Manager, I see that the value of the variable is 123456.
    The problem is in an Answers report the value of the variable is 1.
    Can anyone offer a suggestion as to why the value in Answers is the default value of the variable?
    Thanks.

    Thanks for your reply. I agree that the expression NQ_SESSION. <<variable name>> will display the variable. And it is with this command, in Answers, that I see the default value. Only in the Admin Tool do I see the correct value assigned with the Initialization Block.
    Again, my problem is I cannot display the correct assigned value in an Answer report, only the default value.

  • JSP Session in JavaScript variable problem

    Hi,
    I have a session variable msgSize that is being set by a Java file in the session.
    aRequest.getSession().setAttribute("msgSize", msgSize);It's value is variable depends on record count of recordset.
    In JSP page where I have to assign it's value to a javascript variable. I am doing this a s follows. I have done this in the JSP file.
    <script type="text/javascript" >
    <!--
    function getVal()
    m=${msgSize};
    -->
    </script>First Problem is I am unable to get this value inside a External JS file. It throws error but inside jsp it is working. How can i use this inside External JS?
    Second problem is once the above code executed value never refreshed to new value?
    Means first time it executed it get value 200 next time again i executed the code the real recordset is 105 but still displaying 200. But when I restart the server next time it takes value 105 by itself....
    How I tackle this problem.?
    Regards,

    problem is I am not refreshing the whole JSP page everytime, only refreshing the partial page using ajax call that's why not getting the session new value...
    any suggestions what to do to get new value?

  • Problems assigning BP to a position in the organizational structure

    I tried to assign a bp to a position in the organizational structure,
    but I receive this message "Object cannot be assigned to object CliC
    Agent in the period 21.12.2006 - 31.12.9999".
    Also, I notice that in the screen, the checkbox where i can select for
    the business partner is missing.
    However, I can assign a user to the org structure.
    Before upgrading, it was working. This is the support packages that it was in.
    SAP_ABAP: Level 9
    SAP_BASIS: Level 9
    PI_BASIS: Level 9
    SAP_AP: Level 6
    BBPCRM: Level 6
    After the upgrade to the following,
    SAP_ABAP: Level 10
    SAP_BASIS: Level 10
    PI_BASIS: Level 10
    SAP_AP: Level 7
    BBPCRM: Level 7
    The assigning of business partner to a position no longer works.

    Hi,
    we're facing exactly the same problem, it was all going well until we went on production.... we applied note 997009 which results in a different error... did you manage to find a solution yet ?
    Regards,
    Jacob.

  • Substitution Variable problem in member formula

    I'm using the following member formula for a member in a sparse dimension - Scenario.
    @VAR("Actual",&PO_PriorLE->"Final");
    I can get this to validate in Essbase, but when I try putting it into Planning, the refresh to Essbase bombs and the formula will not validate in Planning.
    Version - 9.3.1
    Thoughts?
    Regards,
    Paul
    Edited by: penglish on May 27, 2009 3:20 PM

    Hi,
    I have just tried it on 9.3.1 patch 10 and had no problems.
    I take it the member assigned to &PO_PriorLE already exists ?
    Have you tried replacing the substitution var for the real member name in the formula.
    What is the error message when you try and validate?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Is it possible to store a field name in a variable, then assign it a value?

    Good day, everyone!
    I am working on a program in which there are many different amount fields in which an amount may be assigned.  For reusability purposes, I was wondering if it would be possible to write a routine that identifies the target amount field, stores it in a variable that is passed back to the calling program, and then assigns a value to it.  There may be different structures having the same field name; what I'm trying to do is avoid having to code a huge IF or CASE statement for each structure.  For example:
    Structures S1, S2, and S3 have some fields identically named.  Call one of them F1.
    What I'd like to do is call a routine that identifies "F1" as my target field to populate.  Then, upon return, I can assign it to the desired structure.  Kinda like this:
    S1-fieldname = 24.17.  (but fieldname isn't a true field in the structure -- it would hold the value of the true field, "F1").
    I realize this might not even be possible, but given how talented the folks are on this forum, I thought I should at least pose the question.
    As always, points given for all helpful answers, and thank you!!
    Dave

    Ok.  I gave that a shot, but what happens is that my ASSIGN COMPONENT statement doesn't work.  It gets a sy-subrc of 4, and <column> remains unassigned.  The program then abends on the line to assign <a1>-trbtr's value to the field because of <column> being unassigned.
      DATA:
        w_setname         TYPE setleaf-setname,
        w_column_name(20) TYPE c.
        ASSIGN COMPONENT w_column_name OF STRUCTURE wa_expense_ng_report
                      TO <column>.
        <column> = <a1>-trbtr.
    Any thoughts on what I might be doing wrong?

  • Local variable problem

    I am making an application that takes an apartment number and number of occupants in that apartment and then displays a number of statistics. So far I haven't had much problem
    except on a what is probably a very simple problem.
    I have two buttons, and when "store" is clicked the info in the textboxes is input to an array.
    My problem is with the next button, "quit", this is where all the info is supposed to be displayed.
    All my variables that I need from "store" are local and are recognized in " the if statement in quit. Ive tried declaring them outside of the if statement, but it hasn't been working.
    {code}
    public void actionPerformed(ActionEvent event)
                   Object source = event.getSource();
                   Apartment input;
                   if (source == store)
                        Integer aptNo = Integer.parseInt(input1.getText());
                        Integer occup = Integer.parseInt(input2.getText());
                        input = new Apartment(aptNo, occup);
                        if(aptNo > BUILDING_SIZE)
                             JOptionPane.showMessageDialog(null, "That apartment number doesn't exist.");
                        else if(occup > MAX_OCCUPANTS)
                             JOptionPane.showMessageDialog(null, "Too many occupants, only 20 are permitted per apartment.");
                        else
                             occupants[aptNo] = occup;
                             input1.setText("");
                             input2.setText("");
                             JOptionPane.showMessageDialog(null, input.getNumber(occupants));
                   if (source == quit)
                   // I need the variables aptNo and occup in here to put into my methods for output, but I don't know how to get them.     
    {code}

    EmmCeeVee wrote:
    Thank you for all of the responses, it really helps me out.
    Obviously my knowledge of local variables is hurting as I switched it around as your said and declared the aptNo and occup outside of the if's.
    All I need is for the quit button to look at the array ( which has just been modified by the sotre button) and output a bunch of results.
    Heres where im at:Your problem is of scope of the variables.
    Here whatever variable you defined in actionPerformed they are local for that method (they are out of scope when the method is finished/called again), Upon this, the actionPerformed is called twice one for store and another time for quit. So you cant expect the value stored at store should be there still when you all quit
    If you want those values available on both the actions then make them a class level variables.
    Below is a sample program, might help you.
    class Employee
         String empName = null;
         int empNo;
         Employee(String eName,int eNmbr)
              this.empName = eName;
              this.empNo = eNmbr;
    class CheckVariableScope
            Employee empOb; // Here
         int eNo;
         String eName = null;
         public void checkScope(String action)
                    //Instead of defining Employee reference variable, eNo and eName  in checkScope method, define it @ class level.
                    // in your case they are Apartment input, Integer aptNo and Integer occup
                     // like above i did.
                     // If i comment the class level variable and uncomment method variable, this program also give the same error.
              //Employee empOb;
              //int eNo;             
              //String eName = null;
              if (action.equals("Store") )
                        eNo = 10;
                        eName = "Bob";
                        empOb = new Employee(eName, eNo);
                        System.out.println("The eName is : "+empOb.empName+" , empNo is : "+empOb.empNo);
                   if (action.equals("quit"))
                        System.out.println(" eNO from Object is : "+empOb.empNo);
                        System.out.println(eNo); //Error: may not have been intitialized
         public static void main (String st[])
              CheckVariableScope ob = new CheckVariableScope();
              ob.checkScope("Store");
              ob.checkScope("quit");
    }

  • Presentation variable problem in PDF generation

    Hi,
    I have created the custom field using the following code
    *case when (V_balance.yr<=@{var_year}{2009} and V_balance.yr>=@{var_year-3}{2006}) then 1 else 0 end*
    Use this field I have created the filter and remove the field from report.
    When I run the report with different prompts, its working fine as I expected in dashboard.
    But when I generate the PDF for different prompt values ( var_year=2008 ) , I got same result. That is its generate var_year=2009 (default presentation variable)
    Its generate the pdf with 'presentation variable default values' instead of presentation variable.
    How could I rectify this problem.
    Any one facing this problem.
    Is there any alternative for this condition
    Note:
    We are using bise1 10.1.3.2.1
    but I got a right answer in obiee 10.1.3.4.0
    Thanks
    Mohan
    Edited by: Mohan 8732779 on Nov 23, 2009 5:50 AM

    This is a known issue in 10.1.3.2. Oracle solved this problem in the new upgraded 10.1.3.4. Check the Meta link for the service request numbers raised for this problem. How hard it would be for you to migrate to 10.1.3.4.
    Thanks
    Prash

Maybe you are looking for