PageFragments BackingBean scope table binding issue

Hi,
We have an ADF table (with id resultTable) in a page fragment and we have a binding for it in backingBeanScope. A page can have multiple page fragments embedded as regions and popups. All of these pageFragments have ADF table with the same id (resultsTable). We observed that when we bind these tables to backingBeanScope, the table columns are getting jumbled. We are seeing few columns of one table appear in other.
When we change the binding to pageFlowScope, every thing seem to work fine.
binding="#{pageFlowScope.ResultsBean.resultsTable}"> --- This is working fine
binding="#{backingBeanScope.resultsTable}"> --- Columns are getting jumbled with this
We are not able to figure out why this is happening. Is it because we are using the same resultsTable variable in backingBeanScope for all tables in all page fragments and popups? Any help is highly appreciated.
Thanks,

Hi,
you need to let us know how you integrate the page fragments to the page. Are you using ADF Regions? Which Oracle JDeveloper version do you use ?
Note that the difference between the two options of yours
binding="#{pageFlowScope.ResultsBean.resultsTable}"> --- This is working fine
binding="#{backingBeanScope.resultsTable}"> --- Columns are getting jumbled with this
is that using the pageFlowScope, all tables use the same data instance. Also, why is #{backingBeanScope.resultsTable} not #{backingBeanScope.ResultsBean.resultsTable} ?
Frank

