[JS] CrossReference using Text Anchor of another file

Hello I would like to make a document indesign resume all anchor text for different documents in a book.
Anchors nome example is "26/90", I have posted their names with their contents separated by a TAB.
Ink to create a text, I use the command ". HyperlinkTextDestinations.add (erg [i], {name: erg [i]. Contents}"
but I do not know how to cross reference this anchor.
Thank you for the info
Traduction
Bonjour je voudrais faire un document indesign reprennent tous les ancre de texte de diffèrent documents d'un livre.
Les Ancres se nome exemple "26/90", je dois affiché leurs noms avec leurs contenus séparé par une TAB.
Pour crée une encre de texte, j'utilise la commande ".hyperlinkTextDestinations.add(erg[i],{name: erg[i].contents}"
mais je ne sais pas comment mettre une référence croisé sur cette ancre.
Merci pour ces info
Here's a first code:
var myBookFilePath = File.openDialog("Choose an InDesign Book File", "Indb files: *.indb");
var myOpenBook = app.open(myBookFilePath);
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
// Open up every file in the currently active Book
app.open(app.activeBook.bookContents.everyItem().fullName)
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = "25/78";
for (i= 0 ; i < app.documents.length; i++) {
    var myDoc = app.documents[i];
    var myFound = [];
    myFound = myDoc.findGrep();
    $.writeln("Found " + myFound.length + " Main headings.");
    for (var b = 0; b < myFound.length; b++)   {
        myDoc.hyperlinkTextDestinations.add(myFound[b], { name: myFound[b].contents + "_"+i + "_" +b});
           //myDoc.hyperlinkTextDestinations[x].name;
        $.writeln(myDoc.hyperlinkTextDestinations[b].name);
    $.writeln("There are now " + myDoc.hyperlinkTextDestinations.count() + " destinations.");
anchors and I get the following non "25/78_1_0, 25/78_2_0, 25/78_2_1 and 25/78_2_2 "
I do not parvien creates cross reference the anchor text in another Master File (app.documents [i]) Book .... examples I found did not help me.

Hi,
I advance the principle function but I have a problem with the line 51, and my knowledge of code is not very good.
Here is the error message: The selected object is being used by another Hyperlink.
Thank you for help can
translation
Bonsoir,
J'avance, le principe fonction mais j'ai un problème à la line 51, et ma connaissance des code n'est pas très bonne.
Voici le message d'erreur : L'Objet sélectionné est utilisé par un autre Hyperlien.
Merci pour un peux d'aide
#target indesign
        Ouverture du livre et des fichiers pour les encre
// Variable globales p
var leFichier01 = "106_TVA_OK3.indd";
var leFichier02 = "107 TVA ok1.indd";
var leFichier03 = "108 TVA ok1.indd";
var leFichier04 = "113 TVA chrono.indd";
var lesFichiers01 = [leFichier01,leFichier02,leFichier03];
main();
function main(){
    if(app.documents.length != 0){
        if(app.selection.length != 0 && app.selection[0].constructor.name == 'Table'){
                var nomTableau = app.selection[0];
                    dirTVA_2012_deux(nomTableau);
                    exit();           
        else{
                    alert("Selection un tableau");
                    exit();
    else{
        alert("Ouvrait un document et Mettre son cuseur dans le points de départ");
        exit();
function dirTVA_2012_deux(leTableau_Chono){
                    app.findGrepPreferences = NothingEnum.nothing;
                    app.changeGrepPreferences = NothingEnum.nothing;
                     with (leTableau_Chono.columns[2]) {
                         for (var tab = 0; tab < cells.length; tab++) { // sue toutes la colonnes
                         //for (var tab = 0; tab < 9; tab++) { // sur 10 cell pour le test
                        // faire une boucle par documents
                            if (cells[tab].contents != null) {
                                        app.findGrepPreferences.findWhat = cells[tab].contents; // remplacer le 1 par le conteur de colonnes "tab" conteur de cell
                                for (var conteurFich = 0; conteurFich < lesFichiers01.length; conteurFich++){
                                         var leResultat = [];
                                        leResultat = app.documents.itemByName(lesFichiers01[conteurFich]).findGrep();
                                    // pas de IF le test est dans la boucle for!!
                                              for (var b = 0; b < leResultat.length; b++)   {
                                                    var s = leTableau_Chono.columns[3].cells[tab].insertionPoints.firstItem(); // MON Problème est làà!!!!!!
                                                    var cr_destination = app.documents.itemByName(lesFichiers01[conteurFich]).hyperlinkTextDestinations.add(leResu ltat[b], { name: leResultat[b].contents + "_"+  conteurFich + "_" +b});
                                                    var cr_format = app.documents.itemByName(leFichier04).crossReferenceFormats.itemByName('Philou007'); 
                                                    var cr_source = app.documents.itemByName(leFichier04).crossReferenceSources.add({sourceText:s, appliedFormat: cr_format} );
                                                     var cr = app.documents.itemByName(leFichier04).hyperlinks.add ( cr_source, cr_destination);       
                                            } // fin du For su r "leResultat"
                                  } // fin du FOR sur les fichier "lesFichiers01"
                            } // fin du If test cell vide
                        } // fin du For sur les cell
     }// fin du with tableau   
}// fin de la function

Similar Messages

  • Cross-references to hyperlink destinations (text anchors) results in file slowdown

    I'm using text anchors for the first time in a 12-file book (~280 pages) for the table/figure list in the front matter. There are maybe 100 or so total cross-references in the front matter in tables (where one column is the text of the figure title and one column the page number).
    About halfway through the process of adding the cross references, things got reallllly slow, and only in that one document. So slow that reformatting became almost impossible, because of the delays.
    So I went through many of the usual troubleshooting steps, just in case. Trashed preferences, trashed the style, etc. I exported the file to IDML and created a new file from that. It helped, but I can tell that it's still not quite so snappy.
    My question, then, is if this is to be expected with what may be a large number of hyperlinks/text anchors? All the other files in the book act fine, so it's not an InDesign-wide slowdown. Are there any best practices when it comes to using hyperlink destinations?
    As an amusing aside, before I tried the troubleshooting steps I had a clever idea--to insert the cross references into a new, blank document and then paste them into the frontmatter file. Consist and ugly crashes to desktop resulted.

    George Krompacky wrote:
    Peter,
    Thanks for your reply. Yes, the TOC could do this and would be an easier approach. But I hadn't anticipated using it and so didn't have my ducks in a row as far as having the styles consistent for chapter titles, figures and tables. Next time I will do so. I can guess that as a TOC doesn't generate live links, it shouldn't have a performance impact like dozens of cross-references do.
    Yes, the TOC is inert except when it's being generated.
    Regardless of how "creatively chaotic" or "chaotically creative" your chapter, table, and figure title paragraph styles are, as long as all chapter titles are tagged with style names that are not used for figures or tables, and similarly figures and tables are not tagged with styles used for the "other," you can still generate a usable TOC. The idea is to capture all the paragraph styles for each category, and display each category's captured paragraphs as uniform TOC entries - i. e., all chapter title entries are the same, all table title entries are the same, and all table title entries are the same. If you don't want the categories intermixed, create a separate TOC for each category, place each TOC separately, unthreaded to other document frames.
    If you'd like to try a few things to see if it's possible to quickly remake the TOC and regain a responsive working document, before doing anything else, save the whole project to a secure place, and work on the copy. Then:
    * Move the Text tool insertion point to each cross-reference's destination by selecting the reference in the cross-reference panel and clicking  the right-pointing arrow on the panel status bar; then verify that the paragraph is tagged with an appropriate style that doesn't belong to the other category of TOC items.
    * After all the TOC-to-be items are identified and verified that they're tagged correctly, delete the text frame(s) that contain the TOC that's created with cross-references. All the references will break, of course. You've got the secure original project somewhere, right?
    * Set up the TOC roughly; just pick the paragraph styles for each category - chapter, figure, table, and generate a TOC for the book. Drag to place the TOC on a clean new page, and DO NOT THREAD THE TOC TO NON-TOC TEXT FRAMES.
    * If the extracted paragraphs are in their correct categories, you can create new TOC styles for the TOC entries, or, if they exist, assign them in the TOC setup dialog box, and regenerate.
    If this result gives you a sense of what needs fixing, and you have the time, refine the TOC styles so you can get the exact appearance you want. By avoiding changing the source paragraphs in the main document, you'll avoid any risk of reflowing anything. Finally, after the project's completely done and handed off, you can spend time refining the rogue source paragraph styles, IN A COPY, for use going forward.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • I am facing problem regarding graphical user interface. I am using text box for editing files. I want to show the line numbers and graphical breakpoint​s along with text box. Can anybody help me in this? Thanks.

    I am facing problem regarding graphical user interface. I am using text box for editing files. I want to show the line numbers and graphical breakpoints along with text box. Can anybody help me in this? Thanks.

    Thanks for you reply.
    But actually I don't want to show the \ (backslashes) to the user in my text box. 
    Ok let me elaborate this problem little more. 
    I want to show my text box as it is in normal editors e.g. In Matlab editor. There is a text box and on left side the gray bar shows the line numbers corresponding to the text. Further more i want that the user should be able to click on any line number to mark specific line as breakpoint (red circle or any graphical indication for mark). 
    Regards,
    Waqas Ahmad

  • Selecting a Text Frame in another file (JS/CS3)

    Hi, I'm a newbie so this is probably a dumb question.
    I'm trying to copy the contents of a text frame in another ID file and copy/paste them into another text frame of my active document. Every example I find creates a NEW text frame and copies it and they work fine but I'm having trouble selecting the text frame or its contents (it's the only object in the document) in the already existing document.
    The section I'm struggling with is:
    var mySourceSlugDocument = app.open(File("/Macintosh HD/Users/Shared/Testfile.indd"));
    var mySourceSlugPage = mySourceSlugDocument.pages.item(0);
    var mySourceSlugFrame = mySourceSlugPage.pages.item(0);
    app.select(mySourceSlugFrame.parentStory.texts.item(0));
    app.copy();
    app.activeDocument.close();
    I'm doing something wrong here. It doesn't like the 'parentStory' in the select line. I'd be happy with a way of just doing a 'select all' and being able to paste it into the new document with a variable name so I can edit it.
    Cheers,
    G.

    I think the third line should be:
    var mySourceSlugFrame = mySourceSlugPage.textFrames.item(0);
    Note though that you don't actually need to select/copy/paste. You can use duplicate().
    Dave

  • Cross-Reference using Text Anchor problems

    I am having problems with creating "New Cross-Reference" using a "Text Anchor" in CS4 Indesign.
    I can mimic what I want using a "Link to Paragraph", selecting the paragraph style and link, and then using the "Partial paragraph and Page Number" options.
    I would prefer doing this using a Text Anchor.
    I've tried creating a text hyperlink, but in whatever I am doing, I never get any "Text Anchor" OPTIONS in the New Cross-Reference menu.
    Adobe should also change the Text Anchor menu item, since there are "Text Anchor" options in InDesign that appear to have nothing to do with Cross-Referencing.
    The other problem I am having is that in defining the open-quote and closed-quotes around the Paragraph Text variable, I wish to have typesetter's quotes instead of the default vertical quotes. If I use the Splat button to choose ^{^} options, then I get funky "G"'s in my reference instead of typesetters quotes -- even if I choose a "Character Sytle for Cross Reference" and force it to my current font choice. What's going on here?
    SC

    Hi, Seir:
    I agree that it's confusing. Here's how I do it:
    To create a text anchor at the insertion point location:
    * Open the Hyperlinks/Cross-References panel's menu (also called "flyout menu." It's the small icon at the upper-right of the panel, below the double-arrow (>>) icon that collapses the panel.
    * Choose New Hyperlink Destination. THIS SHOULD BE NAMED NEW TEXT ANCHOR!!!
    * Choose Type: Text Anchor
    * Name the anchor as you like Click OK.
    To create a cross-reference to a text anchor:
    * Place the insertion point where you want it.
    * Click the Create new Cross-Reference button on the bottom of the Hyperlinks/Cross-Reference panel.
    * Choose Link To: Text Anchor
    * Choose the target document
    * Choose the text anchor
    * Choose the Cross-Reference format
    * Choose Appearance properties
    * Click OK
    I'm not sure what could cause the straight/curly quotes problem other than perhaps the font doesn't have curly quotes. Have you tried other fonts?
    HTH
    Regards,
    Peter Gold
    KnowHow ProServices

  • Is there a way to use Text Anchors and Hyperlinks to create a single-page interactive PDF?

    We are trying to emulate the functionality of a website, by creating a series of clickable buttons at the top that would take you to different locations within the page (it's 80" long). This seems to be only possible within multi-page documents, but not single-page documents.

    I have created a tutorial on how to setup domain name masking using cpanel and other popular web hosting control panels.
    You need to edit the zone file settings in the Web Host Manager of Cpanel (WHM) a very popular web hosting control panel.
    Main > DNS Functions > Edit DNS Zone > Choose Zone to Edit
    Unless you have a reseller hosting account or are a server administrator, you will not be able to access this file directly. Just contact your web hosting support rep and they will gladly change it for you.
    see the screenshot of zone file changes
    http://www.netpaths.net/blog/wp-content/uploads/2007/10/cpanel-zone-file.jpg

  • Using a function from another file

    Dear friends,
    I have two different java files in one folder. One is sm.java and the other is AVTransmit2.java. The code below describes the create Transmitter function in the AVTransmit2.java file. Now if i would like to use this function in sm.java, how do i do it ? The create transmitter function is shown below. Thank You, Gan.P
    private String createTransmitter() {
    // Cheated. Should have checked the type.
    PushBufferDataSource pbds = (PushBufferDataSource)dataOutput;
    PushBufferStream pbss[] = pbds.getStreams();
    rtpMgrs = new RTPManager[pbss.length];
    SessionAddress localAddr, destAddr;
    InetAddress ipAddr;
    SendStream sendStream;
    int port;
    SourceDescription srcDesList[];
    for (int i = 0; i < pbss.length; i++) {
    try {
    rtpMgrs = RTPManager.newInstance();
    // The local session address will be created on the
    // same port as the the target port. This is necessary
    // if you use AVTransmit2 in conjunction with JMStudio.
    // JMStudio assumes - in a unicast session - that the
    // transmitter transmits from the same port it is receiving
    // on and sends RTCP Receiver Reports back to this port of
    // the transmitting host.
    port = portBase + 2*i;
    ipAddr = InetAddress.getByName(ipAddress);
    localAddr = new SessionAddress(InetAddress.getLocalHost(),
    port);
    destAddr = new SessionAddress(ipAddr, port);
    rtpMgrs.initialize(localAddr);
    rtpMgrs.addTarget(destAddr);
    System.err.println( "Created RTP session: " + ipAddress + " " + port);
    sendStream = rtpMgrs.createSendStream(dataOutput, i);
    sendStream.start();
    } catch (Exception e) {
    return e.getMessage();
    return null;
    }

    Kalani and Bz,
    Thanks for the reply. Now i can call the function ,
    but when i write sendStream.start(); it indicates
    that, its an error. sendStream.start is in that
    function. but i cant call that
    Any idea ?
    thank you
    Gan.PCan you please inform what is the error ?

  • How use button to open another files?

    i have two applets, and I would like that a button of one of them open or run another applet..
    Sorry I reposted, because i have not seen this forum before....
    Thank you very much

    Duplicate. Reply to http://forum.java.sun.com/thread.jspa?threadID=5147890&messageID=9551767#9551767
    When you duplicate a post. do as I did for you, and make the appropriate reference.

  • Text Anchor Links

    Hello,
    We are working on a project that uses Text Anchor Links.
    We need the links, that are in the same document, to open in a new window. (For example: A link on page 4 that points to page 76 needs to open a new window showing both page 4 in the original window and 76 in a new).
    The only way we can get this to work is by having the links in separate PDF documents, but would like to have one file instead of a resource folder.
    Anyone know of a way to do this?
    TIA
    LM

    I have exactly the same problem with the url's in the body of my Verizon webmail emails too! The problem started a couple of weeks ago. The url's are not highlighted at all. I too have to copy them and them paste them into a browser. It appears to be a problem with the Verizon webmail application, since it doesnt matter which computer I access webmail from.

  • Using browser javascript to copy selected text from a pdf file opened in Air app.

    I have posted this question on reader forum as well, but I think it is more suited here...
    I am trying to create a note-taking application in air. I want to extract selected text from pdf file as a string object or to the clipboard.
    Obviously, all pdfs in my local storage will not be scripted to recieve postMessages and act accordingly, and that is not practical either. So, my problem is, how can I copy the selected text in the pdf file (opened as an object in htmlloader within my Air app) to clipboard or directly in another control by say clicking a button in air application? I suppose, this is possible using javascript, however, I don't know which reader methods are exposed to the wrapper htmlloader control. In short, I want to execute app.execMenuItem("Copy") command through htmlloader javascript. Any alternate solutions are also welcome.
    This is similar to passing inbuilt commands/methods/functions (of adobe reader) to pdf-reader plugin embedded in a webpage via javascript. This is possible in IE where the pdf is rendered as activex object, and hence JSObject interface of pdf document/reader is accessible to the browser javascript. I have also read that this same JSObject is accessible to VB as interface for IAC, so as the Air is Adobe's own product, I was wondering if equivalent of JSObject is accessible to htmlloader control as well.
    Thanks in advance...
    Mits

    Thank you Thom for your reply...
    from
    http://www.adobe.com/devnet/acrobat/javascript.html
    ...Through JavaScript extensions, the viewer application and its plug-ins expose much of their functionality to document authors, form designers, and plug-in developers...
    As it is explicitly mentioned, that the functionality of adobe reader are exposed for plugin development, I thought someone here might have used external javascript to execute some safe methods in adobe reader. The functionality (i.e. external javascript interface-JSObject) is already available for VB programmers to develop IAC. Further, the Acrobat SDK example called "AcroPDFinHML" shows how one can embed a pdf-reader in a html page and execute some safe methods (like gotonextpage(), zooming etc.) in IE as ActiveX plugin. I have checked it myself for adobe reader 9, and it works perfectly, so there is no security issue as such to implement the same for another browser (like in my case, the htmlloader control in flex/air app).
    I intend to create a note taking application in air, where it is very much required that I should be able to copy selected text from various pdf documents, that are open in my app, and subsequently paste/collect/save the collected notes and process them afterwords (offcourse, from the pdfs that allow me copying text). However, it is not happening for me here. As the pdfs are opened through adobe reader plugin, it does not register the copy command executed by my air app. It registers the system level copy command (by keyboard shortcut Ctrl+C), but my air app has no way to execute the system level copy command programmatically. So I am kind of stuck here...
    Thanks again for your reply. Having known what am I intend to accomplish, any other (may be alternative) solutions will be appreciated nonetheless...
    Mits

  • Can I add a text link to another place in a Pages v5 file?

    Simple question:
    Can I add a text link to another place in a Pages v5 file?
    My client would like to include a visible, inline Table of Contents in his ePub. Apple Pages v5 deletes the visible Table of Contents. Can I manually create a Table of Contents with clickable links to the appropriate chapters?

    Pages 5's greatest claim to fame is its general inability to do anything much, aka "simplification".
    So the answer is No! and because this is also Apple, You don't want to do that!
    Luckily however, should you still have Pages '09 in your Applications/iWork folder, you can use that instead.
    Peter

  • How to extract text from a PDF file using php?

    How to extract text from a PDF file using php?
    thanks
    fabio

    > Do you know of any other way this can be done?
    There are many ways. But this out of scope of this forum. You can try this forum: http://forum.planetpdf.com/

  • Cannot get text file to print in jtable. Using text file as a database

    Instead of doing JDBC i am using text file as database. I cant get data from text file to print into JTable when i click find button. Goal is to find a record and print that record only, but for now i am trying to print all the records. Once i get that i will change my code to search desired record and print it. when i click the find button nothing happens. Can you please take a look at my code, dbTest() method. thanks.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.util.*;
    import java.io.*;
    public class GUIdirectory extends JFrame
    implements ActionListener {
    // Define the components and the layout
    JLabel inputLabel_lastname = new JLabel("Last Name");
    JTextField inputText_lastname = new JTextField("Last Name",15);
    JLabel inputLabel_firstname = new JLabel("First Name");
    JTextField inputText_firstname = new JTextField(" ",15);
    JLabel inputLabel_middleinitial = new JLabel("Middle Initial");
    JTextField inputText_middleinitial = new JTextField(" ",4);
    JButton inputButton = new JButton("Find");
    JPanel inputLayout = new JPanel(new FlowLayout(FlowLayout.CENTER,5,5));
    JButton jButton1 = new JButton();
    //create a new table and scrollpane
    JTable dataTable = new JTable();
    JScrollPane dataTableScrollPane = new JScrollPane();
    public static void main(String args[]) {
    GUIdirectory gui = new GUIdirectory("Telephone Directory");
    gui.show();
    gui.pack();
    //TokenTest tt = new TokenTest();
    //gui.dbTest();
    public GUIdirectory(String Title) {
    super(Title);
    // Add ourselves as a listener for the window closing
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    exitWindow(1); }
    inputLabel_lastname.setLabelFor(inputText_lastname);
    inputText_lastname.setHorizontalAlignment(JTextField.RIGHT);
    inputText_lastname.addActionListener(this);
    inputLabel_firstname.setLabelFor(inputText_firstname);
    inputText_firstname.setHorizontalAlignment(JTextField.RIGHT);
    inputText_firstname.addActionListener(this);
    inputLabel_middleinitial.setLabelFor(inputText_middleinitial);
    inputText_middleinitial.setHorizontalAlignment(JTextField.RIGHT);
    inputText_middleinitial.addActionListener(this);
    inputButton.addActionListener(this);
    inputLayout.add(inputLabel_lastname);
    inputLayout.add(inputText_lastname);
    inputLayout.add(inputLabel_firstname);
    inputLayout.add(inputText_firstname);
    inputLayout.add(inputLabel_middleinitial);
    inputLayout.add(inputText_middleinitial);
    inputLayout.add(inputButton);
    getContentPane().setLayout(new BorderLayout(5,5));
    getContentPane().add("North",inputLayout);
    dataTableScrollPane.setViewportView(dataTable);
    getContentPane().add("Center",dataTableScrollPane);
    // A default method, primarily used for testing.
    public void actionPerformed(ActionEvent evt) {
    GUIdirectory gui = new GUIdirectory();
    gui.dbTest();
    void dbTest() {
    DataInputStream dis = null;
    String dbRecord = null;
    String hold;
    try {
    File f = new File("customer.txt");
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    dis = new DataInputStream(bis);
    Vector dataVector = new Vector();
    Vector headVector = new Vector(2);
    Vector row = new Vector();
    // read the record of the text database
    while ( (dbRecord = dis.readLine()) != null) {
    StringTokenizer st = new StringTokenizer(dbRecord, ",");
    while (st.hasMoreTokens()) {
    row.addElement(st.nextToken());
    System.out.println("Inside nested loop: " + row);
    System.out.println("inside loop: " + row);
    dataVector.addElement(row);
    System.out.println("outside loop: " + row);
    headVector.addElement("Title");
    headVector.addElement("Type");
    dataTable = new JTable(dataVector, headVector);
    dataTableScrollPane.setViewportView(dataTable);
    } catch (IOException e) {
    // catch io errors from FileInputStream or readLine()
    System.out.println("Uh oh, got an IOException error!" + e.getMessage());
    } finally {
    // if the file opened okay, make sure we close it
    if (dis != null) {
    try {
    dis.close();
    } catch (IOException ioe) {
    } // end if
    } // end finally
    } // end dbTest
    // Exits the program upon closing the window
    public void exitWindow(int i) {
    System.exit(i);
    public GUIdirectory() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    jButton1.setText("jButton1");
    this.getContentPane().add(jButton1, BorderLayout.CENTER);

    Nothing happens because in the actionPerformed() method you are creating a new version of GUIdirectory. You just want to execute the dbTest() method of the current instance of GUIdirectory.
    The code should be:
    public void actionPerformed(ActionEvent evt)
    //GUIdirectory gui = new GUIdirectory();
    //gui.dbTest();
    dbTest();

  • Can I use the value returned from a Text Function in another Formula?

    I'm writing a report in Hyperion System 9 BI + Financial Reporting Studio version 9.2. I have 2 grids in my report.
    Grid1 Column A is set up as a text function using the function type - <<GetCell("Grid2", 1, a, 1)>>. I would like to use the values returned from this text function in Column A (Grid 1) in a formula in Column B (Grid 1).
    Is it possible to use the values returned in Column A of the text function in another formula? My report does not seem to recognize Column A as numerical values, even though the values to be returned are numerical.
    If so, how do I recognize the values in Column A Grid 1 as numerical values and not text?
    Thanks for any help you can offer!

    Hi Edson,
    Yes you need to use the CALC_ERROR macro function to be able to test whether the last macro function returned an error. CALC_ERROR will return an 'X' if there an error occured during the execution of the last macro function.
    You can use a macro similar to the following:
    IF
      CALC_ERROR( )
      = 'X'
          DO SOMETHING HERE
    ENDIF
    Let me explain how this works internally. The SAP system maintains a global variable g_flg_calc_error during the execution of macros in the planning book. The g_flg_calc_error variable will contain the value of f_calc_error that was set by the last macro function which executed. The ABAP coding of a planning book is something like this:
    data: g_flg_calc_error type /SAPAPO/FLAG.
    * SAP will pass g_flg_calc_error variable to all macro
    * functions. When SAP calls a macro function, it does
    * something like this.
    call function '/SAPAPO/MACRO_FUNCTION_HERE'
            exporting
              plob_values      = i_s_adv_plob_values
              sdp_book         = g_c_advf_sdp_book
              sdp_view         = g_c_advf_sdp_view
            tables
              cols_index       = i_t_cols
              value_tab        = l_t_value_tab
            changing
              f_calc_error     = g_flg_calc_error
    As you can see, the g_flg_calc_error variable
    is passed in the "changing" part of the call. The macro  function being called can then use the f_calc_error
    variable to change the value of the global
    g_flg_calc_error variable. In fact, the macro function being called can also check (by looking at the f_calc_error variable) if the last macro function reported an error.  The CALC_ERROR macro function just checks the value of f_calc_error parameter (w/c in fact is the value of the g_flg_calc_error variable) and returns "true/X" if the f_calc_error was set to true by the last macro function.
    Hope this helps in clearing things out

  • File Error: The Specified file is open and in use by this or another app...

    I have imported a string of pictures and dragged them into the FCP timeline. I render them and it renders a certain percentage then it stops and says "File Error: The Specified file is open and in use by this or another application."
    After reading this, I quit out of FCP, restarted my computer, opened FCP, nothing other program, tried to render again and same thing happened. It renders part of it then the error message pops up, then I can render again and it will do another percent then it will pop again and so on.
    Suggestions, or does anyone know why this happened? Thank you very much for your time.
    A

    okay - don't know where you've got your scratch disc set but hopefully it's to another drive other than your boot.
    The same drive where your render files should be located, ie some drive other than your boot drive.
    Can you copy the jpegs over to that drive into a folder.
    Delete them from your tl, delete them from your proj. Save your project. Close fcp.
    If they're on your boot drive - delete them.
    Reopen fcp and Reimport them from the new location.
    Sorry for all the steps - but we have no idea how you have configured fcp or your level of experience. Trying to cover all the bases ...

Maybe you are looking for

  • Failure to Launch after Migration

    Hello! I tried to launch InDesign 5.5 for the first time since migrating to a new Macbook Pro (running 10.7.3). I'm able to get the splash screen, but shortly after "Intiatlizing Plugins" appears on said screen, it crashes. I get the standard error m

  • How to see Header values are passed as a part of a Message in BPEL Invoke

    Hi, I have passed some session id in the header of a invoke message. In Audit trail I am not able to see those header values, its only showing the body of the request passed. Is there any way I can see passed Header values also ? Regards, En

  • Usb malfunction?

    so when i connect the ipod through usb to the laptop, it does not read my "ipod". Therefore i am not able to add or remove songs from the ipod. Yet, with the ipod schuffle, it reads it... would it be the usb cable for the ipod mini, causing the probl

  • How do you insert a CD/DVD into a macbook pro drive?

    Hi, I'm a new user to macbook pro's. I just wanted to ask what should I expect when I first insert a cd into my drive for the first time? I try to put in about 3/4 in with the cd I want to insert, and there are no signs (physical/audible) that the sy

  • Thanx maris and have a query

    in your previous reply to question , i did not make my point clear If EJB can communicate with different clients then is it an alternative for webservice?I asked if EJB which implement IIOP protocol similar to that of CORBA be used as an alternative