Using a variable in refreshing tab

Hi all,
i want to use the following query in the refreshing tab of a variable
select count(*) from Scott.abc where scott.abc.filename=#filename
where #filename is a declare variable that contains the name of a file(text) .
But when i execute this variable, it is giving invalid sql format.
So can i use a variable in the refreshing tab of a variable??? if so.. how??
Or if not then how do i compare the value of a column of a database table with the value stored in an odi variable.
Kindly help.
Thanks in advance.

Easy method to debug such issue is to copy your SQL [ select count(*) from Scott.abc where scott.abc.filename=#filename ] into any SQL Editor.
Secondly copy the value of the #filename from the History tab of the variable from the Operator and substitute in the above query and run that should give you a more clear idea .
It would not only help in this issue too but other issues when you are fetching values from variable or query .
hope this helps.

Similar Messages

  • Use of variables in cross tab

    Hi experts,
    Can anyone tell me how to use a variable in cross-tab?
    I am populating the crosstab from the columns of a table.
    I want to use a variable (say percentage of averages) which calculates for each month for any number of months the data has been generated.
    Ex: Demo is my table and contains two average fields - average1 and average2 generated once for each month.
    Now I want a variable which calcaulates for each month, their variance based on some formula like (average1-average2)/average1.
    I have created a variable which calculates according to the above formula but its value is getting repeated for each month (the value of the first month) . It is not giving me the value corresponding to each month.
    Request you to help me.
    Thanks,
    Roshan

    Hi,
    Thanks for the reply.
    I have the following data from the cross tab.
         Jan     Feb     March
    Average 1     25     35     50
    Average 2     20     20     35
    Average 3     15     10     25
    And i want to generate the following structure dynammically based on the number of months/quarters.
         Jan     Var %     Feb     Var %     March     Var %
    Average 1     25          35          50     
    Average 2     20     20     20     42.85     35     30
    Average 3     15     40     10     71.42     25     50
    The new columns in the crosstab display should be dynamically generated.
    Request you to help me generate the new columns and the values.
    I have created this table in MS-Excel for reference.
    Thanks,
    Roshan

  • How to use php variable for default tabbed panel

    I have a tabbed panel and with tabs labelled with the days of the week.  What I want to do is open up the tab that correspond to the current day.  I have been using the following to get the day in 3 char format:
    <?php
    $jd=cal_to_jd(CAL_GREGORIAN,date("m"),date("d"),date("Y"));
    echo(jddayofweek($jd,2));
    ?>
    What I want to do is replace the value for the default tab in the following statement with a variable that matches the day returned with a number:
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:1});
    Please could anyone advice?
    Regards,
    Lloyd

    Hi,
    BIND_VARIABLE is useful when you have only IN variable but in your case you have IN and OUT.
    I don't know if you use the gateway for MS SQL SERVER or HSODBC/DG4ODBC but here how you can do to call a remote procedure with bind variables:
    DECLARE
    ret integer;
    inp varchar2(255);
    outp varchar2(255);
    BEGIN
    inp :='Hello World';
    outp :='';
    ret := "dbo"."in_out_proc_test"@tg4msql( inp, outp);
    dbms_output.put_line('Input value: ' ||v_ut1||' - Output value: '||v_ut2);
    END;
    The MS SQL Server procedure belongs to the user "dbo" and the database link
    being used is tg4msql.
    The following line initilaize the out variables of the procedure with an
    empty string:
    outp :=''
    I hope it helps you.
    Regards
    Mireille

  • Use of Variable - Refreshing the Queries in Workbook

    Hi All,
    I have a workbook which contains 5 Queries. All these queries uses the same variable. While I am refreshing all the  queries in the workbook, it pops-up the variable input screen 5 times.
    Here I just want the variable screen appear to be once and the same input be taken to all the queries.
    We are in 3.x.
    In 7.x Analyzer, I know that When you have multiple queries(with variables) embedded in a single workbook, we can use "Change Variables" icon to acheive the same.
    How can I achieve this in 3.5.
    Thanks in advance.
    Siva
    Edited by: Siva Reddy S on Jun 9, 2009 10:32 AM

    Hi Joke,
    Thanks for your reply.
    The option "save and reuse variable values" is something to do with the input values to save and reuse the same for the next time execution.
    Here I just wanted to input the variable at one query and the same value needs to be taken to all the queries. The Variable used in all the queries is the same one.
    Thanks again..
    Any body any inputs.
    Siva

  • Where is the refresh tab under the view column that use to be there?

    Up until FF 4.0 was installed, I use to be able to click on the refresh tab in the view column and refresh the current page. Not anymore. What happened to it and how to I access that feature?

    I finally found the button. Nevermind.

  • $ used in variable

    hai gurus
    what is the use of $ symbol in variable name.
    thanks
    sitaram
    form f_spell_amount using    p_value
                        changing p_words.
      data: $v_unpack(13) type c,
            begin of $i_comp occurs 0,
              text(10)    type c,
            end   of $i_comp,
            begin of $wa,
              data(255)   type c,
            end   of $wa,
            $v_count      type i,
            $v_text(10)   type c,
            $v_temp       type i,
            $v_off        type i,
            $v_amt1(38)   type c,
            $v_amt2(38)   type c,
            $v_amt3(38)   type c.
      field-symbols: <$fs1> type any,
                     <$fs2> type any.
      clear p_words.
      unpack p_value to $v_unpack.
      assign $v_unpack(4) to <$fs1>.
      move: 0 to $v_count.
      do.
        assign <$fs1>+$v_count(1) to <$fs2>.
        if <$fs2> gt 0.
          if $v_count eq 2.
            assign <$fs1>+$v_count(2) to <$fs2>.
            if <$fs2>  > 10 and <$fs2> < 20.

    Hi,
    One catch i saw upfront is semicolon at end of the script, u need to remove it.
    And, you need to refresh the variable CREATE_NEW_FACT_TABLES in a package before calling this script.
    Of course, make sure ur logical schema whichever u selected in refreshing tab points to correct physical schema.
    Thanks,
    Guru

  • Can i use instance variables in page flow controller with out restriction?

    I am using instance variable in pageflow controller.
    1) Will it give any problem if concurrent users are accessing that controller class?
    2) How many controller objects will be created if multiple users (Say 10 users) accessing same controller class?
    Thanks.

    1) Will it give any problem if concurrent users are accessing that controller class? Pageflows are pere user session, different users wont cause it problems. however a single user can cause problems by using open new tab on a link etc(or back button or refresh on browser, problems with using state in a stateless protocol) . A bigger problem is that since a pageflow is indirect in session, using private variables in pageflow increases your session footprint and in a cluster , if replicated, your network trafiic as well. Using state also causes problem in HTTP , a stateless protocol,. Highly not recommended (unless you have no other choice)
    2) How many controller objects will be created if multiple users (Say 10 users) accessing same controller class? 10. assuming the portlet is used once only. If you use the same portlet in multiple pages , then you have that many.
    Edited by: deepshet on Feb 27, 2010 12:10 PM

  • Can ODI use environment variables?

    Running on Linux/Unix, can ODI use environment variables? For example, export LANGUAGE="en", and anyway in ODI can get variable LANGUAGE?

    It is easy.
    Use the following command at variable Refresh tab and let the Logical Schema to the file too...
    Just change the file path (c:/temp/cezar_test.txt)
    Select COLUMN_1 from TEST
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=TESTSNP$CRLOAD_FILE=c:/temp/cezar_test.txtSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=3BSNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=COLUMN_1SNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CR$$SNPS_END_KEY*/
    For this command the file must to have just just the value in one line.
    Does it help you?
    Edited by: Cezar Santos on 23/01/2009 16:14

  • How to pass the values to stored proc using presentation variable in OBIEE

    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
    The reports are being configured with prompts using either the repository/presentation variables.
    One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
    After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
    Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
    Appreciate your earliest advise as this is a prod issue.

    Hi Prasad,
    I got your note, you should not use Session variable syntax to call presentation variable.
    you should use like @{AIC_PROJ_PLAT_SEQ_NO}
    One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
    Hope this helps

  • How to use one variable as a default value for another variable?

    Hi Experts,
    Is it possible to use one variable as a default value for another variable?
    For example:
    Variable 1 = current calendar year month
    Variable 2 = mandatory input ready variable for calendar year month
    I want to use variable 1 as default value for variable 2, but also have the ability to change the month if required.
    Thanks!
    Kathryn

    u can use replacement path variable
    in that case u can replace the values of 1 variable with the another variable...
    but  u cannot do this setting
    u cannot make variable 2 as mandatory
    u cannot enter value for variable 2
    because by default it will take the value of variable 1
    u have to make follow settings
    variable 2
    name , technical name
    processing by = replacement path
    infoobject = ocalmonth
    next tab
    replaced by another variable
    variable name
    offset start , offset lenght
    save and hit okey

  • How to default bind variable using session variable at run time

    Hi All,
    I have a requirement where all VO queries (multiple VOs) produce only records that meet a certain value.
    For example, I have three tables with 3 VOs and each of them has a one-to-many relationship to another table (let's call it ref table and this table has a field called release). One of the 3 VOs is a parent/master table, and the other two are child tables. I created a VO for master table that linked to the ref table and created a view criteria using the release (use bind variable) field from the ref table. The other child tables have their own VO that has view criteria that also linked to ref table using the release field.
    On the UI page, I created a query component and a table from the master table VO. I also dropped the child table VOs in a tabbed panel which partial triggered by the master table. When I ran a query for a 'release' (hint: ref table value), the table for master table was filled the correct records that meet the criteria. Unfortunately, the child tables were not correct due to the query didn't use the bind variable that filter only records for the same 'release' value as the master table.
    The question is how do I 'default' or dynamically set the bind variable on the child tables based on the selection criteria from the query component. I am thinking to set a session variable from the query and use it in the bind variable in the child table, but not sure how to do it.
    Any suggestion how to do it or better solution to achieve the same effect?

    Hi,
    How about creating a custom AMImpl method, that takes parameters as required, and set the bind variables for all the desired VOs and perform executeQuery on them.
    You could expose this as client interface, and then use the method as parameter form.
    Check this thread for ex.
    Re: Setting Attribute in View Object through Managed Bean
    -Arun

  • Using a variable inside another variable

    I'm trying to use one two variable in a package with one variable feeding its value to another variable as follows:
    Variable 1 = Count
    Variable 2 = File_Name
    Variable 1 counts up from 1;I would like to use this value as an input to Variable 2 as follows:
    SELECT LOAD_FILENAME FROM DIMSTATS_FILENAME WHERE (SELECT ROW_NUMBER() OVER (Order by FILE_ID) AS RN FROM DIMSTATS_FILENAME) = #DIMSTATS_TEST.count.
    How ever I am getting the following Error :
    +ODI-1228: Task File_Name (Variable) fails on the target  connection DDBSTAGE.
    Caused By: java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver][SQLServer]The multi-part identifier "#DIMSTATS_TEST.count" could not be bound.+
    I have also noticed that the value of Variable 1 is not being passed to the Select statement above through SQLServer Profiler. If I hard-code the value of #DIMSTATS_TEST.count (Variable1) the query is successful.
    How can I get the value of Variable 1 to be passed to Variable 2?
    Could someone please help
    Thanks

    You did not mentioned how you are using those variable .
    You need to have these variable inside a package .
    It will be like
    Variable 1 (Refresh) -------OK-------->Variable 2(Refresh) ------------OK-----> Some other operation .
    Thanks,
    Sutirtha

  • Using process variables in conditional transition

    HI,
    I am usin Oracle BPM 1.03
    I wanto to have a value of a variable visible in the user's inbox. Therefore, I need to use project level variables.
    I also want to use this variable in conditional tranistion, but the condition editor only allows Instance level variables.
    Am I overlooking something? Is there an easy way to use project variable in conditional transtions?
    Matej

    you should be able to manually type the transition condition on the properties tab.
    xArea == "MyArea"
    where xArea is a Project Variable

  • Problems using substitution variable in Web Analysis

    Dear all,
    I have a Web Analysis report that I need to show a raking table with the current month.
    For that I create a variable in Essbase that is updated with that date (E.g.: varCurrentMonth).
    After that I use it as my substitution variable to filter my date dimension in a report data source (E.g.: Scr5, row: product, column: date dimension & measure):
    2008 (current month)
    Product $ qty.
    AAA 100 10
    BBB 90 7
    CCC 80 5
    The problem is that in our cube we need to use an alias in every dimension not to have duplicate members (E.g.: DT.Date, MS.Measure, PD.Product, etc). And when we use it we need to set up the variable in Essbase using that alias (E.g.: DT.Feb/05/08). And if we use that variable as a substitution variable in the report data source the label displayed is the DT.2008 and not 2008 as expected.
    Does anybody have an idea how to solve that?
    Many thanks,
    Thiago Gabriel

    You usually get this error message if you are trying to assign a value from a sub var to a member that does not exist.
    e.g. trying to put FY08 which is a year member against a period dimension
    or trying to use a sub var of FY09 which does not yet exist in the essbase, so say you added a new year in planning FY09 and used the sub var in the form but have not refreshed the database then it would fail because the year would not have been pushed down to essbase yet.
    or the value of the subvar does not match a member name exactly
    or using a sub var name that does not exist in essbase, e.g. using &nextYear but the sub var has not been created in essbase.
    You can definitely use subsitution variables in columns in the version you are using and prior version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using environment variable / double quotes in "Arguments" in "Server Start"

    I have an admin server, NodeManager, and 1 managed server, all on the same machine (windows). I am trying to enter something similar to this to the arguments field in the Server Start tab:
    -Dmy.property=%USERPROFILE%\someDir\someJar.jar
    But when the managed server is started it throws this exception:
    Error opening zip file or JAR manifest missing : %USERPROFILE%\someDir\someJar.jar
    It appears that the environment variable is not being translated into it's value. It is just passed on to the managed server as plain-text. I tried surrounding the path with double quotes (") but the console validates the input and does not allow this: *"Arguments may not contain '"'"*
    Even editing the config.xml file manually cannot work, as the admin server fails to startup after this:
    <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141266]Parsing failure in config.xml: java.lang
    .IllegalArgumentException: Arguments may not contain '"'.>
    I also tried using %20 to no avail, it is just passed as %20.
    I thought that perhaps this had something to do with the spaces in the value of %USERPROFILE% (which is "C:\documents and settings.."), but the same thing happens with other env. variables which point to other directories with no spaces.
    _My question:_
    Is there any supported way of :
    using double quotes? what if i have to reference a folder with spaces in it's name?
    reference an environment variable? What if i have to rely on it's value for distributed servers where i do not know in advance the variable's value?
    Edited by: 937622 on Sep 28, 2012 1:02 AM

    There is workaround : http://stackoverflow.com/questions/12629395/weblogic-using-environment-variable-double-quotes-in-arguments-in-server
    Just posting here for reference. Let's see if we get a different answer from anyone else.

Maybe you are looking for

  • Method not found:Next.execute(javax.faces.event.ActionEvent)ADF11.1.1

    Hi , I created simple app in ADF11g production version.this is working fine in Jdev IDE. In my application two pages are there.in first page just ADF ROF is there.there youcan see the rows in a dept table thru navigation contrlos.and a submit button

  • Cannot display turkish character in publication mhtml output

    Hi there, I have a problem on displaying turkish character on BusinessObjectsXI3.1 publication mhtml output. I have set a report scheduled and shown result on email body as html and all turkish character turn into a different characters. Database loc

  • One touch email suddenly bugged on straight-talk E...

    Ok so i've had this for for about a month i'd say and i do like it however this problem just started today randomly when i went to check email. I did the normal of pressing the mail button , it asking me which source to choose , this is where the pro

  • Automatic emails

    Hi, I need some help on how to send an automatic email, once a user has registered online!!!!!!!! In jsp/java. Thanks

  • Preview can't open Adobe DNG files converted in snow leopard

    I have been unable under Snow Leopard 10.6 to use either 5.4 or 5.5 adobe dng converter to convert Leica RWL files to DNG files that are readable by Preview or by Aperture. Adobe CS4 can read these DNG files, but then it can read the RWL raw files as