Script a search/replace using a data source

So I wrote a program (c#) a few years ago which basically opens a file, InDesign Exchange, doing a search/replace, based on a datasourse SQL table and then our graphics people would just convert the INX file in InDesign and ultimately in PDF format.  Too many steps.

There are more than 2,500 pieces of variable data in each file, so a product like DesignMerge is not practical.  Our database consists mainly of 2 fields [LookFor] and [ReplaceWith], I would like an Indesign script that will just run through the data file and do a find/replace for each record.  Is this feasible and what someone has suggestions or starting points?

Thank you!

No, it doesn't matter what format to use: text delimited csv or tab. Of course you can leave it as it is.

Tags: InDesign

Similar Questions

  • Examples of a model of data using multiple data sources?

    I'm looking for a sample report using multiple data sources. I saw one where they make a master-detail, but I'm looking to combine the results in a sorted order (sorting between all sources of data). Master/detail used a variable binding to bind two defined queries, I think what I will not have this, so I'm lost on how to get there. I have reports using multiple sql queries and there is a way in the data source drop-down to tell him to combine data sources. It seems to be a process with data models, it is still possible.

    Any pointers/links would be appreciated.

    Gaff

    Use this

    http://download.Oracle.com/docs/CD/E10415_01/doc/bi.1013/e12187/T421739T434255.htm#3547893

  • ListView xml by using the data source does not?

    Hello

    When I use the data for loading XML source, listview displays data only if there is at least 2 element in the XML file.

    import bb.cascades 1.0
    import bb.data 1.0
    NavigationPane {
        id: nav
        Page {
    
            id: emp
            titleBar: TitleBar {
                visibility: ChromeVisibility.Visible
            }
            onCreationCompleted:
                                    {
                                        dataSource1.load(); //load the xml when page is created
                                    }
            actions: [
    
                ActionItem {
                    title: qsTr("Create List")
                    ActionBar.placement: ActionBarPlacement.OnBar
                    onTriggered: {
                        dialog.open();
                    }
                }
            ]
            Container {
                topPadding: 30.0
                leftPadding: 20.0
                rightPadding: 20.0
    
              ListView {
                  id:list1
                dataModel:dataModel
                 listItemComponents: [
                            ListItemComponent {
    
                                StandardListItem {
    
                                     title: {
                                    qsTr(ListItemData.name)
                                }
                                }
                            }
                        ]
    
                }
    
            }
    
                 } //page
    
        attachedObjects: [
             GroupDataModel {
                        id:dataModel
                    },
                     DataSource {
                          id: dataSource1
                          source: "models/employeelist.xml"
                         query: "/root/employee"
                        type: DataSourceType.Xml
                          onDataLoaded: {
                          dataModel.clear();
                           dataModel.insertList(data);
                          }
                        },
            Dialog {
                id: dialog
                Container {
                    background: Color.Gray
                    layout: StackLayout {
                    }
                    verticalAlignment: VerticalAlignment.Center
                    horizontalAlignment: HorizontalAlignment.Center
                    preferredWidth: 700.0
                    leftPadding: 20.0
                    rightPadding: 20.0
                    topPadding: 20.0
                    bottomPadding: 20.0
                    Container {
                        background: Color.White
                        horizontalAlignment: HorizontalAlignment.Center
                        preferredWidth: 700.0
                        preferredHeight: 50.0
                        Label {
                            text: "Add Employee List"
                            textStyle.base: SystemDefaults.TextStyles.TitleText
                            textStyle.color: Color.DarkBlue
                            horizontalAlignment: HorizontalAlignment.Center
                            textStyle.fontSizeValue: 4.0
                        }
                    }
                    Container
                    {
                        topPadding: 30.0
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        Label {
                        text: "Employee Name "
                    }
                    TextField {
                        id:nametxt
                    }
                }
               Container {
                   topPadding: 30.0
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        Button {
                           text: "OK"
                   onClicked:
                       {
                   var name=nametxt.text;
                   if(nametxt.text=="")
                   {
                        _model.toastinQml("Please enter a name");
                   }
                   else
                   {
    
                       _model.writeEmployeeName(name); //writing name to the employeelist.xml
    
                       nametxt.text="";
                       dialog.close();
                     dataSource1.load(); //loading the xml
                     }
    
                       }
                            preferredWidth: 300.0
                        }
                Button {
                     text: "Cancel"
                     onClicked:
                         {
                             dialog.close();
                         }
                            preferredWidth: 300.0
                        }
                             }
                }
            }
        ]
    
    }//navigation
    

    When I add a name to the first time to the XML, the list shows nothing. Then, when I add a new name, it displays the list.

    Why is it so? Is there a any mistake I made?

    Help, please!

    Thanks in advance

    Diakite

    It seems that there is a problem reported on the DIT that was refitted with internal BlackBerry MKS defect tracking system. Until this issue is reviewed by our internal teams, please use the solution suggested by the Rapporteur for the question by introducing an "if" statement before inserting data to the DataModel:

                    if (data.name) {
                        empDataModel.insert(data);
                    } else {
                        empDataModel.insertList(data);
                    }
    
  • Unable to video file to the SD card by using the data source and SourceStream stream

    I see this in the debug output:

    SMPones acquired session id = 1799
    MN: init0 (0) = 0
    MN: charge 0
    MN: seekComplete0 (0) = 0
    MN: seekComplete0 (0) = 0
    AUDIOMANAGER: IOException
    MN: unload0 (0) = 2 pauseHandle = 7fffffff
    Streaming is reason = 1 prev - state = 300

    Even the files read in the native multimedia player on the Simulator fine. One is a .mp4, the other is a .3gp.

    I use content types "video/mp4" and "video/3gpp".

    I have the SourceStream returns-1 for the two getTransferSize() and getContentLength() to indicate the size is unknown. My hypothesis is that it should always work. They must be non-negative and non-zero in order to work properly?

    I use the 4.6.0.190 simulator. We observed the same behavior on the device (4.6.0.266).

    Thanks for the comments. It turned out to be the function seek() requiring a good implementation. The getContentLength() on the return of-1, but for the office seek() I ended up closing the input stream, works by opening and then calling Another to get to the desired position.

  • Error in the validation data source

    I install LivCycle on SUSE 10 with Weblogic 11 g and Oracle 10.

    When you try to post, the following error occurs:

    Validation of datasource...

    DataSource fail

    Name: IDP_DS

    JNDI:IDP_DS

    Invalid data source settings. Impossible to find/search for IDP_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    ALC-LCM-120-301: invalid data source settings. Impossible to find/search for IDP_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    DataSource fail

    Name: RM_DS

    JNDI:EDC_DS

    Invalid data source settings. Impossible to find/search EDC_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    ALC-LCM-120-301: invalid data source settings. Impossible to find/search EDC_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    Any ideas?

    Thank you!

    Using secure data sources?  More details here:

    http://blogs.Adobe.com/LiveCycle/2010/04/livecycle_on_weblogic_-_securi.html

    http://blogs.Adobe.com/LiveCycle/2010/09/increasing-WebLogic-as-JDBC-connection-pool-size-pour-LiveCycle-Contenu-services-ES2.html

  • 11g: deployment of WebLogic failing (data sources)

    Hello!

    Now, I'm trying to deploy my application ADF BC/Faces RC to an external server in WebLogic.
    I have deploy a WAR file. But the data connection is missing and my application reports that the connection was not found.

    My WAR file inspection, I realized that the connections.xml file is not deployed... for some reason any. Also, the store of credentials is not deployed.
    Very well, I thought. So I don't have to convert the store of credentials on the external server. We will use a data source.

    So I tried to change the configuration of my AM to a data source (java: comp/env/jdbc/MEDORADS).

    In WebLogic, I have created the data source with JNDI name ' comp/env/jdbc/MEDORADS', set up the database (the test succeeded) and he attributed to target AdminServer. Then I transferred my application to AdminServer.

    When I now call the application, I get a: "failed JNDI. "Impossible to search for Source of data in the context of java: comp/env/jdbc/MEDORADS ' and a 'while trying to get comp/env/MEDORADS in app/webapp/cockpit.war/32181625."

    What am I doing wrong or what I I don't have it to do?
    I admit that I am new to sources of data in this context, since our web modules all use dynamic JDBC credentials.

    All I want to do is to deploy my application on a demo server without complaint.

    Please, any help is welcome.

    Sascha

    Hello

    If you have created the data source on weblogic properly the only thing is to change the java: comp/env/jdbc/MEDORADS for jdbc/MEDORADS in yout request module.

  • EJB WebService to consume a data source

    Hello

    I use JDeveloper 12.1.3.0.

    I have to develop a Web of EJB Service that uses a data source in the WebLogic.

    I googled and looked, but I found no examples / tutorials that explains how it works and how to do it.

    The only examples that I found was by using a direct connection to the database, like this one http://waslleysouza.com.br/en/2014/10/restful-web-service-in-jdeveloper-12c/

    Can you help me?

    Thank you

    Even with respect to MySQL. Add the class name to the following.

    1. in WebLogic Server to set a data source with the name JNDI (jdbc/OracleDS)

    2. in persistence.xml specify the data source as a JTA data source.

    http://www.w3.org/2001/XMLSchema-instance '.

    xsi: schemaLocation =

    'http://java.sun.com/xml/ns/persistence '.

    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd".

    xmlns ="http://java.sun.com/xml/ns/persistence" version = "1.0" > "

    org.eclipse.persistence.jpa.PersistenceProvider

    JDBC/OracleDS

      name of the class

    />

    value = "create tables" / >

  • How to create the data source?

    I use MapViewer V11.1.1.7 B130111 delivered with BIEE.

    On the management data source page, there are 4 buttons like refresh, edit, delete, and purge the cached metadata. No create"" button.

    So, how can I create a new data source? I saw map_data_source article in mapViewerConfig.xml. Can I change the file for this?

    Yes.

    And preferably use a data source of the container. Which is set in weblogic and add data source information in mapviewerconfig.xml as a containerDS

    for example

        
                 container_ds = "jdbc/mapperDS.
                 number_of_mappers = "20".
                 max_connections = "100".
        />
  • Stand-alone WLS, JDBC, never outputs connections data source

    11.1.2.1 JDev

    My application connects to the Oracle database to do business. I also have a servlet that is called to create and view PDF reports. When the application starts, and every time the servlet is called, an "Active connection" to my JDBC data source. By default, there are 15 connectsions in the connection pool. I see thins in the stand alone WLS Admin Console: Services/DataSources / 'mydatasource' / Connection Pool. Data sources and surveillance shows the number of current connections to my data source. As I monitor the number of "Active connections" and launch myl application in WLS, run reports, etc. I see the number of connections increase. However, the number of "Active connections" never decreases. Even when I log out of the application and exit the browser the number of connections remains the same. I start my application again, and it uses more "active" connections When all connections are exhausted, I get an error.

    java.lang.RuntimeException: weblogic.common.resourcepool.ResourceLimitException: no currently available in the MisseeDS pool resources to allocate to applications, please don't increase the size of the pool and try again.

    I increase the size of the pool and I can run the application again. However, he continues to use "active connections" and never gives them. Finally a failure once again. Of course, stop and start the stand-alone WLS resets everything.

    Can someone tell me how to retrieve the unused "active connections" so my request to not use not all of them and then get an error?

    Thank you, Steve

    Looks like you're using a data source connection in your servlet report but do not call Connection.Close in order to release it to the pool. Can provide you a sample code?

  • Creating a display with a data source object

    Hello guys,.

    Is there a way to create a View object in JDeveloper 11.1.1.4.0 using an instead of a JDBC data source connection string? When I select new-->--> view object ADF business components, it seems that the Research Assistant for a default database connection.

    I wonder if there is a way to create a display object and specify something like ' java: comp/env/jdbc/xxxxDS ' as a data source. I know that the Module of the Application can be configured to point to a JDBC data source and then WLS can be configured to use the JDBC data source, but I wonder if it's the only way to go.

    Thank you

    David
    I know that the Module of the Application can be configured to point to a JDBC data source and then WLS can be configured to use the JDBC data source, but I wonder if it's the only way to go.

    Yes, at design time you only use inside JDeveloper JDBC connections to connect to the DB and create components ADF BC - after all development is done alone without a WLS environment.
    At run time, your AM can be configured to use a data source or JDBC connection.

  • Multiple Data Sources

    Can you Essbase to connect to multiple data in one same sources and build size and load data. We need to extract data from multiple data sources at the same time.

    PL suggest.

    Rahul

    You can have mutiple load rules and each rule charge using a different data source connection, a charge rule can use a data source connection well.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • jdev app works on defaultServer, integratedServer not again using appSrv DataS

    The ear that I created using JDev deploys and works very well on my workstation integratedServer. I had to set up a secondary server to collect all the necessary information for the guys of our operation for the application to be installed there. I was able to run the application with the data source in the application but optimal, we need the shared data source on a global scale on the appServer. The application spreads very well, but I get the message below when I try to use the data source on the appServer.

    I noticed that it seems that he has a problem with ejb session bean, which is quite surprising. All the session bean classes are present in the jar and the sessionEJB is the only bean company listed in the file ejb - jar.Xml.

    Our deadliine is August 22 to have the app has ended and we have several other environments stand and test in the meantime.


    Here is the message from the log file

    Exception [EclipseLink-7060] (Eclipse persistence Services - 1.2.0.v20091016 - r55)
    (65): org.eclipse.persistence.exceptions.ValidationException
    Description of the exception: could not acquire the data source [java: / app/jdbc/jdbc/j2eo_user]
    DS].
    Inner exception: javax.naming.NameNotFoundException: while trying to look up
    / App/JDBC/JDBC/j2eo_userDS in app/ejb/EOD_Model_ejb.jar#SessionEJB. ; remaining
    name "/ app/jdbc/jdbc/j2eo_userDS.
    at org.eclipse.persistence.ex

    Thank you very much
    Tracy

    Although don't usually deploy you your applications to the AdminServer, it shouldn't make a difference.

    You can try the forums WLS, these guys here tend to be much better versed in aspects of the administration like this.
    John

  • Planning for the Data Source

    Hello

    Can we use a data source to build different planning Applications. What is the use of data source... Which holds a wrt planning RDBMS.

    A data source defines the connection details, he holds connection information to a relational/db schema where is stored the planning app. It will also have the login information to essbase.
    You need a separate for each planning application data source as the relational/db schema must be separate for each application.
    The RDBMS holds all the metadata for the purposes of planning, such configuration, dimensions, structure, forms, lists of tasks etc.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Adding data sources on the Windows Vista-based computer

    I have ColdFusion on my local workstation and I'm looking to add a data source by using the administrator Web site. It worked perfectly on my previous XP machine, but it does not work on my new Windows Vista machine. The data source is a Microsoft Access database stored locally on the c:\ drive. After clicking on the "send" button, the site administrator returns this error message:

    Cannot update the NT registry.
    DRIVERPATH variable is not defined.

    Any ideas? Thank you!

    TorreyBrown wrote:
    > I have ColdFusion on my local workstation and I try to add a
    > by using the data source administrator Web site. It worked perfectly on my
    > previous XP machine, but it does not work on my new Windows Vista machine.

    Windows Vista is not supported with CF 7. You have three options:
    -Try the CF 8 'Scorpio' beta from http://labs.adobe.com/
    -use a database that works with the driver of JDBC Type 4 over TCP/IP
    -use a supported operating system

    Jochem

    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

  • Storage of the client in the SQL data source fails all of a sudden

    After performing several Windows 2008 security updates last night, one of the sites started throwing errors related to access to the client storage database, which is the default value as defined by the CF Administrator:
    coldfusion.runtime.ClientScopeDBException: operation failed on the source of data DATA source NAME.
    Reason of failure java.security.AccessControlException: access denied.


    Most of our sites use this data source for storage of client, and none of them have the problem.
    Editing the file Application.cfm to use clientstorage = "cookie" got the site up.
    I then added a NEW data source to the list of storage Client and set the Application.cfm file to use instead.
    This works. As sson as I remove the Application.cfm file clientstorage attribute, the site breaks.
    Short to reboot the server (which happened last night after the updates), I restarted IIS all related services.
    Any ideas?

    Java security error, huh? You know, I had missed that in your first note. (He says he is, "reason for failure java.security.AccessControlException: access denied".)

    I'm starting to wonder now: what is a CF Enterprise Deployment? It is configured (in the CF Admin) to use what is called "Security Sandbox"? If so, the problem might be that this one app is in a sandbox that has not been configured to access the DSN. Sandboxes are configured for all code running in a given directory (and its subdirectories), which would explain this work for everyone, but this one.

    Purging of customer data is quite drastic, if data are important for your application. I recommend you try this if you have a little more time.

    If you're reading this I would like to learn more about Sandbox security, in addition to the docs, you can read more in some articles that I did for the Dev Center a few years previously, to http://www.adobe.com/devnet/security/articles/sandbox_01.html and http://www.adobe.com/devnet/security/articles/sandbox_02.html. While it was written in the period of CF6, it still applies to the 7 and 8.

