ListField Get focused on the row Index

Hello

I implemented a custom ListField.

I'm looking for a way that I can get the index of the target line.

For example, if my ListField contains 10 line and line 2 number concentrates (marked in blue), I want to receive the row index.

Thank you!

I'm sorry, I'm mixed messages here.  In your last post, you said this:

"... and then try to scroll down once more, the last item is projected to"separate ":

Maybe I'm just stupid, but I have no idea what it means.  And it sounded like it's your problem.

Nevertheless, my logic goes like this.  There should be no problem to find a ListField index.  So if you have problems, then the question is in your code.  You tried to explain it and I'm sorry, I don't get it.  So instead of you trying to explain it, I suggest that you give us a piece of code that we can test, which illustrates the problem.  Who will save trying to explain it and means that if we find a solution we can actually give you the code to fix it.  To me, that seems the best way to solve this problem for all parties involved.

If you create a sample screen with a single ListField on it and allows you to demonstrate your problem?  Then validate the code here so that we can try ourselves?

Tags: BlackBerry Developers

Similar Questions

  • Get the row index in a dynamic Table

    Hello gurus,

    How can I get the index of a line when it is added dynamically.

    Capture.PNG

    When the user clicks on the "-" he should get the index of the row on which he clicked the button.

    I tried using the code

    var var1 = (data. Design_page1. Working_times_subform. Working_Table.Row1.instanceManager.Count - 1);

    But it gives me the total number of lines. I want that the index of the particular line.

    Thank you.

    Kind regards

    Nikhil

    On the "-" button use this.parent.parent.index to get the index of the line, the button is in. the mention of 'parent' is used to back up the hierarchy so if you had say a subform around the button in the cell, you have to add another parent to learn Row1.

    In order to remove the line try: _Row1.removeInstance (this.parent.parent.index);

    Or it should work too: _Row1.removeInstance (Row1.index);

    The underscore character is a shortcut for the management authority. You can not use it in the object names, I'm sure it caused me problems in the past, I only use case for object names now (to avoid too many dashes).

    You don't need to specify the full path to the object that you are trying to access. The '-' button be Row1 can see Row1.

  • I am trying to open a file and make me notice that the required index.xml file is missing. Is it possible to access the file? I don't know why this happened.

    I am trying to open a file in Pages 09 and am getting notice has the required index.xml file is missing. Is it possible for me to access the file? I don't know why this happened.

    You open a file with Pages ' 09 Pages 5.x.

    You need to right-click on the file and open it with Pages 5.x (the one with the orange document icon).

    Peter

  • setSelectedIndex (index) on a ListField call does not set the focus to the index.

    Hi all

    I have a ListField I show in a popup. When the listField is displayed, the focus is not set to the game past index.

    Can someone please tell me what is missing here:

    ListField choiceList = new ListField() {
        protected boolean navigationClick(int status, int time) {
        int index = this.getSelectedIndex();
        fieldChangeNotify(0);
        FSApplication.getUiApplication().popScreen(FSApplication.getUiApplication().getActiveScreen());
        return super.navigationClick(status, time);
    }
    choiceList.setChangeListener((FieldChangeListener) uiFilter);
    choiceList.setCallback(new PopUpListCallback());
    add(choiceList);
    choiceList.setSelectedIndex(6);
    choiceList.setSize(choice.length, _selectedIndex);
    choiceList.setVisualState(VISUAL_STATE_ACTIVE | VISUAL_STATE_FOCUS);
    

    set the size and choices first, then the selected index.
    If this does not work, try invokelater for the index.

  • How to get broke the index of the row in the listview?

    Hi all

    I use the function of the snap of the listview to stop the scrolling on the single point. Is there a way to get the row of the line broke without drawing on the line?

    Just found a solution. With the help of the listscrollstatehandler and make use of the firstVisibleItem to get the row of the visible line of the listview, and everything will work.

  • I'm not able to open my documents pages. I get the message: the requested index.xml file is missing.  I wonder if it is because I have updates 10.11.5

    I have an iMac (20-inch, mid 2007) processor 2 GHz Intel Core 2 Duo 3 GB 667 MHz DDR2 SDRAM memory and recently updated to el capitan 10.11.5.  I have Pages ' 09, and I can't open my documents pages and get the message:

    The index.xml file required is missing.

    I now see that it says return to default pages 5.6.2.

    I can open them as 5.6.2 then save tehm in pages ' 09?

    Can someone help me with easy tips?

    Only the Pages ' 09 or old documents contain internal index.xml file. When you try to open a document in Pages ' 09 Pages v5, you get this dialog on the missing index.xml. The key is to stop Pages ' 09 and then double click on the document to open it in v5.6.2 Pages.

    Pages ' 09 will not leave by simply clicking on the red light on the title bar of the document. As long as the Pages ' 09 continues to run, it will intercept all attempts to open any document Pages, including incompatible versions of the v5 Pages.

    This has nothing to do with OS X 10.11.5. He has been a user focused on the issue since October 2013.

  • Get the maximum index of a vector of growth

    Hello

    I'm having a very strange problem. I simulate data with an sine function in a while loop and I keep the values< 0.7="" into="" a="" vector.="" when="" the="" sinus="" values="" are="" over="" 0.7,="" i="" remove="" the="" vector.="">

    I would like to get the maximum index of the vector at each iteration of the loop. However, I get a zero index while the vector has a size > 0.

    It's really strange, because if I put the values of the iteration instead of the values of the sine, the index created is correct (the only difference is that the iteration number is an integer, while the sine is a decimal number).

    To make someone understand something?

    Thanks for your help

    Andrew

    Instead of "delete table", just leave the REAL empty case and 'use default if unwired' on the output of the table tunnel.

    Once the sinuses is once again<0.7, you="" are="" on="" the="" descending="" branch,="" so="" the="" first="" element="" is="" always="" the="" largest="" for="" a="" while.="" nothing="" wrong="" with="">

    I would also put indicators after the case structure so they update in all conditions.

    Table min & Max will give you the index of the element with the highest value. If you want to know the size of the array, use the function "size of array".

  • Get the current index value of the table control

    I have a table control 1 d on a panel that contains a value of temperature curve that I send to a temperature controller. The values in the table are not unique, because for example 40.5 degrees in the table could represent 40.5 degrees on the cycles of cooling or heating. I could have severat heating/cooling cycles programmed into the table. I would like a way to read the array index of the currently displayed item in the array in the up/down control of index on the left of the table control. I could then run curves partial temperature easily by neutrophilia a starting point on the curve in the table control.

    I don't see a property that I can use to get this index value. Anyone have any ideas?

    Thank you

    J

    Use the property 'index values. It will be the first item of the output of a 1-d array.

  • How to get rid of the little magnifying glass in the lower right corner saying "Indexing full"?

    Original title: indexing

    Hello

    I have a small magnifying glass in the lower right corner of my screen.

    When I put my cursor over it, it says "full indexing."

    How can I get rid of the small magnifying glass at bottom right of my screen?

    Thank you

    Phil

    Windows Search is installed? If you use it, remove it.

  • FlowFieldManager focused on the issue of the index

    I have a FlowField Manager where I added an optimization of resources that contains n labelfield bitmapfield. Now I add 5 vfms in ffm using the loop. I put touchEvent on the optimization of resources. I want that if you click on the 5th vfm, touchEvent must run one thing and vfm rest 4 clicks, click features must be the same. So I tried to get the index targeted when I click

    gridVw.getFieldWithFocusIndex()
    

    The problem I faced is that if I click on the optimization of the 5th resources first, I get a value of 5, but then if I click on any other vfms, I get 5 only instead of recovering the respective index. Help, please

    Hey the error was on my side of the management of the touchEvents, I fixed it though

  • Setting the focus to a specific index

    Let's say I'm a manager of vertical field with 5 buttons fields. Is it possible to move the focus to a specific field click?

    For example, clicking on the 2nd button will move the focus to the 4th button. Possible?

    Yes, you can set the focus...

    Try this...

    ' Public Sub fieldChanged (field field, int context)
    {
    If (MyButtonField instanceof Field)
    {
    If (Field == VFM.getField (1))
    {
    (VFM.getField (0)) .setFocus () (ButtonField);
    }
    }
    }

    This will focus on the ground in the 1st row on the click event of the button 2nd...

    Similarly, you can write changeListner event for all fields.

  • the button may not get focus, Pls help

    A screen contained two buttons and a browserfield. I use jde 5.0, for this browserfield either on net.rim.device.api.browser.field2.BrowserField.

    This browserfield be contained in a Manager.

    for these two buttons, I use another Manager to add.

    The problem is: the button can not get focus after I move the browserfield box.

    Just show that arrowhead at the top of the button of button.this cannot get the focus. also can't click

    OK, got the solution.

    just use the BrowserFieldConfig.NAVIGATION_MODE_CARET, and then may alter browserfield performance.

  • Cannot get rid of the gaps between the rows in the table with the basic HTML in DW cc 2015

    Hi gang

    I haven't used html in ages and doing something basic without css... but for some reason any I get these gaps between the rows in the table, no cause I do.

    what I am doing wrong?

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 / / IN" "http://www.w3.org/TR/html4/strict.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 ">"

    < title > Untitled Document < /title >

    < / head >

    < body >

    < table width = "560" >

    < /table >

    < table width = "560" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >

    < tbody >

    < b >

    < td colspan = "3" > < img src = "images/AAA - ADE_01.jpg" width = "560" > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_02.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_03.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_04.jpg" height = "267" / > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_05.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_06.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_07.jpg" height = "267" / > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_05.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_06.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_07.jpg" height = "267" / > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_08.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_09.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_10.jpg" height = "267" / > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_11.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_12.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_13.jpg" height = "267" / > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_14.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_15.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_16.jpg" height = "267" / > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_17.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_18.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_19.jpg" height = "267" / > < table >

    < b >

    < td width = "209" > < img src = "images/AAA - ADE_20.jpg" height = "267" / > < table >

    < td width = "158" > < img src = "images/AAA - ADE_21.jpg" height = "267" / > < table >

    < td width = "193" > < img src = "images/AAA - ADE_22.jpg" height = "267" / > < table >

    < /tr >

    < / tbody >

    < /table >

    < / body >

    < / html >

    Add this in thesection of your page

  • Get rid of the highlight around the border when a TableView Gets the focus

    Hello

    Is there a way remove the highlight around the border of a TableView when it gets the focus?

    Thank you.

    The relevant css of caspian.css to /sdk/rt/lib/jfxrt.jar is:

    /** Draws focus border around tableview */
    .table-view:focused {
        -fx-background-color: -fx-focus-color,-fx-box-border,-fx-control-inner-background;
        -fx-background-insets: -1.4, 0, 1;
        -fx-background-radius: 1.4, 0, 0;
    
        /* There is some oddness if padding is in em values rather than pixels,
           in particular, the left border of the control doesn't show. */
        -fx-padding: 1; /* 0.083333em; */
    }
    

    To get rid of the update screen, just define a css stylesheet customised for your application that replaces the table: pseudo-class concentrate, for example:

    .table-view:focused { -fx-background-color: transparent,-fx-box-border,-fx-control-inner-background; }
    
  • How could I possible get the row height of the tableview.

    I need to know the line height or the height of the cell in a tableview. I have searched the forum and google, lifted the api again and again. It seems there are no way to get the height of a line. It made me very frustrated. Sort of, I hope there is a way and you happen to know, please help me.

    There are of course. You must get an instance of the Tablerow in question, so it depends on where you try to get one in your code... You try to get one that currently has the focus? the selected? Or another in particular?

    Inside my own custom tablecell - I get (and link) the height of tablerow associated (another component) in the updateItem method. Use

    TableRow tr = this.getTableRow()
    tr.getHeight();
    

    to get it back...

    Note: You can always "walk" the scene graph seeking to retrieve an instance of the TableRow. Or take all the TableRow in existence, to say, adjust the height of the TableRow.

    Not sure if that helps... Otherwise, you can post your code and mark that it contains a comment in the box your trying to get an instance of the Tablerow.

    Published by: jkaufmann on November 7, 2011 06:39

Maybe you are looking for

  • Moving the sbrio 9606 FLASH files

    I'm trying to move files in main memory or flash my sbRIO.  I followed the example in this link just to find out where c: / is written in too.  It turns out that I can write only to c:\ni-rt\ and that works (c:\ does not seem to work). I am able to f

  • Device Manager page can not be displayed.

    I'm not able to see the devices and the page can not be displayed in the Device Manager.

  • Outlook Quicksteps - error: tasks file could not be found

    I Quicksteps related tasks, but now when I try to add a Quicklink I get the error file message tasks The is not found. This suggests that the link between the position and tasks is broken. Can someone advise if please how to add a link to Mail tasks

  • Image windows 7 on SSD

    I just bought an SSD (128 GB) and want to install it on my machine Windows 7 Home 64 bit as a source for Windows 7 and my programs.  Windows 7 is currently on my 1.5 to C: drive.  I want to transfer files from Windows 7, the program and the user to t

  • Windows often (regiularly) stop only started a few weeks ago wireless adapter

    New problemA few weeks ago my wireless adapter started to lose the connection with the router.Other computers with no not this problem.Y at - it a setting I need to check/change?Windows 7Belkin routerAdapter Asus