Automatic Marking of a row Checkbox in tableview MULTISELECT

Dear all,
We are using a tableview with iterator and selectedrow-table in MULTISELECTMODE . The tableview gives back the table of the selected rows which have to be processed .
After a users action and a fired event we have to store possible changed data out of the tableview into a internal memory table ( Export/Import to INDX database ).
Therefore the user has to mark all rows with changed data to prevent that we have to check all rows (max. 20000 )out of the tableview for differences between the data in the memeory table and the tableview ( performance !! )
Is ther any possibility to mark the checkbox on the left border of the data row automatically ( by event ? ) if one of the editable inputfields is changed by the user ? Otherwise the user has to scroll up to 40 columns to the left only to mark the row for saving the changed data .
It would be great to get a hint !! Thanks in advance .

Hi Craig,
Yes this is clear .
We already use that pattern tabid_row_cell for the cell identification in a javascript function.
But how can I adress to the automaticly in MULTISELECTMODE added checkbox ( or the PrevSelectedtable ) which is not part of my columndefinitions table ? What is the name of that field ?
The background of our problem with rowmarking is the fact that all data of an internal table are lost in event OnInputProcessing if we fill that table ( 45 columns )for the first time in OnInitialization and not in OnCreate like in most of the mentioned examples ( for instance with table sflight ) .
On the other hand the OnCreate event will be proceeded after every click event , no matter if we use a stateful or stateless mode . And we want to read the database table for filling the internal table only once if we proceed the OnInit for the first time . 
We have to select the data out from a ODS table with searchcriteria ( 4 values of table-keys ) from a pre-called start page . And the validation of automatic page attributes in OnCreate seems to fail in general , so all the needed attributes are empty in OnCreate.
That's why we have to refill the internal table ( from INDX database ) everytime we proceed the OnInitialization event ( also after a simple pageDown ), so data changes inside the tableview object would have been overwritten without storing changes into the memory area of the internal table . This is an unwished emergency exit but we don't know how to deal with this on a better and easier way .
I tried to save the internal table as a hidden page attribute in OnLayout getting an conversion error after syntax check - this worked very well in other cases .
If there is a way to get a persistant existing internal table ( during all events ) and the tableview hold it's data changes we could forbear from the rowmarking .
Best regards and hope that you can help
Dirk Läufer

