Data merge do not pick up all the fields of data

Hello

I had a problem, posted here: http://forums.adobe.com/thread/1217090

Essentially, I used the "CSV2Tables" script to pre-populate arrays of simple column 2 with information from a CSV data source.

The tables consist of a title and a block on this specific topic. Many of the blocks of information that I am importing also contain the tag (< < DataTag > >) data

The plan is to use CSV2Tables to populate the tables, then change the data source and run an ID data merge to replace all < < flags > > normal in the tables with the information from a second source of CSV data.

The problem is, CSV2Tables is important data and tables very well pre-load, but data tags that are found in each body text are picked up in plain text (as Peter Spier has pointed out, they are being requested by a plain text stream rather than drag since the merger Panel and direct mail) so when I try to run direct mail ID , none of the fields are in my document.

My question is - is there a method, or a script available out there that can essentially do a find/replace in a document and replace the text that appears as the < < PlainText > > with a data that is recognized by ID, label that will allow me to run a data merge?

Told me to check out some of the available commercial plugins out there, but registration and establishment of demo would force me to contact our it supplier for each, and it would be a comprehensive process.

Any help is very appreciated.

Hello

As far as I know it actually takes a script to replace "plain text" with dataMergeTextPlaceholders.

a small example;

Array.prototype.find = function (string) {
    for (var s = 0; s < this.length; s++)
        if (this[s] == string) return s;
        return -1;
    }

var mFile, mDoc, mFields, mFieldsNames, mStory, mPlainTxt, mNameToCompare, mField_ID;

// edit this with proper .csv path
mFile = File(Folder.myDocuments + "/" + "Merge.csv");
mDoc = app.activeDocument;
mDoc.dataMergeProperties.selectDataSource(mFile);
mFields = mDoc.dataMergeProperties.dataMergeFields;
mFieldsNames = mFields.everyItem().fieldName;

// script assumes a text box with "plain texts" to replace is selected
mStory = app.selection[0].parentStory;
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = "<<.+?>>";
mPlainTxt = mStory.findGrep(true);
for (var k = 0; k < mPlainTxt.length; k++) {
    mNameToCompare = mPlainTxt[k].contents.slice(2,-2);
    mField_ID = mFieldsNames.find(mNameToCompare);
    if (mField_ID > -1) {
          mField = mFields[mField_ID];
        mDoc.dataMergeTextPlaceholders.add (
            mStory,
            mPlainTxt[k].insertionPoints[0],
            mField
            )
    mPlainTxt[k].remove();
     }
    }

At this point, you can run a "normal data merge.

This should work for related managers (the one selected) or a table inside the selected image

I hope it could be useful for more complex tasks

Rgds

Jarek

Post edited by: Jump_Over ==> added media because if last statement

Tags: InDesign

