CF9 struct key and variable name problem

Running CF 9 on Linux, the following produces unusual results:
<cfscript>
    a = { '99' = "that", '8X' = "this"};
    writedump(a);
</cfscript>
The dump shows only the keypair with the key '99' and the value 'this'. #a['99']# produces "this". #a['8X']# produces "this" as well. It's as though CF cannot distinguish between the tokens '99' and '8X'. Note that implicit assignment is not implicated:
<cfscript>
    blah['GNQ'] = 'bad struct';
    blah['H02'] = 'worse struct';
</cfscript>
This yields a struct with one member per structcount(), with a key-value pair of GNQ='worse struct', but the key 'H02' accesses the same value. structkeyexists(blah, 'H02') returns true.
On our systems (we've tried CF 9 on separate RH 4 and RH5 machines) the problem is not limited to structs per se, and seems to persist even when other characters are involved in variable or struct key names:
<cfscript>
    testb0 = "test";
    testao = "test2";
</cfscript>
This produces an error page with the message "can't load a null". However, the following is possible:
<cfscript>
    testb0 = "test";
    writeoutput("b0 = #testb0#<br/>");
    writeoutput("ao = #variables['testao']#<br/>");
    writeoutput("#structkeyexists(variables, "testao")#");
</cfscript>
The above produces the output 'test' for the undeclared variable 'testao', and also thinks that variables.testao is in the variables scope, even though it hasn't been declared.
A quick loop or two and we've found that our CF 9 installations cannot distinguish between 340 two letter sequences, in matched pairs, as in the following example:
ao = B0
ap = B1
aq = B2
ar = B3
as = B4
at = B5
au = B6
av = B7
aw = B8
ax = B9
Case does not seem to matter, and as mentioned above, this 'blindness' appears to persist even when the strings are embedded in other strings. E.g., when used as key or variable names, the following are being treated by CF as equal:
slap = slb1
tape = tb1e
apes = b1es
Has anyone else experienced anything like this? Could there be some strange setting that is causing CF to interpret the templates using some otherworldy codepage in which these characters are equivalent? Could there be something wrong with our installation, and/or our OS?
Any hints, confirmation of our findings, and/or refutation of same would be greatly appreciated - we were hoping to move to CF 9 from CF 8 this week, but this is quite a showstopper for us.

I did restart but turns out I fed the updater the zip file (hf900-81860.zip) instead of the jar file (hf900-81860.jar).  Now it returns the correct results, "abc" (not "123").  I also confirmed that this problem was not fixed by "Cumulative Hot Fix 1 for Coldfusion 9".  And, I verified that it fixed the more widespread issue in my application.  Thank you guys!
HotFix (thanks buglug):
http://kb2.adobe.com/cps/825/cpsid_82547.html
Related bugIDs:
81860
81884
82491
Related posts:
http://stackoverflow.com/questions/2164472/bug-in-cf9-values-for-unique-struct-keys-refere nced-and-overwritten-by-other-key

Similar Messages

  • How to know the nos. and variable name from Jframe ?

    Hello Everyone,
    I have just started java programming. I have one form (using jframe) and there are nos. of components like text field, radio buttons, list box, buttons etc.).
    I want to know nos. and type of components (text field, radio buttons, button etc..) and variable name of these components ?
    Is there any way class / method or technique for the same ?
    With Thanks !
    Prashant Shukla

    Since if you are dealing strictly swing here, and no mixed in awt, all you have is JComponents, then where's the problem ... why do you even need to know which JComponent it is?
    This what you have?
    class StuffWithListeners  extends JFrame  implements ActionListener, KeyListener {
      StuffWithListeners() {
        jb = new JButton("GO");
        ta = new JTextArea(10,20);
        jb.addActionListener(this);
        ta.addKeyListener(this);
      public void actionPerformed(ActionEvent ae) {
      public void KeyPressed(KeyEvent ke) {
    }Edited by: abillconsl on Dec 14, 2007 5:23 PM
    null

  • Wifi has suddenly stopped working. There is an exclamation mark which takes me to network diagnostics. This asks me for network name and password. This is different from the startup wizard which only asked for a WEP key and modem name. What to do?

    My wifi has suddenly stopped working on my iMac, after working fine for almost a year. There is an exclamation mark on the wifi bars and when I click it, it takes me to a network diagnostics page. This page asks me for my username and password for the wifi, which I don't have. It is different from the WEP key and modem name, which I originally used to set up my connection. I have not experienced any problems on all my other wifi-enabled devices. Ipod touch, iPad, MacBook all work fine. What should I do?

    The name is the name of the network you created on the router. The password is the WEP password. You shouldn't be using WEP at all, as it's insecure and also seems to cause connection failures. Use WPA 2 Personal. If your router doesn't support it, get a new one.

  • Variable Name Problem

    Hi all,
    By refering flash remoting variable declaration documents, it
    says we can have a variable with $ and _ as a part of the variable.
    i am using Flash Media server2, And PHP (version5.0.5); for
    remoting.
    when ever i used variable name with _ creates problem and
    shows "" value;
    Following is a sample code,
    var myLoader = new LoadVars();
    myLoader.user_id = "1";
    myLoader.onLoaded = function(){
    myLoader.sendAndLoad("myPhpPath",myLoader,"POST");
    // this code creates problem(but its running in flash but not
    in Mediaserver).
    if i remove the _ symbol, it works fine,
    Does anyone know why it happens

    You can pass an init object as the 4th argument to load
    movie.
    Basically this takes the form of braces encapsulating a comma
    seperated list of property_name colon property_value
    eg {_x: xpos, _y:ypos}
    _root.attachMovie(_global.cl_Name, _global.cl_Name,
    _global.clipHeight++, {
    _x: xValue,
    _y: yValue
    Happy Flashing

  • Can I have unique function and variable names with createjs when publsihing from Flash?

    Hey everyone!
    I have recently started using the Toolkit for CreateJS exporter for turning small button icon animations, made in Flash, into content for HTML5. I have created 3 seperate icon '.fla' files that animate when rolled over.
    With this example tag added into my html5 document, the animation works fine:
    <canvas id="about_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    However, once I have added more than one canvas tags, only one icon would appear on screen:
    <canvas id="about_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    <canvas id="news_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    <canvas id="contact_btn" width="85" height="70" style="background-color:#FFF"></canvas>
    I found out that the JavaScript files that were generated with each '.fla' file were conflicting because they were all using the same variable and function names (ex. stage, canvas, init(), etc.). Is there a way for me to publish the JavaScript from Flash with document specific variable and function names? (ex. about_stage, about_canvas, about_init())
    A work around methood that I can currently using is putting each <canvas> tag into it's own iFrame.
    Thanks again for the help!
    -DJ

    The JS asset libraries should not conflict with each other, unless there are symbols with the same names. Even then, you can change the Symbols namespace for each FLA to prevent collisions.
    It sounds like you're trying to copy/paste the code out of the preview HTML. It's not really designed for this, and it will lead to name collisions. You'll either want to rewrite this logic in your own HTML (using the preview code as a reference), or rename the variables as appropriate after you copy/paste.
    Best,
    Grant.

  • Path and file name problem when I want to download files from html

    Hi all,
    I want to write a small program to allow users download files from jsp file
    but the following files don't work .
    <%@ page language="java" import="java.net.*,java.io.*"%>
    <%@ page import ="java.util.*"%>
    <%
    try
    String SContent = request.getParameter("click");
    String SDocName = "temp.doc"; //  out put file File Name
    ServletOutputStream stream= response.getOutputStream(); // Getting ServletOutputStream
    response.setContentType("application/msword"); // Setting content type
    response.setHeader("Content-disposition","attachment;filename=\"" +SDocName+"\""); // To pop dialog box
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(SContent));
    int c;
    while ((c = in.read()) != -1){
               stream.write(c);
    in.close();
    stream.flush();
    catch(final IOException e)
    System.out.println ( "IOException." );
    catch(Exception e1)
    System.out.println ( "Exception." );
    %>I am so confuse, what is the path and file name I sould give ? for example my click should equal to http://******/Test/display.jsp?click=00-1

    Hi all,
    I got error at
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
    if I want ot download file from html file.
    String SContent = request.getParameter("click");
    if I hard code like follow it work fine.
    String SContent ="C:/Project Coding.doc";
    what mistake I make.
    Thank you!

  • 2 kids one ID (Father) and game name problem.

    Hi,
    We've 2 kids with both their own iPod Touch working on my account, now on both iPod's they have the same name when they play games...
    How can we change this, because they have their own e-mailaddres? There is always "Welcome back and the name" from the first iPod I installed.
    Thanks
    Tom

    Hi
    This is because their username for playing games, or Game Center username, is tied to your Apple ID. The easiest solution to this would be to sign out of your Apple ID on your kids' iPods and give your kids an Apple ID each. Anything they downloaded through your ID would stay on their iPods.
    To do this, open Settings on the kids' iPods, swipe down and tap Store, then tap 'Apple ID: [Your email address here]'. It should pop up with 4 options, tap 'Sign Out'. Tap 'Sign In' then tap 'Create New Apple ID' and fill out the details for your kids' IDs. Once this is done, they can make their own usernames in Game Center.
    I hope this helps!

  • E71 E-Mail Key and Related Mail Problems

    Since my E71 was updated to the latest firmware (at a Nokia Service Center) around 6 months ago I have had a number of odd mail problems, which manifest themselves as follows:
    After an initial boot everything with mail and messaging works fine as expected. However at least once or twice a day the phone switches unpredictably into an odd mode with the following symptoms:
      1) E-Mail key stops responding to short or long presses.
      2) New e-mails and sms messages which arrive do not appear on the home screen as usual, though they may (or may not) appear as small icons in the top right corner of the screen.
      3) For new e-mails only the title/header is downloaded, whereas usually I have it set to automatically download the first 2 K of each message.
      4) New messages still appear as 'unread' even after reading them. Manually setting them to 'read' works, but only after a long delay.
      5) The flashing navigation key light which warns of new messages/mails gets stuck in flashing mode and will not stop until the phone is rebooted.
    Problems 1-3 occur every time, and 4&5 occasionally, but all can only be cured by rebooting the phone, after which it works fine again - for a while.
    Since I first saw this problem I have updated the firmware twice (it is currently on the latest version), but the problem persists. I wonder if anyone has seen this problem or has any idea how to fix it? It's a great irritation with an otherwise excellent phone, especially since it was all working fine when I first purchased it. Thanks for any comments or suggestions

    For anyone who is interested, I've found the answer to my own question, though not the solution to my problem. After several days playing with mail settings I noticed that when Retrieval settings > E-mail to retrieve is set to 'Headers only' or ' Msgs & attachs', there is no problem. However, if it is set to 'Size limit' with a setting of say 2K or 5K (i.e. just enough to capture the first few important paragraphs of any message) then receipt of many types of formatted mails larger than the specified size causes the mail program to crash, and the OS to switch into the odd mode described in my earlier post.
    This is particularly irritating since I travel frequently overseas in Asia where roaming GSM data use is expensive (and there are no caps or limits on roaming fees), and due to the nature of my work my e-mails typically come with long threads and large attachments. Therefore I am left with the choice between:
         A) Downloading mail headers only and waiting till I can find a WiFi connection to find out what the message actually says
         B) Downloading the whole message and paying many hundreds of dollars a month in data roaming fees
         C) Using the fixed mail size limit setting and accept that my mail program will crash several times a day and
              require the phone to be rebooted each time to restore normal functionality
    Anyway, it seem this problem is clearly due a bug with the Nokia mail software in recent builds, since it worked fine with these exact same settings for the first year I had the phone, and repeated clean re-installs of the latest firmware do not fix the problem. Therefore, if any Nokia developers are monitoring this board you can add this to your bug list, and you know where to start looking for the bad bit of code.

  • Help! please with variable name problems

    I have a program that administers a quiz but the no. of questions in the quiz is variable, qarray holds the questions. I am using card layout and i need to set up a new card for each questions. The number of answer choices to multiple choice questions are also variable and i'm going to have the same sort of problem when i'm creating checkboxes. Is there any way around this. I'm getting an error message variable required but value found.
    noOfQuestions = qarray.length;
    for(int i=1; i<noOfQuestions; i++)
    Card = "Card"+i;
    String cardname;
    JPanel (Card) = new JPanel();
    Card.add(new JLabel("Question "+i));
    if(qarray.oftypemc())
    Card.add(new JLabel(""+qarray[i].getQuestion()));

    Look, some guy invented ARRAYs.
    So, do
    noOfQuestions = qarray.length;
    JPanel[] cards = new JPanel[noOfQuestions];
    for(int k=0; k<noOfQuestions; k++) // note: index must start at 0
        cards[k] = new JPanel();
        cards[k].add(new JLabel("Question " + k));
    }or better yet
    CardLayout cardLayout = new CardLayout(); // cardLayout should be global
    JPanel allCards = new JPanel();           // allCards should be global
    allCards.setLayout(cardLayout);
    JPanel card;
    String cardName;
    noOfQuestions = qarray.length;
    for(int k=0; k<noOfQuestions; k++) // note: index must start at 0
        cardName = "Question " + k;
        card = new JPanel();
        card.add(new JLabel(cardName));
        allCards.add(card, cardName);
    }Now, I leave it to you to figure out why cardLayout and allCards should be global fields.

  • Variable and column name

    Hi all,
    In an interface, I've got a column which has the same name as a variable.
    When I execute it in ODI 10g all is fine.
    With ODI 11g, it replace the column name by the variable one. If the variable has no value, I've got an SQLException.
    I believe it comes from the colon.
    In the execution code, I have
    INSERT ... VALUES PROJECT.NAME instead of NAME.
    I assume that ODI interprets the NAME with the variable name instead of the column name.
    Has anyone experienced it ?
    Thanks.

    Hi,
    I just tried to reproduce your issue, I didn't experience the case where ODI takes variable name instead of column name. ODI should be able to differentiate between column name and variable name with '#' Symbol prefixed to it. Any name prefixed with #, ODI thinks thats a variable and, it need to be declared in a package.
    In your case, looks like issue is not with the NAME, its with variable having no value. May be that ODI 10g has a default value. However, if a variable has no value, its definitely going to fail the process.
    Regards,
    K

  • Key and name customized display

    Hello,
    I would like to know (in BW3.1) if there is a trick in the Bex to display "key and long name" for a characteristic in the report while the object is declared with 'short description' in the rsa1 (bex part) ?
    The objective is not to change for all user the default display (we want to keep short name)  but allow some users to display even so "key + long name". Apparently only 'long name' alone is possible, a pitty.
    We could solve creating a separate attribute, but it's an heavy trick...
    thank you !
    Olivier

    Dear Harita
    The first issue Currency translation in query or workbook is solved with SAP note 1119549.For second issue we have not found solution until now ,Once we find the solution we will update you..
    Shu Moh

  • BPEL variable access problem - ORABPEL-02118

    Hi,
    I have a method which accesses the variable of a BPEL process. It worked well with the Soa Suite 10.1.3.1, but I re-install the SOA Suite with the Advanced installation and applied the 10.1.3.3 patch and now I have this error message:
    0 - ORABPEL-02118
    Variant not found.
    The variant "PatientRecordVariable" has not been declared in the current scope. All variants must be declared in the scope before being accessed.
    Please check that the variant "PatientRecordVariable" is properly declared; otherwise there may be a misspelling in the name of the variant.
    <2007-07-26 11:56:27,829> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "instance manager": [com.collaxa.cube.engine.EngineException: Variant not found.
    The variant "PatientRecordVariable" has not been declared in the current scope.  All variants must be declared in the scope before being accessed.
    Please check that the variant "PatientRecordVariable" is properly declared; otherwise there may be a misspelling in the name of the variant.
    ORABPEL-02118
    Variant not found.
    The variant "PatientRecordVariable" has not been declared in the current scope. All variants must be declared in the scope before being accessed.
    Please check that the variant "PatientRecordVariable" is properly declared; otherwise there may be a misspelling in the name of the variant.
         at com.collaxa.cube.engine.core.Scope.getVariantRV(Scope.java:522)
         at com.collaxa.cube.engine.CubeEngine.getFieldValue(CubeEngine.java:2956)
         at com.collaxa.cube.ejb.impl.InstanceManagerBean.getFieldValue(InstanceManagerBean.java:288)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at InstanceManagerBean_RemoteProxy_4bin6i8.getFieldValue(Unknown Source)
         at com.oracle.bpel.client.InstanceHandle.getField(InstanceHandle.java:229)
         at webUI.GetTaskData.doGet(GetTaskData.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    My code does the following calls:
    Locator locator = new Locator("default", "bpel");
    WhereCondition where = new WhereCondition(SQLDefs.CI_cikey + " = ?");
    where.setString(1, taskId);
    IInstanceHandle[] instances = locator.listInstances( where );
    IInstanceHandle instanceHandle = instances[0];
    System.out.println(instanceHandle.getTitle());
    HashMap inst = (HashMap)instanceHandle.getField("PatientRecordVariable");
    XMLElement dataXML = (XMLElement)inst.get("payload");
    String data = XMLHelper.printXML(dataXML);
    The problem is at the "getField" method. I was wondering if somebody encountered this error and know how to solve it. I think it should also be possible to access the variable directly from the database (I'm using XE) but I don't know in which table to look.
    Any help would be greatly appreciated. Thanks.
    Amir

    When I display the debugTrace message for the process instance using
    System.out.println(instanceHandle.getDebugTrace());
    it gives me this:
    <variant key="_$$process-start-time" type="long">1185481662531</variant>
    <variant key="_$$++is-sync-operation" type="boolean">false</variant>
    <variant key="++properties" id="1" ns1:type="ns2:HashMap">
    </variant>
    <variant key="_$$audit-trail-count" type="int">1</variant>
    <variant key="_$$audit-detail-count" type="int">0</variant>
    <variant key="_$$main-scope" id="2" xmlns:ns3="http://www.w3.org/2001/XMLSchema" ns1:type="ns3:string">BpPrc0.1</variant>
    <variant key="_$$operation-name" id="3" xmlns:ns4="http://www.w3.org/2001/XMLSchema" ns1:type="ns4:string">initiate</variant>
    <variant key="_$$variable-name" id="4" xmlns:ns5="http://www.w3.org/2001/XMLSchema" ns1:type="ns5:string">PatientRecordVariable</variant>
    <variant key="_$$++wi-global-table" id="5" xmlns:ns6="com.collaxa.cube.engine.core" ns1:type="ns6:WorkItemLookupTable2">
    <work-item ns1:type="ns2:WorkItem">
    <key ns1:type="ns2:WorkItemKey">
    <instance-id>70017</instance-id><node-id>BpRcv0</node-id><scope-id>BpSeq0.3</scope-id><count-id>1</count-id></key><state>closed.finalized</state></work-item><work-item ns1:type="ns2:WorkItem">
    <key ns1:type="ns2:WorkItemKey">
    <instance-id>70017</instance-id><node-id>BpAss1</node-id><scope-id>BpSeq0.3</scope-id><count-id>5</count-id></key><state>closed.finalized</state></work-item><work-item ns1:type="ns2:WorkItem">
    <key ns1:type="ns2:WorkItemKey">
    <instance-id>70017</instance-id><node-id>BpInv0</node-id><scope-id>BpSeq0.3</scope-id><count-id>4</count-id></key><state>closed.finalized</state></work-item><work-item ns1:type="ns2:WorkItem">
    <key ns1:type="ns2:WorkItemKey">
    <instance-id>70017</instance-id><node-id>BpInv1</node-id><scope-id>BpSeq0.3</scope-id><count-id>6</count-id></key><state>closed.finalized</state></work-item><work-item ns1:type="ns2:WorkItem">
    <key ns1:type="ns2:WorkItemKey">
    <instance-id>70017</instance-id><node-id>BpAss0</node-id><scope-id>BpSeq0.3</scope-id><count-id>2</count-id></key><state>closed.finalized</state></work-item><work-item ns1:type="ns2:WorkItem">
    <key ns1:type="ns2:WorkItemKey">
    <instance-id>70017</instance-id><node-id>BxExe1</node-id><scope-id>BpSeq0.3</scope-id><count-id>3</count-id></key><state>closed.finalized</state></work-item></variant>
    <variant key="_$$audit-event-count" type="int">16</variant>
    </scope><object-store></object-store></scope-context></cube-instance><work-items></work-items></debug-trace>
    There is a variant element with the attribute key whose value is "_$$variable-name" and the element has the value "PatientRecordVariable". I don't know if this is related to my problem, but if it is, I still don't understant why it could not get the data of this variable.
    Is there any way to get bpel processes' variable data from the database? I browsed the tables but I haven't found them. Hope somebody knows it.
    Amir

  • Truncated variable names in solver

    when many variables are created in the solver , upon entering the numeric mode are not displayed correctly , only 1 character and then three points is read, making it impossible to identify which variable it is , for example if more than one starts with the same letter: " S1c " and " S2c " are shown as " S ..." and " S ... "
    the equations:
    pic
    if I choose only one equation, and therefore few variables , the names are displayed correctly:
    pic
    if I choose 2 equations , there are a total of 8 variables and groups in 2 columns and variable names are truncated:
    pic
    pic
    as seen in this last image , you can not distinguish S1c and S2c .
    Obviously S1c is the first and the second S2c but this becomes much more complex when they increase the number of variables and equations.
    is there any way to change the view type ?
    sorry for my bad English.
    thank you very much in advance.

    OK, simple statement first:
    Integer does not equal string.
    You also seem to be tossing around "runtime" and "static" somewhat liberally. Once you wire an integer (be it a control or block diagram constant) to the case structure's selector, the cases can only take on integer values. This is by design. If you wire a string, the case items take on string values. If you wire an enum, the case items take on the enumeration values. Once you've defined a case structure's cases you can't change them at "runtime". This, by definition, is different code.
    That said, it seems to me that you're looking for an enum.

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • Variable names display problem

    I have three transparent text captions that are set to display from slide 1 through to slide 32 (using the option "display for rest of project").
    The variables I am displaying are:
    In the header:
    $$cpInfoProjectName$$ - displays the name of the lesson module.
    $$cpInfoCurrentSlideLabel$$ - displays the name of the current slide.
    And in the footer:
    Page $$cpInfoCurrentSlide$$ of $$rdinfoSlideCount$$ - displays the current slide number and the total number of slides in the lesson.
    The problem is that the variable names display long enough to look somewhat unslightly. It might be for about 1/3 of a second but it is long enough to screen capture (attached just in case I am not clear enough in my description) this appearance before they resolve into their values.
    This is rather annoying, since a student will see this occur for every slide.
    Is there anything that can be done to fix this? Perhaps using a text caption is not the best way to display these variables?
    Hmm... I wonder if creating a small persistant flash insert would be better?

    I have seen that aswell Shawn. It seems like the variables are a bit slow to be populated with the correct value and then it will show the $$variable_name$$.
    A Flash component would solve it and it won't take more than 5 minutes to make them all.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

Maybe you are looking for

  • Browsing the library in Finder. Is there a logical way to do it?

    Hi All, I am an iPhoto 7 user who has just upgraded to Aperture. A friend of mine has just brought my attention to the fact that the database format used by Aperture (and newer versions of iPhoto) is not easily browsable via Finder. What I mean by th

  • Error Compilation When I browse JSP with bean, please Help Me

    Hello, I am new in EJB. I have a problem that I am not understand. please help me. I have write my bean and deploy it using JRUN server. The name is SpellCheck.jar But when I called the bean from JSP page, always error. Here is my JSP page. <!DOCTYPE

  • Best Practice for documenting projects BW

    Hi people. We are studing at the moment a way of documenting new developments of applications of SAP BW. Is there a standard of documentation recommended by SAP, or a good practice that I use to create and document objects developed in SAP BW. Can so

  • Tomcat  won't display index.jsp

    Hello, I've been working in a webapp the last couple of weeks, and I am new with tomcat and JSP technology, yesterday I try to display the index.jsp in http://localhost:8180 and it didn't display it . I retart tomcat with sudo /etc/init.d/tomcat5.5 r

  • Error (-402653077) when backing up for 4.2 update

    Every time that i try to backup my ipod touch 3rd generation for the 4.2 update i get an error (-402653077) message. Then it ask me if i want to continue but it will erase all media from my ipod i really dont want to do this but can't seem to find a