creating style table of dynamic materials & sorting of entries...

Hello world

We have created the command script to generate multiple files inx artlink reports to a text file. Finally we have to sort alphabetically. I tried with the concept [myArray.sort ()] before writing in the text file. It works but it first sorts the letters and then it sorts the lowercase of each input. For example,.

Table sorting But wait

Apple.EPS

Banana.EPS

Candy.TIFF

Apple.EPS

Banana.EPS

Candy.TIFF

Apple.EPS
Apple.EPS
Banana.EPS
Banana.EPS
Candy.TIFF
Candy.TIFF

Can someone look into this and help for me. Or help me to query below.

We can settle this report perfectly with InDesign TOC options. I tried to create the style of table of contents through javascript, but I'm unable to do so. Can anyone suggest me how to create style table of contents (with a paragraph style and sort entries in alphabetical order option) or how to import another document TOC styles using javascript.

Thanks in advance.

Indana

That's what JS using said of table-> sorting:

Sub sort (userFunction: Function)
Sorts the elements in the array in place, using the given function to compare elements.
If no function is provided, the elements are sorted alphabetically. Not return a return value.

Parameter Type Description
userFunction Function A function provided by the user in the form of userFunction (a, b) that returns less than 0 if a is greater than b, 0 if a and b are equal and greater than 0, if b is greater than one.

As it is said, the default behavior is to sort alphabetically - and hence they must mean "in ASCII order. What you need is a custom sort routine. A few more string manipulations, I come to this conclusion:

var myArray = [
"Apple.eps",
"Banana.eps",
"Candy.tiff",
"apple.eps",
"BANANA.Eps",
"candy.tif" ];
myArray.sort(function (a,b) { return a.toUpperCase() == b.toUpperCase() ? (a < b ? -1 : a > b) : (a.toUpperCase() < b.toUpperCase() ? -1 : a.toUpperCase() > b.toUpperCase()); });
alert (myArray.join ('\n'));

that sorts correctly the case independent table.

Tags: InDesign

