Problem to transfer Variable value to Dashboard A to Dashboard B

Hi,buddies:
     I have a scenario that I have to jump from Total Dashboard(we call it A) to Detail Dashboard(we call it B),I work with Xcelsius directly connect to BW through SAP NetWeaver BW connection ,I can transfer Variable values to B through URL with command like this:
     http://hqbd6.sinopec.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?DASHBOARD=R2JN_DASHTESTB
&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE
&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=G1CALMONTH_DZ_MIS
&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING
&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=2011.07
But at this condition,The variables of Dashboard B are not bound to any cell because they will be set at run time with values passed in the URL.
My question is can I get the Variable value from the URL in the Xcelsius Designer and put it into a specified cell and link this cell with the query,so that even jump to Dashboard B I can still change the variable values.
Best Regards
Martin Xie
Edited by: Martin Xie Ai Hua on Mar 9, 2012 7:48 AM

Let me explain the issue in detail.
In Query Designer, both the year and  month variables are defined by user exit function to read current year and month and can be modified  during the query runtime.
In WAD, Query1 is  used  to be a table with a table interface to hyperlink a chart which is defined by Query2 with the same variable value of Query1.
During the runtime of template, if I change the variable value of Query1 , I want the variable of Query2 to be changed automatically with the same new value.
So in the table interface of Query1 , I write the ABAP code in "SE24" and related source code to the variable is following:
concatenate
'function fire_urlJGSP_Col(filter) {'
Cl_rsr_www_renderer=>c_lf
'chart_url="' url '" + "&CMD=LDOC'
'&TEMPLATE_ID=GCCHART_9' "WEB ID of the work book
'&PAGEID=Graphics'       "Name of the view
'&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME=Z2MYEAR&VAR_VALUE_EXT=" + filter'
Cl_rsr_www_renderer=>c_lf
'openWindow(chart_url,"chart_window","dependent=yes","600",'
'"450","true")'
Cl_rsr_www_renderer=>c_lf
into l_coding.
In this way , I can only transfer the year variable value from Query1 to Query2 and not two variables .
So , how  shall I do to transer the two variable value in the same?

