Get the model when clicking a button on a table row

I have a SAPUI5 table binded with the simple model. I'm printing the data using Table control of SAPUI5. I'm binding the name field with the name column of the table control and on the next column I have a button. When you press this button I'd like to perform some operation on the model (read) however I can't figure out a way of getting the instance of the model in the callback function for the button.
Here's the JSBin to reproduce the problem.

Awesome.
this Document may be handy.
-D

Similar Messages

  • How to Get the value when clicking on the link

    I had a problem with when clicking on the link.
    I need get the link value to the controller when clicking on the link.
    I am displaying the database columns in jsp using repeater in links.
    I am displaying the data like this:
    RED
    BLUE
    GREEN
    these are three links.when clicking on the link RED. RED should go to the controller.
    After getting RED to the controller i will get the RED value from the database.

    my requirement is like that only
    I have just given the example of emp and dept
    emp(empno,zone_group_id,zone_id,deptno,ename,emp_p_ind,last_update_datetime);
    dept_emp(empno,dept_no,loc,dname,sal_emp,grade,last_update_datetime);
    CREATE OR REPLACE VIEW emp_zone AS
    SELECT e.empno,
          (select zone_group_id from price_zone_group where rownum = 1) zone_group_id,
           d.loc zone_id,    
           d.grade,  
           d.last_update_datetime,
      FROM dept_emp d
          emp e
    WHERE d.empno=e.empno
       AND e.emp_p_ind = 'Y'
      WITH READ ONLY;
    Now
    my requirement is to get the data of emp_zone view and needs to store those data into some other temp table
    if any of the above base table got updated deleted or inserted then the view last_updatetime also will get updated but problem is why im not using base table
    direct because it is having huge data and it performance issue .i have to get the value on the basis of view only and using some logic

  • Get thump noise when clicking record button of voice over iMovie 11

    Hello,
    When I try to record a voiceover in iMovie 11, the record button that I click to record does not load.  There is a thump noise every time I click on it.  The audio of my microphone is set to not too loud or soft and should work.  I also do have a defined timeline as well.  I want to record my voice and mute the sound that is already in the timeline.  Do you have any suggestions as to what I should do to be able to record my voice in the movie? 
    I am not sure if my question has already been submitted to one of these online forums, and I apologize if it has.  If it has, could you provide me the link?
    Thanks,
    Adam

    The problem was no longer excist after the last iMovie updates.

  • How to aggregate the measue when click '∑' ?

    Hi Experts,
    How to aggregate the measue when click '∑' ?
    For example:
    In table view.
    A-----------A1-----------2
    A-----------A2-----------3
    ATotal-------------------5
    B-----------B1-----------2
    B-----------B2-----------3
    BTotal-------------------5
    GrTotal------------------10(It is not my expected result.)
    However, GrTotal is not my expect result, the correct result is 5 , not 10. How to implement my requrement? Thanks.

    Hi,
    If you want the result to be the average of your sub-totals (?) then I think the only way you can do is is by using a union query to give the 'illusion' of a grand-total.
    Using this mechanism you can create a grand-total using whatever logic you wish, you then just combine the result and with cunning use of headings / formatting make it look exactly like a standard functionality total.
    Helpful?
    regards,
    Robert.

  • Why does my form data gets cleared out when clicking on the back button.

    Can someone explain why does my form selections get cleared out when clicking on the back button.
    I have a JSP page that displays a form with some selections and text boxes. I populate the page and submit the request. The action on the submit call another jsp page, which processes the data and displays the results via a <jsp:include> statement which calls the results page. When clicking on the back button from the results page, it returns me to the form page, but the selections are cleared out.
    1. Is there something in my calling of the pages that causes this behavior and can I prevent it?
    I notice that the behavior is different when using the IE 6.0 version Netscape 7.1. IE clears the page Netscape 7.1 retains the settings.
    If I cannot prevent this behavior does that mean I will have to save the state of the form data. And if I have to save the form data, what would be the easiest method of doing this. I'm a beginner to JSP and Java, but have some ASP experience. I don't understand why the back button in a JSP request clears the form data but a regular HTML page does not can someone explain?
    THANKS.

    the browser doesn't have to remember what you submitted and fill that back in.
    you can't prevent it unless you can ensure a new request to the server in which you can fill the default values in there.

  • I keep getting the message when I open Muse CC, that the latest version is here and that i need to download it... But when i click "Download Latest Version" and it takes me to the applications manager it tell me that Muse is "Up to date"..... I also downl

    I keep getting the message when I open Muse CC, that the latest version is here and that i need to download it... But when i click "Download Latest Version" and it takes me to the applications manager it tell me that Muse is "Up to date"..... I also downloaded a template from Muse and it tells me when I open it that i also need the latest version... Can anyone explain why Iam getting this message and Why I can not up date?... Much appreciated

    Download the creative cloud desktop app using the below link:-
    Download Adobe Creative Cloud apps | Free Adobe CC trial
    And then check if you get install Button for Muse CC 2014.3
    Regards,
    Neha

  • 2nd day w/my ipad2.  Have spent 5 hours trying to get my ipod music to play on the ipad..it has been downloaded and synced. When I click on itunes , I get a window that says "Apple mobile device service is not started."  I get music symbol when click ipod

    2nd day w/my ipad2.  Have spent 5 hours trying to get my ipod music to play on the ipad..it has been downloaded and synced. When I click on itunes , I get a window that says "Apple mobile device service is not started."  I get music symbol when click ipod.

    http://support.apple.com/kb/ts1567

  • How to get the link when right-clicked (for extension development)?

    Hi,
    I want to get the link when I right-click it in a page.
    I explain: when you right-click a link, you get "Open link in a new window"; this menuitem sends the link to the js function to perform an action and that's exactly what I an looking for
    Thank you

    Hi,
    If you have than one table with add_row_button then this code will work fine
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    tableBean is Handle for your advanced table, hope it will help.
    Regards,
    Reetesh Sharma

  • When i click to open itunes i get the disclaimer, i click AGREE and the program wont open

    when i click to open itunes i get the disclaimer, i click AGREE and the program wont open    HELP

    Refer to this article to remove SC files:
    http://support.apple.com/kb/TS2363
    Then Repair your Quicktime. START / CONTROL PANEL / PROGRAMS N FEATURES / hightlight QUICKTIME and click REPAIR.

  • I have bought an iPad 2 recently but when i open itunes, i only have 3 buttons. (downloads, itunes U, podcasts) how do i get the music, music videos etc. buttons?

    I have bought an iPad 2 recently but when i open itunes, i only have 3 buttons. (downloads, itunes U, podcasts) how do i get the music, music videos etc. buttons?

    Reinstall iOS via iTunes on your computer.

  • How to display the details of particular order when click on button in sapui5

    Hi Experts,
        How to display the details of particular order when click on button in sapui5?
    I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
    then in that i have a button when i press the button  it need to display the details of particular order as shown in image below
    Please help me .
    Thanks & Regards
    chitti

    Does anyone know how to display the index of current desktop?
    Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop  (easy to do with Preview).
    All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
    Regards
    Léonie

  • I  can't get the interenet when i turn on the 3G button...

    I  can't get the interenet when i turn on the 3G button.
    WIFI can be uesd.
    I put my card into other phones and then it works.

    Your plan with the carrier allows you to make calls send SMS send MMS and if the plan provides for it it also gives you cellular data.  Cellular data is what your phone would use if you access the internet over the phone network rather than with wifi.  If you have cellular data as part of your plan then you should be able to access the internet using 3G telephone network

  • Which field ,table gets the entry when we refresh cube statistics

    Hey,
    I just want to know  into which field or table entry is made when we Refresh statistics using the manage tab of the Infocube.. I saw the fields of the table RSDCUBE , there are two includes as given below and their fields, Im noy able to quite figure out which field gets the entry when i click on refresh statistics button in the Performance tab.
    1) RSDCUBEDBFLAGS (InfoCube: DB Performance Flags): which has the following fields namely
    CLEAR_INDEX     Boolean
    DELTA_INDEX     Boolean
    REBUILD_STAT     Boolean
    DELTA_STAT     Boolean
    PERCENTAGE     internal use
    NULLCOMP     Zero elimination in the summarization module
    COMP_DISJ     Flag: only disjunct records
    REFUPDATE     No update of the non-cumulative marker
    2)RSDCUBEBWSTAT (InfoCube: BW Statistics)
    BWSTATISTICS     Boolean
    BWSTATWHM     Boolean
    However , when i click on refresh statics, there is a job which runs from my id which triggers the program RSDSTAT1 with variant as the cube name..
    its kinda urgent...  helllpp
    Thanks,
    vaish

    Hey,
    I just want to know  into which field or table entry is made when we Refresh statistics using the manage tab of the Infocube.. I saw the fields of the table RSDCUBE , there are two includes as given below and their fields, Im noy able to quite figure out which field gets the entry when i click on refresh statistics button in the Performance tab.
    1) RSDCUBEDBFLAGS (InfoCube: DB Performance Flags): which has the following fields namely
    CLEAR_INDEX     Boolean
    DELTA_INDEX     Boolean
    REBUILD_STAT     Boolean
    DELTA_STAT     Boolean
    PERCENTAGE     internal use
    NULLCOMP     Zero elimination in the summarization module
    COMP_DISJ     Flag: only disjunct records
    REFUPDATE     No update of the non-cumulative marker
    2)RSDCUBEBWSTAT (InfoCube: BW Statistics)
    BWSTATISTICS     Boolean
    BWSTATWHM     Boolean
    However , when i click on refresh statics, there is a job which runs from my id which triggers the program RSDSTAT1 with variant as the cube name..
    its kinda urgent...  helllpp
    Thanks,
    vaish

  • How to hide a TextField when clicking another button

    Hello!
    I've been able to generate a TextField to appear when clicking a button, but when I click on another button, to display some more information, I still have the first TextField displayed.  I've had a look around, but not been able to find anything to help me with getting the first to disappear.  Can anyone provide any ideas for this?
    The code I'm using for displaying the TextField is:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    var fl_TF:TextField;
    var fl_TextToDisplay:String = "Send disply to the right screen/projector";
    function fl_ClickToPosition(event:MouseEvent):void
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = fl_TextToDisplay;
    addChild(fl_TF);
    Many thanks in advance

    all your buttons should call the same function. 
    because each button probably triggers different text to be displayed, you can use an object or dictionary to associate the buttons and their text:
    // execute these two lines and your function once at the start of your app
    var dictionary:Dictionary=new Dictionary(true);
    var fl_TF:TextField;
    function fl_ClickToPosition(event:MouseEvent):void
    if(fl_TF&&fl_TF.parent){  /
    fl_TF.parent.removeChild(fl_TF);
    fl_TF=null
    fl_TF = new TextField();
    fl_TF.autoSize = TextFieldAutoSize.LEFT;
    fl_TF.background = true;
    fl_TF.border = true;
    fl_TF.x = 300;
    fl_TF.y = 100;
    fl_TF.text = dictionary[e.currentTarget];
    addChild(fl_TF);
    ////////// and for each button use something like:
    button10.addEventListener(MouseEvent.CLICK, fl_ClickToPosition);
    dictionary[button10] = "Send disply to the right screen/projector";

  • Why do I get an error when clicking on "view in browser" in my newsletter?

    Hello. I am trying to get the URL for my email campaigns so I can show some of them on my webpage. When I tried to get the URL by clicking on the email I sended in the tag that says "view in browser":
    I get the following URL:
    http://www.coscatl.com/CampaignProcess.aspx?A=View&VID=0&KID=116388
    With the following error:
    ERROR: This feature is not available in preview mode.
    Any ideas? Suggestions?
    Thanks!

    Hi Steve. Thank you for your time.
    You are right, the link does work after the campaign has been delivered.
    By the way I am big fan of BC Gurus.
    Take care and gracias again!

Maybe you are looking for

  • Moving from iPhone 3GS OS 3.1.3 to iPhone 4

    I am planning to upgrade phones (as above). I have a few questions please: 1. I have never updated my 3GS, mostly out of paranoia of losing everything but also because the laptop I originally had my iTunes on crashed. I have only ever purchased songs

  • [solved] resolutions missing after update to nvidia 302.17-1

    hello all, when i updated to the new nvidia proprietary drivers (302.17-1) all my resolutions went away except my max (1920x1200). here is my xorg.conf in its current state  xorg.conf so far i have tried  Option "UseEDIDFreqs" "false" that didn't do

  • How to send a Control or frame Back(send to back)

    Hi all , I have a Graphic Frame I want to sent this control back i.e implementing "Send to Back". How to do it progammatically from my plugin

  • Why Can't I watch any types of videos on apps except for Instagram?

    I Can't watch videos on any apps! For example: Youtube, facebook. But I can watch videos on Instagram? It happends the same thing on My iPad 3.

  • Please help on mater data tables

    Hi, gurus,      I need to create an infoobject with more than 100 attributes in it, and there are more than tens of millions  of records to load into this mater table.     Does it work?     thanks a lot.