TableView and  iterator

I have a check box that was added thru iterator.
How do you stay in the same page of the tableview after clicking a check box?
Example.
there are 4 pages with 5 rows each. If i checked a box in page 4, it always goes to  page 1.

What you can do is create a button and make the user click on the button..
Then the onClick Event of the button, use the code to read value..!
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.

Similar Messages

  • Error in displaying hierachry report with TableView and Tableiterator

    Hello,
    I tried to create a BSP as shown in this tutorial:
    /people/vijaybabu.dudla/blog/2008/08/04/display-hierarchy-report-in-bsp-using-tableview-and-tableview-iterator
    When starting the BSP I get an error that a field symbol is not assigned in the method get_column_name.
    When debugging the method get_column_name I can see that row_ref is initial. So the field symbols <row> and <col> are not assigned to any values, which causes the error some lines below.
    METHOD get_column_value .
    *-To get the Column values which is used in the Interator
      FIELD-SYMBOLS: <row> TYPE ANY, <col> TYPE ANY, <cur> TYPE ANY.
      ASSIGN row_ref->* TO <row>.
      ASSIGN COMPONENT column_name OF STRUCTURE <row> TO <col>.
      DATA tempchar(240) TYPE c.
      IF currency IS NOT INITIAL.
        ASSIGN COMPONENT currency OF STRUCTURE <row> TO <cur>.
        WRITE <col> CURRENCY <cur> TO tempchar.
        MOVE tempchar TO column_value.
        CONCATENATE column_value ` ` <cur> INTO column_value.
      ELSE.
        WRITE <col> TO tempchar.
        MOVE tempchar TO column_value.
      ENDIF.
      CONDENSE column_value.
    ENDMETHOD.
    Any help?
    Thank you

    Hi Patrick,
    Thank you for the answer.
    Unfortunately there is still the error with the unassigned field symbol after implementing the render_row_start method.
    Any help?
    Edit: It works now. There was an error with a wrong variable name (stupig mistake.)
    Thanks for the help!
    Edited by: Robert Karlovic on Mar 5, 2009 10:29 AM

  • Checkbox  in a table loop - without using Tableview or Iterator.

    My client doesnt want to use tableview or iterator. We are using basic html to create the page. I know I can accomplish much easily using tableviews...but I am not allowed to use it.
    My requirement is simple. In my layout I loop at my internal table and display the contents. The last field is displayed as a checkbox.
    Ex:
    Name  status flag
    Tom  10         [ ]
    Ted    20        [X]
    Rob    10       [X]
    My loop in the Layout is as below:
    <%
      loop at t_rqdt into l_rqdt.
      if l_rqdt-flag = 'X'.
         l_chk = 'checked'.
      endif.
    %>
    <tr bgcolor="#EFEFEF">
    <td></td>
    <td <%= l_rqdt-name %> </td>
    <td <%= l_rqdt-status %></td>
    <td class=tdstatus width=40% >
    <input type=checkbox name="flag" value="flag" <%= l_chk %> > </td>
      </tr>
    <%
      endloop.
    %>
    When I select couple of rows and mark the flag field checkbox, and SUBMIT at the end, and when I see my internal table t_rqdt field r_rqdt-flag.. I dont see them having value X for the rows I marked the check boxes.
    Can anyone please help me how can I trap the checkboxes marked inside a table loop in my on input processing?
    Thanks
    PK

    Much Thanks Raja! It worked!!
    I declared as below for the form fields and was able to get values.
        DATA:  t_form_fields TYPE tihttpnvp.
        DATA:  l_form_fields TYPE LINE OF tihttpnvp.
        CALL METHOD request->get_form_fields
          CHANGING
            fields = t_form_fields.
    One more before my client asks me to do..
    if I place a button CheckALL and Uncheck All on the layout, how can we check/uncheck all the checkboxes on the client side. Any simple Javascript method available? I know I can pass the itab to on input processing and get the flags set, but if it can be achieved on the client side using a script that would help.
    Please let me know.
    Thanks.

  • Tree In TableView Using Iterator

    Can I creat a Tree in a TableView using Iterator( Which is implemented as a local class in a Model Class)

    Hi Manish,
    Your question is not that clear. Can you explain more?

  • Ipad2, I can not sign in to imessage after turning it off and doing a hard reboot. Upon entering my info it states no network connection, but I can use it o surf in Safari and iter websites. Any suggestions. Went on with Apple, they think its my network.

    Ipad2, I can not sign in to imessage after turning it off and doing a hard reboot. Upon entering my info it states no network connection, but I can use it o surf in Safari and iter websites. Any suggestions. Went on with Apple, they think its my network. All other wireless equipment can ign on without problems. This happened after I turned imessage off.

    Step by step, how did you arrive at seeing this agreement?

  • Enumeration and Iterator

    what is the different between Enumeration and Iterator ?

    http://forum.java.sun.com/thread.jspa?threadID=596382&tstart=255

  • Reverse Strings using rercursion and iteration

    Hi,
    I really need some help, am quite new to java and am struggling.
    I want to design 2 methods, both 2 reverse strings.
    1) uses StringBuffer and iteration
    2) uses Strings and recursion
    I would be greatful for any advice or help.
    Thanx xxxxx Nats xxxxxx

    Oh, you need to do it using both methods.... Sorry, didn't realise it was coursework :)
    Using StringBuffer and iteration
    public StringBuffer reverse(StringBuffer buff) {
        int halfLen = buff.length();
        int len = buff.length();
        for(int i=0; i < halfLen; i++) {
             char c1 = buff.getCharAt(i);
             char c2 = buff.getCharAt((len - i) - 1);
             buff = buff.setCharAt(i, c2);
             buff = buff.setCharAt((len - i) - 1, c1);
        return buff;
    }And for String using recursion
    public String reverse(String str) {
        char[] chars = new char[str.length];
        str.getChars(0, chars, 0, str.length());
        reverseChars(chars, 0, str.length() / 2);
        return new String(chars);  
    private reverseChars(char[] chars, int index, int halfLen) {
        //* end condition
        if(index >= halfLen) return;
        topIndex = (chars.length - 1) - index;
        char tmp = chars[index];
        chars[index] = chars[topIndex];
        chars[topIndex] = tmp;
        reverseChars(chars, ++index, halfLen);
    }I only wrote this code on the fly so things may break but it is a start.

  • Contrast �waterfall� development and iterative development

    could anyone tell me how to contrast �waterfall� development and iterative development??
    Thx

    Waterfall development means spending an afternoon in a Hawaiian waterfall with a bikini-clad native.
    No matter what your professor tells you, real professionals like me prefer this method. The books are trying to discourage you from it because they want to keep those natives to themselves.
    %

  • What does salt and Iteration mean

    What does salt and iteration mean in the constructor of PBEKeySpec

    A key is generated from your PBE password using MD5 hashing.
    To make it more difficult to attack
    1) the hash is initialised with a 'salt' value before hashing the password,
    2) the result of first hashing is hashed iteratively the number of times given by the 'iteration' count parameter with the final hash value being used as the key.

  • TableView and TablePosition problem

    Hi,
    I have a little problem about the use of TablePosition for the TableView control.
    I use a listener on tablePosition to get the selected rows. Here's the code:
            ObservableList<TablePosition> tablePositions = getSelectionModel().getSelectedCells();
            tablePositions.addListener(new ListChangeListener<TablePosition>(){
                public void onChanged(Change<? extends TablePosition> change) {
                    ObservableList<? extends TablePosition> tablePositions = change.getList();
                    List<AccountLine> accountLines = new ArrayList<AccountLine>();
                    for (Iterator<? extends TablePosition> it = tablePositions.iterator(); it.hasNext();) {
                        TablePosition tablePosition = it.next();
                        int row = tablePosition.getRow();
                        Log.getLogger().fine("getItems().size()="+getItems().size()+",row="+row);
                        if ((getItems().size()>0) && (row<=getItems().size())){
                            AccountLine accountLine = getItems().get(row);
                            accountLines.add(accountLine);
                        }else {
                            Log.getLogger().severe("Unable to get row for row " + row + " and items size()="+getItems().size());
                        }After clearing the items of the tableView ( getItems().clear() ), I set items for tableView ( getItems().setAll(_items) ), it throws an exception 'cause of the row index which is -14 (see below).
    My question is, why row index is -14. Normally if I clear the table, there will be no selection of rows, row index of table position must be -1 ?
    [AccountTable$2:onChanged] FINE getItems().size()=1203,row=-14
    ecomptes2.view.DialogView$1 handle
    GRAVE: null
    java.lang.ArrayIndexOutOfBoundsException: -14
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sun.javafx.collections.ObservableListWrapper.get(Unknown Source)
         at ecomptes2.control.AccountTable$2.onChanged(AccountTable.java:85)

    Could you please file a bug at http://javafx-jira.kenai.com. Put it under 'runtime' and set the component to 'control', and I'll take a look at it as soon as possible. Ideally you'd attach a small test application that demonstrates what you're doing.
    Thanks,
    -- Jonathan

  • Htmlb:tableView and group building

    Hi,
    in abap alv-lists, it is possible to build groups like you can see in the following example:
    4711 12345 asdfaslöfkj
    4711 68686 asdfljsadflj
    4711 97777 salfjljfaksl
    and now in abap-alv
    4711 12345 asdfaslöfkj
         68686 asdfljsadflj
         97777 salfjljfaksl
    Is this possible with htmlb:tableView or something like this?
    Regards,
    Jens

    Yes you can make the first column to display data at the first appearance only as a Grouping. For this in the Iterator GET_Column_definition method set the FIXEDCOLUMN attribue of the column definition structure tableviewcontrol for which the grouping should apply(in your case first column).
    Code goes like this...
    data: ls_col_def  type tableviewcontrol.
      clear ls_col_def.
      move: '<FieldName>'    to ls_col_def-columnname,
            'Icon'          to ls_col_def-title,
            'X'             to ls_col_def-encode,
            'X'             to ls_col_def-FIXEDCOLUMN,
            '1%'            to ls_col_def-width.
      append ls_col_def to p_column_definitions.

  • How to pick max value from a column of a table using cursor and iteration

    Hello Everybody
    I have a table loan_detail
    and a column in it loan_amount
    now i want to pick values from this table using cursor and then by using iteration i want to pick max value from it using that cursor
    here is my table
    LOAN_AMOUNT
    100
    200
    300
    400
    500
    5600
    700i was able to do it using simple loop concepts but when i was trying to do this by using cursor i was not able to do it .
    Regards
    Peeyush

    SQL> SELECT MAX(sal) Highest_Sal,MIN(sal) Lowest_Sal FROM emp;
    HIGHEST_SAL LOWEST_SAL
           5000        800
    SQL> set serverout on
    SQL> DECLARE
      2    TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
      3    sal_tbl tmp_tbl;
      4    CURSOR emp_sal IS
      5      SELECT sal FROM emp;
      6    counter INTEGER := 1;
      7  BEGIN
      8    FOR i IN emp_sal LOOP
      9      sal_tbl(i.sal) := counter;
    10      counter := counter + 1;
    11    END LOOP;
    12    DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
    13    DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
    14  END;
    15  /
    Lowest SAL:800
    Highest SAL:5000
    PL/SQL procedure successfully completed.
    SQL> Even smaller
    SQL> DECLARE
      2    TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
      3    sal_tbl tmp_tbl;
      4    CURSOR emp_sal IS
      5      SELECT sal FROM emp;
      6    counter INTEGER := 1;
      7  BEGIN
      8    FOR i IN emp_sal LOOP
      9      sal_tbl(i.sal) := 1;
    10    END LOOP;
    11    DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
    12    DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
    13  END;
    14  /
    Lowest SAL:800
    Highest SAL:5000
    PL/SQL procedure successfully completed.
    SQL> Edited by: Saubhik on Jan 5, 2011 4:41 PM

  • TableView and horizontal scroll bar

    Hi
    I need to show horizontal scroll bar in my TableView - there are many columns in my view. I tried to put it into the ScrollPane but it takes no any effect.. Is there any ability to make scrollable treeview via FXML layout file?
    My code is
    <ScrollPane fitToHeight="true" fitToWidth="true" hbarPolicy="ALWAYS" VBox.vgrow="ALWAYS">
    <content>
    <TableView fx:id="resultsTbl">
    <columns>
    <TableColumn text="col 1" prefWidth="60" />
    <TableColumn text="col 2" prefWidth="60" />
    <TableColumn text="col 3" prefWidth="130" />
    ........cut....
    </columns>
    <items>
    </items>
    </TableView>
    </content>
    </ScrollPane>
    Thanks
    Edited by: 918392 on 02.03.2012 4:51

    OK. If I understand you correctly, you want the table view to fill the scroll pane width when the total column width is less than the scroll pane width, but show a scroll bar when the total column width is greater than the scroll pane width. Is that right? If so, I don't believe that is currently supported. I think there is a feature request for it, but JIRA is down right now so I can't tell for sure.
    Feel free to submit a feature request for this if you like, and we'll mark it as a duplicate if necessary.

  • Tableview and horizontal scrollbar

    Hi !
    I'm having problem on showing horizontal scroll bar in a dynamic tableview.
    My situation is:
    TabPane
    ---|___Tab
    -------------|_TableView
    If i add more columns than i can view i would like to see an horizontal scroll bar.
    Right now, extra columns do not care about my will ! :)
    Do you have any idea?
    thank you!
    Edited by: fabsav on 31-mag-2013 16.27

    This should happen automatically. For example, if you run the example code in {thread:id=2543320} and add enough columns, the scroll bar appears. It's possible you need to put the table in some other kind of container.

  • Using TableView and MVC

    I have a problem with TableView. I use TableView to display a table which is an attribute of my model class.
    Code in the view looks like this:
      <htmlb:tableView
           id            = "TEST_ID"
           table         = "//model/t_selected_employees"
           selectionMode = "MULTISELECT" />.
    I also have a few buttons on this view, when the button is pressed in DO_HANDLE_EVENT method I append a line to table but when the next DO_HANDLE_DATA method occurs table flushes. All other parameters stay filled.
    Thank you for future help.

    your code in do_handle_event should luk like this now :
    ************Code .
    DATA:
    lt_string_table TYPE string_table.
    CHECK NOT event IS INITIAL.
    IF htmlb_event_ex->event_name = xhtmlb_events=>buttongroup AND
    htmlb_event_ex->event_type = xhtmlb_events=>buttongroup_click.
    DATA: ls LIKE LINE OF model->t_selected_employees.
    CASE htmlb_event_ex->event_defined.
    WHEN 'TEST'.
    call model->insert_line.
    ENDCASE.
    ENDIF.
    Code ends.
    in Model class create the insert_line methos and put your append code there as  :
    mothod insert_line.
    ls-num = 55. ls-pernr = '00001280'. ls-fio = 'TEST'.
    APPEND ls t_selected_employees.
    endmethod.

Maybe you are looking for

  • Iphone and outlook contact issue

    Whenever I enter or edit a contact on my iphone it shows up in outlook with the first name, last name reversed = Smith,John. I have changed settings in outlook from file as field both ways to no avail. Anyone else having this problem, any fix? Thanks

  • How to clean the asm instance from RAC manually

    for some reason i run crs_unregister asm and crs_unregister lsnr to remove the asm and listener resource from crs yesterday and today i want rebuild the asm instance ,so i run dbca again ,but error Error when starting ASM instance on node rac1: PRKS-

  • HT4848 Have tried everything...forgot password to Macbook Pro.  Help?

    I have tried every suggestion without calling and paying for assitance.  I have lost the password to my MacBook Pro...Anyone?

  • Which Color LasterJet Printer should Ibuy for iBook G4 on wireles network?

    I have been told that the "all in one" printers, ex.) HP, etc...are not good for wireless printing with the iBook G4's. I want to reccomend a decent Color LaserJet for my sister. She just bought an iBook G4, first person ever in the family to purchas

  • Performance based maintenance plan

    I am trying to schedule my performance based plan under two conditions:- In the first factor,I have kept my initial counter reading as 0 as on today,my cycle as 2000 hrs,estimated as 2500 hrs. An my plan date is calculated as  24.10.12. In the second