Line Binding with table Cell issue

Hello,
In my application I need to map data from one table to another table. please see snap from below link
http://www.pixhost.org/show/3449/12902612_column-linking.png
if you see the snap you will come to know that I have Map Name "Pankti" from Left Table to Name "Isabella" from right Table.
I have used my custom tableView Control.
I have Bind Line cordinates as below
line.startXProperty().bind(lefttb.widthProperty().add(lefttb.layoutXProperty()));
line.startYProperty().bind(lefttb.lastcell.getTableRow().layoutYProperty().add(lefttb.lastcell.getTableRow().heightProperty().add(lefttb.lastcell.getTableRow().heightProperty().add(-12))));
line.endXProperty().bind(righttb.layoutXProperty());
line.endYProperty().bind(righttb.lastcell.getTableRow().layoutYProperty().add(righttb.lastcell.getTableRow().heightProperty().add(righttb.lastcell.getTableRow().heightProperty().add( -12))));
Here lefftb = LeftTableView
righttb = RightTableView
lastcell is a selected cell of tableview
I have added these control in Group Container.
MyProblem is :
When I scroll in any tableview then the relationship between data are lost and Line had start showing wrong relationship.
in above example if i scrolled RightTableview then see the result from Below Links
http://www.pixhost.org/show/3800/12903076_column-map1.png
http://www.pixhost.org/show/3800/12903157_column-map2.png
http://www.pixhost.org/show/1297/12903283_column-map3.png
So what should i do so that my Line always show correct relationship??
Please download my sample code from
http://www.freefilehosting.net/columnmapsample
or
http://www.filefactory.com/file/4w3dpn0l27rj/n/ColumnMapSample.rar
Thank You,
Ronak

Hi Roank ,
I think your approach of mapping the table using TableCell is not correct because the tablecell is updated everytime you scroll,click and other events. Although I can't give you full guide but the algorithm must be something like this:
+ Use the index of table cell or item Object instead of using the tableCell.
+ The index of cell is get from cell.getIndex();
Implementation
+ If the mapping is to be done then you must first save the index of two table in a Map<integer,integer> .
+ Now update the line of mapping only if the index matches in the cellfactory (during update of the table cell).
  Otherwise the line x,y must be set to the last known x,y position of that tablerow indexI think this way the things goes correctly. One thing to remember that tablecell is always updated.
Thanks
Narayan