Similar Questions

  • drop and re-create the table using dynamic sql

    The following procedure should drop the table and re-create it. Currently, I get the dbms_output of the query. If I run the query only, it works well. but through the procedure, it does not work. Please help me

    PROCEdure emp_backup is
    sql_txt varchar2(10000);
    begin
         begin
         EXECUTE IMMEDIATE 'drop table emp_backup ' ;
         exception
         when others then
         null;
    
         sql_txt:= 'CREATE TABLE emp_backup as ' ||
                     'select * from emp  '||
                     'where dep_no=10 ' ;
         dbms_output.put_line(sql_txt);
         EXECUTE IMMEDIATE sql_txt;
    Exception
    when others then
    Null;
    
    End;

    Daniel wrote:
    I'm getting following error ORA-01031: insufficient privileges

    What is the command to grant privileges to this

    GRANT CREATE TABLE TO <>
    

    Detaching Frank, however, and echoing my previous comment, let them down and to re-create the tables makes no sense. It is logical to truncate a table if you test a load. If you build a data warehouse, it makes sense to delete and re-create a partition if you rerun a load for a particular date and that you have daily partitions. Deletion and recreation of a table in a stored procedure is not a reasonable way to test a system (nor is there a reasonable way to approach change control issues that will inevitably produce when you need to change the structure of a table).

    Justin

  • Creating form/table layout dynamically using different web services

    Hello

    I have the following requirement:
    We have a web service for each data center device control settings for this device. To update the settings we provide an ADF UI or the form layout table layout by using the web service.
    The number of servers being, it is not possible to create a different page for each web service.
    Thus, the requirement is to create a user interface where the user can give the location of the wsdl file and choose if he wants to see details in a formatting or the table layout and click on the button to view the details,
    Then, we need to read the web service and create control of data bindings, page links (in the binding container) and view the details on the user interface.

    Please let me know if this is possible or not.
    We create data programmatically control? We can add data connections to the container of link programmatically?
    We can make the data on the user interface bindings dynamically? Is there a public API is to create links by programming?

    or if control data and data links option is not available then is there any other alternative approach for it?

    Please help me in this. The pointers in this regard could greatly help me.

    Thank you
    Stephanie

    Hello

    assuming that the information that you provide to the servers are identical, you use a POJO that accesses the WSDL file by using a proxy client. Then, you can expose a common set of attributes on the POJO and list and generate a JavaBEan data control that you can build forms and lists. POJO basically will use you to transform the different web services in a format of individual business service.

    Frank

  • Missing cells in the table of dynamic columns

    Hello

    I am creating a table using dynamic columns. Here's an example simplified data that I use:

    < sales >
    ... < drive >
    ... Honda < brand > < / brand >
    ... < color > green < / color >
    ... < / car >
    ... < drive >
    ... Nissan < brand > < / brand >
    ... < color > blue < / color >
    ... < / car >
    ... < drive >
    ... Honda < brand > < / brand >
    ... < color > blue < / color >
    ... < / car >
    < sales >

    I am grouping the brands for the lines, and I want a number of colors as my dynamic column. I find myself with a table that looks like this:

    ----------------------------------------------------------------------------------
    Brand | Blue | Green |
    ----------------------------------------------------------------------------------
    Honda | 1. 1.
    ----------------------------------------------------------------------------------
    Nissan | 1
    --------------------------------------------------------

    Since there is no green Nissan, a cell not created so I find myself with a hole in my table. Ideally, I would want a cell containing 0 to be in this space.
    Is it possible, or to all the least have a cell in this space, so I did not have a table with gaps?

    Thank you!

    Hi cc22

    If you have a look at these. http://winrichman.blogspot.com/search/label/cross%20tab
    you will identify yourself,

    its simple... If this is not the case, let me know.

  • For Timo: Dynamically create pivot table binding

    Hi Timo,

    Long time ago you have this announcement on a thread:

    "The solution for your use a 2013 DOAG case, I presented was to create binding table pivot out user defined attributes in the table."

    For the defined attributes, VO is created dynamically and the pivot link.

    The pivot link is exchanged during execution as well as the activation of the adequate VO Dynamics to get only the

    necessary data for the pivot table in particular.

    ......

    I can't give you a working example because it is too complex. I can make available slides, but they are in German. "

    We have the same problem.

    Can you please send me this presentation on: email address removed by the moderator - there is no private through this public forum consultation >

    I can't find this Presentation on the Internet.

    Maybe, if you have some examples of simple work, too.

    Kind regards

    Diana

    Diana, you can get the DOAG2013_DynamicPivotTable_virtual7 blades | JDev & ADF Goodies

    The sample is too complex to be made available through my blog.

    Timo

  • Of FUNDING and dynamic SQL CREATE ANY TABLE

    Hi gurus,

    I have a dynamic SQL code in a procedure where a table to an existing table without data will be created.

    strSQL: = "create table ' | strTemp | ' in select * from '. strArc. "where 1 = 2"; "
    Execute immediate strSQL;


    without GRANT CREATE ANY TABLE to user, * "ORA-01031: insufficient privileges" * error executing. "."

    Is there a way to tackle this problem without providing a GRANT CREATE ANY TABLE privileged?


    Thank you very much
    Charles

    (1) why you are creating a table to run? Which seems to me very concerning. If you create a temporary table and you're accustomed to work how temporary tables in other databases, I would strongly suggest you look at how Oracle manages global temporary tables. If temporary storage is really necessary (99% of the time is not because of the consistent reading multi-version), you should be able to create global temporary tables a few during execution.

    (2) the owner of the procedure should just need the CREATE TABLE privilege granted directly to the user (not granted through a role), assuming that it is in stored procedure a standard DEFINER rights.

    Justin

  • Dynamically create a table of contents

    I'm having a problem dynamically create a table of contents (table of contents). I set up the table of contents in my template, but apparently not otherwise than he does until I run the report during execution. I feel that the TOC can be built dynamically, but I do not see how this works. Any thoughts?

    Group of LINE by TABLE_NAME

    TABLE-NAME
    "The data in the table.

    page breakend LINE of TABLE_NAME


    Here are the results before and after execution:

    Table of contents
    TABLE_NAME...........................................................................................................................

    Hi Patrick,

    Take a look at the email I sent.

    Simply enter the domain name like and do not use the form for this field.

  • Create a link using dynamic text and Capture of Variable

    I'm building a dynamic website with Dreamweaver CS5 with Coldfusion 9

    Currently, I created an array of dynamic text. The table is created by querying the invoice table and displays all of the invoices customers. The columns Include invoice #, Date, amount paid, BalanceRemaining, Expiration Date. So, basically lists all invoices that I made a request to the unique customer. It is pulled up using a session variable, that I created from the login page.

    My question is I want to do the # "Bill" when you click on it it goes to a new page and executes a query that retrieves infro associated with this specific invoice such as Services rendered, the Description of Service, Date, price, Total. I was able to create a link to the invoice # but I'm stuck trying to figure out how to capture the Unique invoice # and apply it to the new query. Is it possible if yes, how?

    Thanks for your help!

    < cflock scope = "Session" type = "ReadOnly" timeout = "30" throwontimeout = "no" >

    < cfset MM_Username = Iif (IsDefined("Session.MM_Username"), "Session.MM_Username", DE("")) >

    < cfset MM_UserAuthorization = Iif (IsDefined ("Session.MM_UserAuthorization"), "Session.MM_UserAuthor-ization", DE("")) >

    < / cflock >

    < cfif MM_Username EQ "" EQ MM_UserAuthorization or "" or ListFind("User,Admin",MM_UserAuthorization) EQ 0 >

    < cfset MM_referer = CGI. SCRIPT_NAME >

    < cfif CGI. QUERY_STRING NEQ "" > "".

    < cfset MM_referer = MM_referer & "?" & CGI. QUERY_STRING >

    < / cfif >

    < cfset MM_failureURL = "" sorry.cfm? accessdenied = "and URLEncodedFormat (MM_referer) >"

    < cflocation url = "' #MM_failureURL # ' addtoken ="no">"

    < / cfif >

    < cfparam name = default "PageNum_Invoice" = "1" >

    < cfset GetFileFromPath = CurrentPage (GetBaseTemplatePath ()) >

    < cfparam name = default "PageNum_Query_Invoice" = "1" >

    < cfquery name = "Query_Invoice" datasource = "SBC" >

    SELECT DueDate, AppliedAmount, RefNumber, BalanceRemaining, TxnDate

    OF the invoice

    WHERE CustomerRefFullName = < cfoutput > ' #Session.FullName # ' < / cfoutput >

    < / cfquery >

    < cfset MaxRows_Query_Invoice = 10 >

    < cfset StartRow_Query_Invoice = Min ((PageNum_Query_Invoice-1) * MaxRows_Query_Invoice + 1, Max (voice of Query_In.) RecordCount, 1)) >

    < cfset EndRow_Query_Invoice = Min (StartRow_Query_Invoice + MaxRows_Query_Invoice-1, Query_Invoice.Rec ordCount) >

    < cfset TotalPages_Query_Invoice = Ceiling(Query_Invoice.RecordCount/MaxRows_Query_Invoice) >

    < cflock scope = "Session" timeout = "30" type = "Exclusive" >

    <! - Session variable for invoice reference number - >

    < cfset Session.RefNumber = Query_Invoice.RefNumber [1] >

    < / cflock >

    < cfset QueryString_Query_Invoice = Iif (CGI. QUERY_STRING NEQ "", FROM ('&' & XMLFormat (CGI.) (QUERY_STRING)), de("")) >

    < cfset tempPos = ListContainsNoCase (QueryString_Query_Invoice, "PageNum_Query_Invoice =", "&") >

    < cfif tempPos NEQ 0 >

    < cfset QueryString_Query_Invoice = ListDeleteAt (QueryString_Query_Invoice, tempPos, "&") >

    < / cfif >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    "< html > <!-InstanceBegin template="/Templates/customer_template.dwt.cfm ' codeOutsideHTMLIsLocked = 'false'->

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 ">"

    <!-InstanceBeginEditable name = "title"--> < title > Untitled Document < / title > <! - InstanceEndEditable - >

    < link href = "styles/Main.css' rel ="stylesheet"type =" text/css">"

    < script src = "SpryAssets/SpryMenuBar.js" type = "text/javascript" > < / script > "

    < link href = "SpryAssets/SpryMenuBarHorizontal.css" rel = "stylesheet" type = "text/css" > "

    <!-InstanceBeginEditable name = 'head'-> head content goes here <! - InstanceEndEditable - > < / head >

    < body >

    < div id = "Container" >

    < div id = "header" > < img src = "Images/site Web - Image.gif" width = "393" height = "217" alt = "TS planning landscaping Logo and company name" > < / div >

    < div id = "menu_bar1" >

    < ul id = "MenuBar1" class = "MenuBarHorizontal" >

    < li > < a class = "MenuBarItemSubmenu" href = "index.cfm" > home < /a >

    < ul >

    < li > < a href = "#" > 1.1 < /a > < /li >

    < li > < a href = "#" > 1.2 < /a > < /li >

    < li > < a href = "#" > question 1.3 < /a > < /li >

    < /ul >

    < /li >

    < li > < a href = "#" > about us < /a > < /li >

    < li > < a href = "#" > Services < /a > < /li >

    < li > < a class = "MenuBarItemSubmenu" href = "#" > user account < /a >

    < ul >

    < li > < a href = "login.cfm" > Connect < /a > < /li >

    < li > < a href = "registration_page_contact.cfm" > register < /a > < /li > "

    < li > < a href = "members_page.cfm" > customer Page < /a > < /li > ""

    < /ul >

    < /li >

    < li > < a href = "#" > contact us < /a > < /li >

    < /ul >

    < / div >

    < div id = 'Hand' >

    < div id = "side_bar" > <!-InstanceBeginEditable name = "sidebar"-> content for id "side_bar" goes here <! - InstanceEndEditable - > < / div >

    < div id = "main_body" > <!-InstanceBeginEditable name = "mainbody"->

    < H1 > < cfoutput > #Session.FullName # < / cfoutput > bills < / h1 >

    < p > here you can view your bills current and past. < /p > < br >

    < name of the form = "customerinvoices" >

    < table border = "1" align = "center" >

    < b >

    < td > < div align = "center" > invoice # < / div > < table >

    < td > < div align = "center" > Date < / div > < table >

    paid < td > < div align = "center" > < / div > < table >

    < td > < div align = "center" > BalanceRemaining < / div > < table >

    Due Date < td > < div align = "center" > < / div > < table >

    < /tr >

    < cfoutput query = "Query_Invoice" StartRowOptional = "" #StartRow_Query_Invoice # "LignesMax =" #MaxRows_Query_Invoice #">"

    < b >

    < td > < a href = "invoice_number_page.cfm" > #Query_Invoice.RefNumber # < /a > < table >

    < td > #LSDateFormat (Query_Invoice.TxnDate, 'MMMM DD, YYYY') # < table >

    < td > #DollarFormat (Query_Invoice.AppliedAmount) # < table >

    < td > #DollarFormat (Query_Invoice.BalanceRemaining) # < table >

    < td > #LSDateFormat (Query_Invoice.DueDate, "MMMM DD, YYY'") # < table >

    < /tr >

    < / cfoutput >

    < / table > < / make >

    < p > < table border = "0" align = "center" >

    < cfoutput >

    < b >

    < td > < cfif PageNum_Query_Invoice GT 1 >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = 1 #QueryString_Query_Invoice #"> first < /a >"

    < cfelse > sorry no bills have been found!

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice GT 1 >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = #Max (DecrementValue (PageNum_Query_Invoice), 1) # QueryString_Query_Invoice #"> back < /a >"

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice LT TotalPages_Query_Invoice >

    < a href = "#CurrentPage #?" "PageNum_Query_Invoice = #Min (IncrementValue (PageNum_Query_Invoice), Tota lPages_Query_Invoice) # QueryString_Query_Invoice # ' > next < /a >

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice LT TotalPages_Query_Invoice >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = #TotalPages_Query_Invoice # QueryString_Query_In voice #"> last < /a >"

    < / cfif > < table >

    < /tr >

    < / cfoutput >

    < table / > < / p >

    <! - InstanceEndEditable - > < / div >

    < / div >

    < div id = "footer" >

    < p > home | Who are we | < /P > site map

    < p > & copy; TS in planning landscaping LLC 2010 < /p >

    < / div >

    < / div >

    < script type = "text/javascript" >

    var MenuBar1 = new Spry.Widget.MenuBar ("MenuBar1", {imgDown: "..."}) "" / SpryAssets/SpryMenuBarDownHover.gif ', imgRight: ".. ({"/ SpryAssets/SpryMenuBarRightHover.gif"});

    < /script >

    < / body >

    <! - InstanceEnd - > < / html >

    Without trying to sift through all the code has nothing to do with the question, I think you want to do something like this:

    Select number, Word

    etc.

    #word #.

    Then on nextpage.cfm, your variable will be url.thenumber.

  • Problems of creating a Table of contents of an InDesign document

    I am putting together a test document so that it contains all the styles, I need to create a Table of contents, and I am new to the control of this process, I appreciate any help I can get from the community here.

    I have my paragraph styles, both for the headings in the document, as well as for table of contents entries, and I have them mapped to appropriate levels in the style of Table of contents.

    First problem:  When I look at one the resunting table of contents, the entries are sort according to the page they are but not their position on the page.  These entries are contained in different text blocks arranged on each page. Certainly, it must be possible to make it work!

    Second problem:  I can't get the function of head of the tab work the same way for two different styles for the same level within the table of contents.  In other words, the page numbering for the style hidden for my headers (placed on layers to hide when the document print) does not justify the right in alignment with the right reason for the numbering of headings unhidden.  I have OCD topics paragraph style in place with a tab on right justify, with a '. ' in the ' Leader: "box.  When you change the style of table of contents, I have the box "between entry and number" to "Right indent tab."  Is there a different setting for what I should use for this box "between entry and number?  I have not found a good explanation of options two dozen on the list of choices.

    Here's an example of what looks like my OCD:

    Topic #1........................................................1

    #2 theme (which is hidden)... 1

    Part of the #1 section has

    Theme #1 part b

    Part of the #2 section a, which is hidden.

    Topic #3........................................................2

    Topic #4........................................................2

    Part of the #3 a topic

    Theme #3 part b

    Part of the #4 section has

    Theme #4 part b

    Topic #5 (what is hidden)... 3

    Part of the #5 section a, which is hidden

    Thanks in advance for your help.

    The general principle is that ID leans on the upper left corner of the insert text frames and begins with one who is on the left, then moves down. This means that a block of text that begins at the bottom of the page, but whose left edge is more to the left, will be picked up before a frame which is high on the page, but whose left edge is more to the right.

  • I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.

    When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.

  • How to make the table display dynamically in jquery mobile

    Hello

    can you please tell me how to do table display dynamically in jquery mobile. ?

    Please give a few example

    Hi Q3test,

    Check this link below
    http://hippieitgeek.blogspot.se/2013/01/creating-dynamic-tables-with-jQuery.html

    Hope this will help you.

  • How to create a Table of contents of a book as opposed to a single document?

    I'm working on a book with several chapters. Each chapter is a separate document joined as well as the rest of the book in InDesign. I have a table of contents in each document, and the hyperlink works very well when the document is exported to PDF. However, I was unable to create a single comprehensive contents table on the front of the book before Chapter 1. I tried everything I know how to create a table of contents for a single document, but that does not work for me with so many documents in the book. Is there something I missed? I'd appreciate any help in this regard.

    In the Options section of the Table of contents dialog box, there is a checkbox: Include book of Documents.

    What is checked, he must analyze each document in a book for styles to be used in the creation of the table of contents.

  • Is there a way to create a table that creates new "lines" when enter is pressed?

    Hi all

    I am trying to create a pdf file for my company to regularly use the packing list. Generally, this packing list is generated by our software, but our software was not designed primarily for delivery and purchase and lack of functionality. With complex or revised orders, we must create our own documents and I wanted to create something that could be used as a standard that reflects what the software has generated.

    Thus, the document itself. Packing lists (or invoices or purchase orders, according to what is required at this time) have a number of elements arranged in a table with properties. These properties is the name of the item, description, how many rooms, the price, the size of the container, etc. Simple packing lists have three or four points that all fit on one page but larger orders have elements which extend into several pages, ending with a 'total' for all areas.

    My question is, is - it possible ot create a table in Adobe Acrobat, DC format that allows me to create a dynamic array that can be extended (with additional lines) when necessary on another page or several pages? Table if it makes a difference, each page would have a header and a footer (information for the transport and logistics) for this 'dynamic' table would be sandwiched between these two areas.

    Thank you

    EDIT: I've been looking around and, I hope that Adobe Acrobat DC has this feature, but it seems the best way to acchieve that is via Adobe Live Cycle Designer, which fortunately, my supervisor has a copy. This youtube video explains, in an overview, exactly what I want to do and how to do it through this program. Perhaps that will help someone in the future who also Live Cycle:

    Creating robust dynamic forms in Adobe LiveCycle® - YouTube

    As you have found, it's more a characteristic of the LCD and not Acrobat. It is possible to add new fields in Acrobat, but there is no "dynamic table". It must be done manually.

    Another option is to create a template page with additional fields and then reproduce a copy of it when necessary.

  • Using Framemaker 7.2. Create a table at the top of the first page

    When I try to create a table with four rows and two columns, it appears on the top of page 2, and not page 1 where I want. I can't find a way to anchor it at the top of the first page. What I am doing wrong?

    Dennis...

    Moreover, in FrameMaker 2015, there is also a table format 'catalogue' as you know from the catalog of paragraph and character style. This makes it very easy to assign table models to the tables (see here).

  • Creating a table to a csv file

    I use the JDeveloper 11.1.1.6.

    I'm looking to recover data to a .csv file and load it into a custom table made just for the data in the file.

    I managed to load the csv file in a data control with a Service URL data control. I wonder how to take data from the data control and place it in a Java object so that I can make the dynamic creation of sql create statement table. I know how to do dynamic creation - it's just to access the data of the data control to which I am at this point.

    If there is a better way to do it, I would be also open to it! Thank you!

    Published by: Jim W. 26 September 2012 08:00

    I found this documentation. Is not myself. The documentation is newer than your version, so it may not work.

    http://docs.Oracle.com/CD/E24382_01/Web.1112/e16182/bcquerying.htm

    Stuart

