Sort on an unknown variable value

Can anyone tell me how to sort a report whether it be EVDRE or EVGTS on a derived value..
i.e.
Actual_Turnover, Budget_Turnover, Turnover_Variance
      *1000000,             1500000,                  -500000
I want to sort on the variance without having it stored in the application as a member.
The problem I have is that I am using 4.2 sp3 which is pre the evdre builder.

As you noted in 4.2 sp3, sortcol and sort range are not part of the EVDRE.  You have two options, one is to use an EVENE fuction to sort the memberset during the query using MDX or you can return an EVDRE or EVEXP expansion and use an excel macro to sort.  The first option requires MDX knowledge and may decrease performance depending on the size of the resultset but would be returned sorted using built in webexcel refresh.  The second option would require a button (with refresh and sort macro code) and results would only be sorted when the user refreshes through the button and not the toolbar refresh.  Remember when sorting with a macro to select the entire data range and rowkey range.

Similar Messages

  • 'Unknown variable'-​error in TSIviStepT​ype: Uses the german bolean value 'Falsch' instead of 'false'

    Hi
    I had to install MSVC onto a working test system. This is a PII/450 with 450MB RAM, running a german W2kSP2 and NI-SW from the english DevSuite Prof Test Edn, amoung others LV7.1, TS3, Switch Executive (SE) 2.
    I had to install a german MSVC6 for debugging purposes. Its installer asked me for permission to replace some ressource files with german ones, which I -of course- denied. Nevertheless after this installation my TSIviSteps generate an error with a language-related problem:
    Error executing substep 'Post'.
    An error occurred calling 'RunStep' in 'ISubstep' of 'TestStand Ivi Step Types'
    An error occurred while executing the step.
    TestStand IVI Step Type Error:
    An error occured when evaluating the properties of the step.
    Details: Unknown variable or property name 'Falsch'.
    Error accessing item 'Falsch'. - Wait for Debounce
    Source: TSIviStepTypes
    -17300; Value invalid or out of range.
    Any easy solution? There must be a simple ressource file to be replaced. I'd dislike the idea of re-installing TS. BTW, Re-installing all the drivers and SE did not help.

    The error you are seeing is because of a problem in the code for the TSIviSteps.dll. The code is written with Visual Basic 6.0. The error only occurs for the "Wait for Debounce" setting, which is only used for the Switch Executive Connect/Disconnect operation. Internally there is a cast of a boolean value stored in a step property to a string expression value. If the OS regional setting selects a non-English default language and the corresponding VB6xx.DLL (language resource file) is available, the MSVBVM60.DLL casts the boolean value to a localized string value. So for a German OS, if the VB6DE.DLL file is available the cast returns Falsch or Wahr instead of False or True. When TestStand tries to interpret Falsch or Wahr as a constant expression it
    errors as described. The problem exists in TS 2.0.1, 3.0 and 3.1.
    The workaround is to either remove the VB6DE.DLL language resource file or change the default language to English. We hope to fix the cast code in a future release.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • [HELP] Error, Unknown variable or property name '', error. No Details???

    Our production team ran some of our TestStand software when it froze.  Upon exiting the report file contained only one error:
    “Error, Unknown variable or property name ''. [Error Code: -17306, Unknown variable or property name.]”
    This has not happened before with this test sequence.
    Now I have seen this before, during development of other TestStand projects, but there are usually details of the unknown variable in the error.  This one just has empty quotes!  There are around twenty sequences called in this software.  Is this a rouge error, a symptom of the freeze, or do we have an unknown variable issue in these sequences?
    Christopher Povey
    Senior Test Systems Engineer for BAE Systems.

    Hi Christopher,
    As you say as part of the Error Message you should of had the Variable name.
    With this freeze and if you had to force exit of the TestStand, it would seem that to get any report at all you must be doing some sort of 'On the Fly' reporting. If so, can you pin point what the test sequence was doing to try to identify the cause of the freeze.
    Maybe you are obtaining the variable name dynamically and because of the crash this value was not obtained and therefore you were passing an empty string. Hence no variable name in error message.
    Regards
    Ray Farmer

  • Unknown variable or property name 'ReportFilePath'. Error accessing item 'Runstate.Root.Locals.ReportFilePath'. in TestStand

    Hi all.
    I was using Teststand 4.2 up to last week and upgraded to TS 2013. In 4.2 I was using the following to get the location of the teststand report:
    Runstate.Root.Locals.ReportFilePath
    but with TS 2013 this no longer works.. is the following error:
    Unknown variable or property name 'ReportFilePath'.
    Error accessing item 'Runstate.Root.Locals.ReportFilePath'. in TestStand - Get Property Value (String).vi->
    I've tried the following now with no success:
    RunState.Root.Report.Location
    So my question is how can I get the location (path) of the report file during test programmatically please?
    Please find enclosed a screenshot of the report config:
    Solved!
    Go to Solution.
    Attachments:
    TS_ReportConfig.png ‏42 KB

    Shashidhar,
    Thanks for your help! With your tips, I finally got it to work. For anyone else trying to modify report names based on user input after the sequential process model sets the file name path I will re tell what I did:
    Edit the Ni_RerportGenerator.seq plugin found in C:\Program Files (x86)\National Instruments\TestStand 2014\Components\Models\ModelPlugins\
    You go into this file and add the step higlighted in Blue at that same location. Please see the expression I typed in the expression box. Setting Parameters.ReportOptions.NewFileNameForEachUUTStatus to true forces re-evaluation of the report name at the end of the sequentialmodel.seq.
    Then you add a FileGlobal in the sequenatialmodel.seq. I called my FileGlobal ReportFileName
    Then I added an expression in my test sequence that modified the the new FileGlobal I created:
    Finally I updated the report options (Go to Cofigure>Report Options > Report File Pathname and under File/Directory Options select "Specify Report File Path by Expression" and I entered my expression. It appears that you can disregard the evaluated report file path error (box below) because your pathname won't be generated until run-time.
    This worked well for me hopefully it will for others. 
    Thanks,
    Marco

  • Error Message in Terminal: unknown variable 'datadir=/usr/local/mysql/data'

    Hello,
    I'm on a Mac Pro Quad Core Intel Xeon (64-bit) using OS 10.6.4. I have mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $ and PHP Version 5.3.1.
    I have also installed phpMyAdmin 3.3.1 and have set up the relations tables in a pmadb within mysql; created a new database with tables; and created some new users. I am able to access and use mysql via phpMyAdmin.
    But now I am unable to login to mysql via the Terminal command:
    mysql -u root -p
    which now returns an error message of:
    /usr/local/mysql/bin/mysql: unknown variable 'datadir=/usr/local/mysql/data'
    my.cnf file reads:
    [mysqld]
    datadir=/usr/local/mysql/data
    socket=/var/mysql/mysql.sock
    #skip-grant-tables=1
    [client]
    datadir=/usr/local/mysql/data
    socket=/var/lib/mysql/mysql.sock
    and I can see the data directory in that location when using the Terminal.
    My questions:
    1. Is this related to anything I have done in setting up phpMyAdmin (tables, users)?
    2. Is this a permissions problem with the directory named /usr/local/mysql/data?
    Currently, the permissions and ownership are this:
    drwxr-x--- 11 _mysql wheel 374 Jun 29 12:10 data
    3. Is this a problem from upgrading to 10.6.4 recently?
    4. Is this a my.cnf problem?
    I would really like to be able to do things in the Terminal with mysql in addition to using phpMyAdmin.
    Many thanks for any help on this.
    Best,
    Shelley

    Shelley Schreiber wrote:
    Thanks for your suggestion, etresoft, but this was not helpful, I'm afraid. Removing datadir=/usr/local/mysql/data did not work. And prior to using phpMyAdmin, I was able to login via Terminal with this in place.
    Try removing my.cnf. It isn't required and seems to be giving you problems.
    Also, the mysql socket value is what comes with new Macs with Snow Leopard.
    MySQL doesn't come on any new Mac except with Snow Leopard Server. I think we've had this conversation before and came to the conclusion that you don't have the server version, just a jacked up client.
    I am noticing that the Terminal error message I get is saying:
    /usr/local/mysql/bin/mysql: unknown variable . . .
    whereas the data directory path is /usr/local/mysql/data
    There is no data directory in /usr/local/mysql/bin/mysql
    The program that is reporting the error is is /usr/local/mysql/bin/mysql.
    My MySQL installation does not have a my.cnf file. It does have a number of example cnf files that I could use if I wanted to jack up my installation. None of them have a "datadir" value in them. If you don't want to get rid of my.cnf altogether, the just get rid of all of the datadir values inside it.

  • Property Loader won't Load FileGlobal variable values

    What am I doing wrong here?
    I've Exported three FileGlobal string variables into a tab delimited TEXT file and then cleared out the Values (values="") . The contents of that file is:
    Variable Value
    Variable Value
    FilteredInputValueTag "tag_AI_ENGINEERING_VALUE_FILTERED"
    FullDefaultTag "tag_SYS_FACTORY_DEFAULT"
    OutputValueTag "tag_SYS_OUTPUT_VALUE"
    Variable Value
    If I manually IMPORT the file, it works OK, and tells me that it has imported 3 Variables.
    However, I can't get the values to Import using the Property Loader at Runtime (Context of the FileGlobals remain at blank -""). I DO have the correct Path & Filename set (if I change one charact
    er and it gives me an Error Box.)
    Mike

    Hi Mike,
    I have attached a small TS2.0.1 example which I hope will help you sort your problem.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    FileGlobalsExample.seq ‏31 KB
    FileGlobalsExample.txt ‏1 KB

  • Partial Update - Unknown Dimension Value ID

    Hello Old Endeca Friends,
    I am getting a lot of these sorts of errors when I perform a partial update:
    ERROR     04/25/13 16:56:21.115 UTC (1366908981115)     DGRAPH     {dgraph,update}     Record change references unknown dimension value id 4294484500     [recspec=`UPI:100224148']
    I am using MDEX 6.4 and PS 6.1.3. The dimension value ids in question seem to be in the autogen_dimensions.xml, but the dgraph doesn't seem to recognize to know about them. Why?
    Any further insight would be appreciated. "Just run a baseline" is not a good answer, I need to do partials every hour throughout the day.

    Thanks for the input, everyone.
    It looks like my issue was that my state file had a set of updated dimensions but my dgraph did not.
    I had a baseline extract with properties X, Y and Z (let's say) and I was adding in new dimensions A and B. I moved my state files from my test environment to my production environment with entries on dimensions A and B. I started getting partial data for dimensions A and B and processing it. However, my dgraph knew nothing about A and B. So, although forge created the dim vals fine and the state files were modified appropriately, my dim val updates and adds on my dgraph failed because my dgraph had never processed a baseline extract with dimensions A and B.
    Once I ran a baseline with dimensions A and B, partial updates went fine and have now processed dozens without issue.
    Unfortunately, I only get baseline data once a week, so it took me a bit of time to realize what was going on.

  • BackinBean scope is an unknown variable

    JDeveloper 11.1.1.2.0
    1) I have created unbounded task flow adfc-config with method="methodCall2":
    <method-call id="methodCall2">
    <method>#{backingBeanScope.MojeBina.zkopiruj}</method>
    <outcome id="__21">
    <fixed-outcome>test</fixed-outcome>
    </outcome>
    </method-call>
    2) than I have registered managed bean in adfc-config task flow :
    <managed-bean id="__16">
    <managed-bean-name id="__14">MojeBina</managed-bean-name>
    <managed-bean-class id="__15">Fa.view.backing.FakturyMain</managed-bean-class>
    <managed-bean-scope id="__13">backingBean</managed-bean-scope>
    <managed-property id="__18">
    <property-name id="__17">table1</property-name>
    <property-class>oracle.adf.view.rich.component.rich.data.RichTable</property-class>
    <value id="__19">#{table1}</value>
    </managed-property>
    </managed-bean>
    3) when I am trying to fill in field Method in methodCall2 by expresion builder by value #{backingBeanScope.MojeBina.zkopiruj} I get immediately red underline and blue hint: backinBean scope is an unknown variable. What I am doing wrong ?
    Thanks for the advice
    Petr

    Nothing at all!
    It's just that the backing bean scope can't be evaluated at design time. This scope is only available at runtime. JDev tries to evaluate the expression, gets an error (because the bean is not present at design time) and shows the red underline (see http://thepeninsulasedge.com/frank_nimphius/2010/03/09/gotchas-when-using-memory-scope-prefixes-in-el-to-access-managed-beans).
    You can switch off this warning, but I can't remember how. I'll look into this.
    Timo

  • Unable to see local variable values when debugging java

    Hi,
    I am using JDev 10.1.2 with java version 1.4.2_04.
    I have been using JDev to debug my java programs. But suddenly from this morning I am unable to see local variable values. I am able to see class and instance variables. This has happened to me before and I had restarted my machine couple of time, to get this sorted. But this time, nothing helps. Going thru the forum I found out that Include Debug information (Project Properties -> Compiler Option) need to be turned ON. It is already turned ON for me.
    I would greatly appreciate if you could let me know how to crack this problem.
    Thanks in advance.

    No. The local variables 'used' to show up during debugging. But erratically it doesn't show up local variable values. I had to restart my machine couple of times whenever this happens, inorder to see the local variable values. But this time even restarting doesn't help.
    Is there any preference setup that need to be turned on/off to see local variables?
    Also I can't step into a static method now. Any idea why this happens?

  • Passing global variable values from databse to forms

    I am using forms 6i and database is oracle 9i.
    I am trying to run a form stand alone ( by pressing CTRL-R) without putting it in the application.
    since when this form is placed in the application menu it works fine as it has been passed global variables values from the database .
    now i am trying to run the form without menu and thus i want to pass the values of global variables .please let me know where should i pass these values in form .is it be WHEN-NEW-FORM-Instance trigger or in Pre-form trigger.
    i know what are the global variable values passing into the form from database.
    i can hard code any values to check if the form runs well or not.

    If you intend to do this sort of testing regularly you might want to consider creating a seperate form with a control block which allows entry of the name of the form you want to run, the names of the globals and their values, and do a CALL_FORM.

  • Get variable values from a stored procedure

    I am using SQL 2008R2 and I want to replace a view inside a stored procedure with a new stored procedure to return multiple variable values. Currently I am using the code below to get values for 4 different variables.  I would rather get the 4 variables
    from a stored procedure (which returns all of these 4 values and more) but not sure how to do so.  Below is the code for getting the 4 variable values in my current sp.
    DECLARE @TotalCarb real;
    DECLARE @TotalPro real;
    DECLARE @TotalFat real;
    DECLARE @TotalLiquid real;
    SELECT @TotalCarb = ISNULL(TotCarb,0),
    @TotalPro = ISNULL(TotPro,0),
    @TotalFat = ISNULL(TotFat,0),
    @TotalLiquid = ISNULL(TotLiq,0)
    FROM dbo.vw_ActualFoodTotals
    WHERE (MealID = @MealID);

    You can replace the view with inline table valued user-defined function:
    http://www.sqlusa.com/bestpractices/training/scripts/userdefinedfunction/
    See example: SQL create  INLINE table-valued function like a parametrized view
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • To pass new session variable value to stored proc before running a report.

    Hi,
    Below is summary of the report requirement -
    Database level design
    1. Created a view and a global temporary table (GTT)
    2. Created an Oracle package procedure to accept from and to business dates on basis of which it will fetch, process and populate the GTT.
    Repository level design
    1. Created a business model containing the view and the GTT (mentioned above)
    2. Created two SESSION variables "from_dt" and "to_dt" to be initialized by their respective init blocks. Each of the variable is initialized with a DATE column value (of type DATETIME) from a database lookup table. I have also set the option "Enable that variable to be set by any user" for both variables.
    Query for these variables :
    from_dt = select from_date from <table>
    to_dt = select add_months(from_date,12) from <table>
    Presentation level design
    1. Using a text box, i display the default/initialized values of these variables like this -
    Current business date:@{biServer.variables['NQ_SESSION.from_dt']} Future business dt:@{biServer.variables['NQ_SESSION.to_dt']}
    Dates get displayed in YYYY-MM-DD 00:00:00 format
    The text msg displays these default dates and allows the user to specift different date range for which i create prompts as shown below.
    2. Using any random two columns of date type from the business model, i create two date dashboard prompts with labels "From Dt" and "To Dt".
    i select Calender Controls for both; setting Default To = Report Defaults.
    The Set Variable is set to Presentation variables - such that pv_from_dt maps to "From Dt" and pv_to_dt maps to "To Dt".
    3. i create the report using the business model created above. In the report "Advanced Tab" => "Prefix" field i specify the following -
    SET VARIABLE from_dt='@{pv_from_dt}',to_dt='@{pv_to_dt}';
    Note : The logic here is to display the default dates and allow user to specify different date values which will be stored in presentation variables.
    If the user does specify different "from dt" and "to dt" values, then using the presentation variables, i want to "write" back these new values to the corresponding session variables mentioned above.
    If the user does not specify different date range, then the default/initialized dates must be considered.
    I also display the default and new date values in the report title.
    Back to Repository level design
    To execute the stored procedure that will load the GTT before running the report I need to pass two date parameters to the stored procedure on basis of which it will fetch data, process and populate the GTT.
    In the Connection Pool --> Connection Script Tab --> Execute before query, I wrote the below query using the repository variables FROM_DT and TO_DT to execute the procedure -
    DECLARE
    v_from_dt date;
    v_to_dt date;
    BEGIN
    v_from_dt := VALUEOF(From_Dt);
    v_to_dt := VALUEOF(To_Dt);
    package_name1.package_body(v_from_dt,v_to_dt);
    END;
    Now when i try to run the report i get the following error :
    [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.to_dt, has no value definition. (HY000)..
    Need help on this.
    Is it possible to "write back" a new value to a session variable ?
    Any other alternatives.
    Thanks
    Nusrat
    Edited by: user10309945 on Jan 24, 2011 10:08 PM

    Sandeep, I found a several topics where users describe saving values in DB through stored procedure or function. For example, [How to store OBIEE presentation level variable values in DB |http://forums.oracle.com/forums/thread.jspa?threadID=892006] I tried it and get an error
    *10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 14551, message: ORA-14551: cannot perform a DML operation inside a query ORA-06512*
    It's not a BI error. This error are generated by Oracle DB. If I write next:
    SELECT MyPLSQLFunction(p1,p2) FROM DUAL
    I get the same error.
    Oracle doesn't allow DML operations in SELECT.
    Did you relalize this feature yourself? Where did I mistake?

  • Assigning a Jython variable value to an ODI variable

    I have to implement database cursor functionality in ODI.
    For storing the returned values from database, I am using a Jython list.
    The next functionality that I have to implement is as follows:
    (i) For each value in the Jython list, I have to pass that value as a variable to an interface and then execute the interface
    (ii) Return back to the Jython list to get the next value in it
    (iii) Execute the interface for the new value from Jython list
    (iv) Have to execute the interface for as many values as in the list and stop when list is over.

    Hi,
    Thanks for your replies.
    I tried your method of using source as a query in procedure and using ODI startScen in the Target of the same procedure. But the scenario runs only once, and then stops even though the Source query returns 4 rows.
    Do we have to write Source and Target in separate steps of the procedure?
    Does ODI store the many records returned into some internal variables?
    I need to implement a cursor functionality so what is the best approach?
    Can i pass array variable value to some odi variables and do a loop?
    I used a workaround....it works but dont know if that's a good way of doing things:
    I retrieved all the different values that I need in a string by appending the values(this was done using Java loop).
    In my next step in the procedure I call a scenario(package which has some variables and my interface), which passes this long variable from Java as <@...@>
    Then in the package I use an iteration variable which is used to find out the SubString position so that I can extract the correct string to use for my Interface in the next step of the Package.
    It is working fine as of now.....but things could be made simpler if I could call the scenario in the Java loop, then I wouldn't need the iteration variable etc.

  • Getting JS variable value in ABAP variable

    hi experts,
    I am fairly new to ABAP programming so please bear with me. To my issue.
    I am creating a BSP which will read from the tax number table in CRM into an itab.
    Next it loops into an wa and then passes each tax number through a javascript/JQuery API to validate the number. 
    The JSON response then comes back and is stored in a JS variable.
    I am unclear how to get this into an ABAP variable so I can handle as needed.  I have read some posts but they seem to be created for those ABAP experts which I am not there yet.
    Any help is most appreciated.
    thank you kindly!
    Chris

    Thanks for the reply Kiran.
    I am still stuck where I try to create the hidden field, assign the JS variable value to it and then retrieve on server side using ABAP.
    I read some places where it mentions accessing in the controller but this is not specific enough for me to know what to do.  Here is a snippet of my JS/html code.
    <form id="api">
    <div><input type="hidden" name="json" id="json" value="" /></div>
    var json = data;
    document.getElementById("json").value = json;
    document.api.submit();
    </form>
    I am using a Jquery api to get a boolean value and storing it in the json variable.  then I want to pass that value to an ABAP variable.  I did maintain a page attribute of json type STRING as well.  I also tried maintaining a controller class attribute of the same.  I did not redefine any controller class methods.
    Your help is most appreciated.
    thx
    Chris

  • Web Report not printing the fiscal year period variable value

    Hi,
    In web report where in one text element, we enabled the fiscal year period variable value to display
    in the report result.
    If we run the report then this fiscal year period is displaying in the general information.
    We have print button (Java Code),  where user can take a printout of the same report.
    In the printout this Fiscal year period is NOT PRINTING, other variables like rollup time, technical name of report etc are printing perfectly.
    It is required to print the fiscal period also in the print out of the report.
    Any help to come out of this.....
    Thanks
    Srinivas

    Hi
    Any Help.....
    Srini

Maybe you are looking for