Similar Messages

  • How can I have multiple lines in a table cell???

    hi
    how can I separate lines in a table cell in LV5.1.1??
    EndOfLine doesn't work, neither does CR or LF..
    has anybody an idea???
    thanks

    thanks.. but there is nothing like "multi line input" in my LV (5.1.1).. I think it might be impossible to
    do it in 5.1.1, it's really time to upgrade ;-)
    cheers

  • How to wrap a line in a table cell in adf

    How do I wrap a line of text in a table cell?

    Yes, I tried that. But I have 2 sets of information. I want it to wrap exactly at the start of the second piece of information
    So I am trying to use noWrap in combination with width. How else can I do this. appending \n does not work

  • Lines in shaded table cells do not render properly in pdf created in Word 2010

    When creating a pdf with shaded table cells using MS Word 2010; the black lines in the shaded table cells do not show up when looking at the page at a fit page view (anything under  around 60%). They print, they are there when I zoom in, but will not show up if you zoom out.
    I read a forum post in Adobe here which gave some really logical suggestions, but they didn't seem to work for everyone or the level of effort was not what i can put into it. I also tried some of those and variations of those; but they didn't seem to work.
    http://forums.adobe.com/thread/305508
    Did anyone come up with a solution? Some people were saying it's a bug in pdf software, if that is the case, has anyone heard of a resolution?
    I'm using Windows 7 and word 2010 btw, to create the pdf.
    Thanks!!

    Just as a test, have you tried the MS plugin for PDF creation? I have found with other versions of WORD and Acrobat that PDF Maker and the MS plugin can both fill in dots and dashes on vector graphics (basically what the border is) and yet it comes out correctly with printing to the Adobe PDF printer. Unfortunately I do not have a solution. In my case, it seemed to be related to the vector graphic itself (I could import it to InkScape or other vector graphic tool and save to EMF and it then worked fine. It may be something that MS themselves have messed up in OFFICE 2013. Good luck.

  • Problem with table cell editors - Dropdown by Index, getting lead selection

    Hi experts,
    I have a table editor with 5 columns
    1st column is a Drop Down byIndex.
    My contex looks like this
    AS_DATA(Parent Node cardinality 1.1, selection 0-1)
          HEADER (NODE)
          DETAILS(NODE cardinality 0..n, selection 0-1)
             ACTIVITY_TYPES (NODE cardinality 0..n selection 0-1 ) "node for drop down
             description - attribute
             unit
             quantity
    i have bound details node to table data source.
    i have a tool bar button 'Add Line item' which will add a new line item to the table.
    (i am adding a blank line to the table that is bound to table )
    Its working fine. but when ever i add more than one row, the selection made in the previous rows drop down is lost.
    its initializing. where could be the problem.
    My code
    data LO_ND_INV_TYPE type ref to IF_WD_CONTEXT_NODE.
      data LO_EL_INV_TYPE type ref to IF_WD_CONTEXT_ELEMENT.
      data LS_INV_TYPE type WD_THIS->ELEMENT_INV_TYPE.
      data LV_INV_TYPE type WD_THIS->ELEMENT_INV_TYPE-INV_TYPE.
      data LO_ND_DETAILS type ref to IF_WD_CONTEXT_NODE.
      data LT_DETAILS type WD_THIS->ELEMENTS_DETAILS.
      data LS_DETAILS like line of LT_DETAILS.
      data:  WD_NODE type ref to IF_WD_CONTEXT_NODE,
            LR_ELEMENT type ref to IF_WD_CONTEXT_ELEMENT.
      data LO_ND_INV_PATTERN type ref to IF_WD_CONTEXT_NODE.
      data LO_EL_INV_PATTERN type ref to IF_WD_CONTEXT_ELEMENT.
      data LS_INV_PATTERN type WD_THIS->ELEMENT_INV_PATTERN.
      data LV_INV_PAT type WD_THIS->ELEMENT_INV_PATTERN-INV_TYPE.
      data LO_ND_ACTIVITY_TYPES type ref to IF_WD_CONTEXT_NODE.
      data LT_ACTIVITY_TYPES type WD_THIS->ELEMENTS_ACTIVITY_TYPES.
      data LW_ACTIVITY_TYPES type WD_THIS->ELEMENT_ACTIVITY_TYPES.
        data LO_EL_ACTIVITY_TYPES type ref to IF_WD_CONTEXT_ELEMENT.
    *     navigate from <CONTEXT> to <DETAILS> via lead selection
        LO_ND_DETAILS = WD_CONTEXT->PATH_GET_NODE( PATH = `AS_DATA.DETAILS` ).
        LO_ND_DETAILS->GET_STATIC_ATTRIBUTES_TABLE(
          importing TABLE = LT_DETAILS ).
    * Append an empty row to lt_details
        append LS_DETAILS to LT_DETAILS.
        LO_ND_DETAILS->BIND_TABLE(
        NEW_ITEMS = LT_DETAILS ).
    * Get values for dropdown
    call method WD_ASSIST->GET_ACTIVITY_TYPE
          exporting
            I_INV_CAT_ID     = LV_INV_PAT
          importing
            ET_ACTIVITY_TYPE = LT_ACTIVITY_TYPES.
        LW_ACTIVITY_TYPES-ID = 'Select a Activity type'.
        LW_ACTIVITY_TYPES-TEXT = 'Select a Activity type'.
        insert LW_ACTIVITY_TYPES into LT_ACTIVITY_TYPES index 1.
        loop at LT_DETAILS into LS_DETAILS.
          LV_TABIX = SY-TABIX.
          LR_ELEMENT = LO_ND_DETAILS->GET_ELEMENT( LV_TABIX ).
          WD_NODE = LR_ELEMENT->GET_CHILD_NODE( 'ACTIVITY_TYPES' ).
    *lv_index = wd_node->get_lead_selection_index( ). " it is dumping at this statement when i try to get lead selection
          WD_NODE->BIND_TABLE( NEW_ITEMS =  LT_ACTIVITY_TYPES ). " data for dropdown
        endloop.
    any clue on what am i missing will be appreciated.
    I am getting dump when i try to get the lead selection
    Ajay

    You only have only one option in the DDI to display in the example. when you have multiple values
    i assume that by adding an empty row like this will lose the SELECTION MADE in DDI. (Correct me If i am wrong)
    somehow i believe that we need to bind the DD values using  SET LEAD SELECTION INDEX METHOD FOR THE DDI when they are already selected and trying to BIND.
    *LO_ND_DETAILS->GET_STATIC_ATTRIBUTES_TABLE(*
          *importing TABLE = LT_DETAILS ).*
    ** Append an empty row to lt_details*
        *append LS_DETAILS to LT_DETAILS.*
        *LO_ND_DETAILS->BIND_TABLE(*
        *NEW_ITEMS = LT_DETAILS ).*
    even though the above code will have the selected value, the SELECTIONS MADE will be initialize.
    you need to bind it explicitly.
    you have to create an element and bind the DDI values for adding an row as SARAVANAN said.
    or i guess you can continue with you code but need to use SET LEAD to display the correct SELECTIONS MADE
    loop at LT_DETAILS into LS_DETAILS.
          LV_TABIX = SY-TABIX.
          LR_ELEMENT = LO_ND_DETAILS->GET_ELEMENT( LV_TABIX ).
          WD_NODE = LR_ELEMENT->GET_CHILD_NODE( 'ACTIVITY_TYPES' ).
          WD_NODE->BIND_TABLE( NEW_ITEMS =  LT_ACTIVITY_TYPES ). " data for dropdown
    *" try to set the desired value in the DDI when you have multiple values using SET LEAD*
        endloop.

  • Want Flash movie to scale with table cell. NOT WORKING!

    Greetings;
    I have authored a Flash movie and it is working fine. When I
    use the html page output by Flash it scales fine but when I cut and
    paste this code into a table cell the movie will not scale (in
    Firefox) and not showup at all in IE 7.
    Help appreciated. Here is the html page output by Flash:
    http://www.howardbakerphotography.com/gallery/bakerGallery.html
    (Scaling fine)
    Here is the content placed inside a simple table cell:
    http://www.howardbakerphotography.com/gallery/index3.php
    (Only shows up small not scaling)
    Help appreciated.
    Rip

    Found the solution myself! It appears the problem was in the
    document type I was declaring:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    *The above was preventing my Flash from scaling when placed
    in a table cell. When I changed it to:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN" >
    It worked fine.
    I'd be curious to know a little more about this problem if
    anyone else has some insight ...
    Is this document type I've gone to now an older one and going
    to eventually go away?
    Rip

  • Problem with table cells

    Hi,
    actually i wanted to know that is there any way
    so that i can show contents of a table cell in two pages, i.e, half the cell is in one page and other half of the cell on another page
    as my cell content is very large it do not fit in one page.
    I'm using InDesign CS3
    Thanks

    Hi,
    As I've already written in another post, that depends on, but I'm not sure that using a table structure is always the best way! 

  • How to keep last line together with table?

    Hi guys,
    I am new to Reports , so please excuse me for probably primitive question.
    I am creating consolidated invoices report consisting of invoice date + 2 last lines of company signature like Yours, XXYYY Ltd.
    Depending on number of lines in invoice data it is possible that only these 2 signature lines are printed on last page.
    How to force keeping them together with invoice data?
    Thanks in advance,
    Asnate

    Hi,
    If you have repeating Invoice lines, and they are filling up your page, then there is no other option but to orphan the "Yours, XXYYY Ltd" onto another page.
    Somethings you can do increase the amount of space on your page is decrease the size of your top and bottom margins, and also make sure you have no excess whitespace either in your template or within your placeholders.
    Unfortunately, anything that is displayed after a table of repeating lines, where there is no limit to the number of lines, is susceptable to being orphaned, as there is no guarantee that it will fit onto the page.
    Hope this helps,
    Cj

  • MessageLovInput binding with table

    I am using uix/struts/bc4j. I would like to fill messageLovInput with data taken from a table. Can it be done by using some binding? If not, I would need to fill it from some provider - but how to pass values to provider from table bindings? Thanks a lot for any help.

    Hi,
    probably your problem is not in the HTMLB code, but in the controller class. I don´t see any error here and corresponds to my developments, too.
    I suggest that you set a breakpoint in the place in DO_HANDLE_EVENT where you catch the event that is triggered with the button. Once there in debug mode, create a watch point and see where the value for model->GT_EIF_MASS get´s lost.
    By the way, the correct code is model->GT_EIF_MASS and not model>-GT_EIF_MASS.

  • How to show line feeds in table cell

    Dear Expert,
    Now we meet one question,we have a long text which include many line feeds,when show it in a cell of one table in smartform.we can only see the line feeds become to  some ##. not do the ENTER or TAB..
        For example, the show like below:
        ABECDEF#MNIOPHN
       not
       ABECDEF
       MNIOPHN
    So, Would you like to tell me how to do?
    Thanks&Regards,
    Kerry

    Hi Kerry,
    You can use the attributes of class: cl_abap_char_utilities
    If it_longtext is the table which contains your longtext data.
    DATA:  c_new value cl_abap_char_utilities=>newline,
                v_ltxt type string.
    loop at it_longtexts into wa_longtexts.
      concatenate v_ltxt wa_longtexts-text_line  into v_ltxt.
    endloop.
    refresh it_longtexts[].
    split v_ltxt at c_new into it_lontexts.
    Regards,
    Swarna Munukoti
    Edited by: Swarna Munukoti on Dec 4, 2009 11:44 AM

  • Dealing with Table Ownership Issues

    I'm trying to migrate our database from SS7 to O9i; however, all of the tables in the SS7 database are owned by "dbo", which seems to translate as "null" in the OMWB, and when the OMWB tries to create a table in the new model with an ownership of "null", it throws an exception.
    Is there a way of configuring the OMWB so that it can create tables as a particular user when it encounters "dbo" in the SS7 database? This would be better for us than trying to reassign ownership in all of our SS7 tables.

    Hi richard,
    See my answer in your another issue:
    Error message while migrating SS7 to O9i
    I hope it helps you
    Mireille

  • How to control the force return in table cell data?

    I have some xml format files.When I import them into FrameMaker,They display as table data.but when the data is very long in table cell,I want to control the new line by myself.for example,I add some \r\n in my xml file data,then in FrameMaker,It can identify the \r\n, force return.In framemaker I don't know the actual symbol that means the newline.How Can I deal with the problem?thank you!

    Hi Russ,
    yes, but you have to agree that forcing a return in the SOURCE content is really not a wise thing to do - It would be better to break the content into multiple paragraphs or used an XSLT to determine the column width and insert your own breaks in a version of the XML for rendering in Frame. If, at a later date, your templates in Frame change to allow wider columns in your table, then you'd have to go back into the source code and change every occurrence of the c/r in the data - Yeuch! Better to transform the data once, before importing into Frame and then if the col-width changes it is a simple task to change the width in the XSLT - personally, I would make sure the EDD and DTD allows multi-lines in the table cell and then break-up the data to fit the table cell size in an XSLT before importing. Then you don't taint your source code...and it is quite easy to do this is an XSLT...

  • Read select line in the table

    hi,
    can any one tell me how we code to get the selected line in the display table
    thanks.

    Hi ,
    1.Just select a row of table and click on button to read the value of selected row.
    2. In the OnAction of button, just read the context node binded to the table using Code wizard(Control + F7).
    3. below menttioned code will be automatically genearated and selected value's content will be stored in ls_cn_flight :
    DATA lo_nd_cn_flight TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_flight TYPE REF TO if_wd_context_element.
      DATA ls_cn_flight TYPE wd_this->element_cn_flight.
    * navigate from <CONTEXT> to <CN_FLIGHT> via lead selection
      lo_nd_cn_flight = wd_context->get_child_node( name = wd_this->wdctx_cn_flight ).
    * get element via lead selection
      lo_el_cn_flight = lo_nd_cn_flight->get_element(  ).
    * get all declared attributes
      lo_el_cn_flight->get_static_attributes(
        IMPORTING
          static_attributes = ls_cn_flight ).
    CN_FLIGHT is the node binded with table.

  • Problem with Tables

    InDesign CS5.5
    Opening a blank document.
    Creating 3 Paragraph styles: "Table Header" (bold font), "Table Footer" (italic font), "Table Body" (normal font).
    Creating 3 Cell styles: "Header" (black fill), "Footer" (gray fill), "Body" (white fill).
    Assigning Paragraph styles to the respective Cell styles.
    Assigning Cell styles to a Table style called "[Basic Table]".
    Creating a text frame.
    Inserting a table: 4 rows, 2 collumns, 1 header, 1 footer. Table style: "[Basic Table]"
    Result:
    Header row/cells, Footer row/cells, and Body rows/cells all have proper color fills, but the cell styles for all of them is shown as "none", except the Footer row, which for some reason has "none+" style. Inspite of cell styles not being properly assigned automatically, the paragraph styles for Header and Body rows are automatically set correctly. But the footer row/cells is having the "Table Body" paragraph style assigned to it. Even manually assigning the "Table Footer" cell style to the footer row/cell does not pick up the paragraph style corresponding to that cell style.
    If I choose "[No Table Style]" when creating a new table, and then assign the "[Basic Table]" style to it, all the rows/cells pick up proper paragraph style, but the cell styles are still set to "none".
    Where does this magic come from? Will Adobe ever put their isht together and start making software that actually works for the amount of money it costs? Or are we forced to pay ridiculous prices for using beta software for the rest of our lives?
    Mac OS X 10.7.2

    Imworkinghere wrote:
    If I choose "[No Table Style]" when creating a new table, and then assign the "[Basic Table]" style to it, all the rows/cells pick up proper paragraph style, but the cell styles are still set to "none".
    Aren't they set to "none" for the same reason as the Character Style Panel says "none" when the formatting of a character style is applied because it is specified as a nested style by a paragraph style? The formatting of the lower-level style is applied because the higher-level style is referenceing or "grabbing" it, but not the lower-level style itself. Such lower-level styles can be superimposed by explicitly applying them in the relevant style panel.
    The interplay of styles and formatting involved with tables+cells+paragraphs are even trickier than the two levels of paragraphs and characters, because there is an even more complicated, multi-level "cascade" involved. A cell style's formatting (but not the style itself) is applied by the higher-level entity's style, and that formatting sets the lower-level entity's style itself. I would argue that that alternating pattern is logical, but maybe I'll attempt it some other day! The difficulty is compounded by various other factors, such as a paragraph style's "next style" automatically setting the following paragraph's style when a table is created.
    The complexity of whole business makes me reluctant to call it a "bug", it's so easy to get lost here!

  • Tree view with editable cells?

    Hi,
    I have written a GTK+-2 based graphical visualizer for the NEC2 antenna simulation and analysis tool http://www.qsl.net/5b4az/pages/nec2.html and I am now considering a companion graphical editor for the NEC2 input file. This file is normally produced with a text editor and specifies antenna geometry and then commands to calculate various data regarding antenna characteristics (gain, input impedance etc).
    Luckily the original NEC2 was written in FORTRAN and the input was punched cards with a fixed format, so the current file format is line-based and with a fixed number of parameters per line: you can get an idea by looking into examples files in http://www.qsl.net/5b4az/pkg/nec2/examples/
    What I need is an idea on how to code a graphical line editor with editable cells for each parameter and the ability to add or delete lines as needed. The data in the cells may be numerical or textual or both and there may be inter-relations between cells, e.g. one cell may have a value that is a fixed proportion of another cell's value etc.
    Tips please? Thanks!

    tranquility wrote:
    Well, just about any language with bindings for gtk will work in a very similar manner. If I understand correctly, you might want to investigate the GTK treeview and GTK CellRenderer classes. Try to check the tutorials too.
    Hope this helps.
    Yes, thanks! Unfortunately though there is no easy way to have a spin button type editable cell, which would have been best for my needs. However, I found an example in a tutorial for the TreeView which could make a basis for a home brew second-best solution! 

Maybe you are looking for

  • My connection via hdmi to my TV is no longer working. Even if I use a thunderbolt to hdmi converter

    Hi, the day before yesterday I turned on my tv which was connected via HDMI out on the mac mini to HDMI in on my TV. Everything was working fine, however I have been trying to set up dual monitoring on another monitor using an HDMI to VGA adapter to

  • How to access a file in the network shared drive

    Hi, I have a pdf file in a netwoek share drive which opeates on windows platform. I want to access this file. the path to the file looks something like this acddfd\sap\sapdir\myfile.pdf I have tried gui_upload , gui_download , ws_upload and ws_downlo

  • Messages stuck in SMQ2

    Dear All, I have configured a scenario Mail to PROXY Asynchronous. Process is working fine But every time transaction happen all messages are stuck in R/3 - ECC . A  developer needs to release these messages manually using SMQ2. what is the reason fo

  • Procedure help

    Hi there, I am trying to write a procedure which calculates the remaining time from two different tables. The problem hereby is that one table (TBL_TIMESHEET) has the total for each day whereas the total for each day from the other table (TBL_COSTING

  • Box asking if Mozilla Firefox can make changes to the computer harddrive

    A box appeared on the screen asking if Mozilla Firefox can make changes to the computer harddrive. I contacted Trend Micro Security and they said Mozilla Firefox wouldn't want to make changes on my harddrive. I have just paid for a technician to remo