Skip navigation
Currently Being Moderated

Table rows same height -Urgent

Jul 8, 2010 5:17 AM

Good day,


I want two tables when they grow to be the same height, The tables are next to each other.

I have this code under the add new row button :






subformIndex = this.parent.parent.parent.index;

OutputReviewMainTable.OutputMainTable.Row1.instanceManager.addInstance (1);



rows = xfa.resolveNodes("Scorecard.Page1.flowedHorzontal.OutputReviewMainTab le.OutputMainTable.Row1[*]");



tableH = 0;



(var i = 0; i < rows.length; i++){


= tableH + xfa.layout.h(OutputReviewMainTable.OutputMainTable.Row1, "mm");





+ subformIndex + "].OutputReviewTables.OutputSPOTable.Row1.Output_Rev_Objective").h = tableH + "mm";


this code works perfectly under the AddNewRow button, it helps the two tables grow equally, that is they have the same height. I tried putting the same code under the initialize event, so that when the xml populates the two table rows,they have the same height, but its like I didnt do anything.


Is there a way for me to solve this problem, please help me, I've now run out of ideas.





  • Currently Being Moderated
    Jul 8, 2010 5:26 AM   in reply to SirAce

    When you add that code to the Initialize you will probably have to force a lyout to occur (this layout happens automatically when you add a row). So try adding the command xfa.layout.relayout() to the end of your initialization script.



    Mark as:
  • Currently Being Moderated
    Jul 8, 2010 6:25 AM   in reply to SirAce

    If you send your form to I will have a look and see if I can figure out why itis not behaving.



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points