Set a colour to a row in a table view which does not use an iterator

Hi ,
  I have an application , which displays data using a table view.
How can i set colour to a row based on the value of one of its coloums.
The table view does not use an itertator.
Thanks
Arun

you can use the following code in the ONMANIPULATION event to modify the color of the row. but be aware that if SAP changes rendering ot htmlb:tableview it may not work.
this code sample set the bgcolor of row 2 to blue.
DATA: httpbody TYPE string .
CALL METHOD response->if_http_entity~get_cdata
  RECEIVING
    data = httpbody.
REPLACE ALL OCCURRENCES OF '<tr rr="2"' IN httpbody WITH '<tr rr="2" bgcolor="blue"' IGNORING CASE .
CALL METHOD response->if_http_entity~set_cdata
  EXPORTING
    data = httpbody.
Regards
Raja

Similar Messages

  • Table compare deleting rows which does not exist in target table

    Hi Gurus,
    I am struggling with an issue in Data Services.
    I have a job which uses Table Compare, then History Preserving and then a Key Generation transforms.
    There is every possibility that data would get deleted from the source table.
    Now, I want to delete them from the target table also.
    I tried Detect deleted rows but it is not working.
    Could some one please help me on this issue.
    Thanks,
    Raviteja.

    Doesn't history preserving really only operate on "Update" rows.  Wouldn't it only process the deletes if you turned the "Preserve Delete row(s) as update row(s)" on?
    I would think if you turned on Detect Delete rows in the Table compare and did not turn this on in the history preserving it would retain those rows as delete rows and effectively remove them from the target.
    Preserve delete row(s) as update row(s)
    Converts DELETE rows to UPDATE rows in the target warehouse and, if you previously set effective date values (Valid from and Valid to), sets the Valid To value to the execution date. Use this option to maintain slowly changing dimensions by feeding a complete data set first through the Table Comparison transform with its Detect deleted row(s) from comparison table
    option selected.

  • Can you select the row in a table view without highlighting the cell?

    I have an an app with a table view which is presented modally. Cell selections in this table are saved in the parent controller so that they can be reselected if the table is reloaded after being dismissed.
    When the cell is first highlighted, I want to momentarily highlight the cell and have it fade out, which I do by unselecting the cell from the modal view controller's didSelectRowAtIndexPath by calling setSelected:animated on the table view cell.
    However, when I present the table view controller modally again and want to display the previously selected cell as selected, I don't want the cell background to be highlighted, and I'm having trouble doing this.
    In order to make sure the table view knows the cell is selected, I am calling selectRowAtIndexPath. I need to make sure the cell is selected so that I can set/unset the cell's accessoryType. However, this has the sideeffect of highlighting the cell too, which looks weird and confusing to the user.
    I've tried things like temporarily setting the cell's selection style to none, but while that stops the cell background from highlighting? I've tried setting the selectionStyle to UITableViewSelectionStyleNone, but while this prevents the cell background from highlighting, the cell text still changes to white, so it the text is invisible against the white background.
    Is there a easy way of setting a cell to selected in the table view without also changing the highlight and text colour of the actual cell? Immediately setting the cell to be unselected still makes the highlight visible for a split second.

    I tried that, but setting the highlighted property doesn't seem to affect it.
    I figured out how what I was doing wrong though. I was setting selection style UITableViewSelectionStyleNone, selecting the cell, then setting the selection style back to whatever it had previously been. This causes the background not to draw highlighted, but the text and accessory type to still draw highlighted.
    In order to fix this, I moved the code to set the cell selection style to whatever it had previously been to the didDeselectRowAtIndexPath method.

  • Set Foocus on a particular celll in a table view

    Hi ,
    I have a table view , When i select a row in the table view , focus must be set on the first column, the first column is a editable column .
    I have used <phtmlb:focusRect>
    the attribute for the focusElementId is the cell id of the particular cell where focus is to be set..
    but the focus is not set ...
    when I give the id of the table view .. it gets focus on the table view ..
    for eg., table view id = 'itmlst' when i pass this as attriute it gets focus on the table view ..
    when i try to get focus on a particular cell .. id 'itmlst_1_1' .. it doesnt get focus on that cell ..
    Please give me ur suggestions for setting the focus on a particular cell when selecting a row

    to set focus you can do it thru javascript.
    <SCRIPT LANGUAGE="JScript">
    function textFocus(elementid)
        var element = document.getElementsByName(elementid);
    element.select();
    </SCRIPT>
    sorround this javascript by a abap if else condition and pass the elementid with a abap variable.
    Regards
    Raja

  • How do i remove my old Apple Id from iPhone's iCloud setting which does not exist anymore

    Purchased new iphone 5s, installed with itunes restoring backup from iphone 4 (which was too old a backup). It restored an old apple id (which i do not use anymore) in the iCloud settings while having my new Apple Id in the Itunes & App Store. I cannot turn off the iCloud setting due to old AppleId popping up - which does not exist.. How do i remove the old Apple Id from icloud setting on the phone.
    I cannot erase the phone as it asks for the password for the old Apple Id. And i cannot do the restore again (after i made a recent back up my iphone 4) as itunes asks me to turn off Find my phone.

    The Apple ID exists. The email address you used to create it may not, but the Apple ID does. Call AppleCare and ask to speak to someone in account security.

  • How to get the total amount of filtered row in a table view

    I have created filter tables for each columns of my tableview. Now I want to add a row with some totals. For this I use an iterator and implement the RENDER_ROW_START. It is easy to add a new lines knowing the number of expected rows (add the line at the end). But the hic comes when there is a filter. How can I know how many rows I will have in the filtered table. There is no parameters that I found. Not even in an event handler.
    Thanks a lot in advance for your help

    i found the solution, thanks

  • Deleting one row from a table view

    hi i have one tableview model. At the footer of this tableview there are 2 buttons add and delete. I want that when I press the delete button one row must be deleted. I have written one ondel event.I have to implement the logic inside that.Can anyone help me with the logic?

    Hey Sumana,
    Check the row of the table view u want to delete.Iterate through all the rows from the top of the Table View and copy it into another new array.While doing so, check whether the row is selected or not.If it is not selected,
    then copy the content into the new array and if it selected,skip that particular row and start copying from the next row.proceed till the end of the TableView.At the end initialize this new array to the model of the Table View.u have a Table View with the specified row deleted now.
    Anil

  • A tech company just set up a wifi network in my house and does not use my existing TC; how do I get it in the network to serve as backup for my iMac? (I don't need it as a wifi access point anymore)

    a tech company just set up a wifi network in my house and does not use my existing TC; how do I get it in the network to serve as backup for my iMac? (I don't need it as a wifi access point anymore) thanks

    Just bridge the TC and plug it by ethernet into the main router.
    Bridge in v5 airport utility.
    In v6 it is under network.. change it from DHCP and NAT to Off bridge mode.
    Turn off the wireless.

  • Trying to access row values in a table which does not have any rows yet

    try{
                             MappedRecord importParams = recordFactory.createMappedRecord("CONTAINER_OF_IMPORT_PARAMS");
                             IFunction function1 = client.getFunctionsMetaData().getFunction(funModGetDet);
                             IStructureFactory strucFact = interaction.retrieveStructureFactory();
                             response.write("try2 :"+pnumber);
                            IRecord structure = (IRecord) strucFact.getStructure(function1.getParameter("PERNR_TAB").getStructure());
                             response.write("try111 :"+pnumber);
                             structure.setString("PERNR",pnumber);
    I am getting the following error "Trying to access row values in a table which does not have any rows yet " where PERNR_TAB is a table containing field "PERNR".
    Can anybody help me out?

    Please re-post this question in the appropriate forum. It seems to have nothing to do with Web Dynpro.

  • Treo800w does not use the ringer volume I have set

    I have my 'Phone: Known Caller' ringer setting set to the standard Treo ring tone that came preinstalled on the Treo800w. I have the 'Ring type' set to Ring but NO matter how high or low I set the ringer volume it only rings at the lowest volume setting when a call comes in.  It's so low that I basicly miss every call. I have tried changing to other ring tones and the same thing happens.  The ringer seems to work correctly when the Ring type is set to 'Increasing Ring' but that starts out so low that it does not increase the ring volume enough before the call goes to voicemail.  I need my ringer to use a relatively high ring tone volume setting.Has anyone else experienced this?  If so, what did you do to resolve it? 
    Post relates to: Treo 800w (Sprint)
    This question was solved.
    View Solution.

    I got a response to this from Paulcalif in another thread: "Have you tried "rebooting" by removing the battery and putting it back in. Try setting the volume all the way up first, then reboot it."
    Lil Red:  This seems to have worked although I still think there is a bug in the software.  If I set the ringer volume to a different volume level the phone does not seem to respond. Oh well, as long as it rings loud then for the most part i'm good to go.
    Post relates to: Treo 800w (Sprint)

  • OIM-How can i set a password policy which does not contain any space?

    How can i set a password policy which does not contain any space?
    I put space at Characters not allowed but it is not working.
    Can anyone help me out?

    You can go to Settings>Messages and turn off Messages. Then go to Settings>General>Restrictions and turn on the the Restriction that prevent changing accounts.
    I just verified that it works.

  • I currently own and use Photoshop Elements 9, which does not sync at all with my Adobe Revel account and library.  Is Photoshop Elements 13 able to be set to sync automatically with a Revel library? Thank you.

    I currently own and use Photoshop Elements 9, which does not sync at all with my Revel library.  Is Elements 13 able to be set to sync automatically with a Revel library?
    Thank you.

    I currently own and use Photoshop Elements 9, which does not sync at all with my Revel library.  Is Elements 13 able to be set to sync automatically with a Revel library?
    Thank you.

  • Ical settings does not use the calendar which I have set as standard

    and when I receive invitations via mail ICal enters the event under a different calendar (which I don't use)

    I got a response to this from Paulcalif in another thread: "Have you tried "rebooting" by removing the battery and putting it back in. Try setting the volume all the way up first, then reboot it."
    Lil Red:  This seems to have worked although I still think there is a bug in the software.  If I set the ringer volume to a different volume level the phone does not seem to respond. Oh well, as long as it rings loud then for the most part i'm good to go.
    Post relates to: Treo 800w (Sprint)

  • I'm trying to extend the range of an Airport Extreme 802.11g by adding an Airport Express 802.11n. I set the Express up to join the existing network, but it does not make any difference in the range of the network. What's wrong?

    I'm trying to extend the range of an Airport Extreme 802.11g by adding an Airport Express 802.11n. I set the Express up to join the existing network, but it does not make any difference in the range of the network. What's wrong?

    Let me see if I can help you with the basic WDS configuration steps:
    Note: To help facilitate the setup, temporarily connect the AXn directly to the AEBS LAN port using an Ethernet cable. Once the setup is complete, you can move the AXn to the desired location. For all configuration steps you will be using the AirPort Utility. Before starting, be sure to jot down the AppleIDs for both base stations.
    802.11g AirPort Extreme Base Station (AEBS) Configuration
    AirPort Utility > Select the AEBS > Manual Setup > Wireless tab
    Wireless Mode: Participate in a WDS network
    Manual Setup > WDS tab
    WDS Mode: WDS main
    Allow wireless clients (checked)
    WDS Remotes: <enter the AppleID for the AXn here>
    Click on Update and allow the base station to restart.
    802.11n AirPort Express Base Station (AXn) Configuration
    AirPort Utility > Select the AXn > Manual Setup > Wireless tab
    Wireless Mode: Participate in a WDS network (Note: You may have to hold down the Option (Mac) or Control (PC) key to see this option in the list.)
    Manual Setup > WDS tab
    WDS Mode: WDS remote
    Allow wireless clients (checked)
    WDS Main: <enter the AppleID for the AEBS here>
    Click on Update and allow the base station to restart.

  • Status row for item '', activity ID '264766' does not exist.

    I have developed a custom workflow which is AME configured. The workflow runs well in R12.1.2 instance. But when deployed to R12.1.3 it fails out.
    error starting at line 20 in command:
    exec XX_PACKAGE.XX_PROCEDURE(19098, 'XX_WF', '1:Yes;')
    Error report:
    ORA-01086: savepoint 'WF_SAVEPOINT' never established in this session or is invalid
    ORA-20002: 3101: Status row for item '', activity ID '264766' does not exist.
    ORA-06512: at "APPS.WF_ENGINE", line 4192
    ORA-06512: at "APPS.XXIFMIS_ICX_UTILS", line 20
    ORA-06512: at line 1
    01086. 00000 -  "savepoint '%s' never established"
    *Cause:    Trying to roll back to a save point that was never established.
    *Action:
    Could anyone suggest how I can debug this issue.

    Sosa,
    When i run the wfstat nothing wrong in the info. unable to find the issue.
    But, i have narrow down the issue. In the function process in my workfow i am calling a custom function called update_approval_status_new.
    In this the value of the respond notification to be updated to a header table of this workflow and insert into events tables.
    When i comment these two dml ( update to header status & insert into events ) there is no error.
    Can any one tells me can i update and insert custom tables in workflow or not. If I want to do this, what is procedure.
    Regards/Prasanth

Maybe you are looking for