Script to sort the table in ascending order

Hello

I am not able to find any manufacturer of chassis function to sort the table in ascending order with respect to column 1. Please, guide me how I can write the script extended chassis manufacturer to sort the table.

Thanks and greetings

Libson

Here's how you can sort a table with ExtendScript:

#target framemaker

var doc = app.ActiveDoc;
// Set a variable for the selected table.
var tbl = doc.SelectedTbl;

// Select the table.
tbl.MakeTblSelection (Constants.FF_SELECT_WHOLE_TABLE);

// Sort the table.
CallClient ("TableSort", "row nocase 0 ascending -1 ascending -1 ascending");

Here's the FDK Programmers Reference for TableSort settings information:

Tags: Adobe FrameMaker

Similar Questions

  • How to sort a table in descending order by default?

    Hi all

    I created a sample page that is research panel with table. His works well
    When searching in the table, I want to display the data in the table in descending order by default.
    For example, I have one of field's ID who's number I want to display the table in descending order.
    But we have an option that can be sorted and sort property in the behavior section. But if we want a default search, how to make.
    Can someone give a resolution?


    Thank you
    Shankar

    cant specify you desc order in the query in the t?

  • How to design and the list in ascending order from the minimum to the maximum with 6 entries

    Hello

    How to design and the list in ascending order from the minimum to the maximum with 6 entries in Labview?

    It is easy to write in C++, but not in Labview, can be that I am new to Labview. I managed to get the 1st and the 6th after a comparison, but I can't get the 2nd, 3rd, 4th, 5th.

    and can I write language c ++ in Labview VI?

    Thank you.

    Try this:

  • How can I sort the files in descending order & vice versa

    original title: files & folders

    How can I sort the files in descending order & vice versa

    The game, October 7, 2010 20:28:15 + 0000, phil7525 wrote:

    How can I sort the files in descending order & vice versa

    Make sure that you are in the Details view. Click on the heading of the field
    you want to sort. Click on it a second time to reverse growing
    descending, or vice versa.

    Ken Blake (MS-MVP)

  • Sort the table of Foundtext and respective Page number

    Hi all

    I'm a novice scripter. It is also my first Indesign script. Please help anyone for my first script. Here is my requirement.

    I want to generate a text style applied to particular character with belonging "number of Page. Also, I need to sort the text found in alphabetical order with the belonging itself page number. I have generated just the text and the page number for membership by writing the following code.

    myDoc var = app.activeDocument;
    var myDocPath = app.activeDocument.filePath;
    var myDocName = app.activeDocument.name;

    app.findTextPreferences = null;
    app.findTextPreferences.appliedCharacterStyle = myDoc.characterStyles.item ("Test");
    var myText = myDoc.findText ();
    var myPageNumber = new Array;
    var myFoundText = new Array;
    var myFoundTextSort = new Array;

    for (var i = 0; i < myText.length; i ++)
    {
    myFoundText.push (myText [i] .silence);
    }

    for (j = 0; j < myText.length; j ++)
    {
    var r = getPageFor(myText[j].characters[0]);
    myPageNumber.push (r.name);
    }

    var inc = 0;
    var myLogFile = new File (myDocPath.fsName + "/ Text_Report_" + app.activeDocument.name.split(".")) ([0] + ".log");
    If (myLogFile.open ("w", defined, undefined))
    {
    if(myFoundText.Length!=0)
    {
    for (var k = 0; k < myFoundText.length; k ++)
    {
    SERIALNO = k + 1;
    myLogFile.writeln ("" + serialno + ".")  ' + myFoundText [k] + "-Page" + myPageNumber [k]);
    }
    }
    }

    myLogFile.close ();
    myDoc.close ();

    function getPageFor (element)
    {
    While (!) (element instanceof Page) | element instanceof request))
    If (element instanceof character)
    item = element.parentTextFrames [0] .parent;
    on the other
    item = element.parent;
    If (element instanceof Page)
    Returns the element;
    Returns a null value.
    }

    Please help anyone. Thanks in advance

    Well, you're almost there. The current problem is in your push instruction. Array.push (...) peut push more than a single element in the table, but it will do so in single shoot; This is why you do not get the composite objects back, but each has pushed point on its own place.

    So either use the method of Kasyan and create a composite object

    PAGEText.push ({pageNumber: 5, text: "this is some text 5 '});

    either way, in a table:

    MYFoundText.push ([MYResults [i] .silence, r.name]);

    Whatever it is, you have to adjust your sort code for what you choose.
  • Script to renumber the links in random order

    I have Chapter 1 page with 50 small photos in a very Orthodox and symmetrical grid should I repeat in a different random order for other chapters.

    Links have a logical syntax numbered like:

    pict1. TIF

    PICT2. TIF

    etc.

    For Chapter 2, the idea is to repeat the first but in a random order. Same photos, same layout, different order.

    Perhaps a script could rename the links?

    Thus, once the folder is duplicated, I'll have a second folder:

    Photo 1. TIF is now, for example, pict45.tif

    Picture2.tif.is now, for example, pict13.tif

    etc.

    IF I recreate a link to a copy of Chapter 1 of this second issue perhaps the idea could be resolved.

    Jarek, salvation.

    It works when it's only ONE image per page.

    But, with lots of photos on the page, as in the example, the script is dead.

    (no error at all)

    I have six pages with the same grid of images repeated in a file.

    The idea is that, at 2, 3, etc., the script changes the order randomly have different positions.

    I have tried various combinations but were useless.

    Thank you.

    PD. The screenshots show the script works with simple images.

  • Script errors in the table of contents in RoboHelp 9

    Hello, all. I can usually find the solution to my problem by searching for existing threads, but I can't seem to find a solution this time. I recently upgraded to RoboHelp 7 to 9.0.2.271. I published WebHelp locally and checked the files in to a Team Foundation Server to be deployed in a test environment. Locally and on the QA site, the output seems fine for me and the table of contents works as expected. However, other users on Internet Explorer 7 and 8 (I have IE8) are getting script errors when you try to click on the pages of the table of contents.

    I compressed my files the and dropped on a shared and player asked a user to copy on his machine and open the start with his browser page. He always gets the script errors, while another user can open locally without any problem. This makes me think that the problem is not in RoboHelp files themselves, but I'm not sure.

    To further complicate things, in this environment, another server of QA, the table of contents and Index are empty! This is obviously a separate issue, but I'm stumped. This problem occurs in IE 6, 7 and 8. It does NOT occur in Firefox or IE 9.

    Any ideas?

    This problem has been resolved with a response from another discussion:

    Re: RH8 > WebHelp > TOC will not be rendered in IE8 via HTTPS - Fix/workaround solution?

    If the table of contents/Index/Search does not work in IE7/8/9 via HTTPS, try the following steps

    1. Go to https://acrobat.com/#d=WqbdTq-2R79ToU08-zfBEw
    2. Download the IESearchIssue.zip file. Unzip it.
    3. It will create an IESearchIssue folder. It has two subfolders
      1. RH8.0.2
      2. RH9.0
    4. If you use RoboHelp 8.0.2, go to the folder RH8.0.2.
    5. If you use RoboHelp 9.0, navigate to the folder RH9.0
    6. Navigate to the \RoboHTML\WebHelp5Ext\template_stock folder and rename the file whutils.js in whutils.js.bak
    7. Now, paste the new whutils.js already copied into the same folder.
    8. Now again generate webhelp output the required project.
    9. Host it on your server and check if it works.
  • Problem in sorting the table advacned attribute

    Hi all

    Everyone please help me sort the column Advanced because I need readonly columns but when I sort in converted writable format...

    Thanks in advance

    Hello

    ColoumnHeaderPrompt ther is a property; All sort and set the Initila Staus.

    WHT is the style of columns in advance Table RN...? IF you want to only read only go to "MessageStyledText".

    Nani

    Published by: Nani652595 on February 24, 2010 22:06

  • script to rename the layers in alphabetical order

    Hello world

    I have a name change script that works only on the numbers and I want to make it work for the letters too.

    What I want to achieve is to select a few layers-> load the script-> enter the desired name of the layer and brackets insert the letter of where to start. The script then iterates through the alphabet rename the layers and adding the letter from coresponding to the name and remove the brackets. For example, I select 4 layers, loading the script and when the guest comes on... Enter the name: test [C]. In the end, that I should have renamed layers testC testD, tests, testF

    Any help would be appreciated!

    Thank you

    So what you wanted, it is for renaming selected objects, no layers, right?

    Check this script, I took a different route, I added some comments, if you have problems with it, do not hesitate to ask

    // this script Renames selected Objects with a base name plus an incremental suffix
    // Carlos Canto // 07/03/2013;
    // http://forums.adobe.com/thread/1243774?tstart=0
    
    var doc = app.activeDocument;
    var sel = doc.selection;
    var rename = prompt("Enter the name and ONE character suffix (comma separated, no space):","test,A", "Increment Rename Selected Objects");
    if (rename!=null) {// quit if pressed Cancel
        var nameArray = rename.split(","); 
    
        var base = nameArray[0];
        var suffix = nameArray[1];
    
        var charCode = suffix.charCodeAt (); // convert the suffix character to Unicode
    
        if(sel.length>0){
            for(var z=0;z		   
  • How to sort the packages by alphabetical order?

    Hello

    I use the 4.0.3.853 Data Modeler. I got my two conceptual and physical models with it. The problem I have is with the display of the list of packages: physical models-> database Oracle 11 g-> packages

    The list is not sorted in alphabetical order. It's pretty boring, and I found no option to have a properly sorted list of packages. The solution is to right-click on 'Packages', then 'new '. The list is sorted properly. then simply click Cancel in the package properties window. But this continues until you close the Data Modeler. Is this a known bug? Is it possible to fix it?

    Thank you

    Hello

    Thanks for reporting the problem. It is fixed in 4.1 DM

    Philippe

  • Sort the table values in asc or desc

    I have a table named date_table contains two columns (term, multiplier) with the following values


    Multiplier of term

    1 M
    2 M
    8. IS
    15 D
    3 8
    24 M
    D 1800


    The above values are term and multipiler. Medium 1 M stands 1 month, 15 D means 15 days 2 stands there for 2 years. I need a query select this asc or desc order as shown below

    Multiplier of term
    15 D
    1 M
    2 M
    24 M
    3 8
    D 1800
    8. IS
    with tab as (
    select '1' term, 'M' multiplier from dual union all
    select '2' term, 'M' multiplier from dual union all
    select '8' term, 'Y' multiplier from dual union all
    select '15' term, 'D' multiplier from dual union all
    select '2' term, 'Y' multiplier from dual union all
    select '24' term, 'M' multiplier from dual union all
    select '1800' term, 'D' multiplier from dual
    )
    select term,multiplier from tab order by term*decode(multiplier,'M',30,'Y',365,'D',1)
    

    I got the result but do not know why you designed it like this... because 1 month means 30 days 1 year does not mean 365 days...!

    Oracle has a data type that does the work of saving the intervals like above... Data INTERVAL type... maybe you can have a look...

    Ravi Kumar

  • I want to get the numbers in ascending order in the AutoComplete drop-down box

    This problem has been resolved by typing about: config in the address bar.

    You must enter Subject: config in the address bar.

  • My problem is: the photos are listed in descending order. I need them in ascending order.

    * Original title: Photo Arrangement

    I have a real problem with my understanding of photo.

    I am producing a slideshow on my travels in Asia over the period 2008-2015.

    All the photos are in individual folders by year. I also arranged their by the date.

    My problem is: the photos are listed in descending order.  I need them in increasing order - first photo of the last picture taken on a given date. Otherwise, I can't import individual files in my photoshow software because it displays the last picture taken 1.

    I can't find a link or an option to have this way.

    Does anyone know how to get the arranged in ascending order?

    Sunday, July 5, 2015, 13:51:46 + 0000, boongsongum wrote:

    I have a real problem with my understanding of photo.

    I am producing a slideshow on my travels in Asia over the period 2008-2015.

    All the photos are in individual folders by year. I also arranged their by the date.

    My problem is: the photos are listed in descending order.  I need them in increasing order - first photo of the last picture taken on a given date.

    With photos or anything else:

    You can sort the files in a folder by clicking on the header of the
    field you want to sort, such as the Date.

    You can reverse the sort order, down to bottom-up,
    or vice versa, by clicking on the header a second time.

  • How can I get the script all the tables and the reference system?

    Hello

    I'm trying to get the scripts of all the tables in my exquema MADE. Please can someone help me?

    Try this - the first script creates a 'tab_ddls' table to hold the table DDLS and second script generates the DDL and stores in this "table"tab_ddls ":

    {code}
    create the table tab_ddls (table_name, varchar2 (50))
    table_ddl clob)
    /

    declare
    cursor tab_cur is
    Select table_name
    from all_tables
    where owner = "MADE";
    CLOB table_ddl;
    Start
    for rec in tab_cur
    loop
    Select dbms_metadata.get_ddl ('TABLE', rec.table_name, 'MADE')
    in table_ddl
    Double;
    insert into tab_ddls (rec.table_name, table_ddl) values;
    end loop;
    dbms_output.put_line ('done');
    commit;
    end;
    /

    Select * from tab_ddls
    /

    {code}

    Please modify the script to fit your needs.

    HTH

    Published by: user130038 on August 2, 2011 11:08

  • Command button inside the column heading in the table of the ADF

    Hi all
    I want to insert two command buttons inside the column header of a table of the ADF.
    In my mind these buttons should replace the buttons two default (triangles) to sort the column in ascending or descending order.
    You know a solution? Because it's 2 days I'm trying, but no way.

    Thanks in advance
    Stefano

    have you tried facet the af pane header: column?

    
      
        
        
          
            
            
          
        
      
    ...
    

Maybe you are looking for

  • Tecra S10-128: Win XP recognizes only 2.99 GB instead of 4 GB of RAM

    Hello I have a question. I have downgrade to XP Pro (with recovery CD). The system has 4 GB of ram (the BIOS screen confirm that), but in system properties I * only 2, 99 GB * of RAM. I know that XP pro recognize only 3, 5 GB, but why, 2, 99 GB? I ha

  • PID Setpoint profile using Minutes instead of seconds

    The standard input for the PID setpoint profile VI is in seconds.  Is there a way to change this so that you can enter a profile in minutes?

  • Passwork does not...

    My password, which has always been blank, won't work now.  I can't get past the logon window.  I just get ' system could not log.  Make sure user name and the domain are correct, then re-enter your password.'    I tried to go ORGANIC and reset all pa

  • photographs of sequencing

    We took lots of photos with 4 different cameras and saved in a number of files. We are trying now to their thin down to a manageable number in a single folder. When we try to view a slide show that they present in apparently random order, although it

  • drvers for HP Photosmart Plus B209

    I was using a HP Photosmart Plus B209 printer for many years without any problems unsolved. I've recently had prints fuzzy and weak. I reinstalled the HP using HP software online. Now my Windows 7 computer cannot connect to the printer. The drivers d