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

Similar Messages

  • How to get field label in downloaded file

    Hi,
    How to get filed labels, when we download a report to an Excel sheet?
    Thank U

    HI,
      Hoping that you are using the 'GUI_Download'  FM to download. Then you the
      following code
    TYPES : BEGIN OF type_xlhead,
              colname TYPE char50,
            END OF type_xlhead.
    data: type_t_xlhead     TYPE STANDARD TABLE OF type_xlhead,
         CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = v_file
            filetype                = c_asc
            write_field_separator   = c_x
          TABLES
            data_tab                = rt_rec_result
            fieldnames              = type_t_xlhead
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
    In the table rt_xlhead pass the name of fields.
    DATA : s_xlhead TYPE type_xlhead.
      CLEAR s_xlhead.
      REFRESH  type_t_xlhead .
      s_xlhead-colname = 'Company Code'(116).
      APPEND s_xlhead TO  type_t_xlhead .
      CLEAR s_xlhead.
      s_xlhead-colname = 'Main Asset Number'(117).
      APPEND s_xlhead TO  type_t_xlhead
      CLEAR s_xlhead.
      s_xlhead-colname = 'Sub Number'(118).
      APPEND s_xlhead TO  type_t_xlhead
      CLEAR s_xlhead.
    Rewards points if useful

  • 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 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?

  • How to get the label on selectOneMenu selected item??

    Hi,
    I'm not able to get the label of the selected item in a selectOneMenu. The code I use to fill it is:
    <h:form id="formNacion" name="formNacion">
    <h:selectOneMenu value="#{modelRtbBean.nacion}" id="selectNacion" onchange="this.form.submit();">
    <f:selectItems value="#{dataRecoveryBean.naciones}" id="idItemsNacion"/>
    </h:selectOneMenu>
    </h:form>
    The dataRecoveryBean has this method to fill the content of the component (basically it creates an arrayList of selectItems by recovering data from a database):
    public ArrayList<SelectItem> getNaciones() {
    if ((naciones == null ) || (naciones.isEmpty()) ){
    naciones = new ArrayList<SelectItem>();
    HDBGeografico hdbGeo = new HDBGeografico();
    SqlMadd sqlmadd = new SqlMadd();
    try {
    AccessBD sscm = new AccessBD( );
    sscm.table(hdbGeo.getSqlNaci());
    // The AccessBD object has a reference to the resultset:
    ResultSet rs = sscm.getRS();
    while (rs.next()) {
    naciones.add(new SelectItem((String) rs.getString(1), (String) rs.getString(2)));
    sscm.Close();
    } catch (Exception e) {
    System.out.println(e.toString());
    return naciones;
    the modelRtbBean setNacion recovers the value, but I need its label too, because it's a kind of description that I use later.
    In the modelRtbBean setNacion method I'm able to access the UISelectItems object, but I cannot get the selected item itself
    public void setNacion(String nacion) {
    FacesContext fc = FacesContext.getCurrentInstance();
    if (fc != null) {
    UIViewRoot viewRoot= fc.getViewRoot();
    System.out.println(viewRoot.getViewId());
    HtmlSelectOneMenu selNac = (HtmlSelectOneMenu)viewRoot.findComponent("bodySTB:formNacion:selectNacion");
    if (selNac != null) {
    System.out.println("Nacion value-htmlSelectOneMenu :" + selNac.getValue() );
    System.out.println(selNac.getAccesskey() + selNac.getTitle() + selNac.toString());
    UISelectItems uis = (UISelectItems)selNac.findComponent("idItemsNacion");
    if (uis != null) {
    System.out.println("I have the element...");
    this.nacion = nacion;
    How could it be accessed this selected item label ??

    I finally did it as you suggest, but I found another way to access the label (I don't know if it could be useful for anybody but here it is) :
    In the setter method linked to the SelectOneMenu, you can put in this code:
    FacesContext fc = FacesContext.getCurrentInstance();
    if (fc != null) {
    UIViewRoot viewRoot= fc.getViewRoot();
    System.out.println(viewRoot.getViewId());
    HtmlSelectOneMenu sel = (HtmlSelectOneMenu)viewRoot.findComponent("viewName:formName:selectOneName");
    if (sel != null) {
    UISelectItems uis = (UISelectItems)sel.findComponent("idItemsName");
    if (uis != null) {
    ArrayList<SelectItem> listElem = (ArrayList<SelectItem>) uis.getValue();
    You could put in in the value item of each SelectItem it's index position in the list, so in the setter method
    of the bean linked to the selectOneMenu you would get the index of the selected item as the parameter of the method
    int index = 1; // For easyness in this example
    System.out.println("Label: " + listElem.get(index).getLabel() + " Value: "+ listElem.get(index).getValue());
    Thanks !!!

  • How to get the label of parent container?

    Hi
    I have a Canvas, Its label is "News".
    I added a text control in it and i want to set its text
    dynamically from the canvas label.
    But i dont know how to access the label of the Canvas
    "without" using the id of the canvas.
    like
    <mx:Canvas label="News">
    <mx:Text text="{parent.label}"/>
    </mx:Canvas>
    Please guide me to achieve the above thing.
    Thanks in advance

    "manofspirit" <[email protected]> wrote in
    message
    news:garoob$lqh$[email protected]..
    > Thanks for the reply Amy
    > But I dont have any idea about sub-classing!
    > Please put some light on this concept.
    > Thanks
    Say you have an application
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:mm="com.magnoliamultimedia.*"
    layout="absolute">
    <mx:Canvas label="foo">
    <mm:ParentLabelText width="100" height="25" />
    </mx:Canvas>
    </mx:Application>
    If you have a directory com that has a directory
    magnoliamultimedia in it,
    then if it has this file, you should see "foo" on the screen
    when you run
    that application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Text xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    private function init():void{
    if (parent.hasOwnProperty('label')){
    text=parent['label'];
    } else {
    text='parent has no label property';
    ]]>
    </mx:Script>
    </mx:Text>
    HTH;
    Amy

  • How do get the label id or label name of a filed's label?

    Hello everybody,
    I need your help for getting the name of id of label, this label belongs to a field in a form.
    When I create my javascript's function I could manipulate the visibility of a field with the next sentence:
    document.getElementById("P1_NAME_OF_FIELD").style.visibility = "visible";
    but I do not know to do the same thing with its label:
    Also, I have tried with the parentnode javascript attribute, this is because getting the parentnode ( a tag of TD ) but I don't have a good result.
    document.getElementById.parentNode.parentNode.style.visibility = "visible";
    I write twice parentnode because I found in the code that the label and the field are like this:
    <tr>
    <td> label </td>
    <td> text field </td>
    </tr>
    The first parent node is TD and the second corresponding to TR.
    After that I edit the item, in the label's part I wrote in Label:
    <div id="ID_LABEL" name="ID_LABEL" style="visibility:hidden"> Label </div>
    This was for assigning the id to the label and with this to identy easily.
    and in the element's part I wrote in 'HTML Table Cell Attributes'
    style = "visibility:hidden"
    And in the javascript function I wrote the next:
    document.getElementById("P1_NAME_OF_FIELD").style.visibility = "visible";
    document.getElementById("ID_LABEL").style.visibility = "visible";
    With this I could manipulate the visibility but the problem is that the font size of is not the same with the others labels.
    Could you help me with this problem?
    What and how do I must do in apex?
    Could you send me a page with relationated examples with this problem?
    Thank you.
    Best Regards.

    Long story short: A ColorModel is not a Color. It is an object containing information about how the colors in an object are described... or something like that.
    Component.getForeground() is probably want you want. It returns a Color object.
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Component.html#getForeground()

  • How can get my labels in a screen(dynpro) dynamically .

    Hi All,
    I have a route screen which has got 6 fields which are the activities in PLPO.So the text of these activites which are 6 are gonna changes.Like let us say for material 5867 I will have to go read PLPO and read VGWTS for it and then on basis of VGWTS there will read TC21 and get all the parametrs like PAR01,PAR02...PAR06.IF they are having some value for it then go read tc20t and get the text for it from TC20t and that is gonna be the text(They are label before input box) in my screen.So it changes dynamically like this.How can i Do this?
    Regards,
    Vijay

    How are your six screen fields named and how are the corresponding variables named in your logic? Let us say your fields on the screen are named FIELD1, FIELD2, FIELD3, FIELD4, FIELD5 and FIELD6. Your program should also have 6 variables named the same. Then you move the texts into these six variables, you should see your values in the screen.

  • How to get hyperlinks labels from javascript

    Folks,
    in my jsp, i'm using custom tags to generate hyperlinks. Now what i want is to have the label of the hyperlinks in the javascript. How can i do that. I tried document.anchors but it gives me zero length array. Is there any other way of doing it.

    JSP generates the HTML (and possibly Javascript) that the browser displays. Once the browser is displaying it, the JSP page's work is already long done, and is not "running" anymore. So there's no connection between your JSP page and what's in the browser.
    JSP does not change how HTML works, only how it's generated.
    Otherwise you are asking a Javascript question, and Java != Javascript, so you should go find a Javascript forum.

  • How to get the label of the current active book or page

    response:
    response.getParameter("_pageLabel")
    Message was edited by gpedone at Sep 30, 2004 6:44 AM

    If within PageFlowController you can use corresponding backing context. However within jsp page, you need to use PresentationContext to get information about current book or page.
    Regards,
    Kail

  • How to get actionOverride value in the URL in page Flow

    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

    u can try in JSP:
    DesktopPresentationContext dpCtx = DesktopPresentationContext.getDesktopPresentationContext(request);
    BookPresentationContext bpCtx= dpCtx.getBookPresentationContext();
    ArrayList al = bpCtx.getPagePresentationContexts();
    for(int i=o; i<al.size(); i++) {
    PagePresentationContext ppCtx = (PagePresentationContext )al.get(i);
    List windowCtxList = ppCtx.getWindowPresentationContexts();
    for(int j=0; j<windowCtxList.size(); j++) {
    WindowPresentationContext wpCtx = (WindowPresentationContext)windowCtxList.get(j);
    wpCtx.getLabel();
    "Hitesh" <[email protected]> wrote:
    >
    Joe,
    Thx a lot .
    I got the instance ID for the current portlet with API
    com.bea.netuix.servlets.controls.portlet.PortletPresentationContext.getPortletPresentationContext(request).getInstanceLabel();
    But how to get instance label for other Portlet ? any idea..........
    Thanks ,
    Hitesh
    "Joe" <[email protected]> wrote:
    It is a portlet's instance name. You can see it in the .portal screen
    as a property.
    This is added for portlet scoping. The instance name you might get from
    a
    backing (did not find it yet) or soeme fancy request attribute eventually.
    "Hitesh" <[email protected]> wrote:
    Hi All,
    I have main page Flow , under main page flow there are 2 sub folders.When
    i navigate
    between the page flow the URL I can see is like http://localhost:7501/myWEB/actportal.portal?_nfpb=true&portlet_2_1_actionOverride=/content/account/getAccount
    Can any body tell me how to get the value 'portlet_2_1' that we see
    in the URL.
    What is the API to get this value.
    Thanks & Regards,
    Hitesh C.

  • 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();

  • How to get current layer type (text, art, group layer, etc.)r discussion here

    Hi,
    I am traversing over all layers using layerIndex.
    I can get current later name in following way.
    char* layerName = new char[100];
    int32 len = 100;
    PIUGetInfoByIndex(layerIndex,classLayer, keyName, layerName , &len) ;
    I tried  using the keys keyType and keyGroup in the same way but I am not able to directly get type of the layer. Why?
    Also, I found similar discussion, which is check the layer is SectionStart, SectionEnd or SectionContent.
    Get Layer Groups from C++ plugin
    If the layer is a "SectionContent", how to I further check its type (artlayer, textlater, adjustmentlayer, ect) ?

    apologize !
    I post the question in relevant forum. But I would like to ask extra explanation here.
    var ref = new ActionReference();                                                                                                               // create action reference
    ref.putProperty(stringIDToTypeID ("property"), stringIDToTypeID("layerKind"));                                            // add "layerKind" property to the reference
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );                   // what putEnumerated actually do ?
    var layerDesc = executeActionGet(ref);                                                                                                      // get the corresponding layer descriptor
    alert (layerDesc.getInteger(stringIDToTypeID("layerKind")));                                                                        / get its layerKind
    1. what putEnumerated actually do ?
    2. I am traversing each layer so that I have the layer object in JavaScript.
        How current layer object is refereed to above code segment ?

  • How to get rid of the new bottom layer with piano roll etc. in arrange??

    Hey guys,
    Just a quick question i suppose.
    I work with 2 screens.
    When I double click a midi event, i want the piano roll to open in a floating window, just like it used to be, and not in the new bottom layer (pop up) bar in the bottom of the arrange window. I want this because i like to edit on the second screen while still haveing an overview of my arrange on my 1st screen.
    Does anyone know how to do this? Or perhaps know how to get rid of this new bar all together?
    I hope someone does....
    thanks in advance!
    cheers,
    PM

    how annoying is it to go to a seperate screen set and then click a midi region just to edit it?
    You haven't grasped the concept of screensets.
    In the "old" way of working, in your arrange, you double-click on a region, which opens that region in an editor. You may have to move the editor position/size etc. You make your edits, and then close the window.
    The screenset way of doing this is simpler and quicker. In your arrange, you select your region (one click, rather than a double click). You then hit a key command, lets' say "2" to switch to your editor screenset, which has the eitor or combination of editors you use, in link mode. As soon as you hit your 2 key, the editors will be recalled at the precise locations you specified, showing you the contents of your selected region.
    When you are finished editing, just hit "1" to go back to your main arrange window.
    Once you get used to this, you'll find it's a lot quicker and more efficient than all that rsi double clicking and window closing...

  • How to get the full path or name of the Layer to which Filter is applied?

    Hi All,
              I have created a layer using some background image as source. How to get the name or ful path of the background image?
    I checked the documentation and found GetPathNameProc(SPPlatformFileSpecification*) function, but I couldn't get the parameter SPPlatformFileSpecification*.
    Is there any other way to get the file path of background layer in my custom filter?
    Thanks,
    Dheeraj

    If this is a client side application then I'd say look into drag-n-drop tutorials.
    i.e. drag file to your application, action listener fires, create File object giving you full name and path of users action.
    If this is a web application then look into the "multipart/form-data" content type specifications on how to upload files.
    i.e. user specifies file from <input type='file' ... /> type, submits, servlet receives data and recreates file locally on application server side.
    If you are thinking that all you need to send a file to a program is the full path and name in a textbox its a little bit more complicated then that.
    Good luck, hope that helps!

Maybe you are looking for