How to get Layer's visibility status?

Ii I know the class name & UID of an item on a indd file, how can i get it's visibility status?
I tried to do it like this as shown in a nexample,
InterfacePtr<ISpreadLayer> spreadLayer(::GetDataBase(unknown), hierarchy -> GetLayerUID(), UseDefaultIID());
if(spreadLayer != nil)
bool visibleFlag = spreadLayer->IsVisible();
but above code gives 'true' even for invisible items.
please let me know what is the wrong?
Thanks

Hi Dirk,
Thanks for your rich reply.......
I agree with you, before get in to SDK we should have a better knowledge on that. I've gone through programming guides as much as pssible. but still have a lot more to know..
My requirement is to get layer's visibility(that is shown from 'eye' symbol in layer panel).
when i use'
InterfacePtr<ISpreadLayer> spreadLayer(::GetDataBase(unknown), hierarchy -> GetLayerUID(), UseDefaultIID());
if(spreadLayer != nil)
bool visibleFlag = spreadLayer->IsVisible();
It  shows only 'Layer1' status, But I can't get Layer1's item's(root items or child items) status. Do you have any idea about how to get root item's layer visibility status?

Similar Messages

  • How to get "Layer Mask Hides Effects" from Photoshop Plug-in

    How to get "Layer Mask Hides Effects" from Photoshop Plug-in.

    I don't think there's enough information here to give an answer.  Is this a Plug-in that you're writing or intend to write?  If so, what type of Plug-in is it?
    If you are writing your own plug-in, the header files included in the Photoshop SDK/API have a bunch of defines for the proper codes to use.
    PITerminology.h has a large amount of keys that can be used to query for information.  PIUGetInfo is probably the function that you want to call to determine what you need to know.
    If you're looking for information about a specific layer, you will want to make a new PIActionDescriptor, call sPSActionDescriptor->Make(*PIActionDescriptor), and then call GetLayerInfo on the layer that you're querying information about.
    You can then call sPSActionDescriptor->Get<datatype> on the layer while passing in the key of the data that you want.

  • How to get user and system status for a trade promotion

    Hi,
    I have to develop a batch program to change user status and system status of all trade promotions which satisfy some criteria. This criteria checks some dates related to trade promotion(like Changed on,Pallett buying, buying horizon dates) also.
    I thought of first extracting all external ids from CGPL_PROJECTS table and then run trade promotion query. But how can I get current user & system status and all dates as these can be taken from relations "TPMStatusActiveRel" and "TPMDateRel". I don't know to take data from relations. Please help me with a piece of code.
    Thanks.

    Hello Shikha,
    You can use these relations here, as you are not in the Business Object layer anymore. As far as my understanding is, all the batch programs or reports should be done at the API layer. Try this code, to read the status of the Trade Promotion object.
    data: lr_appl_base type ref to CL_CRM_MKTPL_APPL_BASE,
            lt_sys_status type CGPL_ISTATUS_TEXT_T.
    lr_appl_base ?= CL_CRM_MKTPL_APPL_BASE=>GET_INSTANCE().
    " To read system status
    call method lr_appl_base->STATUS_READ
    exporting
    IM_MKTELEMENT_GUID = "your Trade promotion guid
    ET_TJ02T  = lt_sys_status.
    " To read user status
    call method lr_appl_base->STATUS_READ_EXTERN
    exporting
    IM_MKTELEMENT_GUID = "your Trade promotion guid
    ET_TJ02T  = lt_sys_status1.
    To change the user status, use the method STATUS_CHANGE_EXTERN of the same class
    To set the system status, use the method STATUS_SET of the same class.
    Hope this helps.
    Regards,
    Vinay

  • How to get ATTENDEE, ORGANIZER, Respond Status on a Appointment?

    Hi
    I am using the Calendar SDK to view the appointments. When I use fetchEventsByRange or fetchEventsByID method, I am getting only few parameters like DTSTAMP, CATEGORIES, CLASS, PRIORITY, STATUS, DESCRIPTION, LOCATION, DTEND, SUMMARY, DTSTART, UID. How to get the ATTENDEE, ORGANIZER, Respond Status on the Appointment(Which is meeting actually). I tried to passing my own parameters list(ATTENDEE, ORGANIZER, RECURRENCE-ID etc) to the above mentioned methods. Though I can get RECURRENCE-ID through this procedure, still I cant get the ATTENDEE, ORGANIZER properties. Is there anything I am missing? Any help is appreciated.
    Thanks in advance.
    Hari

    I fogured it out how to get these. I did not set up the email for the users on active directory. If I set up the email addresses for the users, then I am getting ATTENDEE, ORGANOZER properties.

  • How to get the set pf-status and call Transaction work together in SA

    hi,
    I am using Set pf-status to display the details screen and the same time using call transaction va03 leave screen 0 to display the corresponing sales order.
    The issue is both of them are not workin together properly.
    it could be helpfull if you give some code which deals the issue in detail...
    can you please give details how to get the previous screen once the new screen is obtained thru set pf-status
    thanks and regards
    Edited by: san dep on Jul 10, 2008 6:25 PM

    Hi,
    Try this code ---
    SET PF-STATUS 'STATUS_NAME' OF PROGRAM 'ZPROGRAM_NAME'.
    Regards
    Pinaki

  • How to get business activity with status open for a given BP ?

    Hi,
      I want to get the business activity status for a given business partner.
      To be more specific , consider the following customer service scenario:
    Requirement:
    Customer will call the call center
    Call center will create that business partner and BP will be assigned to proceed with the customer requirement
    A report program has to be generated to get the list of customers pending for the given business partner
    Things done:
    I have created a business partner(consumer) through the transaction CIC0
    Now I need to write a report program which will fetch all customers pending(with business activity status open) for a given business partner
        The thing is we are not able to find out where the status of the business activity is maintained.
        Is there any BAPI to meet out this requirement? or is there any other way?
    Regards,
    Arokiaraj. S,
    Asian Paints

    Hello,
    Try BAPI BAPI_BUSPROCESSND_GETLIST to get the activities for a BP and CRM_ORDER_READ to get the status.
    You also use FM CRM_STATUS_CHECK to check the status.
    Regards,
    Frédéric
    Message was edited by: Frederic Schoenaers

  • How to get Layer label

    I want get "Layer label"(not "Item label")with AEGP,b ut no API exist in LayerSuite.
    Is there a method of obtaining it?

    There is not getLayerLabel. You get the layer as an Item :
    GetItemFromLayer
    and then you get the label of the item, which should be the layer label with
    GetItemLabel

  • Order status in Backorderd. how to get it to "Shipped" status

    Hi Friends,
    I am new to Order Management(12.1.3). Initially trying to learn the O2C process. As part of that I am using the vision instance
    1> Created the Sales order
    2> Booked the Sales order
    3> Trying to Release the Sales order. The order line status has gone to the "Backordered" status.
    On reading I have understood that "Backordered" is a status when the inventory does not have the items. But the availability shows the items. Also when I create the sales orders some of the dates are defaulted to 31-DEC-2012. Can someone help how I can resolve this. I mean how can I restock the inventory. Also what is causing the dates to appear in that way.
    Thanks in advance

    You need to have some stock to be able to pick release and subsequently ship confirm the order.
    If you don't have any stock, you may consider performing miscellaneous receipt transaction.

  • How to get to Factory Installed status?

    Hello,
    Mine is a MBA.
    Do I have to boot to my original OS DVD to get back to factory installed status on my Mac Book Air?
    Regards

    Actually, that's a good question.
    You have two choices. At the end of the installation process, you can shut down the Mac instead of going through the user registration and account process - that means the new owner will be able to set their account up just like factory.
    But that means you won't be able to install the Apps DVD. To install the Apps DVD you'd have to go through the registration screens...
    I guess you have to make the choice yourself.
    \[By the way, the restore system you mention only happens on Windows machines that have been specially prepared with a restore partition, it's not the default way Windows works\]

  • How to get the mouse's status ?

    Hello,
    Anybody knows call which API can reach to get mouse's status, not mouse position and click status I want , but its "Normal select" "Busy" "Working in background" etc status. thanks in advance.
    and I have made one "GetCurrsor" sample attached, but, it is not well, why the count would change at labVIEW front panel only, if the cursor is out of labVIEW front panel, it is no response. is anything wrong ?
    please help to point out.
    Attachments:
    Get_Cursor.vi ‏17 KB

    Yup, and I am going to that forums too (LAVA), but I found Gilbert have told us his last concern Clearly.
    Try to make everything Automatic

  • Precalculation server how to get the initial "ready" status

    Hi guys,
    i have scheduled 50 workbooks over night in 5 minute distances. The precalculation server is one physical server with 3 registered precalc server. Multiinstance precalculation is started. And when i come in the morning i see in RSRD_Log
    with red icon the message "The system searches for the next free preliminary calculation server" and also "No free precalculation servers found ('                                              100" and the last message "An active RFC server could not be found ". Before i went i restarted the server so the precalculation registrations should all be green and ready and in an initial state.
    From 0 o clock till 7 o clock they are all red the registrations and from 8 o clock they are green again and work fine. How come?
    Does a reboot not put them into initial state? Do i also have to clear the queue from RSPRECADMIN? From 50 scheduled workbooks just 10 reach their target via mail. What am i doing wrong?
    Thanks and kind regards,
    Murat

    Hi Vikram,
    there are no paralel processes defined they are all scheduled sequentially. They are 70 scheduled in 5 minute distances.
    But no parallel processes. What could be the reason?
    Thanks and kind regards,
    Murat

  • How to get the user active stauts in jspdynpro

    How to get the user active status in jspdynpro.
    I want check weather a user is active or not (Collaboration Launch Pad functionality)
    in jspdynpage.
    Thank's in advance,
    Mr.Chowdary

    Hi Eddy,
    Here the scenario is to get the data of a field from the user defined table to pass the extracted values as a input to the XL reporter, which will be selected while generating the report.
    It would be great if you provide any solution for this problem.
    Thanks.

  • How Purchase Order will show Deleted Status?

    Hi SRM Guru,
    How and by when a PO will show status in 'Deleted'? Will there an deletion is set to mark for deletion?
    Many thanks.
    Regards,
    Kim

    Hi
    <b>Please go through these links for details -></b>
    "PO_DEL_POSSIBLE"  does not permit to delete a PO ! :-(
    change status of a created PO
    How to get the current PO status programatically ?
    change the PO status to cancel
    Re: "Delete" button is not working !  :-(
    Re: Delete button for PO is disabled in some clients ?  :-(
    PO is in archived status
    Re: not abe to delete the PO in EBP
    Re: status of po
    Hope this will definitely help.
    Regards
    - Atul

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • How to get system status and user status of service order

    Hi,
    I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
    I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
    Regards,
    Kamesh Bathla

    Hi,
      Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
    Regards
    Srinu

Maybe you are looking for

  • Bootcamp and windows 8 Pro

    Has anyone had a problem with the wireless Apple keyboard and mouse when using Bootcamp?  I am running Windows 8 Pro.  I have done a bootcamp software update after installing Mountain Lion on the OS X side and reinstalling Windows 8 Pro.  My keyboard

  • Please reply with the best laptops that can suit to my needs '̿'\̵͇̿̿\ .....(^o^)

    Hi foks! I allready have like 3 or 4 years a HP 530 with this capabillities: Windows Vista Home Premium (Service Pack 2) 2,00 GB RAM 32 - bit operation system Procesor Genuine Intel (R) CPU T2300 @ 1,66GHz 1,67GHz The system is classified by it self

  • Incredible Device/Experience BUT A Few things i would change...

    Please respond with some feedback: 1. The Ability to Highlight, Copy and Paste (Very Important on a PDA/SmartPhone) 2. No Recessed Headphone Jack (It should be compatible with any headphones or speaker system. (For example I am visiting my parents ri

  • Newest movie purchase won't play/sync on iPod3rdGen

    I just downloaded a movie that came out today. My ipod refuses to play it - iTunes won't even transfer it to back it up. When I downloaded trailers of this movie on my ipod in the past it said they couldn't be played, but I figured it was a glitch. E

  • Datechooser display current date in YYYY/MM/DD format on init

    I have two date fields. I'd like one date chooser to display the current date on creation complete and the other should display the 30 days after the current date. The format needs to be YYYY/MM/DD. I'm currently getting a the current date in a var c