How to select an item in sap.ui.table.Table without using index?

Hi there,
I want to select an item of a sap.ui.table.Table by finding the right item and selecting it.
Take the example at this SDK page:
SAPUI5 SDK - Demo Kit
You have first name and last name. I want to select "Mo Lester". While there is a function called setSelectedIndex, there is no function for setSelectedItem.
I have to search the items of the table for a required entry and select it (like clicking on it).
Is there a way to do this (programatically)?
I'm using aggregation binding with a JSON model.
Regards
Tobias

Hi Tobias,
What you could do is first find the JSON object (i.e., the table row) in your table model, and use its index in the model to set the selected index:
var matches = $.grep(array, function() {
    return(this.firstName === "John" && this.lastName === "Doe");
if (matches.length) {
    var index = yourTable.getModel().getData().indexOf(matches[0]); //first match
    yourTable.setSelectedIndex(index);

Similar Messages

  • How to select an item in combo box...!

    How to select an item in combo box in order to appear in a box of text (programmed in VB.Net for SAP Business One).

    Hi Carlos,
    I am not sure if this is what you want, but here's an example of selecting a value in a combo box. This is the item master data window and I'm changing Item Type to Labor.
            Dim oCombo As SAPbouiCOM.ComboBox
            Dim oForm As SAPbouiCOM.Form
            oForm = oApplication.Forms.ActiveForm
            oCombo = oForm.Items.Item("214").Specific
            oCombo.Select("L", SAPbouiCOM.BoSearchKey.psk_ByValue)
    Hope it helps,
    Adele

  • How to select Multiple items in the dvt:pivotfilterbar?

    How to select Multiple items in the filters in the dvt:pivotfilterbar?

    To select multiple media and other files, it's not possible. You can do so in messages as directed.
    To select multiple files, connect to your PC and select them.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to select multiple items in ListView?

    Is it possible to select multiple items (rows) in ListView? I'm able
    to select only one item at a time.
    I'm running Forte 30F2 on Windows NT 4.0.
    Thanks in advance,
    Ramarao
    Get Your Private, Free Email at http://www.hotmail.com

    Ramarao,
    I talked to Forte support about this recently and they had nothing but
    bad news.
    They said that you cannot select multiple rows in a listview, and that
    this is a
    feature that will be in the next release ( release 4 ).
    I then asked if it was possible for me to highlight a row manually ( and
    do the multiple
    select myself ), and they said that also wasn't possible. This is due
    to the fact that
    there are no displaynode properties that effect display attributes (
    like font or color ).
    They suggested that I try changing the smallicon to show rows that have
    been 'selected'.
    In other words, when you ctrl-click on any particular row, you could put
    an icon at the
    beginning of a row that shows that this row has been clicked on.
    I'm still working on this myself, so I will keep you posted.
    Jeff Pickett
    From: Ramarao P[SMTP:[email protected]]
    Reply To: Ramarao P
    Sent: Tuesday, March 24, 1998 6:22 PM
    To: [email protected]
    Subject: How to select multiple items in ListView?
    Is it possible to select multiple items (rows) in ListView? I'm able
    to select only one item at a time.
    I'm running Forte 30F2 on Windows NT 4.0.
    Thanks in advance,
    Ramarao
    Get Your Private, Free Email at http://www.hotmail.com

  • How to handle defect items in sap sd..

    Hi Friends,
    How to handle defect items in sap sd..
    My requirement is some of the XYZ materials are damaged 10%.Some more materials(Material number is XYZ) are damaged to 20%.When sales order is created with these defect items,the system should pickup the defect items only?One more thing is for 10% damaged items,one price is given.For 20% damaged items,one more price is given and so on.How this will be configured in sap sd.
    We hav an idea that making these type of defects as scrap.Then create one more material number  as AXYZ(Defects of XYZ) and receipt without po.We can use the defects in sales order and soon.But how pricing will be set for different levels of damages?
    Any ideas,documents and settings required for this scenario and share any ideas
    Thanks in advace....VM

    Hi All,
    Thank you very much for your replies and sharing your valuable information
    Just I am giving all the meeting points and those are
    They donu2019t want to convert into scrap.
    One more point is that if materials are in batches then???
    When we create sales order that damaged one only should be picked by the system.
    Manual entering the price need to be stopped
    Without maintaining separate material for the damaged, any possibilities?
    We discussed abt Split valuation point .Is it suitable to this? then how?
    How to handle this we are thinking.
    Both Rithvikau2019s point and Jigneshu2019s point need to be considered, actually this is main issue. There are more chances of malpractices/confusion to the user as mentioned by Rithvika. Here one more constraint is more material codes required for 10%, 20%, 30%........90% damaged one for one material as said by Jignesh
    Actually I mentioned only as example 10% and 20% but have many.
    Any ideas how to proceed...
    Thanks and Regardsu2026VM
    Edited by: vm on Apr 13, 2009 4:45 PM

  • How to select alternate entries from the database table

    Hi Experts,
    can u help me, how to select alternate entries from the database table.
    Thanks

    As there is no concept of sequence (unless there is a field specifically included for the purpose), there is no meaning to "alternate" records.
    What table do you have in mind, what data does it hold, and why do you want alternate records?
    matt

  • What is commitment item in sap ps, why do we use it , plz explain...thankx in advance

    what is commitment item in sap ps, why do we use it , plz explain...thankx in advance

    Hi
    Commitment item is a term used in FM module.
    It is by the way of Commitment item cost is posted and budget check is occurred in FM (Fund centers)
    Google it to understand it in detail.
    Regards
    Saurabh

  • How do I share my iTunes library to an iPad without using "Home Sharing"?

    I have set up my iTunes library to be shared with others over our home network.  This is the "Share your library" option, and NOT "Home Sharing" since my wife has her own Apple ID and I, unfortunatly, have 2.  She was wanting to listen to our music on her iPad but could not figure out how to access the shared library.  The "Music" app (click more, select library) only seems to work for Home Shared libraries.  (In fact, I had tried Home Sharing first and when I turned it off, all of the buttons at the bottom of the Music app's screen disappeared - note:  she has no music stored on the iPad.)
    So, how can an iPad access a shared iTunes music library without using Home Sharing?
    (iPad 2, iOS 6; Mac 10.8, iTunes 10 because 11 totally inhibits my ability to use my iPod the way I want.)

    -> Home Sharing is different than logging into the iTunes store.
    You enable Home Sharing using one AppleID. Doesn't matter which you use but all devices must use the same AppleID for Home Sharing.

  • How can I see in what maps some table is used?

    Hi,
    Anyone can tell me how can I see in what maps some table is used, without open all of then?
    Thanks,
    Gustavo.

    Good morning Gustavo,
    OWB has some public views defined which can provide you with this information. Check Appendix D (Warehouse Builder Public Views) of the OWB User Guide for all info.
    Log in as the owner of the design time repository, if you run the following query you'll have a basic overview of whic table is used in which mapping:SELECT MAP_NAME         MAPPING_NAME
    ,      DATA_ENTITY_NAME TABLE_NAME
    ,      BUSINESS_NAME    TABLE_OPERATOR_ALIAS
    ,      DESCRIPTION      TABLE_OPERATOR_DESCRIPTION
    FROM   ALL_IV_XFORM_MAP_COMPONENTS
    WHERE  DATA_ENTITY_TYPE = 'TABLE'Good luck, Patrick

  • How to load Matrix report data into basic table data using ODI

    Hi,
    How to load Matrix report data into basic table data using oracle Data Integrator ?
    Requirement Description:
    Following is the matrix report data:
    JOB                       DEPT10                DEPT20 
    ANALYST                                           6000
    CLERK                   1300                     1900 Need to convert it into below format:
    JOB                             Dept                        Salary
    ANALYST                  DEPT10     
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        Thanks for your help in advance. Let me know if any further explanation is required.

    Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
    If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    VALUES
    :job,
    :deptsal,
    :saledesc
    Therefore you are using bind variables from source to load data into target.
    Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
    Hope this helps.
    BUT remember that this feature only came out in Oracle 11g.

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • How can I transfer contacts from my Iphone to ipad without using a computer?

    How can I transfer contacts from my Iphone to ipad without using a computer?

    The easiest method is to setup an iCloud account, turn on Contacts syncing in Settings > iCloud on both devices, and the Contacts from the iPhone will sync to the iPad.

  • How do I transfer files from one computer to another without using cables??

    How do I transfer files from one computer to another without using cables?

    Wifi network
    Email
    Thumb Drive
    Online storage such as, iCloud Google Docs, SkyDrive, etc.

  • How can i add my outlook email to my ipad without useing the Exchange Service?

    Please help me in this, How can i add my outlook email to my ipad without useing the Exchange Service?

    I'm afraid you've posted in the wrong place. This is a technical forum around a particular product called 'SharePoint'. This does talk to Exchange and Outlook in places but we don't specialised in either of those. You should have a look for one of the
    generic Outlook support forums or contact your IT department if it's a work related account.

  • How do I transfer itunes music to my iphone 4 without using the restore from this backup function?

    How do I transfer itunes music to my iphone 4 without using the restore from this backup function?  I cannot use the back up function as have been advised that therer are bugs in it and restoring it back to my phone will bring the bugs with it and phone will be back to apple again as will start playing up again.  But I need the music.  Whn I plug it in laptop and go to itunes icon it gives me 2 options:  Set up as new iphone? OR Restore from backup.
    Do I pick set up as new phone?  I dont know as the guy at the genius bar told me there would be an option asking if i want to sync itunes only...but there isn't.

    Set up as New and then... Re-Sync your Content from iTunes.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/

Maybe you are looking for

  • Action in Integration Scenario

    Hi I have a doubt regarding " Actions" in Integration Scenario in IR. I have an interface which is actually a clubbed one, there are two interfaces together and there are two sender interfaces and two receiver interfaces. So how many should I create

  • Connection between 2 points in a geodetic coordinate system

    In a geodetic coordinate system the connection between two points is a geodetic line or "great circle" (the shortest connection between two points on the surface of the earth). Since Oracle 9i distances and queries like "Is a point outside or inside

  • JDBC Update Problem

    Hi! I've just been experimenting with modifications to an MS Access database via Java methods (as opposed to sending SQL statements). Though deletion works fine, I get ODBC driver error messages when I attempt to update or insert. Is this because the

  • How can I sort the bookstore by price?

    Dear all, How can I sort the ibook bookstore by price of the books?

  • DVD drive doesn't work

    My MacBook Pro's DVD drive does not read any DVD's and it did last time I wanted to watch a movie which was about 2 months ago. It accepts a DVD and then I hear it spin and stop 3 times and then it ejects the DVD back out. What is going on?