Similar Messages

  • Get value of a selected row in a TableView

    Hi all.
    I'm very new to BSP-Extensions and don't know how to get the values of a selected row in a tableview. I've written a simple bsp with a tableview and a button (both htmlb). I want to get the selected values (as a workarea of tab or cell values) of the tableview at the moment where a user hits the button. I have thought that i could use the method GET_CELL_VALUE but it never works.
    Here are my type definitions:
    TYPES t_scarr TYPE TABLE OF scarr.
    Here are my page attributes:
    DATA pa_str_scarr TYPE scarr.
    DATA pa_tab_scarr TYPE t_scarr
    Here is the layout coding:
    <htmlb:content design           = "design2003"
                   controlRendering = "SAP" >
      <htmlb:document>
        <htmlb:documentHead>
        </htmlb:documentHead>
        <htmlb:documentBody>
          <htmlb:form>
            <htmlb:tableView id             = "tableview_scarr"
                             table          = "<%= pa_tab_scarr %>"
                             headerText     = "Table SCARR"
                             headerVisible  = "TRUE"
                             width          = "100%"
                             selectionMode  = "SINGLESELECT"
                             onRowSelection = "select" >
            </htmlb:tableView>
            <htmlb:button id      = "button_go"
                          text    = "Go"
                          onClick = "button_go" />
          </htmlb:form>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>
    Here is the coding of OnInitialization:
    SELECT * FROM scarr INTO TABLE pa_tab_scarr.
    And this is my OnInputProcessing:
    DATA: event TYPE REF TO cl_htmlb_event,
          tv TYPE REF TO cl_htmlb_tableview,
          table_event TYPE REF TO cl_htmlb_event_tableview,
          selected_row_index TYPE selectedrow-index,
          cell_value TYPE string.
    IF event_id = 'htmlb'.
      event = cl_htmlb_manager=>get_event( runtime->server->request ).
      CASE event->server_event.
        WHEN 'button_go'.
          tv ?= cl_htmlb_manager=>get_data( request = request
                                            name    = 'tableView'
                                            id      = 'tableview_scarr' ).
          IF tv IS NOT INITIAL.
            table_event = tv->data.
            selected_row_index = table_event->selectedrowindex.
            cell_value = table_event->get_cell_value(
                row_index    = selected_row_index
                column_index = 1 ).
          ENDIF.
      ENDCASE.
    ENDIF.
    What is wrong and what is the best way to get the selected data at this moment?

    In your code....
    change
         <htmlb:button id      = "button_go"
                          text    = "Go"
                          onClick = "button_go" />
    to
         <htmlb:button id      = "button_go"
                          text    = "Go"
                          onClick = "onInputProcessing" />
    Also you are not getting the <b>selectedRowIndextable</b>.That might also be the problem...
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • Trying to automatically add a new row w/o mutating table error...

    I'm using Oracle 10g express. I'm trying to automatically add a new row with the same e_ID, (RDD + 6 months) as the updated row when RC is updated. I'm fairly new to Oracle, so I need some help on creating a trigger. If you need more details let me know. Thanks in advance.
    create table E
    e_id number(6,0) not null,
    constraint e_pk primary key(e_id)
    create Table ER
    e_Id Number(6,0) Not Null,
    SC Date,
    RDD Date,
    RC Date,
    Constraint ER_Fk Foreign Key(E_Id) References E(E_Id)
    );

    mookjais wrote:
    I'm using Oracle 10g express. I'm trying to automatically add a new row with the same e_ID, (RDD + 6 months) as the updated row when RC is updated. I'm fairly new to Oracle, so I need some help on creating a trigger. If you need more details let me know. Thanks in advance.
    create table E
    e_id number(6,0) not null,
    constraint e_pk primary key(e_id)
    create Table ER
    e_Id Number(6,0) Not Null,
    SC Date,
    RDD Date,
    RC Date,
    Constraint ER_Fk Foreign Key(E_Id) References E(E_Id)
    );Do you mean following(example)?
    create trigger after_insert_e
    after
      insert
    on  e /*This is table name*/
    referencing new as new old as old
    for each row
    begin
    insert into  ER(e_Id,SC,rdd,rc)
    values(:new.ed_id,sysdate,sysdate,sysdate);
    end;

  • Marking block of rows in table control

    Hi All,
    I have an requirement to mark block of rows (Like 2 to 5, 7 to 11 or 3 to 15 ) in table control to delete from the table control. This functionality is available in SM30 (Table maintenance generator) and my users want same functionality for customized dialog program.
    Can any one any have an idea how to write the code for marking block of entries in table control.
    Thanks in advance,
    Chandra

    Hi,
    Assign a internal table field to table control place holder , whenever you select a row in the table control , internal table field value set to 'X'.
    so delete the rows from the internal table where row value set to 'X'.
    Sample code :
    CASE OK_CODE.
    WHEN 'DELETE'.
      DELETE I_TAB WHERE CHK = 'X'.
    ENDCASE.
    check these demo programs:
    RSDEMO_TABLE_CONTROL
    DEMO_DYNPRO_TABLE_CONTROL_1
    DEMO_DYNPRO_TABLE_CONTROL_2
    RSDEMO_TABLE_CONTROL
    RSDEMO02
    if you want to mark the records through code , first assign a internal table field to table control first column (say buttons which we will use to select a row)
    then do like this :
    case sy-ucomm.
    when 'MARK'.
    loop at i_tab.
      i_tab-chk = 'X'.
      modify i_tab.
    endloop.
    endcase.
    Regards
    L Appana
    Message was edited by:
            L Appana

  • Really Apple? Mails still automatically marked as read??

    Dear Apple,
    you have still not managed to include an option into your mail app to prevent mails from being automatically marked as "read"? I actually would have loved to switch to your app for a long time, but this point just leaves it unusable.
    Does no one else think this is crucial?

    You want to have them marked until you are done working on them?
    Make a rule that puts a flag on every received message. When you are done with it remove the flag.

  • Mail Viewing Options Gone.  I need to DISABLE automatically marking a message as read!

    In Lion, the Mail Viewing options to disable automatically marking a viewed message as read are gone!  I absolutely NEED to disable automatically marking a viewed message as read!  How can I disable this if the option isn't present?  Is there a workaround?

    Ok...I take part of what I said back. It was MailActOn by InDev which allowed me to not automatically have a message marked as read.  See http://indev.ca/MailActOn.html for more info.
    Apparently the version I had loaded wasn't compatible with Lion Mail.app.  Since updating it, I know have this feature again.

  • Different font weight for certain table rows in a tableView

    Dear all,
    I Need to add a summary row in a TableView to calculate the sum of all values above this row. For every row I have an object, called KostenDTO.
    class SummCurrencyTableCellFactory implements Callback, TableCell> {
         private NumberFormat numFormat = null;
         public SummCurrencyTableCellFactory(NumberFormat numFormat) {
              this.numFormat = numFormat;
         @Override public TableCell call(TableColumn param) {
              TableCell cell = new TableCell() {
                   @Override public void updateItem(final Float item, boolean empty) {
                   if (item != null) {
                        setText(numFormat.format(item));
                        setStyle("  -fx-alignment: CENTER-RIGHT;");
                        if (item < 0.0) {
                             this.setTextFill(Color.RED);
                        } else {
                             this.setTextFill(Color.BLACK);
                  } else {
                        setText("");
         return cell;
    how can I Change the font weight of the sum-row to bold?
    Thank you and regards Tim

    You can do
      String fontWeight ;
      if (getIndex() == getTableColumn().getTableView().getItems().size()-1) {
      fontWeight = "-fx-font-weight: bold;";
      } else {
      fontWeight = "-fx-font-weight: normal;";
      setStyle("-fx-alignment: CENTER-RIGHT;\n" + fontWeight);
    in the updateItem(...) method, assuming the sum row is the last row in the table.

  • How to prevent mail app on OS X & iOS from automatically marking email messages as read just when they are selected either intentionally or not

    Good morning guys
    is there a way to prevent mail app on OS X & iOS from automatically marking email messages as read just when they are selected either intentionally or not
    thanks

    On OS X, You are able to hide the preview window on the right in normal mode, or on the lower side in classic mode, by simply putting your cursor on the thin bar which is in between, and then make it as small as possible, so it goes away.
    Then your messages won't be automatically read when clicked once, but only if you click them twice and a new window with the message opens.
    Also, you are able to mark them as unread again, which is a silly workaround, but possible.
    You can do that by right clicking and select 'Mark as...' -> unread.
    On iOS, I'm not sure..

  • Messages automatically marked as read in yahoo and unread in Mail

    I typically use yahoo.com to view/read my yahoo mail, but I would like the option of viewing in Mail as well. However, when I launch my Mail account, all messages remain "unread" (whether I've read them or not in yahoo.com). And when I go to my yahoo.com account after opening Mail, all messages (whether I've read them or not in Mail) are automatically marked as "read". This is extremely frustrating as I would like both Mail and yahoo.com to reflect read and unread emails appropriately.
    I do not have this problem when I use the Mail app on my iPhone.
    Please help! Thank you!

    UPDATE: In addition to all mail being marked as "unread" in yahoo.com, most messages older than a few days old are also deleted. They still appear in Mail, but I need to read them in yahoo.com as well. In addition, Mail does not contain the folders from yahoo.com, so all messages appear in Mail as one big "unread" mess in my inbox. Again, these issues are not a problem with the iPhone app. Thank you!

  • Email with Mail Rules applied are automatically marked as read

    I am using Mail in Mac OS X 10.5 with Gmail IMAP, and any email I receive that has a mail rule applied to it (such as, if person x emails me move email to this folder) is automatically marked as read (i.e., doesn't show up as a new message). Any email that comes into the Inbox, however, is marked as new.
    The mail folder I am testing this with does not have the "mark email as read" rule applied to it, yet it keeps marking any email that goes through this rule as read. Also, no new mail sound plays after receiving these emails. In Tiger, even when an email was automatically marked as read by mail rules, it made the new mail sound.
    I don't know if this is a Mac OS X Mail issue or a Gmail IMAP issue, but it's frustrating as all edit: I guess he-double-hockey sticks is a four letter word]. Is anyone having this issue and does anyone have a solution?
    Message was edited by: thenotoriousxis

    For me, it never counted it as new. It would just appear.
    I deleted the Mail preference file and that seemed to fix some things, even though it did require me to re-setup Mail almost entirely. This morning, though, I got an email from my girlfriend that did not filter at all, even though the email address she sent from is in a rule. Might be an isolated incident, though.

  • Why are all emails automatically marked as read?

    I recently switched my wifes email account from a POP to a IMAP.  (same email address, same server, same provider)
    Shortly before doing that we upgraded to Lion.
    She also gets mail from this account on her iPhone.
    Question:  For some reason all of her new emails are automatically marked as read. No blue dots.  This happens when a new message is recieved on either the Mac or on the iPhone.  Everything else about the email account works properly. My email accounts on the same Mac work properly. (Same user account)
    Any ideas what might be causing this? Is this problem being caused in the Mail problem or is it something on the server side?
    Thanks.

    UPDATE:
    I have now deleted the account from the iphone. No change in the behavior.  It's not the iphone that is causing this.
    When an email is recieved it stays unread for about 20 minutes. And then it mysteriously changes all by itself to read.  I have logged into the Webmail panel for this account and the behavior is mirrored there.
    please help !!
    -Eli

  • Please help on: Automatic deletion of certain rows

    Hi all,
    I am developing a project in which the rows inserted before two months should be deleted automatically. I have a date column in my table. I wrote a PL/SQL stored procedure that deletes the rows that are two months old. Now I can able to delete the rows only if I manually call the stored procedure. But my question is how to call the procedure on a daily basis automatically, so that the rows are checked and deleted daily.

    look up DBMS_JOB (pre 10g) or DBMS_SCHEDULER (10g onwards)

  • SIGABRT error when choosing a row of a tableview

    Hello, I am creating an iPhone app and I keep getting a "SIGABRT" error. I have a tableview where I want a separate webpage pushed for each rows.
    Currently, what happens is that the table displays; however, when I pick a row it gives me a SIGABRT error. Please help.
    Here is my first view (table view) .h file:
    #import <UIKit/UIKit.h>
    @interface videoTableViewController : UITableViewController
        NSArray *videos;
    @property (strong, nonatomic) NSArray *videos;
    @end
    Here is my first view (table view) .m file:
    #import "videoTableViewController.h"
    #import "videoURLController.h"
    @interface videoTableViewController ()
    @end
    @implementation videoTableViewController
    @synthesize videos;
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        videos = [NSArray arrayWithObjects:@"Welcome", @"Hello", @"Goodbye", nil];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [self.videos count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"videoCell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        // Configure the cell...
        NSUInteger row = [indexPath row];
        cell.textLabel.text = [videos objectAtIndex:row];
        if (row == 0)
            cell.detailTextLabel.text = @"Welcome";
        if (row == 1)
            cell.detailTextLabel.text = @"What we value";
        if (row == 2)
            cell.detailTextLabel.text = @"What does Honor mean?";
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
         videoURLController *detailViewController = [[videoURLController alloc] initWithNibName:@"videoTableViewController" bundle:nil];
        UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
        if (indexPath.row == 0){
            [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end
    Here is my videoURLController (second view/web view) .h file?
    #import <UIKit/UIKit.h>
    @interface videoURLController : UIViewController
    @property (strong, nonatomic) IBOutlet UIWebView *webView;
    @end
    Here is my videoURLController (second view/web view) .m file?
    #import "videoURLController.h"
    @interface videoURLController ()
    @end
    @implementation videoURLController
    @synthesize webView;
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
      // Do any additional setup after loading the view.
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    @end

    Hello, I am creating an iPhone app and I keep getting a "SIGABRT" error. I have a tableview where I want a separate webpage pushed for each rows.
    Currently, what happens is that the table displays; however, when I pick a row it gives me a SIGABRT error. Please help.
    Here is my first view (table view) .h file:
    #import <UIKit/UIKit.h>
    @interface videoTableViewController : UITableViewController
        NSArray *videos;
    @property (strong, nonatomic) NSArray *videos;
    @end
    Here is my first view (table view) .m file:
    #import "videoTableViewController.h"
    #import "videoURLController.h"
    @interface videoTableViewController ()
    @end
    @implementation videoTableViewController
    @synthesize videos;
    - (id)initWithStyle:(UITableViewStyle)style
        self = [super initWithStyle:style];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
        videos = [NSArray arrayWithObjects:@"Welcome", @"Hello", @"Goodbye", nil];
        // Uncomment the following line to preserve selection between presentations.
        // self.clearsSelectionOnViewWillAppear = NO;
        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem;
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
        // Return the number of sections.
        return 1;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
        // Return the number of rows in the section.
        return [self.videos count];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
        static NSString *CellIdentifier = @"videoCell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        // Configure the cell...
        NSUInteger row = [indexPath row];
        cell.textLabel.text = [videos objectAtIndex:row];
        if (row == 0)
            cell.detailTextLabel.text = @"Welcome";
        if (row == 1)
            cell.detailTextLabel.text = @"What we value";
        if (row == 2)
            cell.detailTextLabel.text = @"What does Honor mean?";
        return cell;
    // Override to support conditional editing of the table view.
    - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the specified item to be editable.
        return YES;
    // Override to support editing the table view.
    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
        if (editingStyle == UITableViewCellEditingStyleDelete) {
            // Delete the row from the data source
            [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
        else if (editingStyle == UITableViewCellEditingStyleInsert) {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
    // Override to support rearranging the table view.
    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
    // Override to support conditional rearranging of the table view.
    - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
        // Return NO if you do not want the item to be re-orderable.
        return YES;
    #pragma mark - Table view delegate
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
         videoURLController *detailViewController = [[videoURLController alloc] initWithNibName:@"videoTableViewController" bundle:nil];
        UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
        if (indexPath.row == 0){
            [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
         // Pass the selected object to the new view controller.
         [self.navigationController pushViewController:detailViewController animated:YES];
    @end
    Here is my videoURLController (second view/web view) .h file?
    #import <UIKit/UIKit.h>
    @interface videoURLController : UIViewController
    @property (strong, nonatomic) IBOutlet UIWebView *webView;
    @end
    Here is my videoURLController (second view/web view) .m file?
    #import "videoURLController.h"
    @interface videoURLController ()
    @end
    @implementation videoURLController
    @synthesize webView;
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {
            // Custom initialization
        return self;
    - (void)viewDidLoad
        [super viewDidLoad];
      // Do any additional setup after loading the view.
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    @end

  • Disable Checkbox in TableView

    Hi,
    I am using a HTMLB TableView to visualize data...in the first column of each row theres a Checkbox to select one or more rows... now I want to disable the Checkbox for some rows. Is it possible to achieve this with a custom CellRenderer ? My problem with this approach is, that the method TableView.getValue(...) delivers a String.... I had expected an object or component...in my case a CheckBox...  any suggestions ?
    Thanks in advance
    Oliver

    Hi Oliver,
    myTableView.setRowSelectable(i, false);
    Hope it helps
    Detlev

  • Doc Library List View Row Checkbox Unable to Select or Check

    I have code behind that adds webparts to a page. An example of the code is show below.
    # web is an SPWeb object
    # wpMgr is the web part manager
    # Get the list
    SPList list = web.Lists["Document Library"];
    # Create the list view webpart
    XsltListViewWebPart lvwp = new XsltListViewWebPart()
    ListId = list.ID,
    Title = "Documents",
    ViewGuid = list.DefaultView.ID.ToString(),
    XmlDefinition = list.DefaultView.GetViewXml()
    # Add the list view webpart to the page
    wpMgr.AddWebPart(lvwp, "Main", 0);
    Problem:
    The issue we are having is only with document libraries. When we try to select the document library in the list view by selecting the checkbox, the item appears to be checked, but when you move the cursor away from the row, the checkbox is no longer selected.
    This issue is found in Firefox and IE. I'm getting a js error in the core.js file's CountSelectedItems(a) function, shown below.
    function CountSelectedItems(a) {
    ULSrLq:;
    if(a.CurrentSelectedItems==null) a.CurrentSelectedItems=0;
    return a.CurrentSelectedItems}
    The js error is "Unable to get property 'CurrentSelectedItems' of undefined or null reference". So I read this as the object a being null.
    Workaround:
    If you edit the webpart and click on "OK", it seems to refresh something and this is no longer an issue.
    Solution:
    I've tried the ListViewWebPart as well, but that didn't work for me either. Any advice is greatly appreciated.
    Thanks
    -Gunjan

    We experienced the exact same issue and resolved it by using the code below.
    In short are we trimming the ParameterBinding from White spaces before adding the webpart. After adding the webpart we update an unimportant property and save back the changes. The strange thing is that this code used to work previously before we added the
    "fixup". With this solution you can keep the Group by clause in the CAML Query.
    Please mark as answer if it solves your problem.
    SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager(pageUrl, PersonalizationScope.Shared);
    XsltListViewWebPart XsltWebPart = new XsltListViewWebPart();
    SPList list = web.Lists[listName];
    XsltWebPart.ListId = list.ID;
    XsltWebPart.ViewGuid = list.Views[viewName].ID.ToString("B").ToUpperInvariant();
    XsltWebPart.XslLink = XslLinkUrl;
    XElement el = XElement.Parse("<root>" + XsltWebPart.ParameterBindings + "</root>");
    var reader = el.CreateReader();
    reader.MoveToContent();
    string trimmedBindind = reader.ReadInnerXml();
    XsltWebPart.ParameterBindings = trimmedBindind;
    webPartManager.AddWebPart(XsltWebPart, zoneId, zoneIndex);
    int wpIndex = webPartManager.WebParts.IndexOf(XsltWebPart);
    var xwp = (Microsoft.SharePoint.WebPartPages.XsltListViewWebPart) webPartManager.WebParts[wpIndex];
    xwp.ExportMode = WebPartExportMode.All;
    webPartManager.SaveChanges(xwp);

Maybe you are looking for

  • ***** in my album cover screen saver

    In the last week or so when my cover art screen saver is active there have been ***** photos appearing along with the cover photos. Not always but about every 10 minutes another **** shot appears. Anyone know how I can view the folder of cover art an

  • Balance confirmation issue.

    Hi All, We are just upgraded our system to ECC 6.0.Now I am doing configuration for Balance confirmation. But in SPRO I got all the settings related to Forms only. & while running F.17/F.18 I have specified Reconciliation date but system is picking o

  • IMac 27" i5 regular freeze

    Happens once a week, usually mornings. Mac runs continuously, only screen set to go off. Finder and other apps are frozen, some things still respond but can't launch new apps. Error log reports disk i/o errors, cannot save to cache etc.

  • Accounting doc Open can't reversed

    Hi I have cancelled billing document but accounting document is still appearing as Open Item. How this accounting document can be reversed. This problem is coming for the billing document which was cancelled without logical system. However after conf

  • Os x re install from CD shows no destination to select, or options

    I have the dreaded blue screen on my i book. Tried pram reset etc, no good. Went to re install OS X for CD, got to select destination and nothing is in the window to select. No options button either. Is my HD dead? it started to operate very slowly,