Maybe you are looking for

  • Someone tries to access my Apple account?

    I sang in my Apple ID on my mac, type in the verification code 2 step and everything was good, bit I disconnected. I went and looked at my iPhone and it had notification of two steps and asked if I wanted to allow. I clicked No. and changed my passwo

  • Why is Norton Insight allow me to install Thunderbird?

    I want to install Mozilla Thunderbird but my Norton Insight will not allow him. He said that it is dangerous. What can I do to install Thunderbird?

  • HP Envy Phoenix 850: HP Envy Phoenix 850 - optical drive add/upgrade

    Hello I'm looking for one of the new HP Envy Phoenix 850 models and ask yourself it is possible to: (1) add an additional optical drive? I have a spare Pioneer BDR-209EBK, (W148mm x H 42.3 mm x D180mm) (2) or replace the DVD SuperMulti HP standard bu

  • E260 problem

    Hello guys! SRY when I didn't want a similar position. I'm starting a new My sansa e260 had a lot of problems the last few months. those with the firemware I could fix myself. But now I'm confused. I'm a fanatic of music and my music need every morni

  • can not fast before video in the windows media player 11 in windows Vista Home Basic

    When I play video which is part of the shared folder and I play windows media player directly the duration of the video shows 00:00 and everytime I try to fast forward it back at the beginning.  If I play the same video, but instead, I directly in th