Expand all the layers using JS

Hello,
is it possible to expand singe or all the layers using JS?
regards,
Alex

The document has a lot of layers grouped in 5 groups. By opening of this document a couple of layers are made invisible using this.getOCGs()[i].state = false in a loop.
I want to implement, that the layer's groups are expanded in order to save time with ticking "+" on every layer group.

Similar Messages

  • How do i expand all the nodes in a jtree

    Hi,
    I am working on a project where i need to expand all the nodes of a jtree i have tried a few different ways but it never seems to expand all the nodes..
    I would be very greatful if someone could point me in the right direction
    cheers
    Mary

    you could use the following method that expands nodes recursively
    expandNode( myTree, myRootNode, new TreePath( myRootNode ) );
    public static void expandNode( JTree tree, TreeNode node, TreePath path ) {
        tree.expandPath( path );
        int i = node.getChildCount( );
        for ( int j = 0; j< i; j++ ) {
            TreeNode child = node.getChildAt( j );
            expandNode( tree, child , path.pathByAddingChild( child ) );
    }

  • I was painting in photoshop and accidently rotated all the layers and the canvas how do i realign it?

    i was painting in photoshop and accidently rotated all the layers and the canvas. how do i realign them?

    dubrox666 wrote:
    Image rotation works if the canvas isn't rotated, the canvas was rotated by acciedent (gesture on my tablet) and image roate dosen't fix the canvas when it is rotated, even my guides were coming in crooked, image rotate rotated my image but not the canvas, it happened to me again so i reverted to my previous save, even my instructor dosen't have an answer?!!
    Risto
    Good gracious.  It sounds like you were able to rotate the canvas a more or less exact multiple of 90° or you'd have spotted that it was skewed.  I just tried it using the r shortcut, and while it is doable, it is not particularly easy to rotate the canvas to a point where it could fool you.  What does surprise me, is that while the Options bar shows the degree of rotation while the r key is depressed, I could see nothing on the UI to tell me that the canvas was rotated.  That's something that you might want to start a thread on the Photoshop Feedback page.
    Photoshop Family Customer Community
    Anyway, Escape is the usual way to cancel rotate canvas.

  • Why do all the layers move in photoshop?

    I don't know how this happened, but when I try moving one layer, ALL the layers in the group move with it! I did not link or merge these layers. I am working in groups, but I used to be able to select a single layer in the group and move it with no problem and if I wanted to move a whole group I would select the whole group.

    Probably you have auto select groups checked in the move tool options bar.

  • What are all the tables used for this report:

    hi
    what are all the tables used for this report:
    report:
    •     <b>Stock Report, which will give opening balance, receipt, issue, and closing balance for any given Duration for any material.</b>
    thanks in advance

    Tables: MSEG, MKPF, MARD.
    FOR REFERENCE SEE TRANSACTION : MB5B.
    Message was edited by: Sharath kumar R

  • How to turn off all the layers in one go?

    How to turn off all the layers in one go?
    In case the pdf file contains layers, then how to turn them all off in one go?
    Thank you for the help,
    Best
    Jamal

    able,
    What happens if you select both the grunge and the image and in the Transparency flyout tick Make Opacity Mask? You may try different ticking/unticking and colours.

  • How to set a specific width to all the TextInputs used in a mxml file on its creation complete?

    How to set a specific width to all the TextInputs used in a mxml file on its creation complete?

    Hi subhajit nag,
    I think the best approach would what I say is if you can make use of a Global variable or using a Singleton class having a variable which can be accessed globally through out the application.
    Below is the sample what I am talking to:
    So in below example you can access the variables textInputWidth and textInputHeight globally throghout the application since you have decalred them in main mxml file.
    You can access these variabled in another mxml file as Application.application.textInputWidth and Application.application.textInputHeight. So if at all you are required to modify these values you are only required to modify at a single place in main mxml file..thats it.
    If you are use any Singleton classes like ModelLocator you can place these variables in this class and refer from that class.
    Hope this resoved your problem..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
      <![CDATA[
       [Bindable]private var textInputWidth:int = 250;
       [Bindable]private var textInputHeight:int = 25;
      ]]>
    </mx:Script>
    <mx:Canvas id="canvas1">
      <mx:TextInput id="txt1" width="{textInputWidth}" height="{textInputHeight}"/> 
    </mx:Canvas>
    <mx:Canvas id="canvas2">
      <mx:TextInput id="txt2" width="{textInputWidth}" height="{textInputHeight}"/> 
    </mx:Canvas>
    <mx:Canvas id="canvas3">
      <mx:TextInput id="txt3" width="{textInputWidth}" height="{textInputHeight}"/> 
    </mx:Canvas>
    <mx:TextInput id="txt4" width="{textInputWidth}" height="{textInputHeight}"/>
    <mx:TextInput id="txt5" width="{textInputWidth}" height="{textInputHeight}"/>
    </mx:Application>
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari 

  • What r all the tables used for this report. please reply

    hai,
    what r all the tables used for this report.
    report :
    <b>
    •     Report to display all finished goods that go out-of-stock. Developed a drill down report for materials details (totals and subtotals for material stock values by material group and material type).</b>
    thanks in advance

    hi Ashok,
    Check this out
    http://www.allsaplinks.com/tables.html
    http://www.sapgenie.com/abap/tables.htm
    Regards,
    Santosh

  • How can I see all  the idocs used in the system

    I am very new in this area. How can I see all  the idocs used in the system. Those which are posted and those which are not.

    Check thes sap help links:
    http://help.sap.com/saphelp_nw70/helpdata/en/90/c4b523c4c411d2a5ee0060087832f8/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/d5/edf15ddcdc11d1890c0000e8216438/content.htm
    - Regards, Dibya

  • What r all the tables  used for the following report

    hai
    what r all the tables  used for the following report
    report:
    <b>
    •     Report that displays all the late shipments in a particular period of time</b>
    send important fields for this tables also
    thanks in advance.

    Hi,
       Imp table are vttk,vttp,vtts.
    Regards
    Amole

  • What are all the tables used? experts help me

    hi
    what r all the tables used for this report.
    <b>Delivery Performance Report - to compare the customer delivery schedules with the deliveries created in SAP to determine whether they are early, on-time, or late. This measurement is done by comparing the customer request date against the goods issue date from the delivery</b>
    please any one help me
    thanks in advance

    hi.
    If you know standard transaction or program for purchase order or for any function . you can know the affected tables by that transaction or program USING TRANSACTION
    'SE49'.
    I am working on 4.6c it does exist in this version.
    if does not exist on ur version
    then other way to find affected tables by  a transaction or program is--
    first find the development class for that transaction (like Va01) then goto se80 and enter that development class .it will show all the tables affected .
    steps to find Development class for example (Va01).
    press F1 to any field then click on tech. info
    (ii) double click on program name(SAPMV45B).
    (iii) click on object directory entry in GOTO menu.
    (iv) from here u will get Development class (VA).
    now in se80 u will get all the databasec tables under the node object entry.
    hope this will help.
    Regards .
    vikas

  • How to set FBL1N T code Layout to default to all the users using this T cod

    Dear Friends
    I have created a new layout by modifying the some of the fields in FBL1N T code output.  I want to set as default layout to all the users using this T Code. Is there any way we can set the  custom layout as default layout  to all the users.
    Presently Only I can see as default layout but  not the other users
    Thanks in Advance
    Thanks
    MVS

    Hi
    I have one above like issue but in FB03, I have been one layout as default using -lay admin when i come back and re execute the
    FB03 transaction  the default lay out not working directly every time i have to  "display as list from the" Go to" menu then only
    document showing as per lay out..I want  that lay out has to be work with out  going to Dispaly as list
    please advice me where i did wrong .its not working  even after the changes i log out the from the SAP and re login
    thanks
    Ranamka
    Edited by: Ranamka on Mar 10, 2011 9:59 PM

  • How to fetch what are all the tables used in this TR no and Package name of

    Hi Friends,
    I have input of Transport Request no (E070-TRKORR).
    How to fetch what are all the tables used in this TR no and Package name of this Table.

    HI,
    FYI
    SELECT E071OBJECT_NAME, E070MDEVCLASS
    FROM E071, E070M
    WHERE TRKORR = YOU REQUEST NO.

  • What are all the tables used?

    hai,
    what r all the tables used for this report .
    <b>Created an interactive report in which sales orders were listed against different customers within the range selected. Selection of multiple sales orders were allowed for which checkboxes are provided.</b>
    Any help will be much appreciated.
    thanks

    hi
    Sales order related tables are:
    hi ashok,
    u can use from the following tables:
    VBAK -Header data(sales document).
    VBAP -Item data(sales document).
    VBUK -Header Status.
    VBAK -Item status.
    VBEE -Sales requirements (individual records)
    VBFA - Sales document flow
    Customer data related tables-
    KNA1- Customer master
    KNVV-Customer master sales data.
    KNVP-Customer master partner functions.
    Reward points if helpful.
    Naveen

  • All the time using password it's say "wrong password. It a get a new one on the ipad2 do a new one it's "wrong password" Help me please

    All the time using password it's say "wrong password. It a get a new one on the ipad2 do a new one it's "wrong password" Help me please

    Is this with your iTunes account password ? If so, and if you haven't already done so, then try logging out of your account by tapping on it in Settings > Store and then log back in and see if that fixes it.

Maybe you are looking for