Similar Messages

  • Transfer variable values via ABAP betweenn planning areas

    Hello,
    I'm using an ABAP-coding (BPS How-To 'variables type user-exit) for transferring variable values between planning areas. It works fine for single-, multi- and interval-selection, but not for single hierarchie nodes.
    I don't want to transfer the values beneath the nodes but the node itself. Has anyone experience with that or changed the ABAP-Coding.
    Note, I'm using a variable type hierarchie as destination and get always a dump, when the ABAP is executed.
    Appreciate your help, thanks in advance...

    Hello,
    I am having the same problem. Can the function module Z_VARIABLE_GET_DETAIL from the "How to...BPS Variables of Type Exit" be modified to get the node value of a hierarchy node variable so it can be used as a global variable?
    Thanks, Linda

  • How to transfer variable value from one query to another query?

    I create two queries which contain the same variable "Year" and "Month".
    In the wad,Query1 is used to be a table and Query2 is used to show the chart in the condition with the same variable value of Query1
    So I want to transfer the variable  value from query1 to query2.
    Can anyone help me ?

    Let me explain the issue in detail.
    In Query Designer, both the year and  month variables are defined by user exit function to read current year and month and can be modified  during the query runtime.
    In WAD, Query1 is  used  to be a table with a table interface to hyperlink a chart which is defined by Query2 with the same variable value of Query1.
    During the runtime of template, if I change the variable value of Query1 , I want the variable of Query2 to be changed automatically with the same new value.
    So in the table interface of Query1 , I write the ABAP code in "SE24" and related source code to the variable is following:
    concatenate
    'function fire_urlJGSP_Col(filter) {'
    Cl_rsr_www_renderer=>c_lf
    'chart_url="' url '" + "&CMD=LDOC'
    '&TEMPLATE_ID=GCCHART_9' "WEB ID of the work book
    '&PAGEID=Graphics'       "Name of the view
    '&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME=Z2MYEAR&VAR_VALUE_EXT=" + filter'
    Cl_rsr_www_renderer=>c_lf
    'openWindow(chart_url,"chart_window","dependent=yes","600",'
    '"450","true")'
    Cl_rsr_www_renderer=>c_lf
    into l_coding.
    In this way , I can only transfer the year variable value from Query1 to Query2 and not two variables .
    So , how  shall I do to transer the two variable value in the same?

  • How to retain the presentation variable values for Dashboard Prompt

    I've a dashboard prompt with date and two other drop down field, with default value as yesterday's date set for date and All Values set for other two drop down list. Presentation Variables are D1, P1 and P2 respectivilly
    I'm using GO URL from "Report A" and passing presentation variable to navigate to other report (Report B) that works fine. eg:
    '<a href = saw.dll?GO&path=/shared/Reports/ABC/ReportB&Action=Navigate&p0=1&p1=eq&p2="-%20Time"."Next%20Day"&p3=@{d1}>Test</a>'
    From Report B I'm using Dashoard URL to go back to Previous Report like:
    <div class="XUIPromptEntry minibuttonOn">
    Return to Previous Screen</div>
    This also works fine.
    My problem is that, when users selects different values in the Main dashboard prompt for date and other other two drop down and navigates to other report (Report B), and from Report B, when user returns to previous screen (Main Dashboard), Prompts values gets refreshed to original default values.
    Is there any way to retain the values of presentation variable in dashboard Prompt when I return to main dashboard from Report B?
    I'd appreciate your help.
    Thanks

    Change your dashboard url include the column and column value for the date column sample shown below,
    [a href=saw.dll?Dashboard&PortalPath=/shared/sample/_portal&page=pagename&Action=Navigate&col1=Dim.Date&val1=@1>Return to Previous Screen[/a>
    In my second report Date is the first column so I referenced it's value as @1 in the dashboard URL
    note: replace [ with <
    Thanks,
    Vino                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem with update variable value

    i have declase a variable as
    static int small;
    in the public class.......
    then the method "a" will update this "small" to a new value everytime the "a" is called....
    but i could not update the "small " to a new value....everytime is the same value.....
    how could this be solved??

    i think my rpoblem come from other factor.....
    i think i'm unable to remove the selected node from the list....
    eg:
    newtempNode = firstNode;
    tempNode = firstNode;
    for ( int i =0;i < (smallid-1);i++)
    tempNode = tempNode.next;
    for (int i = 0; i< smallid;i++)
    newtempNode = newtempNode.next;
    tempNode = newtempNode.next;
    ==>can the above delete the selected node from the list???
    or anybody can show me how to deleted the selected node from the linked list???

  • Problem in assigning variables value.. FORM bdc_field

    Though the value is there in y_lv_fval it is not assigned to WA field y_li_bdcdata-fval.
    FORM bdc_field USING y_lv_fnam y_lv_fval.
        CLEAR y_li_bdcdata.
        y_li_bdcdata-fnam = y_lv_fnam.
        y_li_bdcdata-fval = y_lv_fval.    "KBETR field length..larger than y_li_bdcdata-fval
        APPEND y_li_bdcdata.
      ENDFORM.                    "BDC_FIELD

    ok

  • How to set Default to in Dashboard Prompt from presentation variable value

    Hi all BI Gurus,
    I am trying to come out from my problem from last two days and I am not able to find the solution.
    Here is my problem.
    I am having two dashboard pages in one dashboard. Both pages contains dashboard prompt. Now from the first page’s prompt I had set a presentation variable and I want to use that presentation variable’s value in to prompt’ s default value which is used in my second dashboard page.
    I am hoping I can do that with Server variable or variable expression, but don’t know the proper way. I tried a lot with both but not able to find the solution.
    Could any help me please?
    Regards,

    Hi David,
    Thanks for replying. I really appreciate it.
    Yes I am using the same column.
    Let me provide you more details regarding my problem,
    I am having one dashboard prompt for gender and it's default value is 'Female' so I am assigning that value in to presentation variable PV_GENDER with set variable option in prompt.
    Now in my second prompt which I am using on second page of same dashboard, I am trying to assign that value 'Female' ( or the one that user had selected ) with the help or that presentation variable PV_GENDER in Default to. I tried all options (e.g. Variable Expression, Server Variable, SQL Result ) but I am not able to get that value.
    If you need more detail just let me know.
    Once again thanks for replying.

  • Can I set a Session Variable from a Dashboard Prompt, using values that are

    Hi All
    Trying to set a Session Variable to an integer value, by letting users select a text value from the drop-down list on a Dashboard Prompt. The goal is to set the input parameter to the IndexCol function, but to provide the end users with a text description of what they are setting.
    Select Value Set Variable Value
    My 0
    My Team 1
    My Companies 2
    My Teams Companies 3
    Any suggestions on how to accomplish this? Certainly we could populate the drop-down from a data source, however I don't see how to populate a variable with something other than the values on the screen.
    The IndexCol function is referenced in a Filter in Answers, and I'm thinking to populate a Session variable using the (Presentation) variable value set from the prompt. But how to do this? I see a reference to a function NQSSetSessionValue(), but cannot find documentation on how it works.
    Any clue will be greatly appreciated.
    Thanks

    Hi kishore..
    Looks like the link u have sent uses advanced SQL tab to set session variables. I want to know if I can use "set variable NQ_SESSION.myvar= @something" in the "SQL results" -while creating a dashboard prompt-.
    Purpose: I want the session variable to be set based on whatever report that im currently in.
    And i dont want to use presentation variables because im using a reset button in my page.
    My reset script resets presentation variables and NOT session variables.
    Thanks in advance
    Loy

  • Problem in picking the system variable value in Calculation Script

    Hi All,
    We are using a Calculation Script to perform data export. And the target location where to crete the exported output file is given to the environment system variable.
    Now I am using this system variable in the calculation script as below:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET DATAEXPORTOPTIONS
    DataExportLevel "ALL";
    DataExportOverwriteFile ON;
    Fix ( &CurrMiles, &CurrProj, &CurrVer,"No Project","No Version")
    DATAEXPORT "File" " " $DEXPORTPATH;
    ENDFIX
    Here "DEXPORTPATH" is the system variable
    I am creating this system variable from the batch script and the system variable value varies at the runtime.
    This calculation script works fine for first time and it picks the correct value from the system variable.
    But the problem occurs from next execution of calc script. Even if i update the system variable with other value, it picks only the last execution system variable value and it performs execution.
    Eg: Suppose for first execution system variable value is "D:\Bkup\PMV.txt"
    The calc script works fine with this.
    For next execution, system variable value is changed to "D:\Time\temp.txt"
    Now the calc script picks the system variable value as "D:\Bkup\PMV.txt"
    and performs execution which is wrong.
    Please help me on this issue how to handle system variables in calc scripts.
    Thanks in advance
    Regards
    Swathi

    811829 wrote:
    Hi All,
    We are using a Calculation Script to perform data export. And the target location where to crete the exported output file is given to the environment system variable.
    Now I am using this system variable in the calculation script as below:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    SET DATAEXPORTOPTIONS
    DataExportLevel "ALL";
    DataExportOverwriteFile ON;
    Fix ( &CurrMiles, &CurrProj, &CurrVer,"No Project","No Version")
    DATAEXPORT "File" " " $DEXPORTPATH;
    ENDFIX
    Here "DEXPORTPATH" is the system variable
    I am creating this system variable from the batch script and the system variable value varies at the runtime.
    This calculation script works fine for first time and it picks the correct value from the system variable.
    But the problem occurs from next execution of calc script. Even if i update the system variable with other value, it picks only the last execution system variable value and it performs execution.
    Eg: Suppose for first execution system variable value is "D:\Bkup\PMV.txt"
    The calc script works fine with this.
    For next execution, system variable value is changed to "D:\Time\temp.txt"
    Now the calc script picks the system variable value as "D:\Bkup\PMV.txt"
    and performs execution which is wrong.
    Please help me on this issue how to handle system variables in calc scripts.
    Thanks in advance
    Regards
    SwathiAs of my knowledge system variables will not update immediately...you need to log off the session after changing the value.
    Update the system variable..
    Log off from the session..
    And Re-login with the same username ....and check...
    Regards,
    Prabhas

  • How can i transfer the system variable value through DTW in SBO

    Hi,
    I want to transfer the system variable("Excisable" in the Item master data in the SBO 'India' database) value through the template by the DTW.
    But i don't have any template consisting of this system variable.
    So please suggest me that how can i transfer the value of this system variable(Excisable) and by which template.Please tell me any constraint if it is on the value of this variable.
    I will be very thankful to you.
    Thanks & Regard,
    Sandeep
    Message was edited by:
            Marc Riar

    Sandeep,
    This question has come up several times on this Forum.
    Please read this read.
    Importing excisable item
    Suda

  • Problem with Selection screen values of an authorization variable

    hi Gurus,
    I have an authorization variable for Division in my queries....Now whenever a user tries to run the query...a list of divisions is available to him....All divisions for which he/she has proper roles assigned.
    Now the problem is that these values are not restricted to the ones relevant to that query (namely the multi provider)
    Eg. for a Flowers Query (divisions relevant to Flowers only) all the divisions (including the ones for Vegetables, Crops etc.) are also visible only because these roles are also assigned to the same user. This needs to be avoided.
    In a nutshell....
    Is their any way by which i can restrict the number of values popping up for an authorization variable in the selection screen, to only those values which are relevant to the info-provider on which the queries are based ???

    hi Deepu,
    I did go through that SAP note. I just have one concern regarding that. The check at the Info provider level is clear enough and i already have that in place. Now there are 2 more checks required a) at the info object level and b) at the BEX designer level.
    Are all three checks required???
    and also how do you  place the check at the BEX level??? i could not quite figure that one out...
    Any inputs would be welcome.
    Thanks,
    Nikhil

  • Variable not  transfer the value to planning function

    Hi,
    I am facing a problem while executing the planning sequence.
    In my workbook I have a button, behind that button one planning sequence is attached ( it copy the quantity from one scenario to other scenario) along with two varaible. Value for variable is pass behind the button.
    Both variable are multiple single value type.
    CMD                                                1         EXECUTE_PLANNING_SEQUENCE (copy)
    PLANNING_SEQUENCE_NAME        1        YNDPP59_A_SQ046
    VAR_NAME_1                                1        YQUXN_YN_SCENAR_007(from scenario)
    VAR_VALUE_EXT_1                        1         F25
    VAR_NAME_2                                1        YQUXO_YN_SCENAR_001(to scenario)
    VAR_VALUE_EXT_2                        1         F50
    Now, I have other buttons in my workbook. They used to  copy from one scenario to other but variable for scenario use is same for all.
    Example Scenario :-
    Button 1:- copy demand to photo demand
    Button 2:- copy confirmed demand to demand
    Before Image
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         100 To                 0 To                       200 To
    First time:
    When I used button 1(copy demand to photo demand) it's works fine.
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         100 To                 100 To                       200 To
    I do the manual changes in Key figure(demand)
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         150 To                 100 To                       200 To
    then use button2 (copy confirmed demand to demand) it works fine
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         200 To                 100 To                       200 To
    Second time:
    When I used button 1(copy demand to photo demand) it's works fine.
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         200 To                 200 To                       200 To
    I do the manual changes in Key figure(demand)
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         150 To                 200 To                       200 To
    then use button2 (copy confirmed demand to demand )it didn't work fine
    Basin   Subfamily  Quarter    KF1(Demand)   KF2(Photo Demand)  KF3(Confirmend Demand)
    100           70        20083         150 To                 150 To                       200 To
    it executed the planning sequence running behind button 1
    So, problem is my variable keep the last values. Please, help me to solve this problem.
    Thanks and regards,
    Deepak Singh

    Hi,
    Your post is little bit confusing ;
    What i understood is that your planning function is not running with proper value of variables ;
    Two things can be the reasons :
    1. the data set that you are running for second time may be improper which can be when the data is not saved in cube
    2. The variable value is wrong ; please check in debug what value of variable it is taking; if for the first time the value of variable is proper than there shouldn't be any error for second time;
    Post your questions in little simpler way that will be easy to understand;
    Thanks
    Pratyush

  • Between-Filter on Column using calculated presentation-variable values

    Hello everyone,
    i'd like to know whether it is possible to filter a column with a Between-Statement using two calculations done on a single presentation variable in Oracle BI Answers
    What i have:
    - OBIEE 10g
    A line-chart, which shows earnings over a period of several years: In 1999 it might be 100.000€, in 2000 it might be 80.000€,..., in 2009 it might be 95.000€ and so on.
    What i want:
    Now i'd like to create a dashboard prompt to be able to choose a certain year, for example 2006.
    The chart then should show data for the year given (2006...) and two years before(2004, 2005) and two years after the chosen year(2007,2008).
    Example:
    If 2006 is chosen, then data from 2004 to 2008 should be shown in the chart
    If 2000 is chosen, then data from 1998 to 2002 should be shown in the chart.
    What i did:
    - I created the Prompt, set its presentation variable to var_year.
    - I then created a filter on my years-column, choosing "Between" from the DropDown-List.
    - I added two 'Variable-fields within the filter-dialogue', each filled with var_year and a default value.
    - I tried to add a +2 or -2 to the variable-expression field, but (ofcourse) got an error.
    Thanks in Advance and greetings from Germany,
    Chris
    Edited by: user12288481 on 04.08.2010 13:18

    Sorry for not answering to your Posts yesterday.
    I have to admit that i was unable to solve my problem, although the solutions posted, seemed to be quite promising.
    Hammett81's solution
    First, I gave Hammett81's solution a try and created a filter group using the 'Add filter' option/dialogue box.
    This Filtergroup consists of 5 single filter expressions, which have been connected by ORs:
    The way i created those filters:
    In the 'Create/ Edit Filter' i've chosen 'is equal/ is in' - Operator.
    Then i was given the chance to add a 'value' or to add 'Variable --> Presentation', which summons 2 textboxes (Variable Expression and Default)
    Everything i put into the variable expression field will be put into the @{} bracket by OBIEE, after clicking ok.
    So it is not possible to use +1, +2, -1,-2 etc. within this field, as this would lead to @{var_year +2} for example, which ofcourse does not match the presentation variable's name.
    On the other hand, if i do not use a Variable Expression but a "Value field", then i can write @{var_year} +2 for example.
    In my opinion, obiee wants to use the expression as a simple value though, rather than use it as a variable and therefore won't check the presentation variables value, when it tries to filter the data.
    John's solution
    Regarding Johns answer, i am not sure where to put the filter expression. Should this be added into the SQL-Query (Advanced-Tab) or do i have to add it within the columns formula? (fx)
    Edited by: Chris2010 on 05.08.2010 09:36

  • 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?

  • Problem with application-variables - CFLOCK?

    Hi,
    i have a problem with my application. It is a multi-user
    application with 100 parallel-users and CFMX 7.
    The problem wich occures is with application variables. These
    are mainly structs wich get filled onApplicationStart(). The
    problem is, that the variables suddenly disappear, they are empty.
    I have read about CFLock and found out, that it is necesseary
    to use cflock. And i found out, that onApplicationStart does
    correct locking automatically. That is where i do not understand
    the problem. The variables get intialized correctly and in further
    they only get read-access. Why can they be corrupted?
    My other question about that is, wheather i need cflock for
    all Read-Access to Application and Session-Variables, even if there
    happens no writing to the variables?
    Best Regards,
    Andreas

    > ?The element of position 2, of dimension 2, of an array
    object used as part of
    > an expression, cannot be found.?
    > The array is in this case the struct.
    Well, OK, that could be a problem. Arrays are not structs:
    they are two
    different things, are not interchangeable, and have
    completely different
    sets of functions to utilise them. You cannot treat a struct
    as an array.
    If CF is claiming your "struct" is an array, then it actually
    *is* an
    array, not a struct.
    What's the line of code which is generating that error?
    I suppose one could get this error if you have an array of
    structs thus:
    myArray
    .key1
    myArray.key2
    (etc)
    and you're trying to reference it with a numeric key rather
    than by key
    name, eg:
    myArray
    [n]
    When n is an integer value, rather than a string (which
    corresponds to the
    name of the key).
    > > Have you trapped the error, done a <cfdump>
    of the application scope and
    > > checked to see if it's the whole lot going awry, or
    just some values?
    > I have not used cfdump for it, because the server had to
    be immediately
    > restarted for our customers. But i think, that it is
    not completely empty,
    > because the index runs to pos2 of dimenstion2.
    So does this not happen in your dev / testing environment?
    > Will
    > onApplicationStart() be called before? Or only if
    onRequestStart() returns true?
    I would ***-u-me that the application one would be called
    before the
    request one. It's pretty easy for you to test this though, I
    should think?
    (Sorry: for reasons beyond the scope of this conversation,
    we're still
    forced to use Application.cfm in our software, so I've only a
    passing
    knowledge of how Application.cfc works).
    > Here is the code from onRequestStart()
    > <cffunction name="onRequestStart"
    returntype="boolean">
    > <cfargument name="Requestedpage" required="yes" />
    > <cfscript>
    > var lFile = "/cargorent/Login.cfm";
    > var iPosn = ListFindNoCase( lFile,
    Arguments.Requestedpage );
    > if( iPosn gt 0 )
    > return true;
    >
    > if( NOT IsDefined( "session.user.Loginname" ) or
    session.user.Loginname eq
    > "" )
    > {
    > WriteOutput( "<p><p> The current user is no
    longer valid, please log in
    > again.</p></p>" & chr(10) & chr(13)
    > WriteOutput( "<script
    language=""javascript"">parent.location = ""
    http://"
    > & CGI.HTTP_HOST &
    "/Login/Login.cfm"";</script>" );
    > return false;
    > }
    >
    > return true;
    > </cfscript>
    > </cffunction>
    One thing I will say here is that I really think you should
    be separating
    your processing from your display. A function should do
    processing. it
    should pass that processing back to a CFM template which
    should handle
    whatever needs to be displayed on the browser. Although
    that's nowt to do
    with your current issue.
    Adam

Maybe you are looking for

  • How to use self-defined class in a jsp page

    Hello: I defined a class for displaying purpose, which is in the different folder(WEB-INF/classes) from my JSP page. In my JSP page, I want to create an instance of my class and display something, while I get the following error: " org.apache.jasper.

  • Sync encountered an error while syncing: Failed to connect to the server

    Th new sync is just not ready for realease yet in my opinion. After switching to the new sync on 2 of my 3 devices (netbook: lubuntu 14.10 and notebook ubuntu 14.04) the new sync was working perfectly. Two days ago i added my windows PC to it and now

  • Bridge crashes when adding keywords?

    I was hoping to organize my photos through Bridge but it keeps crashing when I add keywords.  Sometimes it works and other times it crashes even if I ony select one photo at a time?  Very disappointing.  This is the first crash on PS CS6 after 30 plu

  • SQL script query

    Hello, I was wondering if it is possible to retrieve a unique value from a column example if i have Staffno Building 1 Grey 2 Grey 3 Blue If i wanted to only call the unique value which would be staff number 3 how would I do this? Many thanks :)

  • Disk utility can't fix my disk!

    I have a MacBook Pro 15" with OS X Mavericks. Latley programs have crashed for no reason, so i checked disk utilities, it found a problem, I turned off my computer, held down cmd + R, and disk utilities can't fix it there either. So I know I have to