[CS3] How to get whether a UID is a spread, page, page item?

Hello!
I have an UID.
How can I get whether behind the UID is a spread or a page or a page item?
Alois Blaimer

You can't.
If you have a database for that UID though, you can use database->GetClass(myUID) ...
Rather than dispatching on the class ID, you better identify your required interfaces on the boss. Instantiate them (again using db+id) and if those do not exist navigate around in IHierarchy or give up gracefully. Note there are some more boss classes and stranger arrangements than you initially know - master spreads, groups, standoff, inline items, multicolumn text and so forth.
Dirk

Similar Messages

  • How to get the Equipements number and desciption for the contract item ?

    Hi Gurus,
            How to get the Equipements number and desciption for the contract item items? It would gr8 helpful to me...
    VBAP,,EQUI,,,,,,?
    Thanks
    Krisna

    Check with below tables :
    EQUI    Equipment master data
    EQKT   Equipment short text
    EQUZ   Equipment time segment
    Thanks
    Seshu

  • [CS3] How to get the parent spread of a page?

    Hallo!
    I have the page UID.
    How to get the spread of this page?
    Thanks,
    Alois Blaimer

    You'll also need an IDataBase*, from any object in the same document.
    Then you can follow IID_IHIERARCHY one up to the kSpreadLayerBoss, two up to the kSpreadBoss or just refer to the hierarchy root.
    Dirk

  • Indesign CS3: How to get the number of the current layer?

    Hallo!
    How to get the number of the current layer in a page?
    Thanks,
    Alois Blaimer

    InterfacePtr<ILayerList> layerList(documentUIDRef, UseDefaultIID());          <br /><br />int32 layerCount = layerList->GetCount();<br /><br />To findout layer name use<br /><br />IDocumentLayer* documentLayer = layerList->QueryLayer(layerIndex);<br />                         <br />PMString layer=documentLayer->GetName();

  • [CS3] How to get the path of a graphics item?

    Hallo!
    I want the path, e.g. "C:\test.jpg" of a graphics item on a page.
    How to get it?
    Thanks,
    Alois Blaimer

    You probably have a kSplineItemBoss.
    Follow IID_IHIERARCHY to its nested kImageItemBoss child.
    Follow IID_IDATALINKREFERENCE to the kDataLinkBoss.
    See the SDK docs for interfaces on that boss.
    Dirk

  • [JS][CS3]how to get refrence for source file

    Hi All
    I am new and learning javascript Gradually Could any one help on this as i do have a code for load style but don't know how to get refrence for "source file" and "targetDoc"
    targetDoc.importStyles(charImport, sourceFile, clashPolicy);
    targetDoc.importStyles(paraImport, sourceFile, clashPolicy);
    Can any one figure it out
    Many Thanks

    I'm not sure what you are trying to achieve, could you please elaborate?
    Do you want to load all the styles from one document into all 100 documents, or do you want all the styles from the 100 documents into 1 document or what is the goal?
    The following will let you choose a folder of files, open each of the files in it and import the styles from source document. It is not a complete script, make sure to test and modify before running on anything else than test files :-)
    var MyFolderWithFiles = Folder.selectDialog ("Choose a folder");
    var sourceFile = File.openDialog("Choose the styles source");
    var myFiles = MyFolderWithFiles.getFiles("*.indd");
    for(i = 0; i < myFiles.length; i++) {
        theFile = myFiles[i];
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
        var targetDoc = app.open(theFile, true);
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        targetDoc.importStyles(ImportFormat.CHARACTER_STYLES_FORMAT, sourceFile, GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE);
        targetDoc.importStyles(ImportFormat.PARAGRAPH_STYLES_FORMAT, sourceFile, GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE);
        targetDoc.close(SaveOptions.YES);
    Thomas B. Nielsen
    http://www.lund-co.dk

  • HOw to get rid of the borderline in the  render list item of the news brows

    HI,
    HOw to get rid of the renderlist
    border line,
    Give Feedback  link   
    Send To  link in the news browser.
    After removing thiese things, it should look like a normal html page .
    how to  achive this ,
    if coding required then which is the par file I need to modify
    thanks
    pkiran

    Hi PKG,
    the "GiveFeedback" and "SendTo" links are called "FlexUI" commands. Most of that stuff is highly configurable and naturally you can remove them in the KM Configuration at
    SystemAdmin->SystemConfig->KM->CM->UserInterface
    -> ... -> ResourceRnderer
    Your ResourceRenderer uses a CommandGroup. In this CommandGroup you can add/remove commands.
    For example un your case its the CommandGroup "NewsDisplayGroup"
    Kind Regards
    --Matthias

  • How to get the function name/ID  of the current page

    HI,
    I searched the forum and google, but it is not clear on how to get the function name of the current page.
    I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
    so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
    I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    Or is there a better way of know where user is coming from ? like geturl....
    Please help, I need this ASAP.
    Thank you.

    Use below to find out how the user came into the page
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
    boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
    boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
    boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
    So one of them will be true based on the function the user came in.
    Write your logic based on these flags.
    Regards,
    Peddi.

  • How to get Vendor External ID from from  Master aggrement page

    I am now struggling to get the value of a referenced object from master aggrement Page.
    I want to get the Vendor External_ID from vendor name which is getting displayed in Supplier tab of Master aggrement page.
    doc.getVendorRef()
    doc.createApplicationException(null,""+doc.getVendorRef());
    with the above code I am getting the vendor name but we want to get the Vendor External Id. Any suggestions on how to retrieve this value?
    Thanks in Advance.
    Regards
    Su

    The following code will populates Vendor External Id field on the Vendor Info tab of the Master Agreement document.
    Please make sure to create an extension (referred in below code: "VEND_EXT_ID") on the Master Agreement Extensions, and display it below the Vendor Details. Also make sure you make the extension field as READ ONLY.
    //create Vendor home
    VendorIBeanHomeIfc vendorHome = (VendorIBeanHomeIfc) IBeanHomeLocator
    .lookup(session, VendorIBeanHomeIfc.sHOME_NAME);
    // get Vendor External Id
    vendorExternalId = vendorHome.find(doc.getVendorRef()).getExternalId();
    //populate in vendor external id field on vinfo tab
    if(hasValue(vendorExternalId)) { doc.getExtensionField("VEND_EXT_ID").set(vendorExternalId);}
    I hope this helps. Let me know, if you need additional details.
    Regards,
    Parankush

  • How to get the Dynamic UI component value from JSFF page to any managedbean

    HI ,
    We have list of bean objects in jSF page we are iterating the list of bean using the forEach loop and displaying the value into Input type text (UI component) value filed .
    If we try to get the UI component value in Managed bean we are not getting the dynamic values .
    The below piece of code used to retrieve the dynamic values from the JSF page doesn't have any form :
    UIComponent component = null;
    FacesContext facesContext = FacesContext.getCurrentInstance();
    if (facesContext != null) {
    UIComponent root = facesContext.getViewRoot();
    component = findComponent(root, componentId);
    then component type casting to the based on UI component which we trying to access and getting the value as " NULL " ..Please let me know how to get the dynamic values form the JSF ?
    Please let me know if any other approach or any changes required on above ?
    Thanks

    Hi,
    the root problem is this
    <h:inputText id="it3" value="#{familyList.ctn}" />
    <tr:commandButton text="Save" id="cb3"Note how each row writes to the same managed bean property, thus showing the same data. Instead your managed bean should expose a HashMap property that you then apply values to using a key/value pair. The key could be the ID of the field, which then you also should dynamically define e.g. cb<rowIndx>. The command button could then have a f:attribute assigned that has the row HahMap key as a value. This way you truly create value instances for the object
    Frank

  • How to get an empty form when we run the page?

    Hi all!
    Hope you are well
    My question is, how to get an empty form at run time? means when we run the page, text fields are filled with blank....Could anyone please help me with this..
    Thanks in advance,
    nanda.

    Hi Nanda,
    Just follow these steps:
    1) Create a bounded taskflow (uncheck the create with fragments checkbox)
    2) Drag the CreateInsert operation on your bounded taskflow and mark it as the default activity
    3) Drag a view and link the CreateInsert to the view component using a control flow case
    4) Double click on the view to create the page
    5) Drag the view object on the page as an ADF form
    6) Go back to your bounded taskflow and from the General tab make sure under visibitliy you select "url-invoke-allowed"
    Run you tasfklow and your form will be rendered in insert mode.
    Regards
    Antonis

  • How to get rid of blank space showing above my pages

    Hi:
    I built my site dyingforthetruth.com using Muse (thanks, it's pretty nifty!), following a video tutorial you provided.
    I've ended up with a blank space showing above all pages, and much trying with the blue lines and rebuilding my header strip has NOT succeeded in fixing it.
    Here's a snapshot of the top left part of the "main" master, showing the blue lines and the space at the top.
    You can see what it looks like on the web by going to the site URL (dyingforthetruth.com).
    Can you please tell me how to fix this. I find it a bit strange to see all my pages for this site coming up in all 5 browsers I've tried (IE, Chrome, Firefox, Opera, Safari) with a pronounced gap at the top of them all.
    Thanks!

    Go to Page> Page Properties and on the "Padding" section set "Top" to 0. That should do it.
    If you are on a master page make sure that the top blue arrow is at 0. That arrow controls the top of page, and you need to have a padding of 0 for what you want.

  • Indesign CS3: How to get the UID of the selected object?

    Hello,
    How can I get the UID of the selected object in an document?
    Thanks,
    Alois Blaimer

    Hello!
    I do not get it. Please give me some more hints.
    I only want to know if the selected object is a square and then the UID of the selected square.
    Thanks,
    Alois Blaimer

  • Indesign CS3: How to get the current document name?

    Hallo!
    How do I get the name of the current document loaded in Indesign?
    Thanks,
    Alois Blaimer

    ...Plese Ignore the last post...<br /><br />docRef is the UIDRef of the document. Plese consider the following code<br /><br />IDocument *docFrom = Utils<ILayoutUIUtils>()->GetFrontDocument(); <br />if (docFrom == NULL ) <br />    break; <br />UIDRef  docRef = GetUIDRef(docFrom )); <br /><br />InterfacePtr<IDocument> iDocument (docRef, IID_IDOCUMENT); <br />if(iDocument == nil) <br />   break; <br /><br />PMString docName; <br />iDocument->GetName(docName);

  • [CS3] How to get the geometry data relative to the page?

    Hello!
    I have the inner geometry data (IGeometry) of a page item.
    There is a routine ::TransformInnerPointToPasteboard() which calculates the points relative to the origin of the pasteboard.
    But I want the geometry data relative to the page's origin, which is to top-left of the page
    Can anybody help me?
    Thanks,
    Alois Blaimer

    Hi Alois,<br /><br />I would make it like that..<br /><br />//just get page from an item (Splineitem, IGraphicframe...)<br />InterfacePtr<IGeometry> itemGeo ( mItemRef, UseDefaultIID() );<br />InterfacePtr<IHierarchy> itemHier ( mItemRef, UseDefaultIID() );<br />mPageRef = UIDRef( mDB, ::GetOwnerPageUID(itemHier) );<br /><br />//get position of item and page in pasteboard coordinates..     <br />PMRect fItemRect = inGetStrokeBounds ( mItemRef  );<br />PMRect fPageRect = inGetStrokeBounds ( mPageRef  );<br />          <br />//just calculate what you want<br />PMRect fRelItemRect;<br />fRelItemRect.Top()   = fItemRect.Top()  - fPageRect.Top();<br />fRelItemRect.Left()  = fItemRect.Left() - fPageRect.Left();<br /><br />PMRect inGetStrokeBound ( UIDRef& ref ) {<br />PMRect itemRect = Utils<Facade::IGeometryFacade>()->GetItemBounds( ref,Transform::PasteboardCoordinates(), Geometry::PathBounds());<br />return itemRect;<br />}<br /><br />Greetings<br /><br />Michael Bauder