Similar Questions

  • my wireless adapter does not pick up all the signals... I don't know why... Please help!

    I'm not sure why I can't my wireless dlink adapter cannot pick up all signals?

    anyone enlighten us?

    Hello

    1. what exactly happens when you try to connect to the Internet?

    2. you get any error message?

    3 have there been recent changes to the computer before the show?

    I suggest you to try the steps mentioned in the link and check if this may help.

    Method 1: Wi - Fi and in Windows network connection issues:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Check this link for more information:

    Why can't I connect to the Internet?
    http://Windows.Microsoft.com/en-us/Windows7/why-can-t-I-connect-to-the-Internet

    Hope this information is useful.

  • I keep getting the "this connection is not approved" in all the sites when I use Firefox on windows laptop 36.0.1 8. How can I overcome this.

    I keep getting the "this connection is not approved" in all the sites when I use Firefox on windows laptop 36.0.1 8. How can I overcome this.

    Hi vijaysampath, please make sure first that the date, time, and time zone are set correctly on your system. If this does not solve the problem (or it is already set correctly), a possible solution depends on different factors:

    • What is the error code indicated under Technical Details on the error page?

    in case the error code is equal to sec_error_unknown_issuer, please try to add an exception on the bottom of the error page to verify the certificate, as shown on the attached screenshot:

    • What information about the issuer of the certificate contain?

    Please take these two pieces of information. Thank you!

  • Equium P200-1ed - card Atheros WLan does not pick up all networks

    OK about amonth and a half there is weupgraded of Windows Vista to Windows 7, 32-bit Home Premium.
    Everything worked without problem (yes I know with access)

    Then suddenly at 01:00 today, Internet went on the Toshiba laptop and we can't put it back on. I tried the new drivers and nothing, try the keys FN and nothing turned also out of the card wireless forward and turn it back on. The laptop is the map reckonising, becausewhen I uninstll the driver picks it up. So I'm so confused as to what it can be.

    Girlfriend wason Facebook at the time. I scanned Virus, Anti-spyware, scanned and cleaned C islet still nothing. So I checked online to find loads have had the same problem, but no one seems to post the answer. Could someone please help.

    Laptop is Toshiba Equium p200-1ed, Intel P Dual Core CPU T2310 1.46GHz 2 GB of Ram. Running Windows 7.
    The problem is with the wireless adapter - Atheros AR5007EG Wireless Network Adapter

    As I say, works fine, then suddenly do not pick up all networks. My other computer laptop of them is recovering fine. Running the computer on the Ethernet cable. Just not the wireless. He does not know the wireless card is there, it is like its just abandoned, but if a lot of people have problems with Atheros adapters in windows 7. Can someone please.

    David

    Hey dude!
    Thanks for sharing this with us! Could be useful for other people who have discovered the same question

    Welcome them

  • MY sony handycam TRV11E is not picked up with the IEEE 1394 card in Windows.

    MY sony handycam TRV11E is not picked up with the IEEE1394 card.  I had installed Pinnacle and worked properly.  Subsequently, I remove pinnacle and install Platinum Sony vegas, now not working not not and does not detect not not the device.  I did nothing on my PC before or after, with the exception of all updates. I run XP and not even Windows 7 or Vista.  During some attempt at intervals of 2 windows gave me half a detection to ask with what program I want to run my DV on.  Then nothing.  Thanks for the plug-and-play.  What can suggest you I do.

    XP forums:

    http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP

    Link above is for XP Forums.

    There is a list of the different Forums XP to the link above to help you.

    You get the help you need there.

    Here is the Vista Forums.

    See you soon

    Mick Murphy - Microsoft partner

  • I have HTC HTC ChaCha A810e but not picked up at the Nepal

    I have HTC HTC ChaCha A810e but not picked up at the Nepal.

    James,

    We have actually official ARMv6 builds now available for download: http://nightly.mozilla.org (select the download option ARMv6 downstairs in the Android category).

  • CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    Try creating a new profile as a test to check whether your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If the new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • His record game, my microphone is picking up all the sounds around me and to transfer them to my helmet.

    original title: his record game

    For some reason, all listening to ANYTHING on my computer with my headphones Bose, which are designed to eliminate all surrounding sounds, I hear all around me, including Tape this message, as if my microphone is picking up all the sounds around me and to transfer them to my helmet.  I have accidentally done to cause this, please?

    Thank you!!!

    Hello

    Click with the right button on the speaker near the right lower clock - recorders - then right click in the BOX
    and check also show a disabled device and show disconnected devices. Then double-click on your microphone and
    on the levels tab - MUTE it. You could also experiment with using a level lower or less thrust on this
    same tab.

    Connect a microphone, music player or other audio device to your computer - see 'connect a microphone.
    to your computer"which has an image of these parameters.
    http://Windows.Microsoft.com/en-us/Windows7/connect-a-microphone-music-player-or-other-audio-device-to-your-computer

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Button to navigate to another page does not not work properly all the time.

    Hello

    I'm just starting to explore the ADF, I use Jdeveloper 12.1.3.0.0 and integrated weblogic server that comes with the IDE.

    I just created a simple application with a welcome page called Main.jsf and then 2 task bounded, streams called SearchStudentsFlow and Studenloansflow, each workflow has a jsf page. The home page has a single button that sends me to the first task flow, SearchStudentsFlow and I can see is the page in that workflow, AwardsSearch.jsf. Also in the AwardsSearch.jsf page I have a button that takes back me to the home page.

    The first problem I have is that when I run the application starting at the home page button in the works of the great homepage the first time, the button send me to the AwardsSearch.jsf , but once I decide to go back to the homepage and then click on the button to go to the first task flow the button does nothing. This happens whenever I decide to return to the home page of any page in my project.

    Also, I copied the entire previous project into a new project and I decided to use the ADF security infrastructure in this new project to create a log in page create users and give them different roles and levels of access.

    I created some users who have access to all pages and all the streams, but when I run the application starts the login page and I login successfully and go to the home page, the button on the home page does not work.


    I don't know why the button sometimes works, but not of others and also I do not know why when I use the login page, the button doesn't work. I don't know if these 2 problems are related or not.


    This is my code in the homepage:

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="Main.jsf" id="d1" binding="#{backingBeanScope.backing_Main.d1}">
            <af:form id="f1" binding="#{backingBeanScope.backing_Main.f1}">
                <af:panelGridLayout id="pgl1" binding="#{backingBeanScope.backing_Main.pgl1}">
                    <af:gridRow marginTop="5px" height="20%" id="gr1" binding="#{backingBeanScope.backing_Main.gr1}">
                        <af:gridCell marginStart="5px" width="34%" marginEnd="5px" id="gc1"
                                     binding="#{backingBeanScope.backing_Main.gc1}">
                            <af:image source="/images/NU_Logo_purple.jpg" shortDesc="Northwester University" id="i1"
                                      binding="#{backingBeanScope.backing_Main.i1}"
                                      inlineStyle="width:293px; height:197px;"/>
                        </af:gridCell>
                        <af:gridCell id="gc3" binding="#{backingBeanScope.backing_Main.gc3}" width="33%"/>
                        <af:gridCell id="gc4" binding="#{backingBeanScope.backing_Main.gc4}" width="33%"/>
                    </af:gridRow>
                    <af:gridRow id="gr3" binding="#{backingBeanScope.backing_Main.gr3}" height="10%">
                        <af:gridCell id="gc5" binding="#{backingBeanScope.backing_Main.gc5}"/>
                        <af:gridCell id="gc6" binding="#{backingBeanScope.backing_Main.gc6}">
                            <af:button text="Search Awards" id="b1" binding="#{backingBeanScope.backing_Main.b1}"
                                       action="goSearchAwards"/>
                        </af:gridCell>
                        <af:gridCell id="gc7" binding="#{backingBeanScope.backing_Main.gc7}"/>
                    </af:gridRow>
                    <af:gridRow marginTop="5px" height="70%" marginBottom="5px" id="gr2"
                                binding="#{backingBeanScope.backing_Main.gr2}">
                        <af:gridCell marginStart="5px" width="100%" marginEnd="5px" id="gc2"
                                     binding="#{backingBeanScope.backing_Main.gc2}"/>
                    </af:gridRow>
                </af:panelGridLayout>
            </af:form>
        </af:document>
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Main-->
    </f:view>
    

    And this is my code in the adfc-config. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="Main">
        <page>/Main.jsf</page>
      </view>
      <task-flow-call id="SearchStudentsFlow">
        <task-flow-reference>
          <document>/WEB-INF/SearchStudentsFlow.xml</document>
          <id>SearchStudentsFlow</id>
        </task-flow-reference>
      </task-flow-call>
      <control-flow-rule id="__3">
        <from-activity-id>Main</from-activity-id>
        <control-flow-case id="__5">
          <from-outcome>goSearchAwards</from-outcome>
          <to-activity-id>SearchStudentsFlow</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
      <managed-bean id="__4">
        <managed-bean-name>backing_AwardsSearch</managed-bean-name>
        <managed-bean-class>view.backing.AwardsSearch</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1AwardsSearch.jsf-->
      </managed-bean>
      <managed-bean id="__2">
        <managed-bean-name>backing_Main</managed-bean-name>
        <managed-bean-class>view.backing.Main</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1Main.jsf-->
      </managed-bean>
    </adfc-config>
    

    No idea why the button does not work correctly all the time?

    Thanks in advance

    Play well!

    Now, we understand the problem and can help you solve it.

    The problem is that you dropped the home page in the flow of student loan and place you thinking that you must return to the point of departure, the unlimited workflow. Actually, you don't the sheet flow loan student but simply see the homepage as part of the loan flow. The navigation rules remain those defined in the flow of student loan. Now, when you click on a button to jump to the stream of research, the target is undefined zed you simply stay on the same page, the home page.

    To make your work use case, you set a return action in the flow of student loan that return to the caller, the flow of research which, in turn, will return to his name the workflow without terminals that hold the homepage. Remove the homepage of flow of charge to students. The case of navigation allows to navigate between the button and the new return action.

    In the adf of flow research a wild-card rule that accesses the return operation sends the return flow to the home page. You must remove the sailing time pointing to research prices for the return operation because it can use the same rule of navigation of wild-card then. Then, you add a Bach student load flow navigation rule to the scholarship search page. This navigation is used for the return actionto_searchStudents.

    Timo

  • The data specified in the request is invalid. The value of the field id package is not a MultipleLiteral, but the field is defined as MultiValued

    We have a property in a component software which is an array. the value is [""]

    In the blueprint I am sitting a value property ['vim', 'emacs'] defalult

    When I ask this plan and change the values of foo, bar, I get this error

    The data specified in the request is invalid. The value of the field id package is not a MultipleLiteral, but the field is defined as MultiValued

    someone knows why this happens?

    I'm runnign vra7.0.1

    Strangely, it works if

    Overridable is set to NO

  • PDF-not picked up in the script field

    Hello

    I have a PDF file with fields whose values I put in my Javascript code. There are two particular areas (FieldA and FieldB) that are on display as null when I do a doc.getField ("FieldA") or doc.getField("FieldB"). As a result, I am unable to set the value of these fields.

    I checked that it was valid domain names and that they are correctly named in the PDF file.

    Can someone tell me why these two particular areas are not picked up by the getField method?

    Thank you.

    Sure. Run this code in the JS console:

    for (var i = 0; i)

    Console.println ("_"this.getNthFieldName (i)"_");

    }

    (I added a line of underscores before and after the names to make it more

    visible, if there is a space there...

  • Trace keycode function not to leave all the Keycodes

    The function trace in this file is not out of all the codes of keys on my keyboard. Some letters generate a key code and others do not. For example, 'u' outputs 85, but the 'I' outputs nothing.

    Here is the trace function...
    trace (Event.keycode);

    And here's the rest of the code that is a work in progress...


    package {}
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;

    SerializableAttribute public class Velocity3D extends Sprite
    {
    private var ball: Ball;
    private var xpos:Number = 150;
    private var ypos:Number = 0;
    private var zpos:Number = 150;
    private var vx:Number = 0;
    private var vy:Number = 0;
    private var vz:Number = 0;
    private var friction: Number =. 98;
    private var fl:Number = 250;
    private var vpX:Number = stage.stageWidth / 2;
    private var vpY:Number = stage.stageHeight / 2;
    private var ballb:Ball;
    private var xposb:Number = 130;
    private var yposb:Number = 0;
    private var zposb:Number = 150;
    private var vxb:Number = 0;
    private var vyb:Number = 0;
    private var vzb:Number = 0;

    public void Velocity3D()
    {
    init();
    }

    private function init (): void
    {
    internship. Align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;

    Ball = new ball (40, 0xff0000);
    ballb = new ball (40, 0xffff00);
    addChild (ball);
    addChild (ballb);
    addEventListener (Event.ENTER_FRAME, onEnterFrame);
    stage.addEventListener (KeyboardEvent.KEY_DOWN, onKeyDown);

    }

    private void onEnterFrame(event:Event):void
    {
    XPos += vx;
    YPos += vy;
    ZPOS += vz;

    VX * = friction;
    Vy * = friction;
    VZ * = friction;

    xposb += vx;
    yposb += vy;
    zposb += vz;

    LIGHT * = friction;
    vyb * = friction;
    VZB * = friction;

    If (zpos >-fl)
    {
    var scale: Number = fl / (fl + zpos);
    ball.scaleX = ball.scaleY = scale;
    ball.x = vpX + xpos * scale;
    ball.y = vpY + ypos * scale;
    ball. Visible = true;
    }
    on the other
    {
    ball. Visible = false;
    }


    If (zposb >-fl)
    {
    var scaleb:Number = fl / (fl + zposb);
    ballb.scaleX = ballb.scaleY = scale;
    ballb.x = vpX + xpos * scale;
    ballb.y = vpY + ypos * scale;
    ballb. Visible = true;
    }
    on the other
    {
    ball. Visible = false;
    }
    }

    private void onKeyDown(event:KeyboardEvent):void
    {
    trace (Event.keycode);
    Switch (Event.keycode)
    {
    decision 87:
    Vy-= 1;
    break;

    case Keyboard.NUMPAD_2:
    Vy += 1;
    break;

    case Keyboard.NUMPAD_4:
    VX-= 1;
    break;

    case Keyboard.NUMPAD_6:
    VX += 1;
    break;

    case Keyboard.UP:
    VZ += 1;
    break;

    case Keyboard.DOWN:
    VZ-= 1;
    break;

    case Keyboard.F1: //82
    vyb-= 1;
    break;

    case Keyboard.F2: //67
    vyb += 1;
    break;

    case Keyboard.F3: //68
    LIGHT-= 1;
    break;

    case Keyboard.F4: //70
    LIGHT += 1;
    break;

    case Keyboard.F5: //65
    VZB += 1;
    break;

    case Keyboard.F6: //90
    VZB-= 1;
    break;

    by default:
    break;
    }
    }
    }
    }



    -----

    It's the ball class...

    package {}
    import flash.display.Sprite;

    SerializableAttribute public class ball extends Sprite {}
    public var radius: Number;
    private var color: uint;
    public var vx:Number = 0;
    public var vy:Number = 0;
    public var: mass number = 1;

    public void Ball (radius: Number = 40, color: uint = 0xff0000) {}
    This.RADIUS = RADIUS;
    This.color = color;
    init();
    }
    public void init (): void {}
    graphics.beginFill (color);
    graphics.drawCircle (0, 0, RADIUS);
    graphics.endFill ();
    }
    }
    }

    you know - I have ran into this kind of thing and meditated on it for several hours - then come to discover that I needed to 'disable keyboard shortcuts' - in the command menu of the SWF file in the IDE to test running! lol - I don't know if that's your problem here, but it's worth a ;)

  • Not able to see the fields within a custom resources optimization

    Hi all

    I am not able to see the fields within a custom value.

    Here is my code for the custom resource optimization:

    public class CustomContentContainer extends VerticalFieldManager{
    
        String content_header;
        int container_height;
        int displayWidth = Display.getWidth();
        int displayHeight = Display.getHeight();
    
        public CustomContentContainer(String content_header,int height){
            super(Manager.NO_VERTICAL_SCROLL | Manager.NO_HORIZONTAL_SCROLL);
            this.content_header = content_header;
            container_height = displayHeight-height;
        }
    
        protected void sublayout(int maxWidth, int maxHeight) {
            super.sublayout(maxWidth, container_height);
            setExtent(maxWidth,container_height);
        };
    
        protected void paint(Graphics graphics)
        {
            int X_POS = 20;
            int Y_POS = 20;
    
            int width = displayWidth;
            int height=container_height;
            int[] xPts = {0, width, width, 0};
            int[] yPts = {0, 0, height, height};
            int[] colors = { 0xffffff, 0xf7f7f6, 0xd4d0cc, 0xb0a9a2 };
            graphics.drawShadedFilledPath(xPts, yPts, null, colors, null);
    
            graphics.setColor(0xc0c0c0);
            graphics.drawRoundRect(X_POS, Y_POS, getWidth()-40, container_height-40, 10,10);
    
            int stringWidth = getFont().getAdvance(content_header);
            graphics.setColor(0xF8F8F8);
    
            graphics.fillRect(35, 5, stringWidth+10, 30);
    
            graphics.setColor(0xFF0000);
            graphics.drawText(content_header, 40, 5);
        };
    
    }
    

    Here is the Code inside the class from the main screen

    settingsContainer = new CustomContentContainer("Settings",vodavaultLogo.getHeight());
            contentContainer = new VerticalFieldManager(Manager.VERTICAL_SCROLL|USE_ALL_WIDTH);
    
            passwd1 = new CustomEditField();
            passwd2 = new CustomEditField();
            contentContainer.add(passwd1);
            contentContainer.add(passwd2);
            contentContainer.setMargin(35,35,35,35);
    
            mainContainer.add(vodavaultLogoField);
            settingsContainer.add(contentContainer);
            mainContainer.add(settingsContainer);
            add(mainContainer);
    

    You must call the super.paint (.) in your paint (...) optimization of resources, if you paint all areas which are added.

  • All the fields are filled automatically with the same information as in the field.  When deleting, all delte also fields.

    Whenever I type information in the first field of the form, it automatically fills the same information in all areas.  How can I stop this

    If you don't have Adobe Acrobat Reader for free, you can not.

    It was more than likely a mistake by the creator of forms. No doubt, they have created a field copy and paste this one to create others. Usually, it's ok, but must be given to all fields different identifiers (names). All the fields with the same name will be filled with the same content.

  • How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    Hello Jmbtexas4,

    By default, you will need to individually click on the fields of the form and check the 'read only' and save it. From now on, it is not possible to select all together and make the changes.

    -Usman

Maybe you are looking for