No, unfortunitly that code does not work. If I enter the following part numbers:and then click the Sort Parts List button containing the code, this is what I get:
I'm having trouble with this. I appreciate your help. Here's my script:var temp = new Array();var i;//Create a two-dimensional array to hold the PartsListBox (original unsorted list) list itemsfor(i=0; i < PartsListBox.length; i++){ temp[i] = new Array(); temp[i][0] = PartsListBox.getSaveItem(i); te...
Is there a script to sort a listBox that contains text and numbers using a button?I would prefer it sorted 1, 2, 10, 20, 100, not 1, 10, 100, 2, 20Examples items are part numbers: HP1457100-9, 011-2025-479, 85216, etc
My form has a textField that users enter part numbers separated by commas. I want to write an if statement that looks to see if one of the part numbers is included in the list. Is there a way to script to search for only part of a textField's rawValue or formattedValue?So if the rawValue of textFiel...
I was able to solve this myself. The script that works is:var nRows = xfa.resolveNodes("Table1[*].Row1[*]");for (var i=0; i<nRows.length; i++){nRows.item(i).Subform13.AddQuestionButton.presence = "invisible";nRows.item(i).Subform13.DeleteLastQuestionButton.presence = "invisible";}
I have a button in Row1 of a repeating table that adds additional rows. I want to be able to hide all of these buttons by clicking another button located at the bottom of the form. Can you tell me how to script to count the table instances and then set the presence of each button to be "invisible"?T...
I tried the following:this.rawValue = Table1.Row.instanceManager.count;and i tried...this.rawvalue = Table1.instanceManager.count;and the result was 1 for each script but my form has 47 rows (not repeating rows).