Similar Messages

  • Lifecycle issue with table binding + read-only attributes: ADF BUG

    Hello all,
    I have found what I believe to be an easily reproducible bug in ADF that reproduces in 10.1.3.x, but not in 11g (at least not in drop 6). The best way to describe the bug would be to walk through a simple set of steps to reproduce the bug:
    1). Create a new application (ADF BC + ADF Faces).
    2). In the model project, create a new Entity Object from the Employee table in the default HR schema. Allow JDev to create an updatable view object and an AM as well.
    3). Put a validation rule on the first name attribute of the EO (can be anything, really - I made mine so that the first name cannot be "foo").
    4). Test everything using the BC tester if you like.
    5). In the UI project, create a new JSPX page.
    6). Drag the updatable VO on to your page as an updatable af:table.
    7). Put an af:commandButton on the page. Bind its Action or ActionListener to a method in a new backing bean. Put some simple code (I used System.out.println) in the backing bean method.
    8). Run the jspx page.
    9). Put some invalid data in (e.g. "foo" in the first name field) and click the af:commandButton. Verify that you get an error message and that the Action/ActionListener method DOES NOT fire. So far, so good.
    10). Now, to demonstrate the problem. First, look at the page definition for the jspx file. Identify the first attribute that is mentioned (in my case, it was the employee id).
    11). Go to the updatable view object and make the attribute from #10 read-only or updatable when new only.
    12. Now, repeat step 9 - you should see the error message AND also see that the Action/ActionListener method was executed. You will also see in the messages window that ADF attempted to set the value of the read-only attribute, and thus got a ReadOnlyAttrException.
    This issue only happens if the first attribute mentioned in the table binding is read-only. A workaround would simply be to re-order the attributes in the table binding of the pagedef so that the first attribute isn't read-only.
    Don't ask how I figured this out ;)
    Best,
    John

    Hi Frank,
    Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
    It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
    At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
    John

  • BackingBean scope

    Hello   ADF experts, can you please  clarify my  question.   I have read in some blog   saying  in backingBean scoped bean,  the fields  should be marked as transient.       If the bean  is in  backingBean scope, should we still make the fields  transient ?   BackingBean scoped bean and requestScoped beans need not be seartilized and hence  I do not find any point in making the fields transient !!   Anyway we do not implement Serializable inerface and why is it need to make the fields transient ?
    thanks

    The Jdev version can make a difference, if you use Jdev 9.0.3. In your case, no, it doesn't make a difference.
    Ok, let's think about the problem. A bean in backing bean or request scope will not be serialized so they don't need to implement this interface. On the other side I don't see a disadvantage in doing so nonetheless. If you bind a component to a bean, regardless of the scope, this variable can't be serialized as ui components are not serializable. In a cluster environment this will cause errors. However, if you set the variable to transient the bean can be serialized but after reading it back the info you had is no longer there.
    Eugene Fedorenko blogged about this here ADF Practice: Managed Bean Scopes for Component Binding and mentioned a solution available for Jdev versions 11.1.1.4.0.
    Summary: I don't see a reason to mark attributes transient. A problem I see doing this is that the bean don't know which scope it's used in. This decision is made when you use the bean in a task flow. Think about what happens if you decide that the bean is used in view score for one task flow. This will crash the application in production under heavy load as the bean would brr serialized empty. From this point of view you should always implement the serializable interface.
    Timo

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

  • Attachment binding issue in workflow

    Hi All,
    I have used FM 'SAP_WAPI_ATTACHMENT_ADD ' in method of my workflow. Here after executing this FM i m getting id of the attachment for this workitem. But now i need to assign this to  '_Attach_Objects' of workflow container. so please help me for this binding issue. which i need to bind from method to> task to> workflow. so from next step onwards in workflow i will get that attachment.
    Smit Shah

    Hi,
    1) In the T.code SWO1, you have to create a custom method for the BO, there execute that method and check whether it working fine
    2) Then goto  T.code PFTC and Create a Task (Task no. will generate automatically), then call this method and generate the binding
    3) Goto  T.code SWDD and call that Task by assigning that Task no. and assign the binding
    Then test your workflow.
    For the Binding see this [link|http://help.sap.com/saphelp_nw04/helpdata/en/c8/bfc39b0fc57a49a0291378f8be0cd6/frameset.htm].
    Regards,
    Surjith

  • ADF -how to create table binding when view object is no known until runtime

    I want to programmatically create a table binding to a view object where the view object name is not known until run-time. Then I will use a dynamic table to display it. Can anyone provide an example?

    I looked at example #9. It gets me closer to what I am looking for but not quite enough. In my case, I don't have (or want in this case) a pageDefinition with a pre-declared Iterator binding. I am converting an exsisting BC4J/Struts/JSP application. I would like to rewrite my reusable component tags to make use of ADF bindings and Faces. My tags are passed the ApplicationModule and ViewObject names as parameters, much like the old BC4J datatags. I do not want to go back and rewrite all of my pages from scratch using drag-and-drop declarative bindings with a pageDefinition for every page. I am hoping to have my rewritten tags handle everything programmatically based only on the ViewObject name passed at run-time.

  • Updating a table binded to a database

    HI,
    I am using a table binded to a table inside a database. How can the database be updated when a new row is added to the database. I am using the persist command in a separate session EJB to add the new row.
    thanks
    Ray

    you mean how can the datatable be updated when the database is updated.
    Use Ajax to poll for a change I suppose. Perhaps you could set a session variable or something that says that the data is dirty, check that value through an Ajax call and then refresh the datatable when the variable is true (don't forget to set the variable to false again, or else the table keeps updating!)

  • Error in table binding (Select an attribute of type string)

    Dear All,
    I'm doing the <i>TUT_FLIGHTLIST</i>example of the webdynpro. Now i'm struck at the step of Table Binding. <b>System says that error for UI element...select an attribute of type string.</b>. Please suggest.
    Thanks,
    Anup.

    Hi,
    May be you trying to bind TextView UIElement in table to a contextAttribute of type other than "String".
    Please change the UIElement type.
    Regards, Anilkumar

  • JSFF BackingBean scope

    Hello!
    I have a page composed of a region and jsff
    according to this doc; http://docs.oracle.com/cd/E12839_01/web.1111/b31974/web_getstarted.htm#BABBHGJA
    any backing beans for page fragments or declarative components should use BackingBean scope
    The backingbean's constructed is executed everytime thus resets my variables, How can I make it sessionscoped?
    I tried regisitering session scoped using annotations
    @ManagedBean
    @SessionScoped
    adf-config.xml
    faces-config.xml
    in the taskflow definition file
    everything! but the constructor is called multiple times
    thanks in advance please help!

    Let me get this straight, I am trying to understand
    Should I have two Beans per jsff? (If I need to carry state) one backingbean for the components (gettters/setters) and the other a session or pageflowscoped bean where I keep the state of my variables such as lists, strings, etc?
    and from the backingbean access those variables?
    Do you have a simple example you can show me? I was checking the blog Timo Hahn provided, I need an example, please!
    I created my session scoped bean and assign it to the backing bean ( that I already have) How should I access programatically from my backingbean a variable that is in a session scoped bean?
    and in my adfc-config.xml I have this
      <managed-bean id="__21">
        <managed-bean-name>beanSessionRegistrarGuia</managed-bean-name>
        <managed-bean-class>siat.view.backing.transporte.guia.SessionScopedBeanRegistrarGuia</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    <managed-bean id="__15">
        <managed-bean-name>backing_transporte_guia_frm_registrar_guia</managed-bean-name>
        <managed-bean-class>siat.view.backing.transporte.guia.Frm_registrar_guia</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1transporte/guia/frm_registrar_guia.jsff-->
        <managed-property id="__22">
          <property-name>beanSessionRegistrarGuia</property-name>
          <property-class>siat.view.backing.transporte.guia.SessionScopedBeanRegistrarGuia</property-class>
          <value>#{beanSessionRegistrarGuia}</value>
        </managed-property>
      </managed-bean>According to the blog
    private UIManager _uiManager;
    //Which should be exposed via a getter and setter pair with names that match the managed property name (e.g. setUiManager(UIManager _uiManager), getUiManager()). In my backing bean I do this
    private SessionScopedBeanRegistrarGuia sessBean;//+gettter and setterIn my SessionScoped Bean I have this
        public SessionScopedBeanRegistrarGuia(){
            System.out.println("I AM SESSION SCOPED BEAN");
        }This SOP is called but then I get error:
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:El ciclo de vida de Faces recibe excepciones no tratadas en la fase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10004: no se puede definir la propiedad de bean gestionado 'beanSessionRegistrarGuia'
         at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1900)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1109)
         at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:511)
         at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:157)
    ....MORE ERRORSEdited by: diego10 on 22-may-2013 8:21

  • ADF table selectionListener issue

    In the table,
    1.When clicking the first row, the selectionListener can be not invoked.
    but clicking the others row, the selectionListener can be invoked.
    2.After clicking clicking the others row, go back to click the first row, the selectionListener can be invoked.
    What is the wrong with the selectionListener?
    as the following is the related code.
    <af:table value="#{bindings.VtRequests.collectionModel}" var="row"
    rows="#{bindings.VtRequests.rangeSize}" summary="#{vtcentraluiBundle.CLOUD_MANAGEMENT_ALL_REQUEST_TITLE}"
    emptyText="#{bindings.VtRequests.viewable ? vtcentraluiBundle.VT_EMPTY_TEXT_NO_DATA_TO_DISPLAY : vtcentraluiBundle.VT_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.VtRequests.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.VtRequests.collectionModel.selectedRow}"
    selectionListener="#{vtRequestRegionViewBean.handleTableSelection}"
    dontPersist="selectedRowKeys"
    rowSelection="single" id="resId1"
    columnStretching="column:resId1c2">
    <f:attribute name="EM_dontPersistSession" value="selectedRowKeys"/>
    <af:column id="colh" rowHeader="true" width="10"/>

    the above post of mine also says the same thing. and the solution is to disable the autoselection.. only.
    just follow the steps
    1) create a table binding for the table component in the managed bean namely - empTable
    2) This will create the following code in managed bean
    private RichTable empTable;
        public void setEmpTable(RichTable empTable) {
            this.empTable = empTable;
        public RichTable getEmpTable() {
            return empTable;
        }3) update the getter method like this
        public RichTable getEmpTable() {
           if(empTable != null){
              empTable.getSelectedRowKeys().clear();
            return empTable;
        }

  • [svn:cairngorm3:] 17187: Fixed binding issue on the source property of the contact's picture

    Revision: 17187
    Revision: 17187
    Author:   [email protected]
    Date:     2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxml

    Revision: 17187
    Revision: 17187
    Author:   [email protected]
    Date:     2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxml

  • [svn:cairngorm3:] 17186: Fixed binding issue on the source property of the contact's picture

    Revision: 17186
    Revision: 17186
    Author:   [email protected]
    Date:     2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxml

    Revision: 17186
    Revision: 17186
    Author:   [email protected]
    Date:     2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxml

  • BackingBean Scope issue.

    Hi,
    I am using JdEV 11.1.1.2.0. I have an ADF table on the page with 100 records and rangsize is set to 25.
    On the page i have one button to get the selected row and call the procedure.
    If I select a 50th record in 100 records and click on button, I am getting the following added exception in the server log. But this issue is not reproducing if I select a record with in rangesize i.e. 25.
    These are my viewObject Tuning properties:
    All rows.
    Fill Last Page of rows when paging throw Rowset.
    Passivate State
    Access Mode: Scrollable.
    Please help me to fix this issue.
    Server Log:
    <UIXPageTemplate><tearDownVisitingContext> Tear down of page template context failed due to an unhandled exception.
    java.util.NoSuchElementException
         at java.util.ArrayDeque.removeFirst(ArrayDeque.java:251)
         at java.util.ArrayDeque.pop(ArrayDeque.java:480)
         at oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl.popContextChange(ApplicationContextManagerImpl.java:66)
         at oracle.adf.view.rich.component.fragment.UIXPageTemplate.tearDownVisitingContext(UIXPageTemplate.java:242)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.encodeEnd(ContextSwitchingComponent.java:157)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:221)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    <Dec 21, 2009 3:58:35 PM MST> <Error> <HTTP> <BEA-101020> <[ServletContext@4711920[app:ESPSApp module:ESPSApp-ViewController-context-root path:/ESPSApp-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:189)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:596)
         at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:414)
         at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:392)
         at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
         Truncated. see log file for complete stacktrace
    >
    <Dec 21, 2009 3:58:35 PM MST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Dec 21, 2009 3:58:35 PM MST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Dec 21, 2009 3:58:35 PM MST SERVER = DefaultServer MESSAGE = [ServletContext@4711920[app:ESPSApp module:ESPSApp-ViewController-context-root path:/ESPSApp-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:189)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:596)
         at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:414)
         at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:392)
         at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:517)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    Thanks.

    Hi,
    Thanks for your reply.. Please find the source code:
    Table Code:
    <af:table value="#{bindings.CmProcessView35.collectionModel}"
    var="row"
    rows="#{bindings.CmProcessView35.rangeSize}"
    emptyText="#{bindings.CmProcessView35.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CmProcessView35.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.CmProcessView35.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmProcessView35.collectionModel.makeCurrent}"
    rowSelection="single"
    binding="#{backingBeanScope.backing_app_RunCalcPage.t4}"
    id="t4" inlineStyle="height:400px;" width="510" partialTriggers="::q1">
    <af:column sortProperty="ProcessType" sortable="true"
    headerText="#{bindings.CmProcessView35.hints.ProcessType.label}"
    id="c19">
    <af:outputText value="#{row.ProcessType}" id="ot19"/>
    </af:column>
    <af:column sortProperty="Description" sortable="true"
    headerText="#{bindings.CmProcessView35.hints.Description.label}"
    id="c17" width="300">
    <af:outputText value="#{row.Description}" id="ot8"/>
    </af:column>
    <af:column sortProperty="ArgumentsFlag" sortable="true"
    headerText="P - Flag"
    id="c18" width="70">
    <af:outputText value="#{row.ArgumentsFlag}" id="ot20"/>
    </af:column>
    </af:table>
    Page Def Code:
    <iterator Binds="CmProcessView3" RangeSize="25"
    DataControl="ESPSAppModuleDataControl"
    id="CmProcessView3Iterator"/>
    BackingBean Code:
    RowKeySet rowKeySet = (RowKeySet)this.t4.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.t4.getValue();
    String process = null;
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding)cm.getRowData();
    process = rowData.getAttribute(0).toString();
    if (process != null) {
    System.out.println("activeFlag is : " + activeFlag);
    if(activeFlag.equals("N")){
    ---------- Perform some operations...
    }else{                   
    sendMessage("Process Selection is Invalid.", FacesMessage.SEVERITY_ERROR);
    }else{               
    sendMessage("Please select a process to submit the job.", FacesMessage.SEVERITY_ERROR);
    Thanks.

  • 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

  • SQL query / binding issues on my web page

    This may or maynot be the place to ask, but maybe someone can
    tell me what
    to look at...
    I created a page some time back.. and its displays a few
    fields of data
    based on the id passed to it..
    This works fine, but now that we are trying to improve the
    site a little,
    they want some additonal information displayed
    on the page.. so those changes were made about 2 weeks ago...
    now that some
    of the newer records contain the data
    they want displayed, some data is not displaying.. or it will
    display and
    other fields ( that were displaying before ) are now
    missing.. the web page hasnt been touched in 2 weeks.. if we
    execute the
    store procedure within SQL and within our web program
    it always returns the correct data.. but the fields that i
    have binded to
    the page are taking on a life of there own...
    Not sure if anyone has had this problem, but its getting
    annoying.. when i
    execute this within SQL it returns all the values requested.
    If i execute it
    within dreamweaver to show me what results i will get back it
    works there..
    but after i bind the fields to my page and view it only some
    or all my
    fields do not display any data... but if i play around with
    the order of my
    select statement below i can get some fields to display and
    other
    disappear... and i dont ever touch my webpage again...
    Can anyone shed some light on this issue? Or is there a
    better way to
    display my results so that what i get back with my query will
    always
    display....
    here is my stored procedure that im calling
    SET NOCOUNT ON;
    SELECT
    c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
    h.cdatet,h.startdate,h.managername,h.termby,
    availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
    availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
    availsat1,availsat2,h.comby,ssn_dash = dbo.SSN_dash(cssn),
    Home = dbo.PhoneNumber_complete_format(chphone),
    Mobile = dbo.PhoneNumber_complete_format(cmphone),
    Other = dbo.PhoneNumber_complete_format(cophone),
    Jobtitle =
    case
    when c.st = '90' then
    (select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
    = h.jobid and
    j.hlocation = 'DC')
    else
    (select top 1 j.jobtitle from has.dbo.JobCodes j where j.hjob
    = h.jobid and
    j.hlocation <> 'DC')
    end,
    (Select T.term_reason
    From has.dbo.termcodes T, has_arc.dbo.EmpTermHistory H
    where T.term_val = H.termcode and h.cid = @cid) as
    TermReason,
    Days = @day,
    Months = @month,
    Years = @year
    FROM has_arc.dbo.EmpCandidate C, has_arc.dbo.EmpTermHistory H
    WHERE C.cid = @cid AND C.cid = H.cid
    END
    ASP, SQL2005, DW8 VBScript

    And when it says read the columns left to right... i would
    imagine that
    means my select statement should select the columns in the
    order of which
    they are in the tables?
    so in my case.. if HomePhone is last column in my table it
    should be the
    last in the select statement?
    ASP, SQL2005, DW8 VBScript
    "Daniel" <[email protected]> wrote in message
    news:[email protected]...
    > Now when you say TEXT type.. your refering to the data
    types i have setup
    > in the database? correct
    >
    > Within the database the fields that im querying are
    pretty much all
    > varchar a few are date and one int
    >
    >
    >
    >
    > --
    > ASP, SQL2005, DW8 VBScript
    > "Joris van Lier" <[email protected]> wrote in
    message
    > news:[email protected]...
    >>
    >>
    >> "Daniel" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> This may or maynot be the place to ask, but
    maybe someone can tell me
    >>> what
    >>> to look at...
    >>>
    >>> I created a page some time back.. and its
    displays a few fields of data
    >>> based on the id passed to it..
    >>> This works fine, but now that we are trying to
    improve the site a
    >>> little,
    >>> they want some additonal information displayed
    >>> on the page.. so those changes were made about 2
    weeks ago... now that
    >>> some
    >>> of the newer records contain the data
    >>> they want displayed, some data is not
    displaying.. or it will display
    >>> and
    >>> other fields ( that were displaying before ) are
    now
    >>> missing.. the web page hasnt been touched in 2
    weeks.. if we execute the
    >>> store procedure within SQL and within our web
    program
    >>> it always returns the correct data.. but the
    fields that i have binded
    >>> to
    >>> the page are taking on a life of there own...
    >>>
    >>> Not sure if anyone has had this problem, but its
    getting annoying.. when
    >>> i
    >>> execute this within SQL it returns all the
    values requested. If i
    >>> execute it
    >>> within dreamweaver to show me what results i
    will get back it works
    >>> there..
    >>> but after i bind the fields to my page and view
    it only some or all my
    >>> fields do not display any data... but if i play
    around with the order of
    >>> my
    >>> select statement below i can get some fields to
    display and other
    >>> disappear... and i dont ever touch my webpage
    again...
    >>>
    >>> Can anyone shed some light on this issue? Or is
    there a better way to
    >>> display my results so that what i get back with
    my query will always
    >>> display....
    >>>
    >>> here is my stored procedure that im calling
    >>> SET NOCOUNT ON;
    >>> SELECT
    >>>
    c.cfname,c.clname,c.cid,h.termcode,h.hiredate,h.lastdate,h.cdateh,
    >>> h.cdatet,h.startdate,h.managername,h.termby,
    >>>
    availsun1,availsun2,availmon1,availmon2,availtue1,availtue2,
    >>>
    availwed1,availwed2,availthur1,availthur2,availfri1,availfri2,
    >>> availsat1,availsat2,h.comby,ssn_dash =
    dbo.SSN_dash(cssn),
    >>> Home = dbo.PhoneNumber_complete_format(chphone),
    >>> Mobile =
    dbo.PhoneNumber_complete_format(cmphone),
    >>> Other =
    dbo.PhoneNumber_complete_format(cophone),
    >>> Jobtitle =
    >>> case
    >>> when c.st = '90' then
    >>> (select top 1 j.jobtitle from has.dbo.JobCodes j
    where j.hjob = h.jobid
    >>> and
    >>> j.hlocation = 'DC')
    >>> else
    >>> (select top 1 j.jobtitle from has.dbo.JobCodes j
    where j.hjob = h.jobid
    >>> and
    >>> j.hlocation <> 'DC')
    >>> end,
    >>> (Select T.term_reason
    >>> From has.dbo.termcodes T,
    has_arc.dbo.EmpTermHistory H
    >>> where T.term_val = H.termcode and h.cid = @cid)
    as TermReason,
    >>> Days = @day,
    >>> Months = @month,
    >>> Years = @year
    >>>
    >>> FROM has_arc.dbo.EmpCandidate C,
    has_arc.dbo.EmpTermHistory H
    >>> WHERE C.cid = @cid AND C.cid = H.cid
    >>> END
    >>>
    >>>
    >>> --
    >>> ASP, SQL2005, DW8 VBScript
    >>
    >>
    >> Are any of these fields by chance of TEXT type (or
    other Binary Large
    >> OBject type)?
    >> In this case there are certain limitations the text
    fields must be the
    >> last in your SQL statement and may only
    >> be retrieved ONCE reliably.
    >>
    >> <%
    >> Dim myTextVar
    >> myTextVar = Recordset.Fields.Item("TEXTFIELD").value
    >> %>
    >> <% If NOT IsNull(myTextVar) Then%>
    >> <%=(Replace(myTextVar, chr(13),
    "<BR>"))%>
    >> <% End If ' NOT IsNull(myTextVar) %>
    >>
    >> Here's an excerpt from the Microsoft Site
    >>
    >> When dealing with BLOB fields from Microsoft SQL
    Server, you must put
    >> them
    >> to the right of non-BLOB columns in the resultset.
    To be safe, you should
    >> also read the columns in left-to-right order, so if
    you have two BLOB
    >> columns as the last two columns in your resultset,
    read the first one and
    >> then the second. Do not read them in the reverse
    order.
    >> MS:
    http://support.microsoft.com/support/kb/articles/q175/2/39.asp
    >>
    >> Joris van Lier
    >
    >

Maybe you are looking for

  • IPhone 5s outgoing call list unknown random phone numbers

    I got a call from a friend yesterday, when I hung up it was a different phone number that what they had called me when I picked up the phone.  I checked my outgoing phone call list and there are a bunch of phone numbers from all over the country.  Wh

  • How to use ls-l command in SAP ??

    Hi, can any one suggest how to use ls-l command of unix in sap to get the details of file like creation date,etc. Thanks.

  • Emails from Inbox moving into Outbox one at a time, can't stop them!!!

    This behavior just started - I'm using Mail 3.6 (936) and OSX 10.5.8. My Outbox contantly has one email in it, and the email is always an old one taken from my Inbox... an email TO me, and not one I am trying to send. If I delete the email from the O

  • IMovie Effect Blanks Screen When Applied

    I have followed the directions below to apply an effect to part of a clip. When I preview the effect, it looks fine. After I apply the effect it blanks out the section where the effect has been applied and there's no sound either. Your help would be

  • Quarter page! Need answer quick!

    How do you make a quarter page? Like for small invitations?