What is the error in this code?

Hi all

Please tell me what's not in the present code:

Page {
    id: page_Aya
    property int  currentTrack:2
  content: Container {
   ListView {
        id: myListViewAya

        dataModel: dataModelAya

        listItemComponents: [

        ListItemComponent {
                type: "item"
           Container {
            id: listItemComponent_Aya
              // background: Color.create("#75b5d3")
               Label {
                   id:label_Aya
                   text: ListItemData.id
            textStyle.color:(listItemComponent_Aya.ListItem.indexPath[1] == currentTrack) ? Color.Red : Color.Blue // line of Error
               }
            }// end of Container
        } // end of ListItemComponent 

        ] // end of listItemComponents list
}end of ListView 

}end Container

}end page

I get the error:

ReferenceError: Can't find variable: currentTrack

Help me correct code please

It is a question of importance. You must reference out of the ListItemComponent. There are tons of forum threads explaining how to get this.

Tags: BlackBerry Developers

Similar Questions

  • What is the error in this package

    Hi all

    can you please tell me what is the error in this package please

    SQL> CREATE OR REPLACE PACKAGE discounts
      2  IS
      3  g_id NUMBER := 7839;
      4  discount_rate NUMBER := 0.00;
      5  PROCEDURE display_price (p_price NUMBER);
      6  END discounts;
      7  /
    
    Package created.
    
    SQL>
    SQL>
    SQL> CREATE OR REPLACE PACKAGE BODY discounts
      2  IS
      3  PROCEDURE display_price (p_price NUMBER)
      4  IS
      5  BEGIN
      6  DBMS_OUTPUT.PUT_LINE ( 'Discounted '
      7  ||TO_CHAR(p_price*NVL(discount_rate, 1)));
      8  END ;
      9  discount_rate:= 0.10;
     10  END ;
     11  /
    
    Warning: Package Body created with compilation errors.
    
    SQL>
    SQL> show errors;
    Errors for PACKAGE BODY DISCOUNTS:
    
    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    9/1      PLS-00103: Encountered the symbol "DISCOUNT_RATE" when expecting
             one of the following:
             begin end function package pragma procedure form
             The symbol "begin" was substituted for "DISCOUNT_RATE" to
             continue.
    
    SQL>

    Hello

    To ensure that the assignment is supposed to be part of the initialization section, that should run when the package is called or the first time?
    The initialization section starts with BEGIN:

    CREATE OR REPLACE PACKAGE BODY discounts
      IS
      PROCEDURE display_price (p_price NUMBER)
      IS
     BEGIN
      DBMS_OUTPUT.PUT_LINE ( 'Discounted '
      ||TO_CHAR(p_price*NVL(discount_rate, 1)));
      END display_price;
    
     BEGIN     -- required if there's an initialization section
      discount_rate:= 0.10;
    END discounts;
    / 
    

    Do you really need a section of initialization of the here? Discount_rate is already set to its initial value in the packet header?

  • OfficeJet 6500 a, subject C2FE0122 error message. What is the meaning of this code?

    This printer a little over a year old demanded a replacement Printhead and printhead frequent cleaning. Is there a solution to this problem?

    Given that the error is not accompanied by the words 'Ink system failure' this alphanumeric code points to a problem overall impression material. Here a link to a document that deals with the alphanumeric codes for your printer model. It will show you how to reset the product. I hope this helps.  If you reach the end of this document and the issue is not fixed, sought to replace the product.

    If you are still in warranty, HP can replace the printer without cost to you. I'll link the information to get in touch with them below. The link takes you to a form to fill out. Once you fill it and she is treated, it will give you the printers warranty information, a file number and the phone number to call. Technical Support case HP formula call: https://h10025.www1.hp.com/ewfrf/wc/phoneInput?cc=us&dlc=en&lc=en&product=5061082

  • What is the problem in this code for loop? Help, please

    I have 9 text boxes Dynamics txt1, txt2, txt3... txt9 and I want to track the number of these dynamic text boxes that contain text only

    var i: Number;
    for (i = 0; i < 10; i ++) {}
    If (cela ['txt' + i] .length > 0)

    trace (i);
    }

    This code shows the numbers from 1 to 9 If the text boxes contained a text or not, how can I do find only filled? Thank you

    You can have a lot of problems using the variable of the textfield object and there is no advantage to using it.

    But if you choose to ignore this advice, you must ensure that your textfields and not html enabled, are not multi-line, and did not apply kerning.

    It is for beginners.  If this is ok with you, you can use:

    var nonEmptyTFNum:Number = 0;

    for (var i: Number = 1; i<>

    {If (cela ["txt" + i]! = undefined & {this ["txt" + i] .length > 0})}

    nonEmptyTFNum ++;

    }

    }

    trace (nonEmptyTFNum);

  • What is the error code 646? I get this when I try to install the update KB977304. Have tried several times.

    What is the error code 646?  I get this when I try to install the update KB977304.  I tried to install this update several times.

    Look at the point previously addressed in http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/30624d26-942d-49ad-88b2-250514e92a9a/ I hope this helps.
    Good day.

  • What is the error code 4 on big fish games

    recently, I tried to down load new adventure games using windows vista.
    I had no problems before with this. I have no problem downloading all other games, just the recent adventure games.
    Also, I try these games on an experimental basis of 1 hour. I looked for answers through big fish Games forums. no luck.
    could someone help me with this problem. also, what is the error code 4 while trying to down load these games. It also seems to only the most recent collectors edition adventure games.

    Hi Woobby,

    Please go back and let us know the status of the issue.

    I suggest you to post the same question in BigFish forums to get help and to check.

    http://forums.bigfishgames.com/forums/list.page

    In case you have any questions about the Windows operating system, please post on the Microsoft Community Forums and we will be happy to help you.

  • What is the error code 0 x 80520012

    fact any body knows what is the error code 0 x 80520012

    Hello

    It helps if you tell us what you were doing when you got this error code

    What operating system, etc., etc.

    read this

    How to ask a question

    http://support.Microsoft.com/kb/555375

  • What does the error code 80070005?

    What does the error code 80070005?

    If it related to Windows updates, this could be the underlying issue: http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/vista-error-code-80070005-cant-install-windows/7a0e2719-1353-458c-8c88-2e6bc9e8f906

    Or: http://social.technet.microsoft.com/Forums/en/itprovistasetup/thread/95edbee4-a75c-48ad-91d1-5316a96f9567

    J W Stuart: http://www.pagestart.com

  • I don't know excatly what is the error code, because I don't have a laptop now.

    I don't know excatly what is the error code, because I have not portable right now.

    But my problem is this, my laptop has a one touch recovery key, but hard drive had change, so the recovery partition also ends. When I want to create, problem occurs during activation, windows can not be activated.

    Please help me.

    Without you telling us the exact brand and the model number of your laptop, the only advice is to contact the manufacturer of the laptop computer and ask for some advice from one of their experts to support troubleshooting. Carey Frisch

  • What does the error code 80240016? my computer will not install updates

    What does the error code 80240016? my computer will not install updates!

    http://support.Microsoft.com/kb/957307

    Error message when you try to install the updates on the Windows Update Web site or the Microsoft Update Web site: "0 x 80240016.

    If the above does not resolve the problem:

    Windows Update Forum:

    It comes with Vista, upgrade install and activate Forum.

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon.

    Mick Murphy - Microsoft partner

  • Hi What is the error code 201?

    Hi What is the error code 201?

    Please see:

    Hope this will help you.

    Kind regards

    Hervé Khare

  • What does the error code 213:19?

    What does the error code 213:19

    Salvation can't,

    This error occurs when the SLStore folder has not enough permission to make the necessary changes or to update the contents of this folder.

    Please provide the information to provide assistance with this question below.

    1. what operating system do you use?

    2. which product are you trying to use?

    3. Please provide the full error message or a screenshot of the error.

    ~ UL

  • LDIF syntax error: what is the reason of this failure when you try to import the new user

    What is the reason of this failure when you try to import the new user, followed the book syntax

    C:\Users\Administrator\Documents>ldifde-i f Newusers.ldf
    Connecting to "practice01.testa01.com".
    Registration as current user using SSPI
    Import directory of the file "Newusers.ldf".
    Loading entries.
    There is a syntax error in the input file
    Failure on line 3.  The last token starts with 'C '.
    0 entries modified with success.
    An error has occurred in the program

    Hello

    The question you have posted is related to LDIFDE with Active Directory in a domain environment, and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://TechNet.Microsoft.com/en-us/default.aspx

  • What is PXE - 61 media test failed error and the error PXE - MOF? What is the solution for this error? It's a lenovo with windows desktop

    I have a lenovo computer. I began as routine but unfortunately it says error:-what is media test failed error PXE - 61 and the error PXE - MOF? What is the solution for this error? It's a lenovo with windows desktop computer? How do I prevent this.

    Kala

    Hello Mohan,

    ·         You did changes to the computer before the show?

    These errors often occur if there are incorrect BIOS (Basic Input\Output System) settings.

    Method 1: Check if the computer startup options are changed in the BIOS. You can set the hard drive as the first boot device. In addition, make sure that this option "Wake on LAN" or one similar to it is off.

    Method 2: Load default BIOS (Basic Input\Output System) settings, and then restart the computer.

     

    Important : Change/update BIOS can be a complicated process, and if an error occurs, your computer could be rendered inoperative. Be sure to observe the instructions of the manufacturer.

  • I m unable to update windows Defender... it shows always a few code.what of the error to do nw?

    I m unable to update windows Defender... it shows always a few code.what of the error to do nw?

    How to troubleshoot Windows Defender definition update
    http://support.Microsoft.com/kb/918355

Maybe you are looking for