Maybe you are looking for

  • My 2010 Macbook Pro won't turn on...

    I left my Macbook Pro alone for a moment and when I had returned it had shut down on it's own and wouldn't turn back on. (MagSafe unattached) 1. It will not turn on.  2. Battery Indicator - When pressed displays nothing.  Computer is super, super dea

  • Non-Global Zones - how can I tell what the Global Zone is

    Hi, I have a host that I know is a non-global zone (ngz). I can ssh to the ngz as root or a non-privileged user. But once there how do I know what the host name for the global zone is? I could probably run a script from all global zones to report all

  • Get data every 2 columns at a time in excel

    i would like to read the following excel file and plot every 2 columns at one time given an interval. for example at 7 am i ll plot corresponding I and V and at 8 am so on.. but even though i programmed my VI to read by increasing index 0,2,4 so on i

  • Step by Step : How to Create an SSL Server Certificate (Part 3)

    How to Create an SSL Server Certificate (Part 3) In the previous part you have completed step 10, now you are almost there. Step 11: This is another very important step. Leave the settings as is or tick more options if you know what you do. Step 12:

  • Lightroom 3.5 Import Errors using Synology NAS on Macbook

    Hi all, I've been trying out Lighroom 3.5 and I love it, with one exception.... When importing my archive (which is stored on a Synology Diskstation DS211j, accessed via an Airport Extreme), I get multiple import errors (around 5% of the total files)