get the real class of a PageItem

Hi all

There are two ways to get a pageItem:

-Document.allPageItems which is an array of PageItem extended objects (Rectangle, TextFrame, oval,...), so we can have precisely the type of object that we need.

-Document.pageItem.itemByID (), which returns ONLY objects the form of PageItem regardless of their type.

I need to get a specific object (Rectangle, TextFrame).

But, to avoid a loop in the PageItems, I'm looking for a mixed method that returns something specific on how even second method (by usind id)

Thank you.

Pierre RAFFA

pageItem.getElements () [0]; should fix the object.

Tags: InDesign

Similar Questions

  • When I click on an address, instead of the name of domain appearing in the url field, only the IP address appears. How can I get the real domain to pop?

    When I click on an address, instead of the name of domain appearing in the url field, only the IP address appears. How can I get the real domain to pop?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

  • NOAE: How can I get the real value of FPS?

    I implement an external encoder as an After Effects plugin library. This requires a value for the encoding of the FPS as a float value.

    With the help of:

    ERR (suites. IOOutSuite4()-> AEGP_GetOutSpecFPS (mouthand fps));

    gives a completely ridiculous value (1964114, when the FPS publication is 29.97). How can I get the real value of FPS?

    Hello

    It seems that AEGP_GetOutSpecsFPS returns a value of type A_Fixed.  You can use the macro FIX_2_FLOAT() (defined in AE_Macros.h) to convert to a float value.

  • Pass parameters to GO URL help - how to get the real URL?

    Hi gurus,

    I'm testing a method of passing dimensional values of the main report to detail report by clicking on the measured value in the main report. The idea is to convert the measurement column in a href HTML column, so it can pass parameters to the 2nd report using the URL GO.

    What I entered in the formula tab, it is like this:
    ''|| CAST ("sales facts". ("' Quantity ' AS CHAR (50)): ''

    Now when I click on the value of the measure, it can refer to the detailed report but cannot pass parameters. I have already added FILTERS to this report and set with clause IS GUEST.

    I have no idea why it cannot work because I do not see the actual URL, it has generated. The URL at the bottom of the page is incomplete.

    Is it possible to get the real URL? Expected my feasible approach?

    Concerning
    Jeffrey

    P2 is the target and P3 is the source column. P2 should be replacement of 20% for spaces.

    P2 = customer. "% 20Region" & P3 ='| " Clients. "" Country region |

    There are many examples of correct GO the URL code here in the forum, you just find it. :-)

    Concerning
    Goran
    http://108obiee.blogspot.com

  • Unable to get the Service class

    I did a few test installs workspace as assessment locations.

    Whenever I try to buried in the central offices of data service to make changes, I may enter only once and then from there, there is no way to show, edit or copy the default COS value; all I get is the error above.

    This is a new installation, following the manual and most of the default settings, including ssl certificates. only, I joined the domian and configured the device connector to collect thinapp packages.

    Everything works fine and I have had no error installation and configuration of vApp.

    I tried to put this device into maintenance mode and discount online and also rebooted it but no luck.

    Someone at - it had the same problem? Is there a way around it?

    Thank you!

    I sent the following to you as a private on 20 June message e-mail, did you receive it? I now obscured the real email address.

    Hello

    Thank you for sending the detailed log. After watching the token, it seems that there may be two user records using the same email id-

    We do not support two users having the same email address. It is possible the user you are connected to the workspace horizon, providing data breach, as is an e-mail duplicate. Therefore, you are not able to access the COS.

    Can you change the email address and the new provision? Or remove the other user?

    Sridevi

  • How to get the real serial number of hard disk in a form

    Dear all,

    Can I get the serial number of the disk hard real in a form?

    Help, please


    Thank you

    It seems that HOST() set some environment variables, then the path to the wmic.exe is not found. The following works for me:

    host('cmd /c "c:\windows\system32\wbem\wmic path win32_physicalmedia get serialnumber"'||' > '||'c:\AA.TXT',NO_SCREEN);
    

    François

  • How can I get the external classes to work in AS3? Sample included.

    I'm doing this work, and something basic must be absent.  Its straight out of the Adobe Help file example.

    CS4, Actionscript 3

    Here's what I do:

    1 create a .as file and name it "HelloWorldExample.

    2 put the script below into it and save it.

    3. create a .fla file and save it in the same directory.

    4. in the .fla file, put "HelloWorldExample" in the class of Document properties field

    5 save and run the film.

    I get a white screen.  Nothing.  I tried a few other examples, but I was not able to get ALL of the external .as files to run. It is the simplest.

    Do I need to import them or call them in some way other than step 4?

    I missed something?

    package

    {

    flash.text.engine import. *;

    import flash.display.Sprite;

    SerializableAttribute public class HelloWorldExample extends Sprite

    {

    public void HelloWorldExample()

    {

    var str = "Hello World!" This is Flash Text Engine! « ;

    var format: ElementFormat = new ElementFormat();

    var textElement: TextElement = new TextElement (str, format);

    var textBlock:TextBlock = new TextBlock();

    textBlock.content = textElement;

    var textLine1:TextLine = textBlock.createTextLine (null, 300);

    addChild (textLine1);

    textLine1.x = 30;

    textLine1.y = 30;

    }

    }

    }

    As long as you have your class paths set correctly, it is best to have your .as files in an another loc that your. Fla. What happens if you want to use the same class in different .fla? You will copy in each project file? That kind of defeats, the purpose of the use of classes and then, because if you change it you must change it in various places. Not good. No OOD.

    So: Edit > Preferences > AS3 settings - add paths to the source path, or a path... something like c:\flashclasses\as3

    Inside of your as3 application you assign to your package files. If you use TweenLite need you:

    com

    greensock

    TweenLite classes

    or yours:

    com

    Mydomain

    my classes

    then you would be important as:

    import com.greensock.TweenLite;

    import com.myDomain.myClass;

    Make sense?

  • How to get the real size of the screen?

    Hi all

    I want to get the size of the BACKGROUND object screen AREA.

    I tried to call

    my_main_screen.getMainManager () .getVirtualWidth ();

    or

    my_main_screen.getMainManager () .getVisibleWidth ();

    But they always return 0.

    How to get this size? Thank you!

    Hey there. You can summarize this article:

    sector screen explained

    then you replace in your test screen

     protected void onUiEngineAttached(boolean attached) {
            String width = String.valueOf(getMainManager().getWidth());
            String height = String.valueOf(getMainManager().getHeight());
            Dialog.alert(width + " : " + height);
        }
    

    That you will get the result. On my 9630 Simulator, I saw the following values for the width and height: 480 and 333 respectively.

    I hope it works for you.

  • How to get the controller class of the a fxml file open in a tab?

    Hello.
    First of all, sorry for my bad inglish, that is not my language.

    Introduction:
    I work in the skeleton of an enterprisse application in javafx. Generally (in the past), I used swing with InternalFrames MDI form. Search in the web site on how can he do this, I found that the concept of the MDI form is obsolete, is recommended to use a tabpanel structure. I started to develop the application with this concept, but I have a question.

    Scenario:
    I have a main window with:
    -Menu: To access the different options
    -Toolbar: To run the day-to-day operations (open, save, edit, delete and print)
    -TabPanel: To display the dashboard and fxml files opened from the menu.
    -Status bar: To display information.

    [http://www.blueboxmicrosystems.com/fxml.png |] See the image]

    The problem:
    I don't know how to access the methods of the controller of the fxml file on the active tab.

    Note: I have an interface with operations (open, save, edit, delete and print) and the tools of the interface controllers.

    The question:
    How can I me the controller class of the file fxml in the active tab in order to call methods?

    Kind regards

    Published by: user10311523 on 31-mar-2013 20:36

    Published by: m_ilio on 01-Apr-2013 05:40

    Instead of

     Parent root =  FXMLLoader.load(getClass().getResource(fxmlFile));
    

    do

    FXMLLoader loader = new FXMLLoader(getClass().getResource(fxmlFile));
    Parent root = (Parent) loader.load();
    MyControllerType controller = loader.getController();
    // now you'll need to keep track of the controller somewhere, maybe a Map
    

    where of course you replace MyControllerType with classname of your controller.

  • Get the error: class/method: tcReconciliationOperationsBean/ignoreEventAttr

    Hello
    I get this error in my log files when I run our custom role add scheduled task:
    Class/method: tcReconciliationOperationsBean/ignoreEventAttributeData a few problems: data not found.
    But I can't understand where is the problem with the error. If the user account is not present in the IDM or data of user role in do not present in the child view data. Please help if someone faced this error before.


    Thank you
    Kalpana.

    This error means that you are trying to present an event of reconciliation which refers to a child table, but does contain no data for the child table.

    Is - what your custom scheduled task has a provision to make the test for a single user, you can check this single user, it will help you to debug.

    Thank you
    Patricia

  • filtering of repetitions - get the real START to STOP

    It is kind of window on state changes - I am interested in the true first DEPARTURE to the first NOTCH, where there are a lot of unnecessary repetition.  For example, in these data account # 4159, I want the BEGINNING December 12 and the first STOP on 17 December, then again the STARTING December 21 and the first STOP on 26 Dec:

    WITH EXAMPLE_DATA AS

    (

    SELECT '4159', 'STOP', ' 2015 - 27 - DEC 14:40:36 ' UNION DOUBLE
    SELECT '4159', 'STOP', ' 2015 - 26 - DEC 15:08:14 ' UNION DOUBLE
    SELECT '4159', 'START', ' 2015 - 24 - DEC 09:36:57 ' UNION DOUBLE
    SELECT '4159', 'START', ' 2015 - 23 - DEC 19:06:54 ' UNION DOUBLE
    SELECT '4159', 'START', ' 2015 - 21 - DEC 09:36:57 ' UNION DOUBLE
    SELECT '4159', 'STOP', ' 2015 - 18 - DEC 09:36:57 ' UNION DOUBLE
    SELECT '4159', 'STOP', ' 2015 - 17 - DEC 09:36:57 ' UNION DOUBLE
    SELECT '4159', 'START', ' 2015 - 15 - DEC 20:06:53 ' UNION DOUBLE
    SELECT '4159', 'START', ' 2015 - 14 - DEC 09:36:57 ' UNION DOUBLE
    SELECT '4159', 'START', ' 2015 - 13 - DEC 21:36:43 ' UNION DOUBLE
    SELECT '4159', 'START', ' 2015 - 12 - DEC 09:36:57 ' DOUBLE)

    SELECT * FROM EXAMPLE_DATA ORDER BY DESC 3

    The output should look like:

       

    4159STOP2015-26-DEC 15:08:14
    4159BEGINNING2015-21-DEC-09:36:57
    4159STOP2015-17-DEC-09:36:57
    4159BEGINNING2015-12-DEC-09:36:57

    In this example, there are just 2 pairs of true beginning to stop, in the actual data there might be 1 pair or several pairs, but the same question: the first real start to the first real stop. Thank you!

    Hello

    So, for each account, you want to see only the rows where actn is different from the previous actn (when it is sorted by dt); Isn't it?  (You also want the line that has no previous line, it is what makes NVL in the query below.)

    I call the acct, actn and dt columns.

    Here's a way

    WITH got_prev_actn AS

    (

    SELECT the acct actn, dt

    LAG (actn) over (PARTITION BY acct

    ORDER BY TO_DATE (dt, "HH24:MI:SS MON-DD-YYYY")

    ) AS prev_actn

    Of example_data

    WHERE the field IN ('START', 'STOP') - if necessary

    )

    SELECT the acct actn, dt

    OF got_prev_actn

    WHERE the actn <> NVL (prev_actn, '?')

    ORDER BY acct

    dt DESC

    ;

    Output:

    ACCT ACTN DT

    ---- ----- ---------------------

    4159 STOP 2015-26 - DEC 15:08:14

    4159 BEGINNING 2015-21 - DEC 09:36:57

    4159 STOP 2015-17 - DEC 09:36:57

    4159 BEGINNING 2015-12 - DEC 09:36:57

    Storage of information on dates in a string column is a very bad idea; She asked simply invalid data and errors, and it is ineffective.  Use a DATE for date information column.

  • Why Adobe can't get out the desktop versions of their software on the iPad Pro? [was: failed to get the 'real' work]

    Help! I have a session of really expensive iPad 128 GB Pro in front of me, but you guys have not released a full version of your Creative Suite like Photoshop and Illustrator applications. So, I can't do anything more drawing freehand with a pencil of Apple, surf the web, write emails, play games, etc.

    Your companion apps are great and all. But I want to do my work ON the iPad. I don't want to have to deal with the concern to understand what can be done on the iPad, and what I can do this only on Mac because I deal with the companion applications.

    You are geniuses. So are the guys at Apple. You both have had a long-standing relationship since the time that I first played with Photoshop in black and white on my Fat Mac (512 k). Why Adobe (and other software publishers, for that matter) cannot release their software on the iPad Pro versions of office?

    I know, I know. Experts say: ' just go buy a darn Mac already! But, look. That's life. People want to use the computing device they want to use. I mean, it's not as if Apple did not promote the iPad Pro as a desktop machine class. And, it's not like Adobe and Apple released were not closely related to decacdes...

    If you build it, they will come. Apple built the iPad Pro. People came and bought. A lot of them, actually. And, if you search the internet for it, you'll find a slew of messages and articles where people are clamboring for serious on the iPad Pro tools so that the promise of Apple class office can be achieved.

    Now, it's your turn, Adobe. Lead the charge! You have the resources. Build it now for we, the faithful, we move.

    p.s. Thanks for making of amazing tools that have helped feed me and put a roof over my head for decades, now. A lot of love.

    p.p.s. thank you for leting leads me.

    Hello

    Short story. An 'iPad Pro"have not enough power to run Adobe software as similar to the desktop computer.

    That said, some "desktop computer" not all have the ability to run software from Adobes 100% of their potential.

    You must "wind" in the Apple forums.

    Stone

  • After an update over the past year, get the real Message of MS relative to "ogaexec.exe" and the related "appcompat.txt". I have validated my system through Ms. Suggestions?

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Validation status: genuine
    Validation code: 0
    Code of Validation caching: n/a
    Windows product key: *-* - T6DFB - Y934T-YD4YT
    The Windows Product Key hash: 3g4CZGFEDgbKmn/oB4pa2FZsssU =
    Windows product ID: 55274-OEM-2211906-00102
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 5.1.2600.2.00010100.3.0.pro
    ID: {E88CA653-0DD5-4F7A-8795-B3DDA7B6C478} (3)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: Registered, 1.9.42.0
    Signed by: Microsoft
    Product name: n/a
    Architecture: n/a
    Build lab: N/A
    TTS error: n/a
    Validation Diagnostic: 025D1FF3-230-1
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a
    Version: n/a

    Windows XP Notifications data-->
    Cached result: 0
    File: Yes
    Version: 1.9.40.0
    WgaTray.exe signed by: Microsoft
    WgaLogon.dll signed by: Microsoft

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: 2.0.48.0
    OGAExec.exe signed by: Microsoft
    OGAAddin.dll signed by: Microsoft

    OGA data-->
    Office status: 100 authentic
    Microsoft Office Professional Edition 2003-100 authentic
    OGA Version: Registered, 2.0.48.0
    Signed by: Microsoft
    Office Diagnostics: 025D1FF3-230-1

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program may Explorer\IEXPLORE.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->
    [File mismatch: C:\WINDOWS\system32\oembios.bin[Hr = 0x800b0003]
    [File mismatch: C:\WINDOWS\system32\oembios.dat[Hr = 0x800b0003]
    [File mismatch: C:\WINDOWS\system32\oembios.sig[Hr = 0x800b0003]

    Other data-->
    Office details: {E88CA653-0DD5-4F7A-8795-B3DDA7B6C478}1.9.0027.05.1.2600.2.00010100.3.0.prox 32*-*-*-*-YD4YT55274-OEM-2211906-001022S-1-5-21-4273305073-249100995-1601543261Dell Computer CorporationLatitude D800 Dell Computer CorporationA1020040708000000.000000 + 000Dell system, Dell, Dell, Dell system computer128F3707018400E204090409Time(GMT-05:00) Standard is02Dell Computer CorporationDell LATITUDE D800100100Microsoft Office Professional Edition 2003 11 729FBC7AF9FBDF3 qY2Bhd9N7prBD9UeOL666ia0T3Q = 70145-761-3636523-57292 1

    License data-->
    N/A

    Windows Activation Technologies-->
    N/A

    --> HWID data
    N/A

    Activation 1.0 data OEM-->
    BIOS string matches: Yes
    Marker of the BIOS string: 18FBD:Dell Inc. | 18FBD:Microsoft Corporation
    Marker of OEMBIOS string. DAT: Dell, Dell Computer, Dell, Dell system system system

    Activation 2.0 data OEM-->
    N/A

    Downloaqd and install Dell Latitude D800 System BIOS update Version A13.  After restarting your computer Dell, visit the Genuine Microsoft software and click on Validate Windows, and then click Validate Office, then restart the computer.

    Carey Frisch

  • Windows is genuine, but a little bad thing that happened and now he asks to be enabled, but usually, I just get the real mistake, no. now.

    I have windows vista family premium on my laptop, I was upgrading Internet Explorer and somehow windows 7 or 8 has made an iether facility forced with the browser or not in Explorer, I totally does not want to buy the upgrade and he chose not, as I have no money to pay for it and now my vista must everywhere be reactivated and used. This feels like marketingespecially if the response is going to be vista is no longer supported now what?

    I have windows vista family premium on my laptop, I was upgrading Internet Explorer and in some way, windows 7 or 8 is a forced installation

    Impossible, upgrading your web browser might never upgrade your operating system.

    iether with the browser or the browser instead I totally did not want to buy the upgrade and it has not chosen, as I have no money to pay for it and now my vista everywhere needs to be reactivated and used. This feels like marketingespecially if the response is going to be vista is no longer supported now what?

    Reinstall Windows Vista by using the following instructions:

    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/repair-man-removed-windows-vista-and-installed/f4ec610a-856b-47a6-9ac2-7d5f07763eb0?msgId=343a6389-3a13-46d1-93fa-342f6a9b8ae1

    Revive by telephone using the following instructions:

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • It is illegal for me to have the cracked version when I get the real one for free?

    Hi, I am a student in Australia NSW which I get for free Adobe CC but my internet is too slow to download, I found a version of cracking on a disc so I installed it and my question is is it illegal for me to have this or is it OK because I can get it for free anyway

    Hello

    Please see Legal information | Adobe

    In addition, this link might help: licenses and terms of use | Adobe

    Kind regards

    Sheena

Maybe you are looking for

  • 9.3.2 on iPad Pro can not update

    to message cannot update 9.3.2 like you are no longer connected to the Internet. (But I am) any suggestions? On ipad pro

  • How to access Google search on the mobile page tools?

    I use Firefox 23 for Android, and when I'm on the pages of Google search there is no search tool, so I'm not able to refine the search, or the location, time or adjust the results. How can I get this functionality without using the option "Ask Site D

  • Tecra A2 - BSOD when going on the WLan

    Hello I just bought a new Satellite, but am trying to get my old Tecra on wireless. I used to be able to do, but since the reformatting of the hard drive from the recovery discs (success) I couldn't get wireless. I have a N Note: router. When I switc

  • A satellite - DVD source suddenly disappeared

    My DVD is not recognized by the pilots, once again, since 23/03/09 - source missing. IV ' e had vista Home premium. When I click on the icon of the DVD player I get a message: "the drive specified could not be found. "Check the settings-> actions-> S

  • graphic intensity scale

    Hello.. I have a table 2D numerical values... they are of magnitude of some complex numbers in the following order (3.25085E + 7, 2.87497E + 7... so on). How can I make the scale on the graph of the intensity automatically in this range. ??? Thank yo