Table1.rows.Add (SOUTH-dialogue)

Hello DIAdem'ler.

erweitern das von internal (neue line am Tabellenende einfügen) im procedures SOUTH-dialogue
Call Table1.Rows.Add
takes pro line approx. 0.3 seconds. (Intel Core 2 Duo 3 GHz, 2 GB Ram, WIN XP SP3)
A 600 bei der ungefahr 3 Minuten procedure takes. Dies nicht sehr effektiv just.

Gestalten schneller Wie kann man diesen procedure?

Oder besser:
There're eine method mit der man eine Tabelle aus dem Script heraus direkt um neue Zeilen X erweitern kann?

Vorab vielen Dank fur people Hilfe, frohe Weihnachten und ein guten Rutsch ins Neue Jahr

Hallo!

ES geht als man vielleicht bed easier:

Table1.rows.Count = Table1.Rows.Count + 600

Bei mir dann 0.3s will take all.

Frohes (rest-) Weihnachtsfest und alles Gute as 2009

Matthias

Tags: NI Software

Similar Questions

  • How to start the exe of SOUTH dialogue

    Hello!

    My problem is: I'm trying to start an exe file by clicking on a button in a dialog SOUTH. Anyone know how to realize that?

    ("Example: Run("C:\Windows\Notepad.exe ")?

    Thank you!

    "Dim command: command =" "" "& Dialog.FilePath &"Script Assistent\TSM Script Assistent.NET.exe"& '"
    Dim shell: Set shell = CreateObject ("WScript.Shell")
    protected status: status = shell. Execute (command, 1, true)
    <>status then
    Err.Raise 6, ' ', ' command returned the error!
    End If

    Dialog.FilePath the path of the southern file conatins.

    Because the command contains spaces, it is important to put it in "."

  • Presentation tabular - when the updated row, add a user id and a time stamp line.

    Hello.
    I have a simple tabular presentation based on a table of four elements: the primary key (seq #), title, Updated_by, Updated_timestamp.
    I want to fill the Updated_timestamp and updated_by fields when a user updates or adds to the table.
    On other forms, I use a calculation to update the page_item in section page_processing of the APEX. However, in the form of tables, I don't know
    where I can update these two fields.
    Any suggestions?

    Thank you! I think the trigger is the way to handle this. Thanks again.

  • Sign up between 2 tables without correspondence with values and keep the number of rows in the first Table

    Hello Experts,

    I have a problem that is a little tricky. Requirement is if 2 columns (region and Code in the tables below) match exactly, then it is Best Fit, if one of the columns match while it is average in shape, if the two columns do not match then it's worse to adapt.

    Create Table Table1 (varchar2 (10), varchar2 (10) of the filter region, Code varchar2 (10), revenue Number (15), owner varchar2 (5));

    Table1:

    Insert into Table1 values ('Test1', 'Midwest', '0900', 3000286, 'P1')

    Insert into Table1 values ('Test1', 'Midwest', '0899', 36472323, 'P2')

    Insert into Table1 values ('Test1', 'Midwest', '0898', 22472742, "P3")

    Insert into Table1 values ('Test1', 'West', '0901', 375237423, 'P1')

    Insert into Table1 values ('Test1', 'West', '0700', 34737523, null)

    Insert into Table1 values ('Test1', 'West', '0701', 95862077, "P3")

    Insert into Table1 values ('Test1', 'South', '0703', 73438953, 'P4')

    Insert into Table1 values ('Test1', 'South', '0704', 87332089, 'P1')

    Insert into Table1 values ('Test1', 'South', '0705', 98735162, 'P4')

    Insert into Table1 values ('Test1', 'South', '0706', 173894762, "P9")

    Insert into Table1 values ('Test1', 'South', '0902', 72642511, 'P6')

    Create Table Table2 (filter varchar2 (10), region varchar2 (10), Code varchar2 (10), plafond1 Number (15), Limit2 Number (15));

    Table2

    Insert into Table2 Values ('Test1', 'ALL', ' 0902', 15000, 10000)

    Insert into Table2 Values ('Test1', 'ALL', 'ALL', 20000, 12000)

    Insert into Table2 Values ('Test1', 'Midwest' ' 0900', 10000, 5000)

    Insert into Table2 Values ('Test1', 'Midwest', 'ALL', 18000, 8000)

    Insert into Table2 Values ('Test1', 'West', 'ALL', 16000, 6000)

    Insert into Table2 Values ('Test1', 'West', '0901', 10000, 5000)

    Final output

    Filter the income Code region owner plafond1 Limit2

    Test1 0900 3000286 P1 10 000 5 000 - Best Midwest (region because both Code Matches)

    Test1 0899 36472323 P2 Midwest 18 000 8 000 - way (because the region corresponds to only), we consider 'ALL' for the Code

    Test1 0898 22472742 P3 Midwest 18 000 8 000 - way (because the region corresponds to only), we consider 'ALL' for the Code

    Test1 West 0901 375237423 10 000 5 000 - Best P1 (region because both Code Matches)

    Test1 West 0700 34737523 16 000 6 000 - medium (because the area corresponds to only), we consider 'ALL' for the Code

    Test1 West 0701 95862077 P3 16 000 6 000 - way (because the region corresponds to only), we consider 'ALL' for the Code

    Test1 South 0703 73438953 P4 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0704 87332089 P1 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0705 98735162 P4 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0706 173894762 P9 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0902 72642511 P6 15 000 10 000 - way (because the Code corresponds to only) we consider 'ALL' for the region

    In the final result, we should have row count equal to Table1, and as soon as there's game (best first, then middle, then the worst), then if is once again, that we should ignore.

    There are other columns in the tables as well.

    Thank you very much!

    As you wish...

    select filter, region, code, region2, code2,
    revenue, owner, limit1, limit2, match
    from (
      select filter, region, code, region2, code2,
      revenue, owner, limit1, limit2, match,
      row_number() over(
        partition by filter, region, code order by match
      ) priority
      from (
        select a.filter, a.region, a.code, a.revenue, a.owner,
        b.region region2, b.code code2, b.limit1, b.limit2,
        case
          when (a.region, a.code) = ((b.region, b.code)) then 'Best'
          when a.region = b.region or a.code = b.code then 'Medium'
          else 'Worst'
        end match
        from table1 a
        join table2 b
        on a.filter = b.filter
        and (b.region, b.code) in (
          (a.region, a.code),
          (a.region, 'ALL'),
          ('ALL', a.code),
          ('ALL', 'ALL')
        )
      )
    )
    where priority = 1
    order by region, code;
    
  • Can't access table row

    I have a table with the numeric fields and need to make the sum of all the lines for a given ciolumn. The path to the field is:

    topmostSubform.Page.Content.Repeater.Table1.Row1.F11a

    The event for the sum field calculate, if I use:

    topmostSubform.Page.Content.Repeater.Table1.Row1.all.length;

    I get a 28 value that is the number of lines is displayed.

    If I use:

    topmostSubform.Page.Content.Repeater.Table1.Row1.F11a.all.length;

    I get a value of 1.

    If I use:

    topmostSubform.Page.Content.Repeater.Table1.Row1.F11a.rawValue;

    I get the value of the first row.

    I need browse all lines. I have read the documentation. None of the examples I have seen are driven by the data in tables. I'm also new to Adobe stuff. If someone could tell me how to navigate through all the lines displayed on the page, I'd appreciate it. Thank you

    There are two ways depending on whether you use Formcalc or JavaScript.

    FormCalc is easy because you can use wildcards - if you are looking for help on ' in order to perform calculations in a table"there's a picture that explains what is happening.

    FormCalc:

    sum (Table.Row [*]. Field [*])

    So in your case I think the following should work: sum (topmostSubform.Page.Content.Repeater.Table1.Row [*]. F11a [*])

    You may not need the full path to the table, depends on where you are in the form.

    JavaScript:

    If you are looking for help on 'calculation of the amounts of the fields' there are examples for making the sum of the fields of extensible types.

    To calculate the sum of the fields in a repeating subform (tables repeating subforms):

    Add a calculate event to the Sum field:
    
    var fields = xfa.resolveNodes("detail[*].NumericField1");
    var total = 0;
    for (var i=0; i <= fields.length-1; i++) {
            total = total + fields.item(i).rawValue;
    }
    this.rawValue = total;
    

    In your case I think that "retail [*]. NumericField1"would be"topmostSubform.Page.Content.Repeater.Table1.Row [*]. F11a.

    Hope that helps!

  • IllegalArgumentException in VerticalFieldManager to add several ObjectChoiceFields

    Hi all

    I'm IllegalArgumentException in VerticalFieldmanager to add several ObjectChoiceFields.

    
    
    VerticalFieldManager row = new VerticalFieldManager(VerticalFieldManager.NO_HORIZONTAL_SCROLL |VerticalFieldManager.NO_VERTICAL_SCROLL);VerticalFieldManager row1 = new VerticalFieldManager(VerticalFieldManager.NO_HORIZONTAL_SCROLL |VerticalFieldManager.NO_VERTICAL_SCROLL); for(int i = 0; i < blackBerryContacts.size(); i++){BlackBerryContact item =(BlackBerryContact)blackBerryContacts.elementAt(i);             choiceP[i] = new ObjectChoiceField("", choiceFld,0, FIELD_RIGHT);
                    int index = choiceP[i].getSelectedIndex();
                    String selectedChoice = choiceFld [index];
                    chkBoxField[i] = new CheckboxField(sb.toString(), true,
                            Field.USE_ALL_WIDTH | CheckboxField.FIELD_LEFT)
                    {
                         //Invoked when this field receives the focus.
                        protected void drawFocus(Graphics g, boolean on)
                        {
                            if (g.getBackgroundColor() != 3098850)
                            {
                                XYRect xy = g.getClippingRect();
                                g.setBackgroundColor(0xf9f8f5);
                                //g.fillRect(xy.x,xy.y,xy.width,xy.height);
                                g.clear();
                            }
                            super.paint(g);
                        }
                        protected void paint(Graphics g)
                        {
                            int x = this.getIndex();
                            XYRect xy = g.getClippingRect();
    
                            if (g.getBackgroundColor() != 3098850)
                            {
                                g.setBackgroundColor(0xf9f8f5);
                                //g.fillRect(xy.x,xy.y,xy.width,xy.height);
                                g.clear();
                            }
                            super.paint(g);
                        }
                        protected boolean navigationClick(int status, int time) {
                            if (this.getChecked())
                                this.setChecked(false);
                            else
                                this.setChecked(true);
                            //fieldChangeNotify(1);
                            return true;
                        }
                    };//----------
                    row.add(chkBoxField[i]);
                    row1.add(choiceP[i]);
                }
    

    chkBoxField can be added in VerticalFieldManager but ObjectChoiceField is exception.

    Please help me.

    Thank you

    DK.

    Unfortunately, ObjectChoiceField does not allow to have another field in the same row. This area needs the line of the screen. When you try to add the field to the line where the ObjectChoiceField - you get an error.

    I recommend the following approach.

    Data model

    public class BlackberryContact {
    
        private String Fullname;
    
      ....
    
      private Vector contactInfo;
    
      public void addContactInfo(BlackberryContactInfo info) {      contactInfo.addElement(info);     ....  }}
    
    public class BlackberryContactInfo {
    
        public final int CONTACT_TYPE_HOME_PHONE = 1; public final int CONTACT_TYPE_WORK_PHONE = 2; public final int CONTACT_TYPE_EMAIL = 3;
    
        // type of contact: phone, email, etc private final int contactType; 
    
      // contact info: phoneNumber, emailAddress    private final String contactInfo;
    
      // constructor, use CONTACT_TYPE_.. constants as contactType      public BlackberryContactInfo(String contactInfo, int contactType) {       this.contactInfo = contactInfo;       this.contactType = contactType;   }   
    
      public int getType() {        return contactType;   }   
    
        public String getInfo() {     return contactInfo;   }   }
    

    VIEW

    Implement a screen to display BlackberryContact, say BlackberryContactView

    Add the text field to refer to and add ListField to view available contact information (emails, phones, etc.).

    Each person can have different qty of coordinates, ListField is the best choice.

    Will look like the screen layout is shown on the picture:

    http://picasaweb.Google.ru/tbilisoft/BlackberryForum#5285460326711217906

  • Add the disk storage format to the script

    All, morning

    I had this script that I use to extract data on the virtual machine and their use of the disk, however I need to say and to report on the type of commissioning the disk and I can not find the command for it

    $VMFS = get-Datastore-Refresh - name "LUN? _VMFS_DS "| Sort-Object $_. Name

    $report = @ data structure empty #)

    $allvms = get - VM | Sort-Object $_. # Name I like sorts my datas

    {foreach ($vm to $allvms)

    $vmview = $vm | Get-view # get - view to see the details of the FM

    foreach ($disk in $vmview. Storage.PerDatastoreUsage) {# disks for the virtual machine

    $dsview = (get-view $disk. Data store) # store data used by drives

    $dsview. Refresh # RefreshDatastoreStorageInfo() to get the latest data

    $vmview. Config.Name # Echo to the screen to view the progress

    $row = "" | Select VMNAME DATASTORE, VMSIZE_MB, VMUSED_MB, blank line # PERCENTAGE

    $row. VMNAME = $vmview. Config.Name # add the data to the line

    $row. DATA store is $dsview. Name

    $row. VMSIZE_MB = (($disk.Committed+$disk.Uncommitted)/1024/1024)

    $row. VMUSED_MB = (($disk.Committed)/1024/1024)

    $row. P = [int] (($row.)) VMUSED_MB / $row. (VMSIZE_MB) * 100)

    $report += $row # add the line to the structure

    }

    }

    $report | Export-Csv dump of # "C:\temp\vm_ds.csv" - NoTypeInformation .csv report

    $DSReport Virgin @ reinscriptible = () # for the information store

    {foreach ($LUN to $VMFS)

    $VMSizeSum = 0 # we will summarize the data from the previous report for this LUN

    $LUN. Name # Echo to the screen to view the progress.

    foreach ($row in $report) {# Generate sum for this LUN

    If ($row. DATA store - eq $LUN. Name) {$VMSizeSum += $row.} VMSIZE_MB}

    }

    # Create a blank line and add data to it.

    $DSRow = "" | Select Datastore_Name, Capacity_MB, FreeSpace_MB, Allocated_MB, Unallocated_MB

    $DSRow.Datastore_Name = $LUN. Name

    $DSRow.Capacity_MB = $LUN. CapacityMB

    $DSRow.FreeSpace_MB = $LUN. FreeSpaceMB

    $DSRow.Allocated_MB = [int] $VMSizeSum

    $DSRow.Unallocated_MB = $LUN. CapacityMB - [int] $VMSizeSum # NB than if we have overused # disk space it will be a negative number

    $DSReport += $DSRow # add the line to the structure.

    }

    $DSReport | Export-Csv "C:\temp\Datastores.csv" - NoTypeInformation # dump make .cs

    This report on everything I need, but it will indicate the type of commissioning. Could you help me at all?

    Thank you very much

    Alex

    Ah, it is a bit of a problem, I'm afraid.

    vSphere provides only the freespace on a level of data store, not by the hard drive.

    There are a number of ways to get the freespace by hard drive, but none of them are foolproof, as far as I know.

    For example have a peek at the post called Alan PowerCLI: using Virtual Machine disc

    This gives the freespace, but an internal view of the BONE. In other words, it shows the OS partition information.

    And mapping of the partitions of hard disk operating system is not simple.

    A good method, which works in most cases, is the method of Arnim Match VM and HDDs in Windows using PowerCLI

  • Erase all the data of the table row

    Is there a small script to make all fields in the same row (whiteboard) null? I want to erase all the data when this row is deleted.

    Hello

    This JavaScript function will reset all the fields in the line taken in;

    function clear (row)

    {

    var resetList = [];

    fields var = row.resolveNodes ("#field [*]");

    for (var i = 0; i)< fields.length;="">

    {

    resetList.push (fields.item (i) .somExpression);

    }

    xfa.host.resetData (resetList.join(","));

    }

    So to remove all data from the second line we could call him for help;

    Clear (xfa.resolveNode("Table1.Row[1]"));

    Hope that helps

    Bruce

  • Looking for a Script add lines in several places in a Table

    Hi all!

    I'm new to InDesign Scripting and I was hunting around trying to find something that would possibly work, and I can't quite find it. I hope someone can help!

    I have a book that has tons of tables in it. They are all from the same table. 2 columns on 10 lines. Here's my dilemma:

    My client wants to add new lines to these tables, specifically:

    • A new line at the beginning of the table
    • A line after the already established 3rd row
    • 3Rows after the already established 9 line

    Is it still possible with a script?

    (I talk about "established" line, because I do not know if once the script adds the first rank at the top of the screen if this then that the numbers from the rest of the lines - and so on, as others are added.)

    Any help would be appreciated.

    Hello

    What is a book for you? A single document or a real Indesign-book-file with multiple documents?

    A single document:

    var curDoc = app.activeDocument;

    var allTables = curDoc.stories.everyItem ().tables.everyItem () .getElements ();

    for (var t = 0; t)< alltables.length;="" t++="" )="">

    var curTable = allTables [t];

    var allRows = curTable.rows;

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [2]);

    curTable.rows.add (LocationOptions.AT_BEGINNING);

    }

    Several documents in a book file:

    This assumes that the file only one book is open!

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

    var curBook = app.books [0];

    var allDocuments = curBook.bookContents;

    for (var n = 0; n)< alldocuments.length;="" n++="" )="">

    var curDoc = app.open (file (.fullName allDocuments [n]));

    var allTables = curDoc.stories.everyItem ().tables.everyItem () .getElements ();

    for (var t = 0; t)< alltables.length;="" t++="" )="">

    var curTable = allTables [t];

    var allRows = curTable.rows;

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [2]);

    curTable.rows.add (LocationOptions.AT_BEGINNING);

    }

    Optional

    curDoc.save ();

    curDoc.close ();

    }

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;

  • Is there a character limit for prompt()?

    I came across a comment on another Web site to the effect that the method overall prompt() will crash PhotoShop if the user types more than 255 characters in the text field. From my brief experience today, I would say that the same limit applies as well to InCopy and InDesign. If anyone else has experienced this?

    I guess that the next step would be to use ScriptUI to create a text input dialog box.

    ... Here's a quick version of a quicker dialogue. I just tested and could paste 29 721 characters in there. No idea where that limit.

    text = largerPrompt ("Hello there!");
    alert ("you entered "+text.length+" characters");
    exit();
    
    function largerPrompt (title)
    {
        var w = new Window("dialog", title);
        var textfield = w.add ("edittext", [0, 0, 500, 300], "", {multiline: true});
        textfield.text = "Paste or type text in here\rUse Ctrl+Tab to insert a Tab, Ctrl+Enter to insert a Hard return";
        textfield.active = true;
        with (w.add("group"))
        {
            orientation = "row";
            add ("button", undefined, "OK");
            add ("button", undefined, "Cancel");
        }
        if (w.show()==2)
            return null;
    
        return textfield.text;
    }
    
  • AutoNumber for several fixed lines

    I often used the AutoNumber for instances of dynamic lines without problem, but now have a problem where my table starts with 3 rows with different content and that the user needs to be able to add and delete rows, while maintaining the automatic numbering.

    I created the table with three rows and each row has the same name (Table1.Row) - I put binding to rehearsal with Initial line Count, the value 1 - No Minimum number

    On a text field in the same row, I use the Calculate event with

    vIndex var = ['b', 'b', 'c'];
    var i = this.parent.index;

    this.rawValue = vIndex [i];

    This product lines with (a), (b) and (c)

    I have a Remove button to each line - Click event

    Table1.row.instanceManager.setInstances (0)

    -It deletes the line I click

    Everything is good so far, but automatic numbering does not recalculate the remaining lines when I delete one.

    Does anyone have an idea how I can get the remaining lines to recalculate? I tried to put

    XFA. Form.Recalculate ();

    in various events, but no joy

    Well - found my own solution. Identical to the above, but

    ' On a text field in the same row, I use the event Layout: ready with.

    vIndex var = ['b', 'b', 'c'];
    var i = this.parent.index;

    this.rawValue = vIndex [i];

    This product lines with (a), (b) and (c) - and the deletion works to remove the line and renumber remaining ones.

  • Generic JavaScript to repeat the line

    Hello!

    I created a dynamic form using LiveCycle Designer ES3.  I put in place a table with a text field in a subform.  This field is nested in the table within a line, called 'Reasons', and this line is allowed to repeat (Figure 1), if the user clicks on the button 'Add another reason' (Figure 2).

    Figure 1

    Figure 1.JPG

    Figure 2

    Figure 2.JPG

    Note in Figure 2 that the "Reason" text field has a red border indicating that the field is required.

    Elsewhere in my form, there is a checkbox.  If the user checks the check box, then the field 'Reason' in Figure 2 would become disabled and no is no longer mandatory.  However, when the user clicks on 'Add another reason', and there is more than one instance of a 'Reason' text field (shown below in Figure 3), then check the box above does not work.  What I need is "generic" to explain this line stretch and subject javascript so this line the same actions (disabling, disapplying, squeeze) who has the first line.

    Figure 3 (the above checkbox was checked, but the 2nd instance of 'Reason' below does not respond to the javascript that works very well on the first instance of 'Reason')

    Figure 3.JPG

    I know with FormCalc you can use [*] as a wildcard character to account for instances of an unknown object, and I used this function successfully elsewhere in this form, but I don't know how to do this same type of function JavaScript.  Help, please.

    Thank you!

    You can use the wildcard character if you use resolveNodes() instead of resolveNode() and it is more efficient (on large forms, it can make a difference).

    var r = xfa.resolveNodes("Table1.Row[*]");
    //variables more efficient if declared outside the loop
    
    if (cbNotNeeded.rawValue == 1) {
         for (var i = 0; i < r.length; i++) {
              r.item(i).border = "0.069in";
              //and whatever else you need to set
         }
    }
    

    I think that the syntax is correct, he'll just on top of my head.

    More info here: http://blogs.adobe.com/formfeed/2011/06/resolvenode-vs-resolvenodes.html

  • Cell rendering problem

    Hello. I have a problem with the rendering of my cell. I'm doing the police in a certain rank appear in red. My code works well, but when you try to filter using of line sorter or table header, the colored lines do not change. How can I make the renderer may check the values on all kinds?

    Here is a sample of sorting using the table header.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    
    public class table extends JFrame {
         public static void main(String[] args) {
              new table();
         }
    
         public table() {
              initComponents();
              table1.setAutoCreateRowSorter(true);
              for (int i = 0; i<table1.getColumnCount(); i++) {
                   TableColumn column = table1.getColumnModel().getColumn(i);
                   column.setCellRenderer(new myTable());
                   if (i == 0||i==7||i==8){
                        column.setPreferredWidth(100);
                   }
                   else if(i==3||i==4){
                        column.setPreferredWidth(180);
                   }
                   else if (i==5||i==6){
                        column.setPreferredWidth(120);
                   }
                   else if (i==9){
                        column.setPreferredWidth(60);
                   }
                   else {
                        column.setPreferredWidth(130);
                   }
              }
         }
    
         public class myTable extends DefaultTableCellRenderer{
              @Override
              public Component getTableCellRendererComponent(JTable table, Object value, 
                        boolean isSelected,boolean hasFocus, int row, int col){
                   Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
                   
                   String qtyValue =  table.getModel().getValueAt(row, 1).toString();
                   if(Integer.valueOf(qtyValue)<3){
                        comp.setForeground(Color.red);
                   }
                   else{
                        comp.setForeground(Color.black);
                   }
                   return comp;
              }
         }
         
         private void initComponents() {
              // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
              scrollPane1 = new JScrollPane();
              table1 = new JTable();
    
              //======== this ========
              Container contentPane = getContentPane();
              contentPane.setLayout(null);
    
              //======== scrollPane1 ========
              {
    
                   //---- table1 ----
                   table1.setModel(new DefaultTableModel(
                        new Object[][] {
                             {"Item A", "1"},
                             {"Item B", "2"},
                             {"Item C", "1"},
                             {"Item D", "4"},
                             {"Item E", "5"},
                             {"Item F", "2"},
                             {"Item G", "3"},
                             {"Item H", "7"},
                             {"Item I", "2"},
                             {"Item J", "9"},
                        },
                        new String[] {
                             null, null
                        }
                   ));
                   scrollPane1.setViewportView(table1);
              }
              contentPane.add(scrollPane1);
              scrollPane1.setBounds(5, 0, 465, 320);
    
              { // compute preferred size
                   Dimension preferredSize = new Dimension();
                   for(int i = 0; i < contentPane.getComponentCount(); i++) {
                        Rectangle bounds = contentPane.getComponent(i).getBounds();
                        preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                        preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
                   }
                   Insets insets = contentPane.getInsets();
                   preferredSize.width += insets.right;
                   preferredSize.height += insets.bottom;
                   contentPane.setMinimumSize(preferredSize);
                   contentPane.setPreferredSize(preferredSize);
              }
              pack();
              setLocationRelativeTo(getOwner());
              this.setVisible(true);
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              // JFormDesigner - End of component initialization  //GEN-END:initComponents
         }
    
         // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
         private JScrollPane scrollPane1;
         private JTable table1;
         // JFormDesigner - End of variables declaration  //GEN-END:variables
    }

    1. by convention, the names of Java classes begin with a capital letter. I would say that the Table, no table, except that this Table is a source of confusion for a name class.
    2 swing GUI should always be built and manipulated to the EDT.

    To answer your question

    When you try to filter using line sorter or table header, the colored lines do not change. How can I make the renderer may check the values on all kinds?

    Use the JTable methods that convert between the index of the view and the model.

    DB

  • Newly added validation loop lines

    Hello dear livecycle fans!

    I think I looked everywhere for my fairly simple question. Here it is:

    I have a table with a header row and 1 row and a button of a new line (which adds a new line to the table) BUT I want the button to validate the last row (to check if everything is fullfilled). It can also validate all the lines, is irrelevant.

    My code looks like this:

    var valid = true;

    for (var i = 1; i < Table1.Row.instanceManager.count; i ++)
    {
    If (form1.page1.tabform.Table1.Row (i).field.rawValue == null |.) field.rawValue.length form1.page1.tabform.Table1.Row (i) == 0); {
    xfa.host.messageBox ("missing a field!");
    valid = false; }
    }

    Of course, when him valid = true, it adds the new line. However - this validation does not work
    Why is this? Would you be so kind and help me with one. The code seems simple and straightforward and I don't really know what I'm doing wrong.

    Thank you! PS. Wow, that the editor of this post is really messed up on Opera

    OK, I found this blog that answers all my questions:

    http://blogs.Adobe.com/formfeed/2008/11/loop_through_subform_instances.html

  • What is the problem with my XML?

    Argh... I tried to get this properly loaded XML and am having some problems.  I can get the loaded xml but its not really works as an xml. For example, I can't specific legend entries by referencing the line number.  I also assign some listeners in a loop in reference to this xml document and I am unable to the attributes of the query on its length, etc...

    can we see something that I am missing with its structure?

    I load it using

    load the XML for the bike trails
    var bktrlLoader:URLLoader = new URLLoader();
    var bktrlXml:XML = new XML();
    bktrlLoader.addEventListener (Event.COMPLETE, LoadbktrlXML);
    bktrlLoader.load (new URLRequest ("biketrails.xml"));
    function LoadbktrlXML(e:Event):void {}
    bktrlXml = new XML (e.target.data);
    createListenersbk();
    bktrlXml.ignoreWhite = true;
    }

    Here is the actual xml code

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    " < document xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">
    < row >
    the albino Lake < NAME > < / NAME >
    < MILES > 2.872152 < / MILES >
    the Albino Lake < name2 > < / name2 >
    < IDNUM > 1 < / IDNUM >
    < A > < /A >
    A1 < idlink > < / idlink >
    < / row >
    < row >
    Bighorn < NAME > < / NAME >
    < MILES > 7.503786 < / MILES >
    Bighorn < name2 > < / name2 >
    < IDNUM > 2 < / IDNUM >
    < A > < /A >
    < idlink > a2 < / idlink >
    < / row >
    < row >
    Bozeman Creek < NAME > < / NAME >
    < MILES > 9.320904 < / MILES >
    Bozeman Creek < name2 > < / name2 >
    < IDNUM > 3 < / IDNUM >
    < A > < /A >
    < idlink > a3 < / idlink >
    < / row >
    < row >
    Buck < NAME > < / NAME >
    < MILES > 8.286381 < / MILES >
    Buck < name2 > < / name2 >
    < IDNUM > 4 < / IDNUM >
    < A > < /A >
    < idlink > a4 < / idlink >
    < / row >
    < row >
    < NAME > Cabin Creek < / NAME >
    < MILES > 5.05901 < / MILES >
    Creek Cabin < name2 > < / name2 >
    < IDNUM > 5 < / IDNUM >
    < A > < /A >
    A5 < idlink > < / idlink >
    < / row >
    < row >
    carrot juice < NAME > < / NAME >
    < MILES > 4.708917 < / MILES >
    carrot juice < name2 > < / name2 >
    < IDNUM > 6 < / IDNUM >
    < A > < /A >
    < idlink > a6 < / idlink >
    < / row >
    < row >
    < NAME > chestnut Ridge < / NAME >
    < MILES > 7.283182 < / MILES >
    < name2 > chestnut Ridge < / name2 >
    < IDNUM > 7 < / IDNUM >
    < A > < /A >
    A7 < idlink > < / idlink >
    < / row >
    < row >
    cinnamon < NAME > < / NAME >
    < MILES > 3.9116 < / MILES >
    Cinnamon < name2 > < / name2 >
    < IDNUM > 8 < / IDNUM >
    < A > < /A >
    < idlink > a8 < / idlink >
    < / row >
    < row >
    Donahue < NAME > < / NAME >
    < MILES > 12.6701 < / MILES >
    Donahue < name2 > < / name2 >
    < IDNUM > 9 < / IDNUM >
    < A > < /A >
    A9 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Dry Creek < / NAME >
    < MILES > 10.5551 < / MILES >
    < name2 > Dry Creek < / name2 >
    < IDNUM > 10 < / IDNUM >
    < A > < /A >
    A10 < idlink > < / idlink >
    < / row >
    < row >
    Elkhorn < NAME > < / NAME >
    < MILES > 7.208245 < / MILES >
    Elkhorn < name2 > < / name2 >
    < IDNUM > 11 < / IDNUM >
    < A > < /A >
    A11 < idlink > < / idlink >
    < / row >
    < row >
    Emerald Lake < NAME > < / NAME >
    < MILES > 5.032826 < / MILES >
    Emerald Lake < name2 > < / name2 >
    < IDNUM > 12 < / IDNUM >
    < A > < /A >
    A12 < idlink > < / idlink >
    < / row >
    < row >
    Yellow Mule first < NAME > < / NAME >
    < MILES > 5.203109 < / MILES >
    First yellow Mule < name2 > < / name2 >
    < IDNUM > 13 < / IDNUM >
    < A > < /A >
    A13 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > FS Trail 6 < / NAME >
    < MILES > 8.803965 < / MILES >
    F.S. path < > 6 name2 < / name2 >
    < IDNUM > 14 < / IDNUM >
    < A > < /A >
    A14 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > FS Trail 8 < / NAME >
    < MILES > 6.236985 < / MILES >
    F.S. path < > 8 name2 < / name2 >
    < IDNUM > 15 < / IDNUM >
    < A > < /A >
    A15 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Goose Creek < / NAME >
    < MILES > 2.160362 < / MILES >
    < name2 > Goose Creek < / name2 >
    < IDNUM > 16 < / IDNUM >
    < A > < /A >
    A16 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > fracture hidden < / NAME >
    < MILES > 12.0553 < / MILES >
    Hidden ditch < name2 > < / name2 >
    < IDNUM > 17 < / IDNUM >
    < A > < /A >
    A17 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Rock History < / NAME >
    < MILES > 4.840378 < / MILES >
    Rock history < name2 > < / name2 >
    < IDNUM > 18 < / IDNUM >
    < A > < /A >
    A18 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > hood Creek < / NAME >
    < MILES > 3.374411 < / MILES >
    Creek hood < name2 > < / name2 >
    < IDNUM > 19 < / IDNUM >
    < A > < /A >
    A19 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Hyalite Creek < / NAME >
    < MILES > 4.866342 < / MILES >
    Hyalite Creek < name2 > < / name2 >
    < IDNUM > 20 < / IDNUM >
    < A > < /A >
    A20 < idlink > < / idlink >
    < / row >
    < row >
    Kirkwood < NAME > < / NAME >
    < MILES > 5.737488 < / MILES >
    Kirkwood < name2 > < / name2 >
    < IDNUM > 21 < / IDNUM >
    < A > < /A >
    A21 < idlink > < / idlink >
    < / row >
    < row >
    Leverich < NAME > < / NAME >
    < MILES > 3.271486 < / MILES >
    Leverich < name2 > < / name2 >
    < IDNUM > 22 < / IDNUM >
    < A > < /A >
    A22 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > small Elk < / NAME >
    < MILES > 6.239992 < / MILES >
    < name2 > small Elk < / name2 >
    < IDNUM > 23 < / IDNUM >
    < A > < /A >
    A23 < idlink > < / idlink >
    < / row >
    < row >
    Lizard Lake < NAME > < / NAME >
    < MILES > 6.950101 < / MILES >
    Lizard Lake < name2 > < / name2 >
    < IDNUM > 24 < / IDNUM >
    < A > < /A >
    A24 < idlink > < / idlink >
    < / row >
    < row >
    Marble point < NAME > < / NAME >
    < MILES > 5.0717 < / MILES >
    Marble point < name2 > < / name2 >
    < IDNUM > 25 < / IDNUM >
    < A > < /A >
    A25 < idlink > < / idlink >
    < / row >
    < row >
    Elk Minnie < NAME > < / NAME >
    < > 10.81 MILES < / MILES >
    Elk Minnie < name2 > < / name2 >
    < IDNUM > 26 < / IDNUM >
    < A > < /A >
    A26 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > mount Blackmore < / NAME >
    < MILES > 4.404009 < / MILES >
    Blackmore Mont < name2 > < / name2 >
    < IDNUM > 27 < / IDNUM >
    < A > < /A >
    A27 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > mount Hebgen < / NAME >
    < MILES > 5.366428 < / MILES >
    Hebgen Mont < name2 > < / name2 >
    < IDNUM > 28 < / IDNUM >
    < A > < /A >
    A28 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Mystic Lake < / NAME >
    < MILES > 5.302215 < / MILES >
    Mystic Lake < name2 > < / name2 >
    < IDNUM > 29 < / IDNUM >
    < A > < /A >
    A29 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > new world Gulch < / NAME >
    < MILES > 6.73468 < / MILES >
    New Gulch world < name2 > < / name2 >
    < IDNUM > 30 < / IDNUM >
    < A > < /A >
    A30 < idlink > < / idlink >
    < / row >
    < row >
    Oil road < NAME > < / NAME >
    < MILES > 8.433468 < / MILES >
    Oil road < name2 > < / name2 >
    < IDNUM > 31 < / IDNUM >
    < A > < /A >
    A31 < idlink > < / idlink >
    < / row >
    < row >
    Porcupine < NAME > < / NAME >
    < MILES > 7.029801 < / MILES >
    Porcupine < name2 > < / name2 >
    < IDNUM > 32 < / IDNUM >
    < A > < /A >
    A32 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Red Canyon < / NAME >
    < MILES > 4.498202 < / MILES >
    Red Canyon < name2 > < / name2 >
    < IDNUM > 33 < / IDNUM >
    < A > < /A >
    A33 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > red Cub < / NAME >
    < MILES > 6.974215 < / MILES >
    < name2 > red Cub < / name2 >
    < IDNUM > 34 < / IDNUM >
    < A > < /A >
    A34 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > second yellow Mule < / NAME >
    < MILES > 9.937432 < / MILES >
    Second yellow Mule < name2 > < / name2 >
    < IDNUM > 35 < / IDNUM >
    < A > < /A >
    A35 < idlink > < / idlink >
    < / row >
    < row >
    Skyline Ridge < NAME > < / NAME >
    < MILES > 8.056571 < / MILES >
    Skyline Ridge < name2 > < / name2 >
    < IDNUM > 36 < / IDNUM >
    < A > < /A >
    A36 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Slide Creek < / NAME >
    < MILES > 6.068263 < / MILES >
    Creek Slide < name2 > < / name2 >
    < IDNUM > 37 < / IDNUM >
    < A > < /A >
    a37 < idlink > < / idlink >
    < / row >
    < row >
    Cottonwood South < NAME > < / NAME >
    < MILES > 12.4463 < / MILES >
    Cottonwood South < name2 > < / name2 >
    < IDNUM > 38 < / IDNUM >
    < A > < /A >
    A38 < idlink > < / idlink >
    < / row >
    < row >
    Spur South Cottonwood < NAME > < / NAME >
    < MILES > 1.961527 < / MILES >
    Spur South Cottonwood < name2 > < / name2 >
    < IDNUM > 39 < / IDNUM >
    < A > < /A >
    A39 < idlink > < / idlink >
    < / row >
    < row >
    Castle of storm < NAME > < / NAME >
    < MILES > 6.715864 < / MILES >
    Castle of storm < name2 > < / name2 >
    < IDNUM > 40 < / IDNUM >
    < A > < /A >
    A40 < idlink > < / idlink >
    < / row >
    < row >
    EPI fork taylor < NAME > < / NAME >
    < MILES > 3.211239 < / MILES >
    EPI Taylor fork < name2 > < / name2 >
    < IDNUM > 41 < / IDNUM >
    < A > < /A >
    A41 < idlink > < / idlink >
    < / row >
    < row >
    < NAME > Tepee Creek < / NAME >
    < MILES > 8.475374 < / MILES >
    Creek tipi < name2 > < / name2 >
    < IDNUM > 42 < / IDNUM >
    < A > < /A >
    A42 < idlink > < / idlink >
    < / row >
    < row >
    Wheeler < NAME > < / NAME >
    < MILES > 11.9385 < / MILES >
    Wheeler < name2 > < / name2 >
    < IDNUM > 43 < / IDNUM >
    < A > < /A >
    A43 < idlink > < / idlink >
    < / row >
    < row >
    Wildhorse < NAME > < / NAME >
    < MILES > 1.671387 < / MILES >
    Wildhorse < name2 > < / name2 >
    < IDNUM > 44 < / IDNUM >
    < A > < /A >
    A44 < idlink > < / idlink >
    < / row >
    < / document >


    If you only display what is working, it is difficult to tell you what you could do wrong.  Try to add the following lines at the end of your LoadbktrlXML function and see if all the lights...

    trace (bktrlXml.Row.length ());
    trace(bktrlXml.Row[0].) (Name)
    trace (bktrlXml.Row [bktrlXml.Row.length () - 1]. (Name)

Maybe you are looking for