Table Edit Position Property issue

Hi,
I have Table, which holds and displays 2D string array. I want to save edited positons in an array. I am using "edit positon" property, however this property shows next "ready-to-edit" position. I am subtracting 1 from row and setting active cell and and I am changing BG color for example.
More precisely:
The table holds "0,000" strings as data in all cells. I am clicking row 8, col 0 and changing value to 1,000 and then pressing "Return" key. but Edit Position property shows me the next cell row 9, col 0, where the cursor currently is. I can subtract 1 from row to find the "last-edited" positon. But it gets confuses if I enter some value in the last row. If I give "1,000" in the last row, for example row 15, col 0, cursor jumps to row 0, col 1 as expected. But Edit positon shows row 0, col 1 instead of row 15, col 0.
How can I get "real" edited/changed position?

Hi there,
i thing i understood your task pretty well. 
Your right, "edit position" gives you the position where your are currently editing a cell. As soon as you hit "retrun" or "tab" the new "edit position" is one row respectively one column further.
I used a event structure and the selection start property to find the "real" edited/changed position, as follows:
Let me know if this helps you.
best regards

Similar Messages

  • Can not deselect edit position in table control

    A table control has a property called editpos.  This property returns the cell cordinates for the cell that the use is editing and is writeable.  The property correctly returns -1 and -2 values depending if a header is selected or nothing is selected, however, if a -1 or -2 is written to the property it just selects cell 0,0.  Is this behavior a bug?
    I wanted to input -2,-2 to deselect the current cell that is being edited.  Anyone have another idea on how to achieve this?

    Thank you for the reply.  Actually, I am not interested in the table data.  I am only interested in the current edit position within the table control.  The table property editpos states
    Edit Position Property
    Property of Table.
    The row-column pair index of the current text entry. Values of (0,0) indicate the top-left text entry. A value of –1 indicates the row or column header. Values of (–2, –2) indicate that no edits are being made to the text of the control. This property does not set text focus on a control that does not already have text focus.
    Since the property returns cordinates for selected column headers (-1,x), row headers (x,-1) or no selection (-2,-2).  I was surprised if I tried to write a value of -1 or -2 to either the row or colum it would act as if I had typed a 0.  For example, (-2,-2) would select cell (0,0) and (-1,4) would select cell (0,4).  This behavior seemed like a bug to me or should at least be noted in the property help file.
    I did manage to find a solution for my particular problem however.  Since I am not trying to move to the header row or column and just wanted to deselect the current edit position I just set KeyFocus to false.

  • Tree edit position without top left cell change

    I'd like to use a tree control to allow users to input comments on the parents and siblings in the first column. However, when I use the edit position property node, it moves the left most visible column to the edit position column. Anyway around this? I know I can just let the user do the default double click with the pause in between, but its kind of annoying.
    VI shows a tree, with the behavior I don't want, and a multicolumn listbox, with the behavior I do want. I don't use the listbox because I want the tree parent/sibling structure
    Michael
    Message Edited by miguelc on 06-04-2008 01:20 PM
    Attachments:
    tree.vi ‏21 KB

    Hi miguelc,
    I must admit, this issue baffled me for quite some time.  Thus, it's only fitting that the solution was staring us right in the face   Simply contract the length of the second column so that it does not extend past the edge of the Tree control!  You'll notice that the Multicolumn Listbox is susceptible to the same behavior if the second column is expanded to the edge.  I've attached your VI with these changes to demonstrate.
    Peter K.
    National Instruments
    Attachments:
    tree1.vi ‏21 KB

  • Use of Position property breaks code ONLY in combination with DAQmxBase VIs

    In my application for an PDA (Windows mobile 5.0) I set some Double-Indicator-Controls visible and arrange them on the screen depending on the state of some checkboxes.
    That works fine. But when I place one of the DAQmxBase VIs in my block diagramm, the application crashes when the programm tries to use a Position property of an indicator.
    The DAQmxBase VI is never called it is only inside the block diagramm!

    Hi,
    It is by design that groups are collapsed when entering or leaving inline edit mode on a custom list that uses group by, inline editing, and has groups collapsed by default.
    There is no hotfix currently,
    our product group is aware of the issue and they are currently investigating the issue.
    The current workarounds for this issue are 1) to have groups expanded by default, or 2) to re-expand the
    group each time the inline
    editing mode is changed.
    Xue-mei Chang
    TechNet Community Support

  • Tables belongs to goods issue note

    can you plz send me the tables belongs to goods issue note, and how much stock is issued to the customer according to the sales order for a particular period.......
            if you dont understand this question <REMOVED BY MODERATOR>
    thanks in advance
    Edited by: Alvaro Tejada Galindo on Feb 28, 2008 12:41 PM

    Hi,
    What do your find in your table, <b>TNAPR</b> also you can compare the same with other clients. Feel free to revert back.
    --Ragu

  • Record level lock on SAP ABAP table editing

    Hello All,
    I have a requirement wherein I need to give users ability to be able to update contents of a table. Currently, there are using maintenance view on the table for adding/editing contents of this table. However, this prevents other users from being able to enter the table and edit contents of other records within the table.
    Can anybody please guide me how do I go about giving record level edit lock on the table instead of entire table edit lock.
    Appreciate all responses.
    Thanks and Regards,
    Samta.

    Ok
    I  have had a request like yours, i.e the users could manage the same table in the same time.
    The standard behavior avoids it, because a lock of entire table is set.
    This was my solution:
    A) I've created a maintenance view for my table, and I set the attibute S (for subset) for all fields will be the key I want to lock.
    B) I've generated the maintenance table program for the view above.
    In this way if it try to manage the view by SM30, it'll be possible only to indicate the  values of the fields for the subset, so not all data of the table will be loaded, but only the records satisfying  the key.
    C) I've created a program to run SM30 for my view, using the fm VIEW_MAINTENANCE_CALL:
    .CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
           EXPORTING
                action      = 'S'  "Display mode
                view_name   = <table name>
           TABLES
                dba_sellist = tb_sellist
           EXCEPTIONS
                OTHERS      = 14.
    As you can see above, the SM30 is always called for DISPLAY only, in this way no standard lock is set
    D) I've use the event 19 in order to change the mode and set my lock:
    DATA: BEGIN OF MY_LOCK,
              MANDT       TYPE ZPPTA019-MANDT,
              WERKS       TYPE ZPPTA019-WERKS,
              /TRILOG/SE  TYPE ZPPTA019-/TRILOG/SE,
              COD_MOD_TAG TYPE ZPPTA019-COD_MOD_TAG,
            END OF MY_LOCK.
      DATA: W_SEL_LIST TYPE VIMSELLIST.
      DATA: VARKEY TYPE RSTABLE-VARKEY.
      FIELD-SYMBOLS: <MY_KEY> TYPE ANY.
      LOOP AT DBA_SELLIST INTO W_SEL_LIST
        WHERE VIEWFIELD = 'WERKS'
          OR  VIEWFIELD = '/TRILOG/SE'
          OR  VIEWFIELD = 'COD_MOD_TAG'.
        ASSIGN COMPONENT W_SEL_LIST-VIEWFIELD
           OF STRUCTURE MY_LOCK TO <MY_KEY>.
        IF SY-SUBRC = 0.
          MOVE W_SEL_LIST-VALUE TO <MY_KEY>.
        ENDIF.
      ENDLOOP.
      IF SY-SUBRC = 0.
        IF NOT MY_LOCK IS INITIAL.
          MY_LOCK-MANDT = SY-MANDT.
          VARKEY = MY_LOCK.
          CALL FUNCTION 'ENQUEUE_E_TABLEE'
            EXPORTING
              MODE_RSTABLE   = 'E'
              TABNAME        = 'ZPPTA019'
              VARKEY         = VARKEY
            EXCEPTIONS
              FOREIGN_LOCK   = 1
              SYSTEM_FAILURE = 2
              OTHERS         = 3.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            MAINT_MODE = VIEW_ACTION = 'U'.
          ENDIF.
        ENDIF.
      ENDIF.
      CLEAR OLD_019.
    I hope it can help you
    Max

  • InDesign crashes in time of table editing (cell's merge)

    InDesign crashes in time of table editing (cell's merge). Not always, but 1 out of 3 times.

    What version of ID? Is it fully patched? What operating system.

  • DW CS3 fireworks table edit

    DW CS3 fireworks table edit opens Fw, but fw doesn't show the
    .png file correctly.(I can't see the changes on the content areas
    that I made in DW)
    If I attach a behaviour (eg. rollover effect) to the file, it
    works properly in fw. After pressing the "Done" button in fw, it
    closes fw, goes back to DW, but doesn't send the changes to DW.
    Can someone please help me?

    Yep, I had the exact same problem... even the icon didn't
    show correctly in
    the PI.
    I backed up my registry and did a Find for 'Fireworks' and
    deleted all
    references to the old Fireworks versions, even FW8 (I had
    uninstalled it).
    Now I have my icon back and FWs CS3 now works with DW CS3
    I did say, make a backup of the registry before proceeding
    btw :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    "BeardedFlipFlop" <[email protected]> wrote
    in message
    news:f3s6ef$a8h$[email protected]..
    >I created a page from fireworks CS3 opened it up in
    dreamweaver CS3.
    >
    > When I click on the Edit button in fireworks table
    properties, it says
    > "unable
    > to launch c:\program files\macromedia\fireworks mx
    2004\fireworks.exe"
    >
    > I have uninstalled fireworks mx 2004, so I don't
    understand why
    > dreamweaver is
    > still looking for it!!?
    > ( I have pointed fireworks.exe in regedit to 'open' and
    'edit with'
    > fireworks
    > cs3 as PNGs didn't open from windows explorer)
    > Can someone please help me?
    >

  • Table Editing

    How do I model Table Editing with VC?
    I have a Function Module with an Importing Parameter   with a table Type. In VC this is exposed as Input Port where I can add an Input Table. However, the Ouput Port of the Input Table only contains the selected rows of the Input table. But I dont want to select rows. I want to maintain the whole table and wenn I press submit I want the whole table data to be transferred to the function module.
    Is this possible?

    Hartmut,
    Post your email address and I will send you a how-to.
    Cheers,
    Scott

  • Controle the WD table column position Sequence

    HI All,
    How to  controle the WD table column position  (not ALV) in webdynpro as per custom requirnment.
    Column1, Column2, Column3, Column4…………
    I looked into CL_WD_TABLE to see any possibility.
    Can anyone suggest me the right one?
    Thanks
    Gopal

    Hi,
    Can we rearrange the existing columns of nodes by passing the index and column name.
    Unfortunately, No! you have to remove the column and add it.
    As I have already have a component with table need to rearrange the columns.
    Is it a standard component or custom component?
    If it is a custom component, you can rearrange by right click on column and move up/down.
    If it is a standard component, consider deleting the table( Remove Element) in enhancement mode and then create a new Table UI with specified order.  Or, create a post exit in wddomodifyview and then get the table reference and use remove_column( ) add_column( ) methods
    code snippet:
    DATA: lr_table    TYPE REF TO cl_wd_table,
           lr_abs_col TYPE REF TO cl_wd_abstr_table_column,
           lr_col     TYPE REF TO cl_wd_table_column.
      IF first_time EQ abap_true.
    * get table reference
          lr_table ?= view->get_element( id = 'TABLE ). " ID of Table UI
         CALL METHOD lr_table->remove_grouped_column
           EXPORTING
             id                = 'COL1' " column
             index             = 1      " index
           RECEIVING
            the_grouped_column = lr_abs_col.
          lr_col ?= lr_abs_col.
         CALL METHOD lr_table->add_column
           EXPORTING
             index              = 20  " new index
             the_column     = lr_col.
      ENDIF.
    hope this helps u,
    Regards,
    Kiran

  • Cannot use "Edit Mode" property to dynamically open a VI in "run mode"

    Hello,
    I am trying to dynamically open a vi, and would like it to open up in run mode when dynamically called. I am trying to use the "Edit Mode" property to do so by setting it to false before the vi is actually opened by the Open method. However, it always seems to open up in edit mode. Am I doing something obviously wrong here?  I am enclosing a screengrab of the vi.
    Regards
    -Ted
    Attachments:
    openvi.jpg ‏78 KB

    You should use the method Run VI, if you want the VI in the 'Run Mode' without actually running (like ctrl-m), I have no idea how to do that.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Changing Position property of Binding Source does not take effect

    I have a BindingSource, let's call it myBindingSource, whose DataSource is a List(Of myClass).  There are several lines in the existing code that set the Position property of the BindingSource object and the set is effective, e.g. if
    the Position value is 0 and I do this...
      myBindingSource.Position = 1
    ...I can check the value of myBindingSource.Position and it is 1.  However other times (and it may only be when the current value is -1) when I do such a set, nothing happens.  The Position value remains at the previous value, e.g. after the above
    line, SpecimenNavSource.Position is still -1.  I have verified that at that point, the SpecimenNavSource.Count is greater than the value I'm setting, so it's not that it can't find something in that position.
    Any ideas would be greatly appreciated.
    Thanks.
    mamacasc

    Hello,
    Here is a small demonstration project which has a BindingNavigator placed on the form. Pressing Button1 at any position will move bsData to position 0. With that can you show if different from the below what you are doing?
    Public Class Form1
    Private bsData As New BindingSource
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim People As New List(Of Person) From
    New Person With
    {.FirstName = "Karen", .LastName = "Payne"},
    New Person With
    {.FirstName = "Jim", .LastName = "Smith"},
    New Person With
    {.FirstName = "Mary", .LastName = "Olson"}
    bsData.DataSource = People
    AddHandler bsData.PositionChanged,
    Sub(s As Object, ea As EventArgs)
    Me.Text = bsData.Position.ToString
    End Sub
    BindingNavigator1.BindingSource = bsData
    DataGridView1.AllowUserToAddRows = False
    DataGridView1.DataSource = bsData
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    bsData.Position = -1 ' postion is set to 0
    End Sub
    End Class
    Public Class Person
    Public Property FirstName As String
    Public Property LastName As String
    Public Sub New()
    End Sub
    End Class
    Lastly, I peeked at BindingSource.cs, source code for BindingSource and there is nothing there to allow moving below position 0.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Create a table editable in Web dynpro

    Hi,
    I want create a Web dynpro in Abap where there is a table editable. I 'm a beginner of web dynpro anyone could tell me how to do?
    Thank you.

    Please check the PDF and Let me know the status.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1
    Kanagarja L

  • How to make a table editable?

    hi all,
    do u know how to make a (ABAP Webdynpro ESS screen)  table editable?
    is it through ALV or Table ?
    thanks

    Hi,
    actually to make the table activated u have to append initial lines to ur table.so first make an internal table like of ur node then append initial lines to this and then bind it to the node.code is given below.in case of further query u can ask me.
    DATA lo_nd_cn_dartdetails TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_dartdetails TYPE REF TO if_wd_context_element.
      DATA ls_cn_dartdetails TYPE wd_this->element_cn_dartdetails.
      DATA lt_table TYPE wd_this->elements_cn_dartdetails.
      DATA ls_table TYPE wd_this->element_cn_dartdetails.
    navigate from <CONTEXT> to <CN_DARTDETAILS> via lead selection
      lo_nd_cn_dartdetails = wd_context->get_child_node( name = wd_this->wdctx_cn_dartdetails ).
      do 5 times."(as many lines u want)
        append ls_table to lt_table.
      enddo.
      lo_nd_cn_dartdetails->bind_table( lt_table ).

  • VerticalScrollBar.Position Property

    Hi All,
    I'm developing an automation application with VB6 against SAP GUI 6.20 for Windows using MiniSAP.  When I set the Position property of the VerticalScrollBar it works the first time but the next time it causes MiniSAP to crash and I have to re-load from scratch!
    Funny thing is that VBScript works fine, it's just the VB6 automation component that has the problem.
    Has anyone else seen this problem and do you know if there is a fix or workaround?
    Many thanks in advance for your help!

    David, I believe you want "Splitter Position" not "Position"... See attached.
    Charles Chickering
    Charles Chickering
    Architecture is art with rules.
    ...and the rules are more like guidelines
    Attachments:
    splitter_positions.vi ‏8 KB

Maybe you are looking for

  • All apple apps are crashing

    Hello everyone! I have a Macbook Pro i purchased at the start of this year. It's been working beautifully. I recently installed Transmit (ftp program). I've noticed since then my macbook is constantly dying. Not sure if it's related to that app or no

  • Opinions on G3 450mHz B&W as home server or network backup system

    Hi all, I just got a G3 450mHz Blue and White Server and am using it as a jukebox right now but was thinking of also using it as a backup machine for my other macs. So my question is am I better just getting an ethernet switch and using file sharing

  • Local Pricing Procedure for Import PO

    Dear Experts, While creating the Import PO, the system is picking Local pricing procedure even after maintaining the following; 1) Document Type: Import PO 2) Vendor Type : Import Vendor 3) Schema Group : Import 4) Schema Group P.Org & Sch. grp Vendo

  • Re: HP Probook 4520s with wifi problems !

    my name-vedant eknath ekawde buletooth drawars download hp probook 4520s

  • Set_thread_id Segmentation fault

    Hello, I want to use set_thread_it to do some multi-process work,but i always got a Segmentation fault when open a database after i use the set_thread_id function. the code is: static void thread_id(DB_ENV *, pid_t *, db_threadid_t *); int main(int a