Maybe you are looking for

  • How can I remove Skype click to call an extension 6.9 due to incompatibility?

    Skype Click-to-Call 6.9.0.12585 is not compatible with Firefox 22. How can I remove it from the list of extensions? I was able to remove the other incompatible extension in my registry, but Skype Click-to-Call was not and can't seem to find it. I've

  • How to recover RTSA71-55P6AU-XD003G-60UM03

    Hello- How can I recover this error 'Start Up': RTSA71-55P6AU-XD003G-60UM03 When you start normally or in Safe Mode, it stops frozen and crashes until a hard stop is implemented. Safe mode startup, the process stops at "atipcie.sys". Any ideas? -Dub

  • Want to read the size of a graphics window

    I would like to use the size of the graphics window to position the legend next to her, but cannot find the right property. "Bounds - width area" seem to include the entire control (blue arrows in the image below) included the legend, while 'Plot - r

  • As Device Manager and RUN programs are open with a notebook!

    Programs such as Device Manager, system configuration and RUN, for example, are open with a Notepad in which a lot of things ununderstanable are written with the exception of this sentence: this program cannot be run in DOS mode.I hope you can help m

  • How can I run Microsoft Money on Windows 7?

    Microsoft Money does not work on my PC after installation of Windows 7 Home Premium. Should I upgrade to a different version of Windows?