How to put (Link) certain data of the text block and layer 1 layer 2

Hi guys...

I have a block of text that contains 5 element xml, these items showing in the xml of my InDesign file structure,

above the text, structure is in layer 1.

I want to put (Link) a given in layer 2 xml element and xml structure shouldn't be change.

This is the code...

var doc = app.activeDocument;

var OnlineLayer = doc.layers.add ({name: 'online'});

var monnoeud = doc.xmlElements [0].xmlElements [2];

I want to link myNode element with layer named 'Online'

Is it Possible, if possible please tell me...

Thank you...

Hi guys,.

It does not work correctly...

var doc = app.activeDocument;

var OnlineLayer = doc.layers.add ({name: 'online'});

var monnoeud = doc.xmlElements [0] .xmlElements [2];

myFrame var = doc.pages [1].textFrames.add (OnlineLayer);

myFrame.geometricBounds = [3, 3, 13, -20];

myNode.placeXML (myFrame);

myFrame.fit (FitOptions.FRAME_TO_CONTENT);

Tags: InDesign

Similar Questions

  • How to put a new line in the text block using jsx?

    Hello guys,.

    I am concatenating the content of the text block using two JSX, but I want separator as a new line. I have tried \n but does not work please help how to do that.

    var  seperator = "\n" 
    frame1.textItem.contents + seperator + text;
    

    Hi UpendraSengarr,

    Try this:

    var frame1 = app.activeDocument.activeLayer;
    var  seperator = "\r";
    frame1.textItem.contents = frame1.textItem.contents + seperator + "text";
    

    Have fun

  • How to access a certain date in the date and time field SQL Server

    I have a field named job_date in a table in my database of the 8 SQL Server.

    The data type is datetime.

    Thus, the values for the fields as the 2013-03-11 15:55:52.000 look.

    How to query this field to include only the values of a certain date?

    For example

    < cfquery name = "get_job_name" datasource = 'abc' >

    SELECT FROM job_info job_date WHERE Job_name = March 12, 2013"

    < / cfquery >

    When I query the field now I get NO RECORDS.

    This is because as the fields like this 15:55:52.000 2013-03-11. instead of this March 12, 2013"

    How to access a certain date in the date and time field SQL Server when its formatting as this 15:55:52.000 2013-03-11. ?

    where job_date > = TheDateYouWant

    and job_date<>

    In addition, the format is irrelevent.  The only issue of date formats time is when you want to display.

  • Apply effects to the text block and not the text

    I am trying to apply a shadow to a text block, but he keeps applied the effect of text rather than the text block.  I click on the text block, and then effects and shadow and object is selected in the 'Settings For' drop-down box.  However, he maintained the application of the shadow to the text, rather than to the text block.   I am doing this wrong, or is there something else I need to do?

    I use CS4 on Windows Vista.

    Thank you!

    Change your fill of paper or whatever is the shading color.

  • prohibit certain data in the text of the datetime element

    Hello!

    I am trying to ban the user of the datetime object by entering at the hour of midnight (00:00 MON-DD-YYYY). Basically the user can tab itself out of the text element after inserting the day month and year. I want to make sure he is forced to set the hour and minute also.
    I looked in the property palette but I don't seem to find any with which I can do.

    THX,
    Iulian

    Set

    Field Datatype : DateTime
    Format mask : DD-MON-YYYY HH24:MI
    
    In When-Validate_item Trigger check ...
    If to_char(:date_field ,'HH24:MI') = '00:00' then
      message('Enter Proper time along with date. Not allowed to enter mid-night value or null time ');
       raise form_trigger_failure;
    end if;
    

    concerning
    Dora

  • How can I configure my bookmarks in the text bar and any other toolbars of icons?

    It seems that I can change all toolbars to be text or icons. I want the look of Firefox 3. In Firefox 3 the personal bar was text only wile the navigation toolbar was icons. I can't figure out how to make my Back/Forward/Home buttons icons with my favorites in the text only toolbar.

    Bookmarks Toolbar addons:

    To show "icons only" on toolbars (other than the Bookmarks Toolbar), follow the instructions in the section below to open the "Customize toolbar" window, her lower left, change the 'Show' in 'Icons', then click on 'Done' at the bottom right of the "Customize toolbar" window

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • How to choose a telephone number of the text box and of appeal?

    Hello everyone, I am building an app for iphone and android. I'm wondiring if I can get these two features working in my project:

    • When we click on the email address field and start typing the name it will address similar to the address book list in the phone.
    • If there is a phone number in the text box, we can click on it and make a call.

    Is there a way we can do it in flex application?

    1. you will probably need to look into writing a native extension for this: http://www.adobe.com/devnet/air/native-extensions-for-air.html

    2 see http://cookbooks.adobe.com/post_Open_the_Phone_Dialog___Flex_Mobile-19068.html

  • Create the text block and flow of

    Dear friends,

    I need your help "very urgent."

    How excess content stream of framework (table) text for the next block of text? The following image must be created.

    Front

    Float1.png

    I need after-

    Float2.png

    Please suggest friends

    Thanks in advance

    KS

    If you select a textframe, you already have a textframe. So, if you choose app.selection [0] .textFrames [0], this means an anchored within a textframe textframe.

    And: You try to create your textframe on page 1. But you must add the new textframe on the page following the page of your choice.

    So, try this one:

    var curDoc = app.activeDocument;
    var frame1 = app.selection[0];
    var parPage = frame1.parentPage.documentOffset;
    var frame2 = curDoc.pages[parPage+1].textFrames.add({geometricBounds: [50, 50, 100,100]});
    frame2.previousTextFrame = frame1;
    
  • . Linked PSD placed behind the text block. Does not appear in the PDF export?

    So, I have an image as a .psd in my spread which is behind a block of text and a low opacity to ensure readability. However, when I export to PDF, it does not appear in the final file. Any ideas? Thanks in advance for any help.

    EDIT: now I found a work around using a PNG exported from Photoshop instead of the original file. Would be really nice to be able to use the PSD so if changes are to be made to the image, it can be easily updated.

    J

    Hi Justin,

    HM, then you must make a tough decision, your only choice to be on the "safe" side

    Export to PDF v1.3 (Compatibility Acrobat 4 (PDF 1.3) where you check "simulate overprinting" in the fourth tab of the settings of export PDF.

    This workflow is not recommended for PDF files you want to print:

    Just for the screen display!

    Then all the 'overlay' and 'transparency' is cooked in the PDF file so to speak.

    Here is a screenshot of my German OS:

    Uwe

  • The text blocks and discussions all changed white

    Help - my long InDesign CS3 document changed all my blocks of text and the sons of white.  I can't see the box on the page for formatting.  I added a background colored on the master to see them on a temporary basis - but do not want this background.  I can't find anything in the area of preferences to change this.

    These elements assume the color of the layer, they are on. Check the color of the layer in the layers panel.

    Noel

  • Text wrapping will not be in the text block

    I am changing the content on a block of text in Illustrator using a JavaScript file.

    My method is as follows:

    changeLayer = doc.layers.getByName(textKeys[t]);

    changeLayer.textFrames.getByName(textKeys[t]).wrapInside = true;

    changeLayer.textFrames.getByName(textKeys[t]).contents = textArray [textKeys [t]];

    Basically, I set wrapInside to true and then I replace the content of the block of text with a string.

    However, rather than the text as you wish, Illustrator print everything on one line expands the size of the text block (and sleep) to adapt the text on a single line. Even when I put explicitly the width and height of the image in the script, it shrinks the text to fit on a single line in the rather enveloping framework. If I explicitly set the size of the police he then extends the framework once again, but only on a single line. Any ideas? Thanks in advance.

    Good evening

    Don't forget that you have different types of linked text frames. In vba, you can find the property THAT allow you to show that read only 3 types of text frames aiAtraText, aiPathText and aiPointText

    Patrice

  • Type of entry in the text block

    Hello

    Is it possible to define a text frame on a master page and be able to enter text in the image in the document itself, without separate the text block and his master?

    This is for CS4.

    Thank you.

    It depends on the nature of your question. You must override the image on the document page (Shift click command) to add content, but anything that does not change on the page of the document is still linked to the main frame (such as size, position, fill, stroke, etc.). Is that what you mean?

  • How to put in place measures in the application of health?

    How to put in place measures in the application of health?

    What do you mean 'the configuration steps? If you want steps if poster on the health dashboard, tap on health at the bottom of the screen data. Tap fitness. Tap measures. The value "Show on dashboard" on.

    The health app is really more than one application storage and synchronization. You can't do things as targets for a particular metric. If you want to set a goal of step and follow it, use one of the many followed apps available that can extract data from health. Map My Fitness, My Fitness Pal, Jawbone UP and Fitbit (both can be used with the phone if you have an iPhone 5 or a later version). If you like to compete with others, the Club activities is fun.

  • How to find how many times a certain data is repeated in a character field

    Hello
    I am user of Oracle 9i and a newbie to SQL.

    How to find how many times a certain data is repeated in a field in a table of character?

    for example.

    DEPT_NAME
    ------------------------------------
    Homeopathy
    Medicine
    Homeopathy
    Erices
    Homeopathy
    Surgery
    Urology
    Cardiology
    Homeopathy
    Opthamology

    DEPT_NAME here is an area of character and I want to know how many times _ 'Homeopathy' is repeated in the field "DEPT_NAME."

    [email protected] wrote:
    Hello
    I am user of Oracle 9i and a newbie to SQL.

    How to find how many times a certain data is repeated in a field in a table of character?

    for example.

    DEPT_NAME
    ------------------------------------
    Homeopathy
    Medicine
    Homeopathy
    Erices
    Homeopathy
    Surgery
    Urology
    Cardiology
    Homeopathy
    Opthamology

    DEPT_NAME here is an area of character and I want to know how many times _ 'Homeopathy' is repeated in the field "DEPT_NAME."

    You can use the COUNT aggregate function.

    SELECT count(*) FROM  WHERE dept_name = 'Homeopathy'
    
  • How to get back my data for the health and the watch Apps once I've restored my phone?

    How to get back my data for the health and the watch Apps once I've restored my phone?

    From the backup, you're going to be restoration.

    If you back up to iTunes, make sure that it is an encrypted backup.

Maybe you are looking for

  • Update of RAM for Satellite Pro 6100

    Hello What type of RAM is supported by the Satellite Pro 6100.I need to update some RAM. Thank you much for the help.

  • drivrutin xperia arc

    Hej, NAR jag vill skicka bilder via blutooth till datorn fran min xperia arc sa can put inte drivrutinen. Varfor? JAG kan inte skica mina bilder till datorn. MVH Sara

  • Sony A7II and bright room 5.7?

    Hello people, New to this forum just after buying a new Sony A7II and objective 24-70. I took som test shots and then went to import my raw files in ambient light 5.7 and received an error message that my files are not supported. Can anyone help with

  • I can't open my computer, suggestions .aspx files?

    I'm working from home and I have Windows Vista Home Premium that came installed on my dell computer.  I tried to open documents yesterday and they had the extension .aspx file, they will not open.  a screen popped up on downloading drivers and there

  • tracking PDF problem

    Hello.I want to track numbers of pdf download, so after a manual that I put in place the HTML file.* Manual that I aimedhttps://community.Oracle.com/servlet/JiveServlet/downloadBody/907319-102-1-24246/Eloqua%20Async%20Tracking%20Scripts.PDFAfter mail