Getting Footnote numbers and Footnote refernce as text

Hi all,
I have tried to convert the footnotes as text using convertToText() option in indesign Javascript.
It was retainied the text but not auto footnote number. Alos, I want to retain the footnote reference also.
Please guide me how to proceed this with Indesign javascript.
Thanks in Advance,
Christy

Hi,
Preety poor info so some assumings:
var myDoc = app.activeDocument;
var myFoot = myDoc.stories[0].footnotes;
var count = myFoot.length;
while (count--) {
     currFoot = myFoot[-1].convertToText();
     currFoot.insertionPoints[-1].contents = SpecialCharacters.EM_SPACE;     //     edit this for another format
     currFoot.insertionPoints[0].contents = " ==> " + (count + 1).toString() + " - ";    //     edit this for another format
assumed:
- 1 story in your doc
- arabic style for numbers
- footnotes are numbered continuously
Jarek

Similar Messages

  • How to get total numbers and total price in query reports

    Hi,
    how to get total numbers and total price in query reports.for example:
    particular item is issued 3 times a week...I need total quantity of item issued
    my query...
    SELECT T0.[DocNum], T1.[ItemCode], T1.[Quantity], T1.[Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'

    Hi,
    Try this:
    SELECT T1.[ItemCode], SUM (T1.[Quantity]) as [Total Quantity], SUM (T1.[Quantity] * T1.[Price]) as [Total Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'
    Group By T1.[ItemCode]
    Beni.

  • I have MacBook Pro Retina, but dint get pages, numbers and keynote for free with it, but others did. What to do?

    I have MacBook Pro Retina, but dint get pages, numbers and keynote for free with it, but others did. What to do?

    Solved the problem- I contacted apple on their support line found on this page... http://www.apple.com/uk/support/mac/ and they were really helpful and talked me through what to do on the phone, I now have all three productivity apps. Hope this helps

  • I deleted my iCloud because I thought it was not working and I have lost all my phone numbers, how do I get my numbers and/ my account back

    I deleted my iCloud because I thought it was not working and I have lost all my phone numbers, how do I get my numbers and/ my account back?

    i had te same problem, funny it worked too... 
    next questions i have:
    my msn contacts (emails) show up in my calling countact in the iphone, i would like to not see them here, how can i get rid of them?
    i would like my phone number contacts to be saved in outlook in the event i forget my phone home!  is this possible as the only way i see to access them is by the phone...
    thanks alors!

  • HT4623 how can i get the numbers and keynote app to work on my imac?Help!

    I downloaded the numbers and keynote apps but how do i get them to open and work on my imac or ipad?

    If you downloaded the iPad apps in iTunes on your computer, you have to sync them to the iPad. If you downloaded the Mac apps from the Mac App Store, they should open on the Mac, so I think we have to assume that you downloaded the apps for the iPad.
    The apps that work on the iPad do not work on the Mac, and the Mac apps will not work on the iPad. The Mac and the iPad have different operating systems so you must purchase the apps for both the computer and the iPad.
    If you did buy the iPad apps in iTunes on the Mac - sync them to the device.
    Connect the iPad to the Mac and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Apps Tab on the right.
    Click on all of the apps that you want to sync in the list
    Click on the Sync Apps Heading.
    Click on Apply in the lower right corner of iTunes

  • I didn't apply for the up-to-date programme within 30 days can I still get Pages, Numbers and Keynote for free?

    I was told I would be able to download Pages, Numbers and Keynote for free with my new Macbook Pro however I got it as a Christmas present and as it was bought on the 8th of November I missed applying for the up-to date-programme within 30 days. I was wondering if there was any chance of talking to apple and downloading the apps anyway, and who exactly i would need to contact.
    Thanks in advice for help

    Solved the problem- I contacted apple on their support line found on this page... http://www.apple.com/uk/support/mac/ and they were really helpful and talked me through what to do on the phone, I now have all three productivity apps. Hope this helps

  • IDCP - Get back numbering and reuse the number

    At "IDCP - Printout of Billing Documents and Delivery Notes on Prenumbered Forms" we can print, number and renumber the documents. We cannot use the number that we have used at a document. Our case is that the number that we have assigned to a doument is false. Say that the number of the billing document is 90000055 on SAP and the number of the prenumbered form is 45191. On the other hand the SAP user has given a wrong number for 90000055 (say that it should have been 45191 but the user has given 45195). We can renumber the billing document (90000055) but how can I use 45195 again?

    Hi yasar
    i am in configuration phase of official document numbering i need your help in this area can you please provide me your email so i can ask you few questions.
    i hope being scn member we are here to help each other
    here is my email please if its possible for you reply me as soon as you see my message
    [email protected]
    regards
    Sam

  • Trying to convert a pdf to a word doc using Acrobat XI Pro. I am getting formatting errors and scrambled text, especially right below headings. Not all headings affected, just some, but all the same paragraph tag. Any ideas?

    I am trying to convert a pdf  to a word doc. The pdf was created in Framemaker. I am using Acrobat XI Pro and getting formatting errors and scrambled (or missing) text, especially below a heading. Any fixes?

    Hi pakbecker,
    Please try updating to Acrobat 11.0.7 and check.
    In case you still face issues,  i would like to have a look at th doucment.
    Send me an email at [email protected]
    Regards,
    Rave

  • Why Can't I get my total to output to the text area?

    I can get the numbers to go to the text area and to clear the text area but, the only way I have figured out how to output the total is with a JOptionPane. Can someone look at my code and tell me how to fix this?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Calculator4 extends JApplet implements ActionListener
    String Nums="";
    String sNum="";
    double Num1=0;
    double Num2=0;
    double Add=0;
    double Subtract=0;
    double Multiply=0;
    double Divide=0;
    int choice=0;
    private JTextField displayField;
    private JButton Button0, Button1, Button2, Button3, Button4, Button5,
    Button6, Button7, Button8, Button9, ButtonAdd, ButtonSub,
    ButtonMult, ButtonDiv, ButtonClear, Buttontotal;
    public void init()
    Container container = getContentPane();
    container.setLayout(new FlowLayout());
    displayField = new JTextField(15);
    displayField.setEditable(false);
    container.add(displayField);
    Button1 = new JButton("1");
    Button1.addActionListener(this);
    container.add(Button1);
    Button2 = new JButton("2");
    Button2.addActionListener(this);
    container.add(Button2);
    Button3 = new JButton("3");
    Button3.addActionListener(this);
    container.add(Button3);
    ButtonAdd = new JButton("+");
    ButtonAdd.addActionListener(this);
    container.add(ButtonAdd);
    Button4 = new JButton("4");
    Button4.addActionListener(this);
    container.add(Button4);
    Button5 = new JButton("5");
    Button5.addActionListener(this);
    container.add(Button5);
    Button6 = new JButton("6");
    Button6.addActionListener(this);
    container.add(Button6);
    ButtonSub = new JButton("-");
    ButtonSub.addActionListener(this);
    container.add(ButtonSub);
    Button7 = new JButton("7");
    Button7.addActionListener(this);
    container.add(Button7);
    Button8 = new JButton("8");
    Button8.addActionListener(this);
    container.add(Button8);
    Button9 = new JButton("9");
    Button9.addActionListener(this);
    container.add(Button9);
    ButtonMult = new JButton("*");
    ButtonMult.addActionListener(this);
    container.add(ButtonMult);
    Button0 = new JButton("0");
    Button0.addActionListener(this);
    container.add(Button0);
    ButtonDiv = new JButton("/");
    ButtonDiv.addActionListener(this);
    container.add(ButtonDiv);
    ButtonClear = new JButton(" Clear ");
    ButtonClear.addActionListener(this);
    container.add(ButtonClear);
    Buttontotal = new JButton("=");
    Buttontotal.addActionListener(this);
    container.add(Buttontotal);
    public void actionPerformed(ActionEvent actionEvent)
    if(actionEvent.getSource() == Button1)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("1");}
    if(Nums!=null)
    {  Nums= Nums + 1;
    updateDisplay();}
    else if(actionEvent.getSource()==Button2)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("2");}
    if(Nums!=null)
    {  Nums= Nums + 2;
    updateDisplay();}
    else if(actionEvent.getSource()==Button3)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("3");}
    if(Nums!=null)
    {  Nums= Nums + 3;
    updateDisplay();}
    else if(actionEvent.getSource()==Button4)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("4");}
    if(Nums!=null)
    {  Nums= Nums + 4;
    updateDisplay();}
    else if(actionEvent.getSource()==Button5)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("5");}
    if(Nums!=null)
    {  Nums= Nums + 5;
    updateDisplay();}
    else if(actionEvent.getSource()==Button6)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("6");}
    if(Nums!=null)
    {  Nums= Nums + 6;
    updateDisplay();}
    else if(actionEvent.getSource()==Button7)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("7");}
    if(Nums!=null)
    {  Nums= Nums + 7;
    updateDisplay();}
    else if(actionEvent.getSource()==Button8)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("8");}
    if(Nums!=null)
    {  Nums= Nums + 8;
    updateDisplay();}
    else if(actionEvent.getSource()==Button9)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("9");}
    if(Nums!=null)
    {  Nums= Nums +9;
    updateDisplay();}
    else if(actionEvent.getSource()==Button0)
    play(getCodeBase(),"Ping.WAV");
    if(Nums==null)
    {  Nums= "";
    displayField.setText("0");}
    if(Nums!=null)
    {  Nums= Nums + 0;
    updateDisplay();}
    else if(actionEvent.getSource()==ButtonAdd)
    play(getCodeBase(),"Ping.WAV");
    choice = 1;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==ButtonSub)
    play(getCodeBase(),"Ping.WAV");
    choice = 2;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==ButtonMult)
    play(getCodeBase(),"Ping.WAV");
    choice = 3;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==ButtonDiv)
    play(getCodeBase(),"Ping.WAV");
    choice = 4;
    sNum="";
    sNum = Nums;
    Nums=null;
    else if(actionEvent.getSource()==Buttontotal)
    play(getCodeBase(),"Ping.WAV");
    if(choice==0)
    JOptionPane.showMessageDialog(null,"Please Select Operation");
    if(choice!=0)
    switch(choice)
    case 1:
    if(Nums!=null)
    {    Num1 = Double.parseDouble(sNum);
    Num2 = Double.parseDouble(Nums);
    double Add = Addition(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Sum is: " + Add);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    case 2:
    if(Nums!=null)
    {    Num1 = Double.parseDouble(sNum);
    Num2= Double.parseDouble(Nums);
    double Subtract = Subtraction(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Difference is: " + Subtract);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    case 3:
    if(Nums!=null)
    {    Num1= Double.parseDouble(sNum);
    Num2= Double.parseDouble(Nums);
    double Multiply = Multiplication(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Product is: " + Multiply);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    case 4:
    if(Nums!=null)
    {    Num1 = Double.parseDouble(sNum);
    Num2= Double.parseDouble(Nums);
    double Divide = Division(Num1, Num2);
    JOptionPane.showMessageDialog(null,"Your Quotient is: " + Divide);
    sNum = "";
    if(Nums==null)
    JOptionPane.showMessageDialog(null,"Please Enter Second number");
    Nums=null;
    break;
    else if(actionEvent.getSource()==ButtonClear)
    play(getCodeBase(),"Ping.WAV");
    displayField.setText("");
    Nums=null;
    sNum="";
    choice=0;
    Num1=0;
    Num2=0;
    public void updateDisplay()
    displayField.setText(Nums);
    public double Addition(double Num1, double Num2)
    return ( Num1 + Num2);
    public double Subtraction(double Num1, double Num2)
    return ( Num1 - Num2);
    public double Multiplication(double Num1, double Num2)
    return ( Num1 * Num2);
    public double Division(double Num1, double Num2)
    return ( Num1 / Num2);
    }

    You mean something like this:
    private int currentNumber =0;
    private int total = 0;
    private JTextField Display = new JTextField(10);
    private JtextField Current = new JTextField(10);
    // Add all your buttons correctly
    // Try using a GridLayout to make it easier
    // blah blah
    public void actionPerformed( ActionEvent event )
    int number = -1;
    String Command = event.getActionCommand();
    // Play your sound here.....
      doPlaySound();
    try
       number = Integer.parseInt( command );
    catch( NumberFormatException NFE )
        //ignore
    if( number != -1 )
        doIsNumber( number );
        return;   // don't process further
    if( command == "Enter" )
        doEnter();
        return;
    if(command == "Plus" )
        doPlus();
        return;
    // and so on
    }//end actionPerformed
    private void doNumber( int number )
       String S;
        currentNumber = ( currentNumber * 10 ) + number;
        S = Integer.tostring( currentNumber );  //cant remember if that throws anything
       Current.setText( S );  //Display Work Number
      private void doPlus()
        String S;
        total = total + currentNumber;
        currentNumber = 0;
        Current.setText("");
        S = Integer.toString( total );
        Display.setText( S );
      private void doEnter()
        total = currentNumber;
        currentNumber = 0;
        Current.setText( "");
        Display.setText( Integer.toString( total ) );
      private void doDivide()
         System.out.println("Err you got to be kidding");
      }yeh and I'd definitely go for a GridLayout()
    4 * 4, with JLabels for the blank filler parts......
    So does this help

  • Pages, Numbers, and Keynote

    I recently updated my iPhone to iOS 8 and while I was doing this I noticed I could get Pages, Numbers, and Keynote for free on my phone. I remember they were supposed to be free on my macbook pro when I bought it but I never downloaded them when I got the computer and now I see that they are all 19.99. Why are they not free for the computer anymore? Since I downloaded them to my phone will they transfer to my mac when I sync? I'm a little afraid to sync and lose them. I know that may sound silly. Does anyone have insight on any of this? Thanks for any help you can give.

    iOS apps will not run on a Mac. Mac apps will not run on your iOS devices. You can store iOS apps in the iTunes content library on a Mac or PC for safe keeping and syncing to multiple iOS devices.
    If you qualify for free Mac versions of the iWork apps with the purchase of a new Mac, they would have been in the Purchases pane on the Mac App Store after signing into your store account. You would have been able to accept them into your account and download them.

  • How do I use page numbering and a text block in a footer in Word with the Report Generation Toolkit?

    I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?

    Hi SciManStev,
    I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.
    Good Luck!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer
    Attachments:
    SciMan1.vi ‏14 KB

  • How can I add footnotes to a text in a table?

    To make use of a wider margin next to longer texts I usually work with two column tables in WORD. No problem to add footnotes to a text there.
    How can I add footnotes to text in a table when using PAGES?
    Or -alternatively - how can I write an ordinary text that has still a wider margin into which you can add annotations, notes etc.?

    Footnotes doesn't work for tables in Pages. You can create columns in Pages. You can use Insert column break to  being able to keep some text in one column and some in the other. Foot notes will work here.

  • Getting odd symbols and random numbers

    When receiving texts both my and my wifes phone are getting randoms symbols and numbers instead of the text message.. We thought it may be just hers but now both are doing it

    What phones do you both have? It could be caused by someone sending you a message with an animation in it that your phone can't "translate".
    A signature can cause the text to be scrambled, and special characters or formatting can cause the same behavior in the received message.
    Also, see if the the texts being sent are longer than the standard 160 characters....then post back and let us know if any of these apply and make a difference when changed.

  • Generating a footnote from selected text

    I am trying to script InDesign CS4 using ExtendScript. I  want the script to cut the selected text, insert a footnote and paste  the text into the footnote body. What I have tried:
    function makeFootnoteOfSelection(){
       var fnText = app.activeDocument.selection[0];
             // this should actually clone the selected text, not reference it, because the next statement zaps it from memory
       app.activeDocument.selection[0].remove();  // works
       var fNote = app.activeDocument.selection[0].footnotes.add();  // works, adds an empty footnote with a reference
       fNote.contents = fnText.contents;
             // this replaces the reference number, I was hoping to retain it and just add the text
             // fNote.contents += fnText.contents; also replaces the reference number
    Any help will be greatly appreciated.

    A problem with 'contents' could be that it works with just the plain characters, no formatting.
    Try this (it's cheating a bit, but it works):
    app.cut();
    var fNote = app.activeDocument.selection[0].footnotes.add();
    app.select (fNote.insertionPoints[-1]);
    app.paste();

  • My wife and i share the same computer to sync our phone with. All of a sudden i lost all my phone numbers and got hers. How do i get mine back. Help Please

    My wife and i share the same computer to sync our phones with. The last time i sync i lost all my phone numbers and got hers. Is there a way to get mine back. Please Help. Thanks

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here... http://support.apple.com/kb/HT1495
    Create a New User Account for each User.
    Then Each user will have their own iTunes library..
    More Info Here >  cnettv.cnet.com/use-two-iphones-one-computerl

Maybe you are looking for

  • Using mail on multiple devices

    Hi, I get mail from two gmail accounts on three devices: iPad, iPhone, desktop. Is there a way to set it up so that when I delete mail from one device it deletes it from all three? I am going nuts with so many messages. Thanks for your help.

  • Idoc problem: I canu00B4t modify Header text before sales order is created

    We are generating Sales order with Idoc :ORDERS01 (Inbound), and we´d like modify some  text in E1EDKT1 AND E1EDKT2 segments, at header level. We are using EXIT_SAPLVEDA_011 with this coding: data: v_e1edkt1 like e1edkt1,       v_e1edkt2 like e1edkt2

  • Is there a WIFI bug with IOS 5?

    Ever since I upgraded my iPad 2 to IOS 5, it keeps dropping WIFI. I used to use it for taking online lectures via AdobeConnect. Now, the iPad drops the wifi connection totally 60+ minutes into the lecture. Nothing works to fix it other than time (sev

  • Safari crashing whenever I try to open a new tab

    The extensions panel under preferences is empty, with a message "Localized string not found" I get the following crash message--any help appreciated, thanks! Process: Safari [1230] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.

  • Why does MCHA-LICHA does not have a picklist?

    Hi All, I have a table control based from the field of MCHA, picklist is very essential in the data selection, but I noticed that the field MCHA-LICHA does not have any pick-list at all even via SE16? Thanks.