Tableview navigation

Hi,
I am trying to implement navigation event for my table view. For some reason, the event is not being captured.
I am trying to print a test message in the event implementation which is not printing, which means the event is not being captured.
Here is my Dynpage code:
     public void onMyOnNavigate(Event event) throws PageException {
          IPortalComponentResponse response = (IPortalComponentResponse) this.getResponse();
          response.write("Navigate Event ");     
          TableNavigationEvent tne = (TableNavigationEvent) event;
          if (myBean != null) {
               myBean.setVisibleFirstRow(new Integer(tne.getFirstVisibleRowAfter()).toString());
here is the JSP tableview declaration:
            <hbj:tableView
              id="myTableView1"
              model="myBean.model"
              design="ALTERNATING"
              headerVisible="true"
              footerVisible="true"
              fillUpEmptyRows="true"
              navigationMode="BYLINE"
              selectionMode="MULTISELECT"
              headerText="Compitency History"
              onNavigate="myOnNavigate"
              visibleFirstRow="1"
              visibleRowCount="4"
              width="500 px">
          </hbj:tableView>
And here is the bean code:
     public void setVisibleFirstRow(String visibleFirstRow) {
          this.visibleFirstRow = visibleFirstRow;
     public String getVisibleFirstRow() {
          return visibleFirstRow;
Can anyone tell me where am I going wrong..
(I even tried changing the event name to myOnNavigate
from onMyOnNavigate, but still it didn't work)
-Sudheer

result sounds like a very common name, likely this and similiar words are already used ...
In general, it is a good ides to maybe prefix your IDs, this avoids problems with existing IDs or functions:
For example, <b>tv_</b>result (tv for tableview).
In our current application I have a 60kb+ javascript file, lots of functions and variables in there, all are prefixed the one way or another, didn't run into any duplicate-name problems yet.

Similar Messages

  • JavaFX 2.0 TableView - Navigation of TableView Cell Factory using Keyboard

    Hi All,
    I have a particular query as regards a JavaFX TableView, specifically cell Navigation using the arrow Keys on the keyboard.
    I have a TableView of multiple rows and columns. Inside each of the table cells i have created a cellfactory that turns each of the cells into a TextInput Field. Essentially i am trying to create a good old Excel Spreadsheet in terms of look and feel. Although now i have the cellfactory and functionality working the way i would like, I have come accross an issue though in terms of the navigation using the keyboard arrow keys.
    I was wondering if anyone could advise as regards, how i can get the focus of the TextInput within my tableCell that im currently in, and then be able to move up/down/left/right using the keys without going out of the bounds of the TableView. Surely this has be built in to the API, or am i having this problem as im using a custom cell factory?
    I have read that in 2.2 there is improved nav functionality but we are not there yet and am trying to work around this issue.
    Input greatly appreciated
    Thanks

    I have made such features in my application, you can achieve this by adding event listener to TextCell:
    textField.setOnKeyReleased(new EventHandler< KeyEvent>() {
    public void handle(KeyEvent t) {
    if (t.getCode() == KeyCode.ENTER) {
    commitEdit(textField.getText());
    getTableView().getFocusModel().focusRightCell();
    getTableView().edit(getTableRow().getIndex(), getTableView().getFocusModel().getFocusedCell().getTableColumn());
    .....

  • Down arrow key :Tableview Navigation

    Hi Experts,
    I have a requirement that I want to use the down and up arrow to navigate in particular column of a tableview.
    For eg i want to use the up and down arrow key for filling quantities in the sales order items table.Can you please suggest the solution or give some pointers.The tableview as u all know is of ' chtmlb '.
    Thanks,
    Ashish.

    Hi Ashish,
    I often wondered why nobody asked about this one. At least I am missing it, too.
    Sadly I do not know a solution for this one. The only pointer I can give you is that it might be possible using javascript. You would have to use the DOM and the ID of the field to add some custom logic to it.
    Maybe you have got some spare time and can experiment on this. My JS knowledge is limited. Thus I can not help any further.
    cheers Carsten

  • TableView; Navigation; Runtime Error

    Hi,
    I,m getting a 'Runtime Error; Error: Object doesn't support this property or method.' when I'm trying to navigate in a Tableview.
    If I choose to debug this (because I have Microsoft Script Debugger), I have an error on:
    function ur_table_getCellHeaders(s){ result = null....
    This function is inside '../sap/public/bc/ur/Design2002/js/sapUrMapi_ie6.js'.
    I'm currently with SP47, IE6.0.2800.1106 and using design2003.
    I'm not getting any error if I use design2002.
    My code is very simple:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="phtmlb" prefix="phtmlb" %>
    <htmlb:content id     = "content"
                   design = "DESIGN2003"
                   controlRendering = "SAP">
    <htmlb:page>
    <htmlb:form id="formTable" >
            <htmlb:tableView id              = "result"
                             width           = "100%"
                             table           = "<%= t_data %>"
                             visibleRowCount = "8" >
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    Any help should be great.
    JS

    result sounds like a very common name, likely this and similiar words are already used ...
    In general, it is a good ides to maybe prefix your IDs, this avoids problems with existing IDs or functions:
    For example, <b>tv_</b>result (tv for tableview).
    In our current application I have a 60kb+ javascript file, lots of functions and variables in there, all are prefixed the one way or another, didn't run into any duplicate-name problems yet.

  • Read entered data in hbj:tableView

    Hi forum,
    I've got a simply jsp displaying a tableView with two columns, a date and an input field.
    In my "onNavigate"-event, if I try to access dtv.getColumnCount it says 2 and dtv.getRowCount() is 365.
    Thats fully ok.
    But if i now try to access the data stored inside the second column (the input-fields) with dtv.getValueAt(3,2), it throws always a NullPointerException.
    Any hints on that? How do I read out the data which an user has entered in the input-fields inside the tableView?
    Thanks in advance!
    Regards,
    Frank

    Hi Florian,
    sure I can
    TableView:
         <hbj:tableView
              id="DemandTable"
              model="jup.DemandTable"
              design="ALTERNATING"
              headerVisible="true"
              footerVisible="true"
              fillUpEmptyRows="true"
              navigationMode="BYLINE"
              selectionMode="NONE"
              headerText="Bedarfsanzeige"
              visibleFirstRow="1"
              visibleRowCount="30"
              width="300 px"
              onNavigate="onNavigate"
         >
         <% DemandTable.setVisibleFirstRow(jup.getDemand_table_visible_first_row());
            DemandTable.setKeyColumn(1);
            for (int i=1; i <= DemandTable.getRowCount(); i++)
                 DemandTable.setCellType(i,2,TableColumnType.INPUT);
         %>
         </hbj:tableView>
    Navigation-Event:
         public void onNavigate(Event event) {
              if (event instanceof TableNavigationEvent) {
                   TableNavigationEvent tne = (TableNavigationEvent) event;
                   JupAppl myJUPContainer;
                   // get the JUP-Container
                   IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
                   myJUPContainer = (JupAppl) request.getComponentSession().getValue("jup");
                   // setting rowcount
                   myJUPContainer.setDemand_table_visible_first_row(tne.getFirstVisibleRowAfter());
                   //tabelle in wl speichern
                   TableView dtv = (TableView) getComponentByName("DemandTable");
                   try {
                        myJUPContainer.webpath = "ColCount:" + dtv.getColumnCount() + " and RowCount:" + dtv.getRowCount()
                        + "<br>Value@1,1:"; // row, col
                        AbstractDataType x = dtv.getValueAt(1,1);
                   } catch (Exception ex)
                        myJUPContainer.webpath = ex.toString();          
                   ArrayList wl = new ArrayList();
                   wl = myJUPContainer.jup.get_DailyWorkload();
                   wl.set(5,new Integer(999));
                   myJUPContainer.jup.set_DailyWorkload(wl);
                   // write object back to bean
                   request.getComponentSession().putValue("jup",myJUPContainer);          
              } else {
                   // wrong event...
    The error is thrown in line "AbstractDataType x = dtv.getValueAt(1,1);".
    Thanks for your help!
    Regards,
    Frank

  • TableView Filter

    Hai,
    In my application I wanted to implement my own filters,
    Can one please tell me How can I Do that??
    The reason I wanted to Implement my own filter Is that, I am using a pager and I can not syncronise values in the pager with the Tableview if I set the FILTER to server.
    Regards,
    venkatesh

    Hai Raja,
    I am using a tableView.
    For navigation Instead of the tableView navigator I am using a pager.
    The problem I had in using the pager is,
    If I am using filter to filter the records in the tableView.I wanted to reflect the page count and present page in to the pager(After applying filter).
    But what is shown in my pager is the earlier values when no filter is applied.
    How can I make my pager to work exactly like a tableview navigator.
    Can any one please tell me if this is possible as I dont find any public attribute in the  class CL_HTMLB_TABLEVIEW and filterrowcount and filtertab are protected.
    Regards,
    Venkatesh
    Message was edited by: venkateshwarlu yelagandula

  • Htmlb:tableView event navigation within frameset

    hello,
    i have a problem with event navigation in a frameset triggered from htmlb:tableView. the structure of my bsp-application:
    DEFAULT.HTM
          <frameset noresize cols="70%,*">
              <frame src="links.htm" name="left">
              <frame src="rechts.htm" name="right">
          </frameset>
    PAGE LEFT in the frameset with the tableView
    <htmlb:form target = "right">
          <htmlb:tableView id="myTable"
                           headerText = "Mitarbeiter"
                           headerVisible = "true"
                           design = "alternating"
                           visibleRowCount      = "10"
                           fillUpEmptyRows      = "true"
                           onRowSelection       = "MyEventRowSelection"
                           selectionMode        = "singleselect"
                           table                = "<%= table_csks %>" >
          </htmlb:tableView>
    PAGE RIGHT in the frameset shuold display details of the selected tableView row:
    <htmlb:form target = "right">
         <br>
         <%= lstable_csks-mandt %>
         <br>
         <%= lstable_csks-kostl %>
         <br>
         <%= lstable_csks-verak %>
         <br>
         <%= lstable_csks-ersda %>
         <br>
        </htmlb:form>
    PROBLEM description:
    when row is selected, displaying of the details on the right frame works well. but when another event of the tableView is triggered eg. browsing between table pages, the wohle table is displayed in the right frame instead to turn the table-page but stay in the same frame. of course this is done, because i have set the form-target attribute.
    and here the question: how can i differentiate between the onRowSelection-Event (navigation to the right frame) and the page-browsing event (stay in same frame but change the tableView page)?
    thanks a lot!
    kalina

    <i><htmlb:tableView keyColumn       = "smtp_addr"
                               id              = "searchhelp"
                               table           = "<%= t_searchhelp %>"
                               visibleRowCount = "10"
                               selectionMode   = "SINGLESELECT"
                               onRowSelection  = "setHelp" ></i>
    since you dont have sort or filter option for your table value, you can simply use the rowindex to read the itab.
    read table itab index selectedrowindex.
    on your other question of using more than one field in the itab for key of a record.
    declare  another field in the itab and fillit with the concatenation of the key fields (say concatenate recornumber itemnumber into keyfield) and dont show it in the tableview. declare this field as the key column in tableview.
    onrowselection this key value will be available in
    tabvie->selectedrowkey which you can use to read the itab. however in your case this is not required as you dont use sort or filter.
    Raja

  • Summary row in tableview (including sorting and BYPAGE navigation)

    Hello everybody,
    I already found a few topics dealing with this problem but I wasn't able to find a real solution for this.
    So far I'm pretty familiar with table iterators but I have no idea how to handle the summary row to be the last line in a table, even if sorting and navigation by page is allowed in the tableview.
    I think you definitely have to add this summary row in your internal table, since you can not add a virtual row in your tableview. And you can custom render this row or respectively each cell for instance with a different color but how to force this row always to appear as the last row in every tableview page (navigation=BYPAGE).
    Does anyone have a solution for that?
    Thanx
    Oliver

    Ok, here is what I came up with (hoping I got your problem right):
    In your tableview you are displaying <b>x</b> rows, and after these rows you want your sum row to be displayed.
    I have done quite some things with iterators, but why not do without one here
    Altering the internal table can do as well:
    Try to insert a new row after every <b>x</b> rows into your internal table which holds the needed sum values, and then change your tableview to display <b>x+1</b> rows.
    In you case you need to do some operations with your internal table (to avoid the sum rows messing up the results) you should somehow "mark" these sum rows so you can distinguish them later on.
    Hope this is helpful for your problem.
    Max

  • Filter a tableview based on a column value-Navigation Issues.

    Hi,
    I have a table view with total 99 values. The values are displayed in 10 tabs of the table view with 9 values in each tab.I go to the third tab and select a column value, which triggers an event and filters the result list from 99 to 12.
    I am simply removing the collection and filling it again with fresh values.
    My problem is-when i set the collection with new values, i want the end user to be navigated to the first tab.
    But the user is always navigated to the second tab which has the last three values.
    Is there any way to navigate the user to first tab of table view?
    I have already tried-visibleFirstRow and it is not working.
    Thanks and Regards,
    Rohit

    Hi Ashish,
    You can implement some code in DO_INIT_CONTEXT to filter your Items' BOL collection based on the condition quantity <> 0. I believe the Quantity field is available in the BOL structure.
    Here is a code snippet.
    DATA: lr_col TYPE REF TO if_bol_bo_col,
    DATA: lr_node TYPE REF TO if_bol_bo_property_access.
    lr_node = me->typed_context->CONTEXT NODE->collection_wrapper->get_first( ).
    WHILE lr_node IS BOUND.
    CALL METHOD lr_node->get_properties
    IMPORTING
    es_attributes = ls_struct.
    IF ls_struct-quantity = 0 .
      lr_col->remove( iv_bo = lr_node ).
    ENDIF.
      lr_node = lr_col->get_next( ).
    ENDWHILE.
    Regards,
    Masood Imrani S.

  • Navigation based TableView

    Hello Friends
    I am working on an IPnone application but dont have much experience. The flow of application is
    Books Categories(First scree- Table View)-> Books List(Second screen- Again a Table View)->Books Details(A customized third view).
    I am doing this using XML & able to parse the required xml. But don't know how to get the second sub-view.
    I followed this tutorial: http://icodeblog.com/2008/08/08/iphone-programming-tutorial-populating-uitablevi ew-with-an-nsarray/
    I am able to get my first screen (with data i have in xml) but dont know hot to add second sub-view & hot to provide data to this sub-view. Is there any tutorial for this.
    Thanks

    Thanks very much for your help. Letting me know that it was in fact do able using Interface Builder was encouraging.
    I managed to get it working a little better using Interface Builder and like you said dragging the Navigation Controller into the tab bar controller. I also consolidated the two projects' AppDelegates together (the one from the Tab Bar Controller and the Navigation Controller).
    Things are looking better however for some reason the UITableView tab that has a navigation controller doesn't accept any input on it's nested UITableVIew i.e. it doesn't scroll and the table view drill down doesn't work. Strange it's like it's disabled our something.
    I can add more items to my sql based UITableList (except that the add and edit buttons "hit area" are offset a bit above where they should be) so i know the navigation controller is working independently of the Tab bar controller. However the UITableView does not scroll or respond to any interactions. It's as if there was an invisible layer blocking control of that View Controller. Obviously I am doing something wrong and probably need to take a step back on this, and learn some more fundamentals.
    If any one has experienced anything like this, that is a having a nested navigation controller inside of a Tab Bar Controller and then having the Nav Controller based UITableView stop responding to interactions, I would really appreciate any help, clues, ideas or encouragement.
    Thanks in advance for your time.
    Rumi Humphrey

  • 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

  • How to fix the column width in a table in htmlb tableview control

    HI Experts,
    I have an issue with my htmlb table view controller. I have created a custom iView with a htmlb table view control and placed it in quick navigation window.
    When data in columns exceeds, I am getting horizontal scroll bar and column,table are getting extened. I don't want  column size increases when text length increses. Instead when lenght of the text incrases in a column, I want the text displyed in multiple columns.
    I have tried for this as below.
    <hbj:tableView
        id="statTable"
        model="bean.stattableModel"
        design="ALTERNATING"
        headerVisible="false"
        footerVisible="false"
        fillUpEmptyRows="false"
        navigationMode="BYPAGE"
        selectionMode="NONE"
        headerText="Report List"
        visibleFirstRow="1"
        visibleRowCount="10"
    width="100%">
    <%
         stattableModel.getColumn("D").setWidth("5px");
         stattableModel.getColumn("D").setWrapping(false);//tried true aswell
         stattableModel.getColumn("H").setWidth("px");
         stattableModel.getColumn("H").setWrapping(false);
    %>
    No change happen ever after I used the above code.
    Any one has the idea, how make it work.
    Thanks in Advance,
    Chinna.

    Hi Babu,
    Please go through this links.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80a7eef2-9a2c-2a10-12bb-abad552f3302
    http://www.sapfans.com/forums/viewtopic.php?f=20&t=300326
    Kind regards
    Prabhakaran.P

  • Multiple TableExtension/Tableview in a single view...

    Hi,
           I'm facing a problem creating multiple TableExtension elements in a single view. The relationship between the business objects is like this.
    Header--->Order(s)--
    >Item(s)
    As you can see, each header can have multiple orders and each order can have multiple items.
    The number of orders is known only during runtime..
                  In the last page of my bsp application, created using component workbench, I should allow the user to view/edit item list of all orders found under a particular header. That is to say, the view should contain multiple EditList tables for editing items.
               But, I have only one context node for Item and I'm able to show only one table at a time. One solution that works, but not usable in my case is to use navigation buttons to change the Order focus entity. When the focus changes, the Item table shows relevant child entities of that particular order. But, only single table in that view and so, useless.
             Classic BSP application is a big NO. The table should allow customizing viewable columns and have toolbar buttons. The Chtmlb:tableExtension is very suitable and convenient while working with BOL objects, but how to generate multiple tables that are independent of each other?
    Please provide some pointers...
    Thanks,
    Arun Prakash
    Edited by: Arun Prakash Karuppanan on Jun 21, 2008 11:49 PM

    Hi,
          Got it. I used field symbol for specifying the table and looped the tableview tag the number of times I wanted. Each time, the tableview and configtable IDs are also generated uniquely, as I would need them later.  Each time, the field symbol is assigned by a method implemented in the controller. This controller method, creates a internal table dynamically and populates it with relevant data fetched from my BOL collection. Ofcourse, I need to implement a separate iterator class for the ConfigTable and use appropriate events to make changes to my BOL collection. It's a little bit complicated, but not impossible.
    Regards,
    Arun Prakash.

  • Error in receiving tableview data for selected row

    Hi Collegues ,
    We plan to realize an application for the maintanance of  planning data . In the first step we created a value help page by using a tableview with iterator class ( 1 of the 3 methods of the Interface was filled with logic ) . We don't use any controller for that application  .
    A global internal table with the relevant help value data ( fgrvalues ) is used for the tableview and the call is :
    TYPE I .
    +CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    CLEAR ONCLICKEVENT.
    IF EVENT_ID = CL_HTMLB_MANAGER=>EVENT_ID.
        EVENT_DATA = CL_HTMLB_MANAGER=>GET_EVENT( REQUEST ).
        IF ( EVENT_DATA IS NOT INITIAL ) AND
                ( EVENT_DATA->EVENT_TYPE = 'click' ) .
                ONCLICKEVENT = EVENT_DATA->SERVER_EVENT .
        ENDIF.
    ENDIF.+
    CASE ONCLICKEVENT.
    WHEN 'take' .
       TABLE ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = REQUEST
       NAME = 'tableView'
       ID = 'fgr1_vhelp' ) .
       TABLE_EVENT = TABLE->DATA.
       IF TABLE_EVENT->SELECTEDROWINDEX IS NOT INITIAL.
          ROWSELECTION = TABLE_EVENT->SELECTEDROWINDEX.  
    -> ROWSELECTION - Content is now the index of the selected tableview row
    We always get the selected row in TABLE_EVENT->SELECTEDROWINDEX and the table TABLE_EVENT->ALLCOLUMNNAMES filled ( column ZX_FGR1 is the 2nd column ) 
    but we never got the tableview data for that tableview row no matter what we tried . We tried it with a tableview-event fired on 'rowselection' by user line-selection . We have deactivated the iterator or changed the BPS design value . With the same result - nothing was given back .
    We found that the System-Call Return value of :
    +system-call ict
    did
    ihttp_scid_get_form_field
    parameters
    m_c_msg " > c handle
    name " > form field name                value " < form field value
                    m_last_error. " < return code+
    in the method IF_HTTP_ENTITY~GET_FORM_FIELD is empty .  M_LAST_ERROR occurs with value '20' .
      + ASSIGN ROWSELECTION TO .
    COLUMN_VALUE = TABLE_EVENT->GET_CELL_VALUE( ROW_INDEX =
    COLUMN_INDEX = '2' ). -> Column Value is empty !!+
       +CALL METHOD TABLE_EVENT->GET_CELL_VALUE
          EXPORTING
            ROW_INDEX = TABLE_EVENT->SELECTEDROWINDEX
            COLUMN_INDEX = '2'
          RECEIVING
            VALUE = COLUMN_VALUE -> Column Value is empty !!+
       +CALL METHOD TABLE_EVENT->GET_SIMPLE_DATA ....
             -> Column Value is empty !!+ *----
    What could be the reason for that problem ? In generally it must be possible somehow to read the tableview data for one or all rows of the mentioned tableview .
    We hope that someone can help and are very thankful for a hint or solution . If you need more details please let us know .
    Please Remark: It's no solution for us to read the data by using the created internal table fgrvalues and the selectedrowindex cause in a later step we plan to update an ODS table with the manual modified planning data of an editable tableview .
    Thanks a lot in advance
    Dirk Läufer

    Hi collegues ,
    It's done .
    After we've got a very helpful little hint from Brian :
    The <htmlb:tableView> renders a table to the browser. It does not keep a copy of the table. The browser will also never return the table. Never. What it can return are inputfields for each cell. But then only if each cell is custom rendered as an inputfield.
    we could certainly solve the problem .
    We set the field we want to get back from table view on not editable inputfield via the tableview-iterator method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START :
    DATA: LCL_TABLE       TYPE REF TO CL_BSP_BEE_TABLE   ,
          LCL_INPUTFIELD2 TYPE REF TO CL_HTMLB_INPUTFIELD .
    CASE P_COLUMN_KEY .
    WHEN 'ZX_FGR1'.
    *    Field Firm Group
         CREATE OBJECT LCL_INPUTFIELD2.
         LCL_INPUTFIELD2->ID        = P_CELL_ID.
         LCL_INPUTFIELD2->WIDTH     = '100%'.
         LCL_INPUTFIELD2->MAXLENGTH = 4.
         LCL_INPUTFIELD2->TYPE      = 'STRING'.
         LCL_INPUTFIELD2->DESIGN    = 'STANDARD'.
         LCL_INPUTFIELD2->DISABLED  = 'TRUE'.
         LCL_INPUTFIELD2->VALUE =
             GET_COLUMN_VALUE( COLUMN_NAME = 'ZX_FGR1').
         P_REPLACEMENT_BEE     = LCL_INPUTFIELD2 .
    Now the method in OnInputPorcessing:
    TRY.
          CALL METHOD CL_HTMLB_MANAGER=>GET_SIMPLE_DATA
              EXPORTING
                REQUEST       = RUNTIME->SERVER->REQUEST
                ID            = 'fgr1_vhelp'
                ROW_IDX       = TABLE_EVENT->SELECTEDROWINDEX
                COL_NAME      = 'ZX_FGR1'
              CHANGING
                DATA          = FGRVALUES_LINE-ZX_FGR1 .
             IF NOT FGRVALUES_LINE-ZX_FGR1  IS INITIAL.
    *                 selektierte Firmengruppe übernehmen
                      ZX_FGR1     = FGRVALUES_LINE-ZX_FGR1   .
                      CALL METHOD NAVIGATION->SET_PARAMETER
                            EXPORTING NAME  = 'ZX_FGR1'
                                      VALUE = ZX_FGR1.
             ENDIF.
          CATCH CX_SY_CONVERSION_ERROR .
       ENDTRY.
    works properly as it should be ...
    An enormous Thanksgiving to you , Brian !!!!

  • Issue with editable cell of a tableVIew...

    Hi All,
    I have a tableView with 4 fields, one of the fields QUANTITY is editable .
    Now for ex. if there are 5 rows in the TV , if the user selects all 5 and then enters value for QUANTITY field and clicks on the SUBMIT button , the user is navigated to the next page and i can capture these values in my itab,
    but if the user selects one row and enters value for QUANTITY field  and then selects the second row , ROWSELECTION event is triggered and the page is refreshed ,
    so when the page is displayed agan the value enterd in the QUANTITY field for previous row  is gone and the fiels becomes blank.
    how to show the value for this field , after the page is displayed again after refreshing????
    Thanks,
    Anubhav.

    Hi Raja,
    I really cantfigure out how to solve my isuue using your code.
    The code for my TV is:
    <htmlb:tableView             id              = "material"
                                               headerText      = "Materials"
                                               headerVisible   = "true"
                                               design          = "alternating"
                                               visibleRowCount = "10"
                                               fillUpEmptyRows = "true"
                                               onRowSelection  = "MyEventRowSelection"
                                               selectionMode   = "MULTILINEEDIT"
                                               table           = "<%= itab_materials %>" >
                              <htmlb:tableViewColumns>
                                  <htmlb:tableViewColumn columnName="MATNR" title="Material Number" width="150">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="MAKTG" title="DESCRIPTION" width="200">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="VERPR" title="PRICE" width="150">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="QUNTY" title="QUANTITY" edit="TRUE" width="200">
                                  </htmlb:tableViewColumn>
                                  <htmlb:tableViewColumn columnName="MEINS" title="UNIT" width="150">
                                  </htmlb:tableViewColumn>
                              </htmlb:tableViewColumns>
                           </htmlb:tableView>
    ITAB_MATERIALS has folowing fields:
    MATNR
    MEINS
    MAKTG
    VERPR
    How to capture the value of FIFTH field QUANTITY and display it when the next row is selected and the page is refrehsed?
    Thanks,
    ANubhav.

Maybe you are looking for

  • Plant specific fields in the material master for product move

    Hi, SAP gurus, My scenario is we are moving a existing product in US plant to Brazil plant. What are the fields in the material master that are specific to a plant that will change. For ex MRP controller will change from plant to plant. Like that can

  • SNC parameters in Connector properties of System in EP.

    Can anyone explain the parameters that deal with SNC in the connector categories when we create a new System in EP. I need to conenct to an R/3 backend system using SNC via portal. Currently i can aces that system using SNC but via the SAP Launch Pad

  • Number representation of a string..

    Hi all, I want to get a number representation of a string. The string could be anything. I do not need to be able to convert it back. How can I do this? No length or adding up the char codes is not good as ABD would be the same as BAD etc. Well - A h

  • Special Characters in Create Table......

    How can I use & sign in the column name in Create Table Statement: Create Table (aa&bb varchar2(10));

  • OIM 11g install

    On Windows, OIM 11g install stops due to OracleMTSRecoveryService not running. When i try to run the service, its gives an error saying a ssytem could not find the file specified. Not sure what file its talking about. Anyone help with this?