How do I get my cell from a Advanced table to a OAMessageStyledTextBean?

I have some validation logic that includes taht loop of my VO before I save. The loop works fine an I use RowSetIterator.
I want to use pageContext.putAttrDialogMessage to show the message next to the field with the invalid value.
The code below that I found does what's need on a regular form (no table):
OAWebBean rootWebBean = pageContext.getRootWebBeaan();
OAMessageTextInputBean textField = (OAMessageTextInputBean) rootWebBean.findChildRecursive("<<message styled text id>>");
if(<<your error condition>>)
  OAAttrValException attrEx = new OAAttrValException(
    OAAttrValException.TYP_VIEW_OBJECT, // Just default it to ViewObject
    textField.getViewUsageName(),       // View Usage Name as null
    null,                               // The primary key as null
    textField.getViewAttributeName(),   // The attribute name
    value,                              // The attribute bad value which caused validation failure
    "FND",                              // Message application short name
    "ATTR_EXCEPTION_MSG");              // Message code
pageContext.putAttrDialogMessage(textField, attrEx);
{code}
The issue I have is with this row:
{code:java}OAMessageTextInputBean textField = (OAMessageTextInputBean) rootWebBean.findChildRecursive("<<message styled text id>>");{code}
How can I get the current row-cell value to a OAMessageTextInputBean obejct?
Thanks.
Daniel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Daniel, don't get disheartened. Every framework has its pros and cons and any new framework with which you start, it takes some times to learn and know its programming benefits. In your particular requirement, it can only be fulfilled if you are using EOimpl or VORowImpl, it can not be done directly in CO, AS your validation logic is at row level. Hence, if you are not using EO/VO, you have to use them in order to show error message on the particular UIX bean, and that the recommended approach. Thats the reason, why nobody before has such a requirement.
--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Can we get a cell from sap.m.table i.e. row-column value on Click?

    Hi All,
    we are looking for a requirement where if a user clicks on a particular text(cell) displayed in a table, we should be able to change the color of that text(cell) only.
    Can we achieve this in SAPUI5 ?
    Any help is greatly appreciated

    here is the exact solution which i applied:
    Thanks to Dennis Seah code modification was negligible .
    In onInit() function i placed the method which takes the cell on which the user clicked and stores it in the variable $o (line 26, $o is global variable).
       2. Replace tableID with your table's ID.
    onInit : function() {
    view = this.getView();
    var oTable = view.byId('tableID');
    oTable.onAfterRendering = function() {
    if (sap.m.Table.prototype.onAfterRendering) {
      sap.m.Table.prototype.onAfterRendering.apply(this);
    var tbl = this;
    tbl.selectedCell = null;
    var items = this.getItems();
    for ( var i = 0; i < items.length; i++) {
      var item = items[i];
      var path = item.getBindingContext().getPath();
      var cells = item.getAggregation('cells');
    for ( var j = 0; j < cells.length; j++) {
      var cell = cells[j];
      var $cell = cell.$();
      $cell.attr('path', path);
      $cell.attr('bindName',cell.mBindingInfos.text.parts[0].path);
      var $parent = $cell.parent();
      $parent.css('cursor', 'pointer');
      $parent.click(function() {
      if (tbl.selectedCell) {
           tbl.selectedCell.css('color', '');
      $o = $(this).find('span');
      var obj = tbl.getModel().getProperty($o.attr('path'));
      sap.m.MessageToast.show(obj[$o.attr('bindName')]);
      tbl.selectedCell = $o;
       3. then in changeColor function i use the code to change the color of the cell
    changeColor: function() {
      $o.css('color', 'red');

  • How do I get the cells to show up darker when printing my document

    When using Numbers, how do I get the cells to show up darker when printing my document?

    Are you asking about the cell background, as ivmedic has assumed, or about how to make the grid lines separating the cells darker?
    Select the table.
    Use the controls shown above this table to change:
    Stroke type from "Thin" to the solid line shown.
    Stroke thickness to 1 pt
    Stroke colour to a darker value (This is set to black, the rightmost cell in the top row of the Color Palette available fir this Color Well.)
    the controls are toward the right end of the Format Bar.
    Regards,
    Barry

  • How do I get my contacts from my iPhone to my iPad

    How do I get my contacts from my iPhone to my iPad

    It depends.  How did your contacts get onto your iPhone in the first place?
    a- Sync'd from your computer through iTunes (e.g. using iTunes to transfer Outlook or GMail contacts), or
    b- Transferred to your iPhone by your cell provider, or
    c- Manually entered, or
    d- You access your contacts via web e-mail like Yahoo.

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • How to get the data from a cluster table to BW

    Dear All,
    I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
    Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
    In SE11 Transaction the Cluster (table ZES) is showing invalid table.
    I referred some Forums, but no use.
    Can any body tell me procedure to get the data from a cluster (table ZES) ?
    Waiting for you results.
    Thanks and regards
    Rajesh

    HI Siggi,
    Thank you for your reply..
    I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
    How can I use the Fields from the that table.?
    What can I do now, can you please explain me about this point.
    Waiting for your reply.
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh

  • How do you get your apps from the i tunes library onto your mac?

    how do you get your apps from i tunes library onto your mac

    You don't.  Apps from iTunes are for iOS devices.  Apps for the Mac come from the Mac app store.  Click the apple >> app store.

  • How do I get all contacts from my iphone 4 to icloud?

    how do I get all contacts from my iphone 4 to icloud? I've just got some of them.

    All you have to do is enable iCloud on your phone and turn notes on.  They should automatically appear on your phone.

  • How do I get exchange contacts from my iphone up to iCloud?

    How do I get exchange contacts from my iphone up to iCloud?
    I am so bummed if there isnt a way....sigh
    thanks, Jamie...

    Jepper wrote:
    I am so bummed if there isnt a way....sigh
    Company Exchange account? If so, this is the way most employers want things.

  • How do I get voice memos from an un-synced iPhone onto a MacBookPro?

    How do I get voice memos from an un-synced iPhone onto a MacBookPro?
    Problem: when I click Sync I get a warning stating "Are you sure you want to sync music? All existing songs and playlists on the iPhone “Jarrod Vassallo’s iPhone” will be replaced with songs and playlists from your iTunes library."
    I don't care if the iPhone syncs with the laptop (and the music is lost), I just cannot afford to lose the Voice Memos too as they are very important. Any suggestions?

    To follow this user tip using iTunes 11, fist go to View>Show Sidebar.  Also, Transfer Purchases (step 5) is now in File>Devices.
    If they're too large to email and you don't want to sync, the only other option is to use 3rd party software to transfer them using usb, such as PhoneView (Mac only) or Touch Copy (PC or Mac).

  • How do you get a RESPONSE from Verizon?

    How does one get a response from Verizon?  Here's my situation...
    Given the amount of trouble that I have had with a recent order, you would think that I was trying to land a 747 jet on my roof.  In reality, all I was aiming to do was to cancel the $19.99 per month phone service that I never used.  I do not even own a phone, for that matter.  I also had enhanced high speed Internet, and I wanted to retain the high speed Internet.  A few days before January 13, 2012, I called Verizon and spoke to the 1st sales representative, who ensured me that it was no problem to cancel the phone service and yet retain the high speed Internet for the same monthly price.  24 hours later, my high speed DSL service was no longer functioning.  I will try to briefly explain the disastrous customer service that ensued. 
    The first several phone calls to Verizon were not productive as I was transferred to the wrong department, and then at least one of my phone calls was dropped by the Verizon server.  The representative did not call me back.  I finally got in touch with a technical support representative, the 2nd Verizon representative, who informed me that the high speed Internet had been turned off and that I had to speak to a sales representative to solve the issue.  Another sales representative, the 3rd Verizon representative, informed me that the 1st representative had cancelled my phone line, and thus cancelled all of my services.  Great.  The 3rd representative informed me that he was absolutely capable of handling the problem and that he would simply add a new order for high speed Internet, which was to be activated the next morning.  The next morning came and went, and guess what?  No Internet.  I called again.  The 4th Verizon representative told me that everything that had been done previously was incorrect and that the sales department is not capable of making such changes.  She told me that she could not help me and that my claim had to be submitted to a different department, which has the authority to un-do all of the previous changes.  She told me that I would receive a call back the same day to resolve the issue.  Given my previous experiences with Verizon, I was confident that I would not, in fact, receive a call back and so I asked her how I could get transferred to this department, if I needed to call again.  She said that I could not be transferred.  Okay.  So then I asked her what to ask for so that next time I called, I could be transferred to the correct department without dealing with yet another sales representative who gives me yet a different story.  She informed me that she could not provide that information to customers.  The Department That Shall Not Be Named (and that I cannot contact) did not call me, and I was not surprised.  Unfortunately, I did not know how to go about contacting them, because, as I was told, customers aren’t allowed to do that. 
    The 6th phone call to Verizon was dropped by the Verizon server.  The 7th phone call to Verizon went to the 5th Verizon representative, a sales associate who placed us on hold for the first 15 minutes only to inform us that she could not find any record of our Internet service.  What the heck was she doing, checking her Facebook account?  She finally returns, puts us on another extended hold, and then adamantly tells us that we need to speak with technical support, which, if you recall, was the first Verizon party that I spoke at the beginning of this debacle.  The 5th  representative transfers me again to technical support.  Of course, the technical support personnel, the 6th Verizon representative said what the first one did, that the account was inactive and that we needed to talk to the sales department.  My husband was on the phone at this point because I was DONE.  When the 6th technical support representative tried to transfer him back to the sales department, my husband insisted that the 6th technical support representative remain on the line while we spoke to yet another sales representative, the 7th Verizon representative.  The 6th technical support representative patiently waited with us while we sat in yet another long queue to speak with a member of the sales department. 
    The 7th sale representative, from the retention department based out of New Jersey, found that all previous orders had been set up erroneously.  She cancelled the old orders and reinstated a completely new order.  The DSL began working a few days later.  MAGIC.  She then left me a voicemail message saying that she would eliminate the activation and shipping fee (duh) as I never canceled the account to begin with and as I already had the equipment.  She also applied a coupon to reduce the price to around $30 per month, assured for the next 2 years.  I was relieved. 
    You can imagine our frustration then when we received the bill for $79 on February 6, 2012, which included a much higher monthly rate (around $45) and the shipping and activation fee of $19.99 that we were assured we would not pay. Again, nothing was shipped to us because we already had the equipment.
    Our next phone call to Verizon landed us with a guy, the 8th Verizon representative, who had no intention of helping us.  According to him, there was no record of these wrongs, and despite the fact that we had an old account number and three order numbers that were screwed up, he did not deem that there was enough evidence to change our monthly bill.  (Unfortunately, the 7th Verizon representative did not make notes or appropriately document the situation on the new account.)  The 8th Verizon representative then had the audacity to comment that we could be lying to him, yet he was unwilling to view the evidence that we could have presented.  Instead, he suggested that we call tech support again and try to go through the same process to get connected to the mysterious “retention department” which he knew nothing about. 
    At this point, I was beyond fed up.  The attitude of the 8th Verizon representative put me over the edge.  I filed a complaint with the Better Business Bureau (BBB) with an abbreviated version of this story.  I did not file the complaint to get back at Verizon.  Instead, I filed the complaint because I knew that another phone call to Verizon would be useless.  I’ve been dealing with this issue for over a month, and I’m sick of it.  I have better things to do with my time, believe it or not, and this situation has resulted in a significantly waste of my time over what, in my opinion, was a very simple issue to resolve. 
    The BBB processed the complaint and I was contacted last Friday afternoon by a Verizon representative (the 9th) who said that she was looking into the matter and that she would respond to me within two to three business days.  Well, it’s almost the end of the week, and I have received no response.  Again, after all of this, how could I be surprised? 
    I have been a Verizon customer, wireless and residential, for as long as I can remember, but I am reaching the point of outrage.  This situation is truly unacceptable. 
    You would think that, in 2012, with all of the technology available to us and the fact that Verizon is a COMMUNICATIONS COMPANY, that at least Verizon employees would be able to make a basic change to an existing order and that at least one out of 9 Verizon representatives would be able to solve this issue in a span of over four weeks.  Think again. 
    How does one get a response from Verizon? 

    dougiedc wrote:
    It boggles the mind.  The Verizon store on L Street downtown Washington, D.C. cannot access my Verizon account.  They can only sell cellphones then it's up to me to contact Verizon on my own to get the hook up. I even asked "Are you Verizon employes?  Is this a vendor store or is it really a Verizon owned and operated store?"  The answer "Yes, we are Verizon employes, yes this is a Verizon owned and operated store" ...
    Yes, it indeed boggles the mind.  I'm of course referring to the fact that your post concerns Verizon Wireless products and services.  This forum is dedicated exclusively to Verizon Communications services.   As you probably know, Verizon Wireless and Verizon Communications operate as separate companies.
    If you need help for a Verizon wireless product or service, it's best to direct questions to the Verizon Wireless forums.  You can reach them by clicking on "Wireless" (either here or at the top of the page).
    Good luck and I sincerely hope you get your issue resolved.

  • HT204053 how do i get all pictures from my phone in icloud to my macbook

    I recently had to buy a new hard drive for my macbook and I am having problems transferring photos.  How can i get my photos from my phone in iphoto?  I had

    Setting/Photos & Camera/My Photo Stream.
    Then enable it in iPhoto on the computer.

  • How can i get thes songs from ipod nano to the itunes libary??

    hi
    i have ipod nano and i sync it with over 500 songs .....my bad i lose all that songs on my libary  .... how can i get thes songs from ipod nano to the itunes libary??

    See this older post from another forum member Zevoneer on different ways to copy content from your iPod to your computer.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • How do I get the values from a form?

    How do I get the values from a form?

    You can try using request method..
    request.getParameter("yourFormInputName");
    Try this.

Maybe you are looking for