GPO sorting FlexField array elements is possible?

Hi all.

I have a table, this table contains more than one column, one of them is FlexField, which contain 7 columns.  Case in common, I put the column real SortAllowed property and it will work, but it does not work with FlexField. How can I fix this (if itn is possible)?

I don't have a lot of time.

Nice day.http://www.otmfaq.com/forums/images/smilies/tongue.png

p.s Flex field has property Type: Descriprive.

Hi Alex,

Because Oracle does not sort on DFF, you can check if you need the FDF itself values (in function of the importance is the requirement of sorting). A solution could be to capture the columns in FACT as of the independent columns of the database in the custom table and allow to sort. But this way you'd lose the flexitbities provided by DFF.

Concerning

Tags: Oracle Applications

Similar Questions

  • Sort groupItems Array using the left coordinate of visible limits?

    Hey all! It's been a while, but I'm back with some more busters of brain for you guys.

    I'm trying to re - work a script that Silly-V wrote to me. The goal is to create a work plan around each group of a document element in the order of the top left corner to the lower right (as if reading a book). (ultimately I would like to add a provision that excludes the possibility of having a work plan contained by another work plan, but it is a luxury that I can try to find later).

    Silly script works very well and does exactly what I need... about 60% of the time. The problem comes when I have an item that contains a clipping mask. Since work plans are created through groupItem.visibleBounds, Illustrator assumes that the invisible work that extends beyond the clipping mask is visible and creating a work plan that is too much.

    His version pushes the visible boundaries of each groupItem in an array, then sorts the visible boundaries of the left coordinate, then pushes this sub-table in another table and at the end, to coordinate kinds berries vertically at the top... However, I'm looking to push the real groupItems in the table instead of just the visible limits. So I would like to sort the groupItems by their visible limits table and then I have the opportunity of either by creating work plans based on their visible limits or (the possibility of) loop to make each groupItem selected = true and using the fitArtboardToSelectedart() command.

    I'm stuck on how to sort the groupItems table based on the visible limits... Here's what I have so far:

    my inclination is to set a variable to the visibleBounds of each groupItem in temp (which seems like it would need a loop), but it's not supposed loop me XIRR...? There is something really big, I'm missing here, but I can't wrap my head around it.

    Thanks for any help!

    function organize(){
      var docRef = app.activeDocument;
      var layer = docRef.layers[0];
      var groups = layer.groupItems;
      var currentRowMarker;
    
      var groupList = []; //array of all groupItems
      var sortedGroupList = []; //array of subarrays sorted by visible bounds
      var temp = []; //temporary array for the current row of groupItems. sort this array from left to right first, then push the entire array into "sortedGroupList"
    
    
      //populate groupList
    
    
      for (g=0; g<groups.length; g++){
           groupList.push(groups[g]);
      }
    
    
      //set currentRowMarker and compare rest of groupList to top coordinate of visible bounds. push true results to temp array.
    
    
      for (t=0; t<groupList.length; t++){
      temp = [];
      currentRowMarker = groupList[t].visibleBounds[1];
      temp.push(groupList[t]);
      groupList.splice(t,1);
    
           for (c=0; c<groupList.length; c++){
                var currentGroup = groupList[c];
                var vB = groupList[c].visibleBounds[1];
                     if (vB + 20 > currentRowMarker && vB - 20 < currentRowMarker){
                          temp.push(currentGroup);
                          groupList.splice(c,1);
                     }
           }
    
      //this is where i'd like to sort the temp array
    
      sortedGroupList.push(temp);
      }
    }
    organize();
    

    Thanks for your help, Vassili.

    I've been unable to get your suggestion to work, does not mean that it was an erroneous suggestion. So I decided to go the more complicated route. I hope that I can learn about why your suggestion did not work for me in a subsequent attempt.

    I am sure that this isn't the most elegant way to perform this task, but it was the only way that makes sense to me. Here's what I ended up with:

    for (s=temp.length; s>0; s--){
      var placeholder = 0;
      var farthestLeft;
      var deleteIndex;
           for (a=0; a		   
  • array element references confused me

    Then... I'm playing with references to arrays, specifically references to items in a table.

    It seems that I should be able to read the value of the table, but because of how I am tying TestStand and LabVIEW, I am trying to create a utility that automatically obtain data back between the LV and TS, where the types of data passed back are completely unknown and, possibly, paintings of beams that have tables nested clusters.

    I try to walk the LV data structure and reference TestStand and get the right data.  However, I can't seem to be able to use references to point to specific elements of a table - see example I expect the high and the low code works the same, but they do not.

    Any suggestions on what I do wrong to get the top and bottom to work the same?

    LV2011 attached code

    Ravens fan wrote:

    Property of the array element node gives you a reference to the element that makes up the table.  So if you set the properties of a digital control maybe to change the color or display format.

    Is not a way to get or set the value of a specific array element.  To set a particular array element, you must use replace table subset.  To get the value of a particular array element, you use table to index.

    Indexvalues property node is used to determine which is the first item that appears.  It changes the value of the indexer the upper left corner of the table.

    One thing I noticed that I don't know if I knew before, it was this setting the property value on the reference of array element, node will have an impact on the first element of visible table.  If you turn the highlight performance and play with array index, while it is running, you will see that the resulting table will be different.

    Although it IS possible, you can not do after seeing what it takes.

    We can get the value of an array element that is in a control or indicator provided it it the upper left display element.

    This nugget exploits that factand see how it can be done. Note: I have not tested this code lately so I don't know if NEITHER broke this behavior since the writing of this nugget.

    Ben

  • Sorting multiple arrays at different indexes

    I have just another very quick question on tables, this time on the sort of them. I just re-wrote my code to use for correspondence with values of 2 tables and then adding them to the screen.

    However, it seems that my correspondent is far away, it matches the items that are the same index, which is not always the case

    The output for the matches, which should be next to sideis as follows (which is incorrect), so I'll try to find values to levels different index

    Dunlop
    Babolat
    Wilson
    Wilson
    Head
    Dunlop
    Adidas
    head
    Babolat
    Slazenger
    Slazeger
    Prince
    Prince
    Völkl
    Völkl
    Adidas

    I tried to sort the array, but it seems that the table cannot be sorted as I want. I simply wanted to do ascending sort, but change to lowecase wouldn't do what I had to do.

    This is the code, the matchInfo function should do all the work

    package {
         
         import flash.display.*;
         import fl.transitions.*;
         import fl.transitions.easing.*;
         import flash.net.*;
         import flash.events.*;
         import flash.text.*;
         import flash.text.AntiAliasType;
         import bucket_left;
         
         
         public class CustomClass extends MovieClip {
              
              //Position Variable
              private var position:uint;
              
              //XML responsible variables 
              private var xmlLoader:URLLoader;
              private var xmlContainer:XML;
              private var xmlList:XMLList;
              
              //Array specific variables 
              private var rackUSA:Array;
              private var rackOther:Array;
              private var imagesArray:Array;
              
              
              //This is the constructor of the application 
              public function CustomClass() {
                   position = 50;
                   rackUSA = new Array();
                   rackOther = new Array();
                   imagesArray =  new Array();
                   LoadXML();
              }
              
              private function LoadXML() {
                   xmlLoader = new URLLoader();
                   xmlLoader.load(new URLRequest("http://localhost/xml/index.php"));
                   xmlLoader.addEventListener(Event.COMPLETE, populateInfo);
              }
              
              public function populateImages(imgname:String, imgurl:String) {
                   var imageLoader:Loader = new Loader();
                   imgname = imgname.split(".gif").join("");
                   imageLoader.name = imgname;
                   imagesArray.push(imageLoader);
                          imageLoader.load(new URLRequest(imgurl));
              }
              
              public function matchInfo(infoArray:Array, imagesArray:Array) {
                   infoArray.sort();
                   trace(infoArray);
                   for (var c:uint = 0; c < imagesArray.length; c++) {
                        trace(infoArray[c].brand);
                        trace(imagesArray[c].name);
                        if (infoArray[c].brand.toLowerCase() == imagesArray[c].name) {
                             var brand:TextField   = new TextField();
                             var country:TextField = new TextField();
                             var made:TextField    = new TextField();
                             var cost:TextField    = new TextField();
                             var bucket                  = new bucket_left();
                             brand.text   = infoArray[c].brand;
                             country.text = infoArray[c].country;
                             made.text    = infoArray[c].made;
                             cost.text    = infoArray[c].cost;
                             
                             //Align Data
                             bucket.y = position;
                             bucket.x = 100;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = 45;
                             cost.y = -10;
                             imagesArray[c].x = -100;
                             imagesArray[c].y = -35;
                             
                             addChildAt(bucket, 0);
                             bucket.addChild(DisplayObject(imagesArray[c]));
                             bucket.addChild(brand);
                             bucket.addChild(country);
                             bucket.addChild(made);
                             bucket.addChild(cost);
                        }
                        position += 150;
                   }
              }
              
              private function populateInfo(event:Event) {
                   
                   //Incoming XML Data
                   xmlContainer = new XML(event.target.data);
                   xmlList = xmlContainer.product;
                   //
                   
                   //Variables to hold the string
                   var brandTxt:String;
                   var country:String;
                   var material:String;
                   var price:String;
                   var image:String;
                   
                   for (var i:uint = 0; i < xmlList.length(); i++) {     
                   if (xmlList.country.text()[i] == "USA") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   rackUSA.push({brand: brandTxt, country: country, made: material, cost: price, pic: image});
                   } else if (xmlList.country.text()[i] == "Other") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   rackOther.push({brand: brandTxt, country: country, made: material, cost: price, pic: image});
                   }
                   populateImages(image, "http://localhost/rackets/" + image);
                   }
                   matchInfo(rackUSA.concat(rackOther), imagesArray);
              }
         }
    }
    

    given an element of imagesArray the following function returns the first object in infoArray where the brand property corresponds to the element:

    function infoArrayF(ldr:Loader):Object {}

    for (var i: uint = 0; i<>

    {if (infoArray [i]. Brand.toLowerCase () is LDR. Name)}

    return infoArray [i];

    }

    }

    }

    //

    and you can use this function as follows:

    var obj:Object = infoArrayF (imagesArray [c]);

    If you want just the hint of infoArray returned from infoArrayF, I return instead of infoArray [i]

  • Reference to the array of Clusters with an array element

    Hello

    I have an array of clusters of CONTROL (qualifying as "upper-tier cluster table") with one of the items is an array of cluster cluster (see attached).

    I intend to "reference" of this cluster of high level at different screws (as add item VI, insert item VI, delete the item VI etc.) and access (add/edit delete) the elements of this array.

    In my code, how I cataloged the array element (cluster) on the cluster internal (as shown on the figure)?

    I use LV RT on PXI.

    Hello smercurio_fc,

    Thank you for your example! Just a question: actually, with shift registers, is an example of creating a local copy of the full range? Even if the value of the lowest level cluster is changed, is the complete table is updated at the end (registry value to offset the full picture at the right end is updated using the reference node and property)? This VI will be slow when the size of the array becomes great?

    Comment of nicely.

  • read part of an array element

    Hi all.

    As indicated in the title, I'm reading part of an array element.

    What I'm doing is reading a LeCroy scope values using a 'write' 'read' I returned the values in a table, but the question is the scope returns a value of "1, 52.33E - 3".

    I just want the element to be 52,33 so I can use it for other calculations.

    For example, my table.

    ' 1, 34.334E - 3.

    ' 1, 53.343E - 3.

    ' 1, 143.232E-

    And I want it to be

    34.334

    53.343

    143.232

    Thank you!

    Use string functions (match pattern) to find the comma. Then convert the part after the comma to a number using the string appropriate to the Number function.

    Are throwing you what looks like an exhibitor intentionally?

    The last string seems to miss the exhibitor. This suggests you may have problems with your communications with the instrument.

    Lynn

  • Get all the different values in a table - 'or array elements' does not work with I32

    Hello

    I just found out that "array elements or" does not work with a table 1 d of integer values. I didn't expect that.

    I did a semi quick forum search and did not find a pointer to an effective solution. Can someone give me a hint?

    Do not back my initial intention is to list all the values that appear in an array of integers.

    I thought that if I converted the figures for powers of 2 and or I had solved the problem at hand - only to discover that the elements of array does not.

    If someone could propose a different approach, I'd be happy too.

    I should mention that the execution time is a factor here - I need a fast code, but any suggestions are welcome because they could help me get started.

    Best regards Florian

    Hi Florian.

    try this:

    "Function, it seems, the table of GOLD ' is polymorphic (as written in the context-sensitive help), but does not support arrays of I32. At least the error message means just that...

  • How can you specify the default value for the undefined array elements

    According to aid LV, the tables have two default values, the normal default value and the default value for the undefined array elements.

    I assume that there must be a way to specify the default value for later, but I can't find it anywhere.  Any ideas?

    I know that you can drag the item out of the table container.  Change the default value on this scalar element.  Then drag the item in table tank.

  • A fundamental question/problem with the like undefined array element

    Hello everyone,

    Thanks for looking at my problem. I am very new script and javaScript, and I encountered a strange problem. I always try to solve all my problem myself, with documentation (it helps to learn) or as a last resort with the help of google. But in this case, I'm stuck. I'm sure its something very simple and elementary.

    Here I have a code that simply loads a text file (txt), load the contents of the file in a "var glad." This summary text file a font family name, every name on a new line, as:

    Albertus

    Antenna

    Antique

    Arial

    Arimo

    Front

    Barber1

    Barber2

    Barber3

    Barber4

    Birch

    Blackoak... .etc

    Now I hollow the variable content of loop, extract each letter and add it to the list '[i]' table. If the character is a line break the list [i] table adds another element (i = i + 1); That's how I separate each name in its own element of array.

    The problem I encounter is, when I have hollow loop table fontList and $.writeln (fontList [i]) is the result in the console :

    undefinedAlbertus

    undefinedAntenna

    undefinedAntique

    undefinedArial... etc.

    I don't get serious, where the undefined comes? As far as I tested each digit to be added to the array element, I see nothing extraordinary.

    ----------------------------

    ----------------------------

    Here is my code:

    #target illustrator

    var doc = app.documents.add ();

    Open the file

    var myFile = new File ("c:/ScriptFiles/installedFonts-Families.txt");

    openFile var = myFile.open ("r");

    check if it is open

    if(OpenFile == true) {}

    {$.writeln ("the file has loaded")}

    else {$.writeln ("the file does not load, check the name or the path") ;}}

    load the contents of the file into a variable

    var content = myFile.read ();

    myFile.close ();

    var ch;

    var x = 0;

    var fontList = [];

    for (var i = 0; i < content.length; i ++) {}

    ch = content.charAt (i);

    If ((ch)! == (string.fromCharCode(0)) (10))) {}

    fontList [x] += ch;

    }

    else {}

    x ++;

    }

    }

    for (i = 0; i < fontList.length; i ++) {}

    $.writeln (fontList [i]);

    }

    doc. Close (SaveOptions.DONOTSAVECHANGES);

    -----------------

    -----------------

    Thanks for any help or an explanation. If you have any tips on how to improve my practices or any suspicion, please do not hesitate to say. Thank you

    Hi vladac54380629,

    better, you try something like this:

    #target illustrator
    
    //var doc = app.documents.add(); 
    
    //open file
    var myFile = new File ("c:/ScriptFiles/installedFonts-Families.txt");
    var openFile = myFile.open("r"); 
    
    //check if open
    if(openFile == true){
        $.writeln("The file has loaded")}
    else {$.writeln("The file did not load, check the name or the path");} 
    
    //load the file content into a variable
    var fontList = []; 
    
    var content = myFile.read();
    fontList = content.split ("\n")
    myFile.close(); 
    
    for ( i = 0; i < fontList.length; i++) {
       $.writeln(fontList[i]);
      }
    
    //doc.close (SaveOptions.DONOTSAVECHANGES);
    

    Have fun

    A note:

    The real font names may be different from your own list for example:

    Arial! = ArialMT

    Birch! = BirchStd

    Blackoak! = BlackoakStd

    Concerning

  • to sort an array of numbers NOT as strings using the. sort()

    Hello

    y at - it a function or a simple way to sort an array of numbers in the order of their values and not as strings? For example, 100 came AFTER 9; (9, 100) (100, 9).

    Thank you.

    Use the ARRAY.numeric parameter.

    (and you can still use a custom for kinds more custom sort function parameter).

  • How to access an array element?

    I'm trying to access a table on a click of a button element.  Complete creation, I have this: var = students ["Theo Arguna", "Leif Arneson", 'John Egan', "Sakura Nakahara", 'Rebecca Pilkington', "Debra Sutter"];

    the passage of the mouse button I put this:

    var myVariable = sym.getVariable("students.eq[0]");

    sym.getSymbol("message").$("Text4").html ("Click now to see" + sym.getVariable ("myVariable") + "working.");

    When I test I get "undefined" say where "$myvariable" is in the line above the code.

    Any suggestions on how to get the array element in this?

    Hello

    «"«You are almost there...»»»

    Put this in your creationComplete event:

    sets the variables table students

    sym.setVariable ("students", ["Theo Arguna", "Leif Arneson", "John Egan", "Sakura Nakahara", "Rebecca Pilkington", "Debra Sutter"]);

    And put it in your button mouseover event:

    get the array element you want

    var myVariable = sym.getVariable ("students") [0];

    sym.getSymbol("message").$("Text4").html ("Click now to see" myVariable + "working.");

    HTH,

    Joe

  • Tween an array element

    I created a script that will movieclips to fill the stadium. In this case, a ranking.

    each created movieclip is positioned and placed in a table.

    The problem becomes an array element and the power of tween it

    * I would like to experiment with tween different combinations to get them out of the scene. Here's what I got

    I am able to get the clips on the stage... [Can't get them off =]

    Import mx.transitions.Tween;

    Import mx.transitions.easing. *;

    Block = new Array();

    var Xposition:Number = 0;

    var Yposition:Number = 0;

    var stack:Number=Math.ceil(Stage.height/30);

    var Numofstacks:Number=Math.ceil(Stage.width/30);

    var fadeit:Tween;

    var n: Number = 0;

    for (r = 0; r < (Numofstacks); r ++) / / 25

    {

    PositionY = 0;

    for (c = 0; c < (stack); c ++) / / 3

    {

    var particle = this.attachMovie ("block", "gabarit@sur" + r + c, this.getNextHighestDepth ());

    Particle._y = PositionY

    Particle._x = which

    Block [n] = particle._name;

    trace (Particle._name)

    PositionY = PositionY + 30;

    n ++

    }

    Which = which + 30

    }

    runit var = setInterval (effects, 3000)

    effects function (): Void

    {

    trace ("Go")

    for (a = 0; c <(Block.length-1); a ++) / / 3

    //{

    Yvan = new Tween (block [0], "_alpha", Strong.easeOut, 100, 0, 1.5, true);

    //}

    clearInterval (runit);

    }

    Do not store the _name in table property, store the particle itself.

    Block [n] = particles;

  • The search in a table a value then delete this array element

    Hello.

    I have an array of VO (id, link, title, url...) I want to get an ID of this array element and remove the element with the corresponding id. Any thoughts on how I would go to this topic?

    Thanks in advance!

    Ryan

    I don't know much on your and this probably isn't the most elegant solution, but you can do something like:

    for (var i: Number = 0; i<>

    {

    If (myVOArray [i] ["id"] is "someId")

    {

    myVOArray.splice (i, 1);

    }

    }

  • sort a 2-D array element

    Hi guys, how to sort an element from a 2D array. For example, I would like to know the value of the element in array [0] [1].

    The array index function would be a good start.

    Have you even tried?

  • Look for the string of the numbered array element.

    This is my first post, so I'll probably miss one thing or another.  I will look nothing missed as soon as possible. I write code LV to test additional County stored in a CSV text file. Counties represent the stimulated current of a diode in a beam of radiation. The product is a QA device for a medical radiation treatment machine. The Integrator output proportional to the current diode accumulates as a whole into account in the text file. My LV code puts the numbers in the tables, calculates the incremental time derived and analyzed statistically. Numbers of the columns in the table data represent unique components. Default number of data column is sorted in a 1 d table has no column number. As if not column 10 represents CR39 of PCB 11. I need an algorithm how to connect a string such as CR39-PCB11 to the element of the array 1 d failure or relate to the string to the column in the data table that fails. Could you suggest a way to do this?

    If I understand you correctly, instead of these numbers that are in the Updates (odd) 'zero', you want to get premium channels. For the moment, the operator uses a lookup table, to find the chain (component) that corresponds to the column number.

    It's easy, because you only need an array of strings (corresponding to the column number 0 n) and use the array index with the index of the column. Place it in a loop for get all the clues of failures (the loop autoindexing for).

    Felix

Maybe you are looking for