How to get UIDRef of placed image item.

Hi All,
I am making a plugin for InDesign CS3 and CS4. And I have a issue how to het UIDRef of  pageitem. Senerio is as follows,
1. Place a image in non selected frame on Document.
2. Place a image from drag and drop in InDesign Document.
After placing the image on document, I need the UIDRef of this page item.
I do the following for achieving it.
1. Mae the DocObserver.
2. When a page item is created, I get a call in DocObserver::Update() function for kNewPageItemCmdBoss and kAddToHierarchyCmdBoss.
3. But I am not able to get UIDRef of PageItem by  this.
If any one have any idea of it, then please let me know.
Regards,
Jitendra Kumar

Jitendra:
   While not specifically addressing this problem, I have obtained the UID (and then derived the UIDRef) of an image by getting the hierarchy interface of the container and then getting the child.  This is a snippet of the code:
    UIDRef ItemRef = UIDRef(db, ItemUID);  //  ItemUID & db (IDataBase *) passed into function; db
    InterfacePtr<IHierarchy> iHierarchy(ItemRef, UseDefaultIID());
       if (iHierarchy != nil)
          if(iHierarchy -> GetChildCount() > 0)
             UID imageuid = iHierarchy -> GetChildUID(0);
HTH.
R,
John

Similar Messages

  • The user acct my apple was connected to no longer works (corrupt).  My Apple TV is still synced to that account and all of my recent purchases are going to that username.  Does anyone know how to get all of the purchased items back and to the new user?

    The user profile my appleTV was synced on my computer to no longer works (corrupt).  My Apple TV is still synced to that profile and all of my recent purchases are going to that username.  Does anyone know how to get all of the purchased items back and to the new user (same computer)?  I created a new user on my computer and moved the itunes folder to the desktop but never changed the path to which the apple synced to.  Now I can only see old items I purchased before the user profile went bad.  PLease help!

    Welcome to the Apple Community.
    Changing the library the Apple TV is synced with will delete all synced content from the Apple TV, but it won't delete purchased content.
    You should be able to change the library, resync any content you want and transfer your purchases back to the new library.

  • How do I align a placed image in a frame using JS?

    I am new both to javascript and to scripting for InDesign, so please bear with me on this question.
    I am trying to align an image in a graphic frame so it aligns to the top right corner of the frame.
    I can do this using the InDesign interface by following these steps:
    1. Create a rectangular frame.
    2. Right-clicking the frame and selecting "Fitting > Frame Fitting Options."
    3. Selecting the top-right square in the "Alignment" area of the Frame Fitting Options dialogue.
    For me, this automatically aligns the image to the top right corner in the selected text frame, even if there is a placed item in the frame.
    I am trying to apply this to the actual image frame using the following code where "modelFrame" is the rectangle that is the parent of the placed image:
              modelFrame.frameFittingOptions.fittingAlignment.anchorPoint = AnchorPoint.TOP_RIGHT_ANCHOR;
    I am not getting an error, but I am also not getting the desired results (in fact, it doesn't change anythign at all). What am I doing wrong?

    Hi lanejd,
    I have got the same issue as you but had just found the solution. Please see below:
    modelFrame.frameFittingOptions.fittingAlignment.anchorPoint = AnchorPoint.TOP_RIGHT_ANCHOR;
    This will only set the properties for the Frame Fitting Options. You will need to call a method/function. Add the below line to your script and it will execute the Frame fitting Options.
    modelFrame.fit(FitOptions.applyFrameFittingOptions);
    Hope this help!

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • How to get the name of correlation item in OM through event processing scripts?

    I am trying to write a groovy script in OM event processing scripts, I want that script to read the event correlation and set custom attributes accordingly. I am unable to read the correlation item. Please guide me how to get it? What method should I use to get the correlation item? I am using OPR library.

    Hi there,
    the name property would be the correct attribute to get the subform name, just by looking at the code it doesn't seem like it's doing the right thing
    I am assuming that you send Main in the function countChk() which would look something like this
    countChk(Main);
    And you probably want to make sure you are entering the right subform so you need to keep that loop at the end of the function
    but if you want to get through all the checkboxes inside that subform you must do a loop through that node to find each checkbox
    I am assuming that the function would probably look something like this
    function countChk(vNode) {//Starts vNode with Main
         for (var i = 0; i < vNode.nodes.length; i++) {
              if (vNode.nodes.item(i).className === "field") {
                   if (vNode.ui.oneOfChild.className === "checkButton") {
                        if (vNode.items.nodes.length > 1) {
                             if (vNode.value.oneOfChild.value == 1) {
                                  nChk++ ;
              }else if (vNode.nodes.item(i).className === "subform"){
                   if (vNode.nodes.item(i).name === "Door_Subform"){
                        countChk(vNode.nodes.item(i));
         }//endloop
    Hope this help!

  • How to get name of selected image?

    Hello ,
    I want the name of selected image.I have PDEImage and PDEElement of selected image.
    How to get the name of selected image?is it possible to get name of image on document?
    please,help me.

    That information is not required to be stored in the PDF.  It present, it could be present in the XMP-based metadata of the image.
    Consult ISO 32000-1, ISO 16684-1 and the XMP specification for details.

  • 10133 ADF LOV: how to get rid of the blank item on top of the list

    Hi,
    I have a fixed list LOV. Because I do not want the user to pick a null value from the list, I picked "selection required" when I created the LOV. when the page has the LOV first loaded, the dropdownlist still has the blank item on the top. If I pick a value and execute, the page is reloaded. Now I access the LOV, it does not show the blank item anymore. How can I get rid of the blank item when the LOV is loaded the first time? Thanks.
    Regards,
    Annie

    I Annie, a workaround is to based your LOV values on a read-only VO or a POJO. Even if your intentions is to avoid to go all the way to the back end.
    Or you can add a "Select One" in the List so your users are aware they need to choose something.
    I tested your case in 10g and 11g and both present the same behavior. I'm opening a bug for 11g. the weird part is that in 10g if you select the include blank item option, actually it adds a double blank space on first load.
    I will update the forum when I get news about it.
    Juan C.
    Message was edited by:
    JCRuiz

  • How do I make a placed image the full width of the browser?

    Hi, I've tried adding the image as the browser fill only to have it shuffling all other placed objects out of wack.
    I've also tried having it as a placed object but, when I preview in browser I can't seem to be able to get it the full which of the screen.
    my website is 1000 px wide, the image I'm trying to place in it is 5147x2668

    Thanks for the response Vivek,
    Tried that but no joy, it seems I've tried everything I can think of. I tried setting the the image as a browser fill. Very confused. It actually seems to be something to do with the page width or something. Using your method I successfully got the menu bar and the 100% width placed image the same width (previously they were different width's), but my whole site, when previewed just isnt the width of the browser. I must say I'm lost, I've tried changing the site properties (page width, margins etc.) I'm new to Muse but have studied it quite thoroughly over the last 6 weeks. Now I'm ready to build my site I seem to have tripped at the first hurdle here's a screenshot of what I'm getting when veiwed in a browser, as you can see it's all a bit shrunk down:
    and what I'm seeing in Muse's design page:

  • How to get rid of Quicktime "image" on top right of converted file

    I just converted a WMV file to both MOV and MP4 formats.  There is a Quicktime graphic on the top right now that looks like a circular button with the play icon in it.  I have a fully licensed version of Quicktime Pro v.7.  How can I get rid of that image (which comes across kind of like a watermark)?

    If you're converting WMV, you're probably using Flip4Mac as part of the QuickTime conversion process. The graphic is likely a Flip4Mac watermark. See: https://discussions.apple.com/thread/6418932.

  • How to control the visibility of image items on a layer?

    I want to control the visibility of image items on the layer. Some items will be visible and others will be hidden on the same layer.
    Can anyone tell me how can I achieve this using SDK APIs.

    Hi,
    You can try following facade function. And set the Opacity value to 0 for hidden the images or set greater then 0 value for visiablity of image.
    IXPAttributeFacade::SetOpacity (const UIDList &itemList, PMReal opacity);
    I hope it will resolve your problem.
    Regards,
    Jitendra Kumar

  • How to get PO from sales order item in CRM

    Hi,
    I am building a BI extractor which needs PO for a given complaint. I am able to get the sales order/item for a complaint using crm_order_read FM. Is there anyway to get the PO based on this SO-item. Are their tables that link these two.
    Thanks!

    Table CRMD_ORDERADM_I -> Give Item GUID in filed GUID and get the document header guid in field HEADER. Then use function module CRM_ORDER_READ and table ET_SALES to get the Sales Data for the right item. The PO you are interested in can be any of the fields related to PO in this set. Usually it is PO_NUMBER_UC.
    Alternately, if you want to use only the table reads use this.
    1. Table CRMD_LINK --> get the record with GUID = Item GUID and OBJTYPE_SET = 11 (for Sales Set)
    2. Table CRMD_SALES --> get the record with GUID = CRMD_LINK-GUID_SET
    Get your PO information from this Sales set record for your item. But since, PO is usually associated with the header, you can do the same as above but with the GUID = Header GUID in the CRMD_LINK table.

  • How to get coordinates of FileSystemTree selected item ?

    Hi can some one clue me in how to get the coordinates of the
    selected itwn in a FileSystemsTree ?
    thx
    -g

    Hi Amy,
    I looked at the code, this is the width calculation.
    There are four (4) parts to each of the tree node display:
    1) the indent, from _listData.indent Only value id _data is
    not null
    2) the disclosureIcon.width
    3) icon.measuredWidth
    4) label measured or explicate width
    The positions are calculated by:
    1a) disclosureIcon.x = the indent
    1b) disclosureIcon.setActualSize = disclosureIcon.width,
    disclosureIcon.height
    2a) icon.x = the indent + disclosureIcon.width
    2b) icon.setActualSize = icon.width, icon.height
    3a) lable.x = the indent + disclosureIcon.width + icon.width
    3b) lable.setActualSize = lable.width, lable.height
    The label width:
    label.width: the size of the visible portion of the label in
    the parent. It may be clipped/truncated.
    label.textWidth: the total size of the text in the label
    Maybe I can get the code finished today.
    BTW, as I'm moving through this processes of learning flex,
    the one thing I've noticed is the lack of a concise MVC model or at
    least a breakout of the more complex UI components. I'd assume for
    such a strategic product, there would be more investment by Adobe
    in these technical areas. But, I guess its easier putting people on
    a bus and send them to city to city.
    -g

  • How To Get Selected Or Clicked  Menu Item Name Or ID

    Hello.
    My Question is
    Is There Any Event In Form By Which I am able to get Clicked or Selected Menue Item's Name Or ID.
    Thanx.
    Shahzad Hafeez.

    You can use cell variant  for your requirement . Go through the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961
    Regards,
    Nethaji

  • How to get UIDRef of the selected page item in indesign cs3

    Hi,
        I want to get the UIDRef of the selected page item like Rectangle Frame. Can you show me the complete code snippet to get the UIDRef of selected Rectangle Frame. I need this UIDRef for getting the geometric bounds properties(width and height) of the selected rectangle frame to display the user in dialog box.
    Regards,
    K.Saravanan.

    Hi,
    UIDList selection;
    InterfacePtr<ISelectionManager> pSelectionManager(Utils<ISelectionUtils>()->GetActiveSelection(), ISelectionManager::kDefaultIID);
    if(pSelectionManager == nil){
    break;
    InterfacePtr<ILayoutTarget> pLayoutTarget(pSelectionManager->QueryConcreteSelectionBoss(kNewLayoutSelectionBoss), ILayoutTarget::kDefaultIID);
    if(pLayoutTarget == nil){
    break;
    selection = pLayoutTarget->GetUIDList(kDontStripStandoffs);
    Then, you can use this interface "IGeometry" to get information about spline size.
    InterfacePtr<IGeometry> pGeometry(selection.GetRef(i), IGeometry::kDefaultIID);
    if(pGeometry== nil){
    break;
    PMRect splineBounds = pGeometry->GetStrokeBoundingBox();
    PMReal width = splineBounds.Height();
    PMReal hight = splineBounds.Width();
    Regards,

  • How to get all properties for an item with search?

    How can I get all crawled / managed properties back of an item with the search API (REST, client, or server)?
    Currently I am only aware of specifying the applicable properties specifcally by using the selectproperties parameters via REST:
    http://host/site/_api/search/query?querytext='terms'&selectproperties='Path,Url,Title,Author'
    (taken from http://blogs.msdn.com/b/nadeemis/archive/2012/08/24/sharepoint-2013-search-rest-api.aspx)
    I don't want to do this. I just want to get all properties back that
    are associated with the search results.

    Its my understanding that standard managed properties will be returned, like: Created Date, Last Date Modified, Author, Title, etc.  However, if you need more than that you will need to specify the properties to return.
    This blog post also has a similar thought process:
    http://www.blendmaster.net/blog/2012/09/view-managed-property-value-in-sharepoint-2013-using-search-rest-api/
    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com

Maybe you are looking for