Get the type of a Page Item

Hey guys,
i am working on an inDesign extension. i have a requirement to go through the document elements. i was able to get all pageItem objects on a doc page.
i am now trying to figure out what is the type of each pageItem so i am using the following code that i found in here:
http://cssdk.host.adobe.com/sdk/2.1/docs/WebHelp/app_notes/indesign_pa ge_items.htm
//Given a page item "myPageItem" of unknown type:
var myPageItemType:String = flash.utils.getQualifiedClassName(myPageItem);
this is supposed to give me for example: com.adobe.indesign::Rectangle
instead all items are returning: com.adobe.indesign::PageItem
any idea what i am doing wrong here?
Thank for the your help.

Responded on the EB forum...

Similar Messages

  • [CS3] Stroke Type of an page item?

    Hello!
    Does anybody know how to get the stroke type of an page item?
    There are so many possibilities.
    Thanks,
    Alois Blaimer

    Hello!<br /><br />I have found somenthing:<br /><br />          // Inspect dash.<br />          InterfacePtr<IDashedAttributeValues> dashedAttributeValues(static_cast<IDashedAttributeValues*>(descriptor->QueryAttribute(kDa shedAttributeValuesBoss, IDashedAttributeValues::kDefaultIID)));<br />          if (dashedAttributeValues != nil) {<br />               SNIPLOG(" dashedAttributeValues");<br />               for (int32 i = 0; i < dashedAttributeValues->NumValues(); i++) {<br />                    SNIPLOG("  [%d] %f", i, ::ToDouble(dashedAttributeValues->GetValue(i)));<br />               }<br />          }<br /><br />But the problem is, it always returns "12". I change the stroke style and it always returns "12".<br /><br />What's wrong with the code?<br /><br />Thanks,<br />Alois Blaimer

  • How do i get current active or selected page item's  reference

    Hi all,
    How do i get current active or selected page item's  reference .
    Please help me

    You can implement a selection suite for your need, this selection suite will be placed into the kLayoutSuiteBoss.
    In this selection suite place a method to give you the UIDRef of the selected pageitem, which you can get by using the method "GetUIDList" of the "ILayoutTarget" interface.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • What is the evaluation order of Page Items

    I just wonder what the execution order of page item assignments are in the page rendering process.
    Sequence (+ Region), Type of items, more clever by checking dependencies ??
    I couldn't find anything here, or looked with the wrong keywords.
    I just need to know, what reliable assumption to make about dependencies amongst page items?
    Is that visible in the APEX code? A pointer to that would be OK.
    Many thanks
    Thomas

    fac586 wrote:
    What do you mean by "assignments"?The "Source" ("Source value or expression" in combination with the "Source Type") on the Page Item [Application Express 4.1.0.00.32]
    fac586 wrote:
    Items are rendered in order of region position/region sequence/item sequence. Item values will be evaluated in this order, but may also be set by computations or processes which run in order of processing point/computation sequence/process sequence.
    You can view page components in event order in the App Builder by selecting the Utilities > Page Events view in the page definition, and the actual sequence of runtime events in the debug trace.That was exactly what I was thinking, but that is not the case as far as I can tell. The order which is shown "*Utilities > Page Events*" seems to be the display order, but not necessarily the evaluation order in order to obtain the values.
    I have a database field that is shown much further down in this sequence, but I have a dependent field that is calculated based on this value and is shown before in that sequence.
    So I was wondering whether there is an implied order - possibly based on the Source Type of the page item.
    And to answer the question. There are no other computations or processes ... other than the associated "Automated Row Fetch" related to the database column used in the page items on the page.

  • Getting the index of an unbounded item

    Hi there,
    How can i get the index of an unbounded item in an incoming record set message?
    For example, suppose my message looks like this:
    <Root>
    <Record>item_1</Record>
    <Record>item_2</Record>
    <Record>Item_X</Record>
    </Root>
    And i want to know the index of "Item_X" while mapping
    Thanks,
    Yigal.

    Just create a UDF of type queue. The input of UDF is the node you want to access (in your example, Record).
    In the code, use somehing like:
    for (int i=0; i< a.length; i++) {
      <insert logic here>
    And inside the for loop, you can implement the desired logic, and the variable i will have the index of your node (actually it will have index - 1, since its from 0 until a.length-1 ).
    Regards,
    Henrique.

  • Get the Type of a generic field at runtime, How to?

    Hello,
    As the topic already says, i need to get the Type of a particular field of a class. This field is declared private and generic. In C# there is a method
    Type Object.getTypeIs there any specific way to do this in Java 1.5?
    Please excuse my poor english.
    Thanks in advance.
    Markus

    McNepp wrote:
    endasil wrote:
    McNepp wrote:
    If you want to know the parametrized type (String in the example), I think there is no way of knowing this in Java 1.5 or Java 1.6, since the parametrized type is erased and not available at run time.The type of a parameterized field is not erased.For most intents and purposes, it is. Type erasure refers to the fact that at runtime, there are not actually multiple class binaries depending on the generic arguments to a class. Therefore, an ArrayList<T> is actually just an ArrayList with no generics.
    Frankly, I don't understand why you insist that the information on generic fields that the OP was asking about is lost at runtime.I wasn't trying to insist that. At the time, I was replying more to Saish and trying to reaffirm that most information about generics is lost at run-time. I mistakenly ignored how you qualified it with "field."
    What you write about instances of generic classes losing their type information is of course correct, albeit not to the point of the original question.Nope, you're right. I was just trying to reconcile the fact that many people get confused that there's any information available at run-time, and so start down the path of thinking that type erasure doesn't exist. But it very much does.
    The original question was about how to obtain the type of a generic field.And I did show in my example that even that is fairly limited, given that if the type is provided by the parameter of the class, it doesn't give you anything useful (I'm not trying to say you said it would!).
    The compiler preservers this information in the class file, so it can be obtained at runtime. Frameworks like JPA put this to use extensively, proving that it is of real value.Definitely. However I don't see this having as much to do with generics as basic reflection functionality. If you can get the type of a field at run-time, you should be able to get the parameters as well! That should in no way belittle its value, though. But I would have guessed (knowing little about) that JPA wouldn't put that to use so much as the type parameters of an accessor return type or mutator argument type. Especially since I thought we'd shown that you would need your fields to be non-private for JPA to be able to gain information about their type.
    Edit: getDeclaredField works fine with private members, and returns the expected "java.lang.String" from jschell's example above
    Edited by: endasil on 28-Apr-2009 10:39 AM

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • How to get the total number of pages printed in a report?

    Hi All,
    I have a requirement where I need to print a frame of fields only in the last page. Unfortunately I cannot use the 'Print Object On' property as it doesnt work in my case. So, I am planning to write a format trigger on the frame to return TRUE if the page is the last physical page. Now, I need to know how to get the total number of physical pages that will get printed in the report so that I can use this to manipulate the frame. I was planning to use the 'Total Physical Pages' built-in, but it seems like I can just use it to print in a field and I can't use this field's value anywhere in the plsql code (formula column function/format trigger) in the report. Is there anyway to get the total number of pages printed in the report which can be used in the report plsql code?
    Thanks,
    Srini.

    i found the solution, thanks

  • How to get the type of answer in a workitem?

    Hi Experts,
    I am building a report to get the users responsible for the approval of SCs and POs, in this report I need to get the type of answer given by the approver, if they have rejected, approved or partial rejected / approved the object.
    When I look at the container of the workitem I can get the agent responsible for the action and the dates, but I need your help to determine the type of answer. I believe I can get this information from the approval state, no? But I am getting a lot of different approval states: 0, 1, 3, 4, 10, 11 and 15. Can you provide me some guidance? I am new to workflows and I am stuck in this point.
    I am using SRM 5.0 and n-step approval workflow.
    Thanks in advance,
    Francisco

    I'm not an SRM expert, but from a pure workflow point you can read the output of a workitem. So, check how your workflow is built and then see what values are returned in the corresponding return fields. Explore the workitem structure in the log.

  • How can I get the styleID of a page

    Hi all,
    my problem is to get the style_id of a page with java methods.
    Everythig else I can get, but not the style_id!!!
    I need it for using the same style in a popup window.
    Best regards, Michael

    I don't think you can get the style_id using the current implemenation. I'm assuming you're using web providers written in Java. A convoluted way would be to use a JDBC call back to the portal.

  • How to get the type of numeric

    Hi,
    I would like to know how getting the type of a numeric data programmatically. (DBL, SDL, I16, I32,etc.)
    This property is defined by selecting "Type of data" in the property's window of a numeric data; then by clicking on "representing".
    I tried to find the solution by using a property node then accessing to the property called 'representing".
    Without success, it seems this function is not available.
    Is anyone would know the solution.
    Thanks by advance,
    pr93

    There are several solutions.
    The 7.x version of the Flatten To String function had an additional output called "type string" which was actually an array of numbers. This array would tell you that information. OpenG has a VI that will tell you the datatype from this array. It's called "Get TDEnum From TD" and is in the LabVIEW Data Tools library. You can use VI Package Manager to easily install OpenG libraries.
    If you have a control you could use a reference and then use the "Get Type of Control" VI from the <vi.lib>\Utility\GetType.llb library.
    You could convert th"e numeric value to a variant and then use the "Get Type of Variant" VI from the <vi.lib>\Utility\GetType.llb library.

  • When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    Question
    When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    julianscars wrote:
    I don't get a page, all I get is the player popping
    Click the green jelly button at the top left of the player.

  • How Can i get the URL of a page

    How Can i get the URL of a page . like in ASP the
    Request.QueryString() ...
    Thanks

    Are you wanting actual URL or just the url (query string
    variables)?
    For url variables you would reference the structure.variable
    name like so:
    #url.variablename#
    So if you had a url like this:
    http://www.somedomain.com?page=home&action=view
    You could access the variables like so:
    #url.page#
    #url.action#
    If you are wanting to actual page you could use:
    #cgi.script_name#
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    =============================
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Yasmin_lady" <[email protected]> wrote in
    message
    news:e4fhjv$fpl$[email protected]..
    > How Can i get the URL of a page . like in ASP the
    Request.QueryString()
    > ...
    > Thanks

  • Getting the HTML of a page.

    I wish I could retrieve as a string the HTML content of a page displayed by a webEngine.
    I know this code works:
    webEngine.getPage().getHtml(webEngine.getMainFrame());
    But getPage() and getMainFrame() are not public.
    What is the "official" way to get the HTML content of a page as a string?

    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.layout.VBox;
    import javafx.scene.web.WebView;
    import javafx.stage.Stage;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.ls.DOMImplementationLS;
    import org.w3c.dom.ls.LSSerializer;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    // Getting the HTML of a page. "Getting the HTML of a page"
    public class DocumentPrinter extends Application {
      public static final String CONTENT =
          "<dl>\n" +
          "<dt>Coffee</dt>\n" +
          "<dd>- black hot drink</dd>\n" +
          "<dt>Milk</dt>\n" +
          "<dd>- white cold drink</dd>\n" +
          "</dl>";
      public static void main(String[] args) { launch(args); }
      @Override public void start(Stage primaryStage) {
        // create view with some content in it.
        final WebView view = new WebView();
        view.getEngine().loadContent(CONTENT);
        view.setPrefSize(200, 100);
        // hold a log the view's document.
        final Label documentLabel = new Label();
        // write the document to the document label
        view.getEngine().documentProperty().addListener(new ChangeListener<Document>() {
          @Override public void changed(ObservableValue<? extends Document> observableValue, Document oldValue, Document webViewDocument) {
            try {
              Node originalRoot = webViewDocument.getDocumentElement();
              // copying the document is necessary in this case because the serializer
              // we are using is not realized by the webview document implementation.
              // if you used a different serialization library, perhaps the copy step would not be required.
              // http://stackoverflow.com/questions/5226852/cloning-dom-document-object
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              DocumentBuilder db = dbf.newDocumentBuilder();
              Document copiedDocument = db.newDocument();
              Node copiedRoot = copiedDocument.importNode(originalRoot, true);
              copiedDocument.appendChild(copiedRoot);
              // weird dom api for serialization.
              // http://stackoverflow.com/questions/1219596/how-to-i-output-org-w3c-dom-element-to-string-format-in-java
              DOMImplementationLS domImplLS = (DOMImplementationLS) copiedDocument.getImplementation();
              LSSerializer serializer = domImplLS.createLSSerializer();
              // update the document label with serialized document.
              documentLabel.setText(serializer.writeToString(copiedRoot));
            } catch (ParserConfigurationException e) {
              e.printStackTrace();
        // layout the scene.
        final VBox layout = new VBox(10);
        layout.setStyle("-fx-padding: 10; -fx-background-color: cornsilk");
        layout.getChildren().addAll(
          new Title("Web View"),          view,
          new Title("Original Content"),  new Label(CONTENT),
          new Title("Rendered Document"), documentLabel
        primaryStage.setScene(new Scene(layout, 450, 450));
        primaryStage.show();
      class Title extends Label {
        Title(String titleString) { super(titleString); setStyle("-fx-font-weight: bold;"); }
    }

  • Getting the total number of pages inside a report

    Post Author: jportelas
    CA Forum: .NET
    Good afternoon:
    How can I get the total number of pages inside a reportdocument object???
    I'm currently using VS.NET 2005.
    Thanks for the help.

    There's no public API to get this info directly from RAS.
    Option is to either walk through pages in the CrystalReportViewer till you get to the end, or use the non-public not-for-public use API:
    int lastPageNumber = ((com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource) reportClientDocument.getReportSource()).getLastPageNumber(new com.crystaldecisions.sdk.occa.report.reportsource.RequestContext());
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Modify Attributes for User Configuration Dumps Error

    Anyone have any ideas how to go about troubleshooting the following: When we Go to Identity System Console...User Manager Configuration...Tabs...Users and then click the "Modify Attributes" button we get the following error page: Bug Report Form An e

  • Can't get letter "s" into higher case using shift key!

    When I press the shift key and the letter "s" at the same time, the computer does nothing and then a few seconds later makes that noise as if you are typing, when not selected in any program. Should I re-install Leopard or take back to the store, orr

  • HT4623 I downloaded update with itunes and now all I see is itunes logo and arrow to a plug

    I downloaded an update with itunes and now myiphone is black and only shows itunes logo with an arrow and plug.  no phone tried holding down on off still black  please help I need this phone

  • How can I find a text box with a specific word in it ?

    Hi, I have hundreds of settlement names on a map created with the text tool. How can I search on the name of one of them and find it on my map ? I am with FH9 but the method would no doubt be backwards compatible from MX. If it isnt I would launch MX

  • E66 questions-help me please

    so, i have two questions-first, is there anyway to turn off the music that is played when turning the phone on or off, and secondly, is there a way that recieved files from a bluetooth transfer are placed else where besides the inbox? for example, on