How to link two executives of related texts?

Hi all

I'm new to the sdk. I have UIDref of executives two related texts, how it can be screwed?

«Indesign 5.0»

Thanks in advance

A.Hakkim

You must add the UID of the kMultiColumnItemBoss kTextLinkCmdBoss itemList.

For the multiColumnItemUID of kSplineItemBoss.

MultiColumnItemUID UID = kInvalidUID;

InterfacePtr iHierarchy (pageItemUIDRef, UseDefaultIID());

InterfacePtr iChild (iHierarchy-> QueryChild (0));

If (iChild &: GetClass (iChild) == kMultiColumnItemBoss)

{

multiColumnItemUID =: GetUID (iChild);

}

For the multiColumnItemUID of kFrameItemBoss.

MultiColumnItemUID UID = kInvalidUID;

InterfacePtr iHierarchy (iTextFrameColumn, UseDefaultIID());

InterfacePtr iParent (iHierarchy-> QueryParent());

If (iParent &: GetClass (iParent) == kMultiColumnItemBoss)

{

multiColumnItemUID =: GetUID (iParent);

}

Tags: InDesign

Similar Questions

  • How to link two tables with a part of a cell value

    I have 1 column, which contains info like this "1 to 4 numbers - two words" in tableA

    for example

    985 - train series

    14 baby Doll

    874 piano keyboard

    6 - DVD player

    etc.

    In table B I have columns with the numbers of toys 1 and 2 which has the price.

    I want to write a query that gives me the number, name and price.

    But I don't know how to link part of the value in a cell with another table.

    I know that the database is not normalized, but I did not design and I have no permission to change.

    Kind regards

    What have you tried?

    Please read: Re: 2. How can I ask a question on the forums?

    Sounds to me like you just want to join the tables on a partial string, so to make you just extract the numbers from the table A Column1.

    for example

    TO_NUMBER (substr (A.col1, 1, instr(' ')-1))

  • exportFile() on executives of related texts - strange behavior, how to fix?

    Hello

    What I need, is to export the blocks of text in the form of images, by using the exportFile() method and get the same appearance as in the document.

    But if I manipulate with textframe somewhat, as resize it a bit, the picture, I got is not the same size as the selection: it has a certain margin.

    El = element TextFrame

    var file = new File(path + "el" + el.id + ".png");
    app.pngExportPreferences.exportResolution = 72;
    app.pngExportPreferences.transparentBackground = true;
    el.exportFile(ExportFormat.PNG_FORMAT, file);
    

    by example, if I check el.geometricBounds (or visibleBounds, these are the same) is [64, 104,88, 85, 336], which is (231 x 22).

    But with exportFile, png with 231 x 29 size got.

    How to get an accurate picture? Or how to match so I could crop later automatically?

    [JS] PageItem Export in PNG: dimesion of the exported image differs from PageItem

  • Wrap JS CS3 How to apply options for some executives of related texts

    If you manually select a number of linked text frames, and then click wrap encompassing for example, it is applied to all selected items.

    To do this in a script can be done without a loop in each selection?

    For example:

    var myNewGroup = app.selection


    myNewGroup.textWrapPreferences.textWrapType = TextWrapTypes.NONE;


    var myGroup = app.activeDocument.groups.add(myNewGroup);

    This does not work, but if you have more than 1000 selected text blocks it takes awhile.

    for (i=app.selection.length-1; i>=0; i--) {


            app.selection[i].textWrapPreferences.textWrapType = TextWrapTypes.NONE;

    }

    Any suggestions?

    Cheers, John.

    Yes, you are right...

    You can not textFramePrefernces re-branded to the Group of objects. It's my fault.

    I think that you need to loop through objects...

    --

    tomaxxi

  • How to link two pieces of text to read always the same...

    I have an InDesign Doc with a Master Page containing a margin and some graphic images that I want displayed on each page.

    It works very well, so that when I change the captain all other pages are updated.

    However, in the design of master there is a header that reads "title" of the document and the "Version number".

    This information is presented on the cover page of the document.

    What I want to do, is to allow the header of automatic update for all that is in the first cover Page text, as it will be the first completed field.

    Is this possible?

    Thank you very much

    Max

    The running header variable is not looking for a header, its main function is to create a header, you would find in a dictionary or a phone book. The variable search text with a style is applied, the paragraph or character style. In this case, you probably want to use a paragraph style, and as Jongware said, this must be a style not used elsewhere in the file (it may be based on another style, if necessary, so that it looks and acts like other model if you want to change, as long as it has a unique name).

    Set the variable to the header (paragraph Style) running and choose "first on the page' as the position. ID should look until he actually finds the style, which is located on the first page, and continue to use that until he finds a new inistance on a new page, which, in your case, shouldn't happen, so anything you put in that first paragraph should show around where you put the variable.

  • How to link two networks

    I have a LAN House along with millions of others and I want to connect to my Android phone via WiFi hotspot.  So, I want to access an application on the phone via the local network from any PC in the local network.  I thought a network bridge Windows would work, but no.  There are dozens of sites that tell you how to create a bridge but none that actually tell you how to do something useful.

    Details:

    I use a laptop to Windows 7 which has an Ethernet LAN adapter and a network card Wireless used for wireless connections.  The LAN has a wireless router that provides the connection to my ISP.  The laptop and LAN connections pass through a switch that top-links to the router.  The router uses DHCP to get an IP address from the ISP.  The internal network is assigned 10.0.0.x addresses which I think is a fairly common practice for Cisco routers.  Mine is a Netgear6300.

    The router provides the laptop with an address of 10.0.0.12 and a gateway 10.0.0.1 as expected.  Android provides 192.168.43.1 as the gateway address and 192.168.43.17 for the wireless card.

    With two active connections, I can connect successfully to the LAN and WiFi.  I can connect the application phone laptop computer as well as INTERNET access, discs shared on other machines and all other features of LAN.  I was not able to find a way to access the app android from another machine however.

    The first puzzle, is that when I connect to the phone app, I use 192.168.43.1.  (HTTP://192.168.43.1:8080).  Based on the addresses indicated by ipconfig, I wish it was 192.168.43.17, but it's address, said app I use and it works.

    ???

    What I tried:

    1. first I tried just log in from another machine wired (10.0.0.13) even if I didn't know that it works, because there is no way he could know where 192.168.43.1.  Of course, it did not work ("this page cannot be displayed").  Then I added a static route to the router: Ip: 192.168.43.1; Gateway: 10.0.0.12; Subnet mask: 255.255.255.255. Metric: 2. that did not work either ("this page cannot be displayed").

    2. then, I removed the static route and bridged connections Wi-wired and wireless.  Now it does not work to each machine ("this page cannot be displayed" both 10.0.0.12 and 10.0.0.13).  And with the added bonus to change the IP address of the machine to 10.0.0.20. Wow!  I then added static route: Ip: 192.168.43.1; Gateway: 10.0.0.20; Subnet mask: 255.255.255.255. Metric: 2 failed on another machine ("this page cannot be displayed").  While putzing autour, I learned that connection you do right click on is one that's the attributes of: when I created a bridge with a right click on the wireless bridge, I got this:
    IPv4 address...: 192.168.43.19
    ... Subnet mask: 255.255.255.0.
    ... Default gateway. : 192.168.43.1.

    So now my machine is off the LAN and I don't see any other machines and my external IP address changed because I'm going out WiFi Phone.  It keeps getting better and better.

    3. I tried sharing LAN connection.  This does not work and more he took my LAN access.

    4. I tried to share the wireless connection.  It does not eithes. Also removed my LAN access.

    This kind of thing network always gives me a headache.

    I've spent hours on it, and so far I do not see the benefits to fill or sharing.  It seems that they extract more capabilities they provide.  Is there another way I can accomplish what I want?  Any help would be appreciated.

    Ken

    You're overthinking this.  You don't need to fill or to share.

    Please specify what you mean by that:

    The laptop and LAN connections pass through a switch that top-links to the router.

    Is this another piece of hardware or are you referring to the 4 Ethernet connectors at the back of the Netgear 6300?  If the first case, it must be plugged into one of the 4 Sockets Ethernet on the Netgear 6300.

    You forgot in your description the device that connects effectively to your outside line (DSL or cable, I presume).  As the 'modems' DSL or cable provided by ISPS often include their own routers, home network configurations can often be complicated by the bad connection devices.  Is your modem connected on the making of 'Internet' on the Netgear 6300 or to one of the Ethernet?

    You have your phone configured as "wifi hotspot".  So you have two routers available to connect wireless.   One with a gateway address 10.0.0.1 (the Netgear 6300) and the other with a 192.168.43.1 gateway address (telephone).  I guess what you mean by the following

    With two active connections, I can connect successfully to the LAN and WiFi.

    is that you have the laptop connected to your router via an Ethernet cable AND have connected it through wifi on your phone.

    The reason for which you can "access the app from another machine" - which is probably related to your Netgear router, either by using an Ethernet cable - is because the phone is not connected to your router.

    Disable the 'hot spots' function on your phone and connect the phone using wifi, the Netgear router.  Your phone should now be assigned a shape 10.0.0.x IP address by the DHCP server on the Netgear router, and you should be able to access it from any other computer connected to the router - regardless of whether if the computer is connected to the router by Ethernet or wifi.

  • Get specific information from executives of related texts

    Hi all

    So here's my question. I need to get information from text within a thick layer. The layer contains images and text and the text is the information that I need, which looks like this:

    (4) L attest 1,2,3,4

    (13) XL 5,7,8,9,10,11,12,14,15,17,19,20,21 bolt torque

    (4) bolt torque 22,23,25,27 XXL

    (1) XXXL 34 bolt torque

    I need to do three things: the number that represents the number inside the parenthesis, the size that it is the next set of letters (L, XL, XXL, XXXL) and the list of numbers (I need not "# s" characters), and information storage together to know for example that size L has a 4 number and numbers are 1,2,3 and 4.

    If someone could point me in a direction to achieve this I would really appreciate it. I'm working on CS6.

    Thank you.

    This is not EXACTLY how I described above... but this is the one I tested with. It doesn't have the conditional statement about whether she should use asterisks or peren and me have just pre-programmed the chain of the textFrame. It worked for me. It will be perhaps more useful than this wall of text and attempts at explanations...

    function getRoster()
    {
        var roster = {};
    
        var text = "(4) AL #'s 1,2,3,4\
        (13) AXL #'s 5,7,8,9,10,11,12,14,15,17,19,20,21\
        (4) AXXL #'s 22,23,25,27\
        (1) AXXXL #'s 34\
         \
        TOTAL: 22"
    
        var lines = text.split('\n');
    
        roster["sizes"] = {};
    
        for(var a=0;a5 && lines[a].indexOf(":") == -1)
            {
                var qty = lines[a].substring(lines[a].indexOf("(")+1, lines[a].indexOf(") "));
                var size = lines[a].substring(lines[a].indexOf(") ")+2, lines[a].indexOf(" #"));
                var nums = lines[a].substring(lines[a].indexOf("s ") + 2, lines[a].length);
                nums = nums.split(",");
    
                roster["sizes"][size] = {};
                roster["sizes"][size]["quantity"] = qty;
                roster["sizes"][size]["numbers"] = nums;
            }
        }
        return roster;
    }
    var theRoster = getRoster();
    

    This script returns the next object and saves it under theRoster:

    var theRoster = {
         "sizes" : {
              "AL" : {
                   "numbers": ["1", "2", "3", "4"],
                   "quantity" : 4
              },
              "AXL" : {
                   "numbers":["5","7","8","9","10","11","12","14","15","17","19","20","21"],
                   "quantity" : 13
              },
              "AXXL" : {
                   "numbers": ["22","23","25","27"],
                   "quantity" : 4
              },
              "AXXXL" : {
                  "numbers" : ["34"],
                   "quantity" : 1
              }
         }
    
  • How to link two tables with form

    Hello

    Here's what I want to do

    I have a table-> Student (rollno, name)

    I also have these two tables (rollno, marks) Math Physics (rollno, marks)

    now, I want to have a form in my page (in which I can navigate school records) and two tables in the adf (Math, physical). When selecting a certain record of the form, I want to see data associated with these two tables.

    I try to make the link display but works for me...

    Please help me on this.

    -Usman

    -Open the module of the application

    -Go to the model data tab

    -You will see all the your available on the left and your already added to the AM to the right

    -For the your who are 'master' for others your (in your case, student VO's master VO of Math and physics VO), you will see a (+) monkey behind it

    -Expand this node and you will see the math and physics your.

    -Math VO on the left and the VO student on the right then click on the button (>) to shuttle Math VO VO of the student child and give it a name

    -Repeat step for physics VO

    After completing the above steps and save, go back to your jsf (or jspx or...) and in the data tab control you will see this student VO is now two children, Math and physics. Use WHAT YOUR theses to create your tables for details.

    Kind regards.

  • Hello. How to link two different language site

    For example, I built two different Web site in English and Somali that work together. If someone who has read the Somalis can go to the pages of Somali somali Web site or someone who reads English can go to the English pages on the English site, so please is there anyone can help with this situation?

    Hello

    Please check the following threads,

    How to set up a multilingual with Adobe Muse website and push it live Adobe Business Catalyst

    Re: How can I create different languages for my page?

    I hope this helps. Let me know if you have any question.

  • How to link two labview files

    Hello

    I have a file that generates a signal, I connect the signal generated in the first to the second file. You can help me please how to do this. waiting for your answer.

    Create a Subvi VI which generates the signal and use it in the main vi (second one).

  • How to launch two executable files (excel file & a .exe file) at the same time using VB Script?

    Hello

    I need vb Script code to run exe files at the same time.

    I hope someone will help me!

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • for - loop in all managers of related texts (cs4 jsx)

    var app.activeDocument = docRef;

    for (var num = 0; num < docRef.textFrame.length; num ++) {}

    alert (docRef.textFrames [num]);

    }

    I would like for all the blocks of text in a document to experiment with what properties return information.  I have a simple test document with as three different text blocks and I want information on each collection.  This loop for doesn't seem to work though, and I can't quite wrap my head around how work the textFrame objects and linked text frames.

    Thanks for the help!

    executives of related texts = a collection of linked text frames

    textFrame = a single textFrame, example frames of texts linked [1] made reference to the second textFrame

    Try this

    var docRef = app.activeDocument;
    
    for (var num=0; num		   
  • How to divide all managers of related one-character-by-textFrame?

    Hello:

    How to divide all managers of related one-character-by-textFrame?

    Example: textFrame 'letters' will be divided into 7 executives of related texts: 'L', 'e', "t", "t", 'e', 'r', "s".

    Help, please.

    Hi Victor, here is the version JS, sorry for the delay

    #target Illustrator
    
    //  script.description = splits selected texFrame into separate characters;
    //  script.required = select a point text textFrame before running;
    //  script.parent = CarlosCanto;  // 3/5/11
    //  script.elegant = false;
    
    var idoc = app.activeDocument;
    var tWord = idoc.selection[0];
    var xpos = tWord.position[0];
    var ypos = tWord.position[1];
    var charCount = tWord.characters.length;
    
    for (i=charCount-1 ; i>=0 ; i--)
         {
              var ichar = tWord.duplicate();
              ichar.contents = tWord.characters[i].contents;
              tWord.characters[i].remove();
              var width = tWord.width;
              ichar.position = [xpos+width,ypos];
         }
    tWord.remove();
    
  • How to connect two .mxml pages?

    Hi all,

    Any body help me, how to link two pages in flex.example, if you click on the button first page.it displays another page.

    Kind regards

    welcomecanv

    Jin

    You can do with the States, in accordance with the example (switching with both navigation and the use of events to change the mxml)

    http://gumbo.flashhub.net/wizard/ - source included

    David.

  • link frames related texts

    Hi Forum,

    I have a little bit to connect the block of text between two pages...

    myDoc var = app.activeDocument;

    myDoc.pages [0] .textFrames [0] .nextTextFrame = myDoc.pages [1] .textFrames [0];

    but my intention is to link all text within the document-related frameworks (total number of pages is 20 pages and each pages have frames of related texts that are not related to other pages).

    No possibilities.

    Thanks & regareds.

    S...

    Hi Shilpa

    You can do this by using the loop,

    for(i=0; i
    

    Suresh

Maybe you are looking for

  • iPad losing emails on WiFi

    One of my users has an iPad for the trip, so he is using data. Looks almost whenever it connects to the airport or hotel WiFi that emails simply put back to 2 years ago, then continue to load everything up to the current date. I can't wrap my head ar

  • Is it possible to make the modules to activate as needed rather than turn to the browser start or disabled?

    Extensions and Plug-ins have a disable or remove the button, not a sleep button. Is it possible to put these to use when the application needs instead of either on or off? It seems that Firefox starts with them all turned on, my browser startup time

  • How to create iMessage timestamps

    How can I create a timestamp in iMessage settings so I get info date and time of each text message I get. I have Android and it's automatic. It of not a big deal, but may be useful in trying to remember when you sent or received a message. Here is an

  • Why my password won't work unless I reboot?

    My password for my Macbook Pro will not work after that my laptop goes to sleep - until I reboot the machine. Then, it works perfectly and gives me a message asking if I would like for applications that were open before they reopen. Whenever my machi

  • Remote Desktop connection has encountered a problem and must be nearby

    When printing a tag printing in internet explore from a server terminal server. I get the message "Remote Desktop connection has encountered a problem and needs to close". I get disconnected from the terminal server. I updated the file screwdriver as