Lock Selected objects

Hi
Any one please help me to use lock option in javascript
i want to lock selected objects
Thank
APPU

surendarappu wrote:
help me to hide instead of lock
To modify/change the code provided by Muppet Mark, from locking to hiding, see the following:
// Change this line...
// selectList[i].locked = true;
// To the following...
selectList[i].hidden = true;
You could also change the two references of "lockSelection" for the function name and call, to something like "hideSelection" to avoid confusion as well if needed.
* Was this helpful?

Similar Messages

  • Service template problem - Unable to perform the job because one or more of the selected objects are locked by another job - ID 2606

    Hello,
    I’ve finally managed to deploy my first guest cluster with a shared VHDX using a service template. 
    So, I now want to try and update my service template.  However, whenever I try to do anything with it, in the services section, I receive the error:
    Unable to perform the job because one or more of the selected objects are locked by another job.  To find out which job is locking the object, in the jobs view, group by status, and find the running or cancelling job for the object.  ID 2606
    Well I tried that and there doesn’t seem to be a job locking the object.  Both the cluster nodes appear to be up and running, and I can’t see a problem with it at all.  I tried running the following query in SQL:
    SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'
    but all this gives me is an error that says - conversion failed when converting from a character string to uniqueidentifier msg 8169, level 16, State 2, Line 1
    I'm no SQL expert as you can probably tell, but I'd prefer not to deploy another service template in case this issue occurs again.
    Can anyone help?

    No one else had this?

  • Unable to remove a host from VMM - Error (2606) Unable to perform the job because one or more of the selected objects are locked by another job.

    I am unable to remove a host from my Virtual Machine Manager 2012 R2. I receive the following error:
    Error (2606)
    Unable to perform the job because one or more of the selected objects are locked by another job.
    Recommended Action
    To find out which job is locking the object, in the Jobs view, group by Status, and find the running or canceling job for the object. When the job is complete, try again.
    I have already tried running the following command in SQL Server Management Studio
    SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'
    I received this error back:
    Msg 8169, Level 16, State 2, Line 1
    Conversion failed when converting from a character string to uniqueidentifier.
    I have also tried rebooting both the host and the Virtual Machine Manager Server.  After rebooting them both, I still receive the same error when trying to remove the host.
    Here are my server details
    VMM Server OS = Windows 2012 Standard
    VMM Version = 2012 R2 3.2.7510.0
    Host OS = Windows 2012 R2 Datacenter
    Host Agent Version = 3.2.75.10.0
    SQL Server OS = Windows 2012 Datacenter
    SQL Version = 2012 SP 1 (11.0.3000.0)

    Hi there,
    How many hosts are you managing with your VMM server?
    The locking job might be the background host refresher job. Did you see any jobs in the jobs view, when the host removal job failed?
    If there is no active jobs in the jobs view when this host removal job fails, can you please turn on the VMM tracing, retry the host removal, and paste back the traces for the failed job (search for exception and paste the whole stack)?
    Thanks!
    Cheng

  • Auto-zoom to selected object?

    I have a mystery ghost path that I can't find. It shows up in the layer palette. But I can't see it on my artboard. I have Show Bounding Box and Show Edges turned on. I alt/option click the layer to select everything. But there's nothing selected on my artboard. (And my artboard is sized to fit artwork bounds).
    Are there any scripts to auto-zoom/scroll the canvas to a selected object? Most 3D apps have a "Frame Object" command that moves and zooms the camera to make the selected object centered on the screen. Is there something like that for Illustrator?

    I don't think so. Just lock down anything you want to keep, Select All, and hit delete. The phantom guide should go away.

  • Moving group/layer/artboard with locked child objects

    In CS5, you could move a group/layer/artboard along with all of the child objects, even if some of the objects are locked.  But in CS6 the locked objects remain unmoved.
    Is there a way to change this behaviour?
    TIA

    I don't know about this convwersation I found some interesting things that might suggest that this is intentional.
    For one if you lock an object(s) in a group in CS 6and try to target the group you will only select the unlocked objects in the group  and effects will only be applied to the unlocked objects. But if you have objects and groups locked ( even if the objects are in groups) and you taarget the layer it will only slect the unlocked objects in the layer and or groups and transforms and effects will only be applies the those objects but if you select the layer using the selection area in the layer then eveything on that layer will be selected and transforms and effects will be applied to everything in the layer.
    I think this is intended to work this way but I think the groups should also worrk this way adding power to the layers panel and more meaning to the target feature.

  • Selecting objects like Freehand.

    Hi,
    I am having a little difficulty in selecting objects that were cloned and sent to the back of the original with a heavier weight. In Freehand (I know, everyone is sick of hearing it), I just clicked on the heavier weight and it selected. In Illustrator, I would have to send the front of the clone to a different layer and then would be able to select the back.
    Regards,
    David

    Or lock the topmost object. Or use layers. Or use the Layers panel to select individual items. Or right-click and Select Next Object Below. Or just use one item and use multiple strokes/fills in the Appearance panel. Or RTFM.

  • Unable to select objects

    At times I can't select objects or text objects. I click on and near the object and nothing happens. in fact in one document I created I can't select anything. I have 3 text boxes pluss a line that seemed locked. Any help would be appreciated.

    Welcome to Apple Discussions cagnito
    The usual reason for not being able to select an object is that it has been moved behind the text. It's not intuitive or well-documented, but click outside the layout area & then click & drag the cursor toward the object until you see handles. Now go to Arrange > Bring to Front (⇧⌘F).
    If you have two or more objects whose handles show they are selected, you will have to bring all objects forward & then click outside the layout area to deselect the objects then click on the topmost & move it out of the way. Repeat until you can get to the object you wanted.
    If the objects are locked, once they are selected as above, go to Arrange > Unlock.
    Another situation is that the object has been moved to the section master. For this you need to go to Format > Advanced > Make Master Objects Selectable if there isn't already a check mark next to this option. Then follow the first paragraph above.
    I hope this isn't too much information at one time.

  • Function module to lock mulitple objects in a single transport request.

    Hello,
    I have a query regarding one of the requirments in my project. The requirment goes like this:
    ' On executing a transaciton lets say the user gets a list of data elements then the user selects say five data elemetns ( check boxes are there in the list display showing data elements ) and he sets that the documentations of each element as 'Self - Expalanatory' then the requirement is that all these data elements must get locked in a single transport request.
    Is there a standarad API which takes object ID , Object type as input in form of table and checks if there are any existing transports in which the data element is locked if yes locks it under it, if not creates a new one and locks all the other objects in that request.
    Atleast a FM which takes a table of object ids as input and locks them under a single transport request will also be helpful.
    Some place where I can look for it.
    Warm Regards,
    Naveen M

    If the objects are available in an existing request then they will be already locked.
    If they are not available in request you can assign all of them in one request using
    SE03 transaction.
    In SE03 transaction,select include objects in request and execute.
    there click selected objects radiobutton, give your objects and execute.
    save them in a request and they will be locked and you can transport them later.

  • Is there a way to lock selected file directories with password?

    I'd like to prevent third party access to selected directories in my computer. So, I'd like to be able to lock selected directories with a password, like we can do for word/XL files. I do not prefer to create a new user for my notebook as the people  who will be using my notebook needs to use it while I am logged in.

    OS X has no such feature. However, you can encrypt the folder using Disk Utility, or create an empty encrypted container of a selected size, which will open as a mounted folder/disk when you try to access it via a password.
    http://support.apple.com/kb/HT1578
    There may be other solutions, but it would be a third party application.

  • Error "Problem occured locking WS object" while activating Proxy

    Hi All,
    I have move an Inbout proxy to a different Client(QA system) and in QA system that proxy shows incative.
    When i tried to activate that proxy/service in Sproxy, getting error "Problem occured locking WS object".
    Proxy was active in development system and was working fine without any error.
    Please provide some help, what need to be done to fix this issue
    Thanks
    Harshit

    Hi Harshit,
    Try with the following steps in sequence:
    1. Re-genarate the proxy in Development - Create a New Transport Reuest.
    2. Transport the Proxy from PI Dev to PI OA
    3. Confirm the Proxy in PI QA and then, transport the re-generated Request from ECC Dev to ECC QA.
    Regards,
    Pranav.

  • Script to apply a random CMYK swatches from a group of swatches to selected objects.

    I would like to write some scripts for randomising the allocation of swatches to adjacent object.
    Example:
    Imagine a map of Europe and all her nation states/territories. I have a User Defined Swatch Library. I can open the AI document it was made from as I understand from this thread that having the swatches as objects on the page makes them easier to be referenced in a script. 
    I want to iterate through the selected objects and randomly assign one of the colours in the swatch document as a fill to each object. It would be great if hidden swatches (they are all small rectangular 'colour chip' filled paths) on page were not included in the reference swatches randomly choosen from.
    Iterating the selected objects I can do, but not sure what references I need to use to create an array of swatches to randomly choose from.
    I see I can make an array of swatches using the general swatch group from Adobe's CreateSwatchGroup scripts:
    JS
    var docRef = app.documents.add(DocumentColorSpace.CMYK)
    // Create a new SwatchGroup
    var swatchGroup = docRef.swatchGroups.add();
    swatchGroup.name = "CreateSwatchGroup";
    // Get list of swatches in general swatch group
    var genSwatchGroup = docRef.swatchGroups[0];
    // Collect 5 random swatches from general swatch group and move to new group
    var i = 0;
    while (i < 5) {
              var swatches = genSwatchGroup.getAllSwatches();
              swatchCount = swatches.length;
              var swatchIndex = Math.round(Math.random() * (swatchCount - 1)); // 0-based index
              // New swatch group does not allow patterns or gradients
              if (swatches[swatchIndex].color.typename != "PatternColor" && swatches[swatchIndex].color.typename != "GradientColor") {
                        swatchGroup.addSwatch(swatches[swatchIndex]);
                        i++;
    // Updates swatch list with swatches moved to new swatch group
    swatches = swatchGroup.getAllSwatches();
    // [… etc etc]
    AS
    tell application "Adobe Illustrator"
    activate
              set docRef to make new document with properties {color space:CMYK}
    -- Create a new SwatchGroup
              set swatchGroupRef to make new swatchgroup in current document with properties {name:"CreateSwatchGroup"}
    -- Get list of swatches in general swatch group
              set genSwatchGroup to swatchgroup 1 of docRef
    -- Collect 5 random swatches from the general swatch group and move to new group
              set i to 0
              repeat until i is 5
                        set swatchesRef to get all swatches genSwatchGroup
                        set swatchCount to count every item in swatchesRef
                        set swatchIndex to random number from 1 to swatchCount
                        set currentSwatch to item swatchIndex of swatchesRef
      -- New swatch group does not allow patterns or gradients
                        if class of color of currentSwatch is not pattern color info and class of color of currentSwatch is not gradient color info then
      add swatch swatchGroupRef swatch currentSwatch
                                  set i to i + 1
                        end if
              end repeat
    -- [… etc etc]
    If someone can help me to create the Swatch Array object of swatches loaded from a seperate document (or unique layer) then I think I can work my way to changing the fill on the existing paths (the nations in my map of Europe example).
    Would be very cool if I could detect neighbooring paths (nieghbooring nations in my map of Europe example) make sure the colour being assigned is not within a certain hue/CMYK range of the random colour and if it is rechoose random colour. I have no idea how to perform the logic of determining neighbooring paths in an Illustartor script. Anybody?!
    I'd prefer Applescript for sake of readiblity and also I'm learning AS ATM. Plus I'm using Script Debugger.app (which is excellent) to work with AS and I can't seem to run JSX scripts from within Extend Script Toolkit 2 (perhaps I need to make my scripts point to Illustrator?)
    But Javascript is okay if someone has this covered already :-)

    I would like to write some scripts for randomising the allocation of swatches to adjacent object.
    Example:
    Imagine a map of Europe and all her nation states/territories. I have a User Defined Swatch Library. I can open the AI document it was made from as I understand from this thread that having the swatches as objects on the page makes them easier to be referenced in a script. 
    I want to iterate through the selected objects and randomly assign one of the colours in the swatch document as a fill to each object. It would be great if hidden swatches (they are all small rectangular 'colour chip' filled paths) on page were not included in the reference swatches randomly choosen from.
    Iterating the selected objects I can do, but not sure what references I need to use to create an array of swatches to randomly choose from.
    I see I can make an array of swatches using the general swatch group from Adobe's CreateSwatchGroup scripts:
    JS
    var docRef = app.documents.add(DocumentColorSpace.CMYK)
    // Create a new SwatchGroup
    var swatchGroup = docRef.swatchGroups.add();
    swatchGroup.name = "CreateSwatchGroup";
    // Get list of swatches in general swatch group
    var genSwatchGroup = docRef.swatchGroups[0];
    // Collect 5 random swatches from general swatch group and move to new group
    var i = 0;
    while (i < 5) {
              var swatches = genSwatchGroup.getAllSwatches();
              swatchCount = swatches.length;
              var swatchIndex = Math.round(Math.random() * (swatchCount - 1)); // 0-based index
              // New swatch group does not allow patterns or gradients
              if (swatches[swatchIndex].color.typename != "PatternColor" && swatches[swatchIndex].color.typename != "GradientColor") {
                        swatchGroup.addSwatch(swatches[swatchIndex]);
                        i++;
    // Updates swatch list with swatches moved to new swatch group
    swatches = swatchGroup.getAllSwatches();
    // [… etc etc]
    AS
    tell application "Adobe Illustrator"
    activate
              set docRef to make new document with properties {color space:CMYK}
    -- Create a new SwatchGroup
              set swatchGroupRef to make new swatchgroup in current document with properties {name:"CreateSwatchGroup"}
    -- Get list of swatches in general swatch group
              set genSwatchGroup to swatchgroup 1 of docRef
    -- Collect 5 random swatches from the general swatch group and move to new group
              set i to 0
              repeat until i is 5
                        set swatchesRef to get all swatches genSwatchGroup
                        set swatchCount to count every item in swatchesRef
                        set swatchIndex to random number from 1 to swatchCount
                        set currentSwatch to item swatchIndex of swatchesRef
      -- New swatch group does not allow patterns or gradients
                        if class of color of currentSwatch is not pattern color info and class of color of currentSwatch is not gradient color info then
      add swatch swatchGroupRef swatch currentSwatch
                                  set i to i + 1
                        end if
              end repeat
    -- [… etc etc]
    If someone can help me to create the Swatch Array object of swatches loaded from a seperate document (or unique layer) then I think I can work my way to changing the fill on the existing paths (the nations in my map of Europe example).
    Would be very cool if I could detect neighbooring paths (nieghbooring nations in my map of Europe example) make sure the colour being assigned is not within a certain hue/CMYK range of the random colour and if it is rechoose random colour. I have no idea how to perform the logic of determining neighbooring paths in an Illustartor script. Anybody?!
    I'd prefer Applescript for sake of readiblity and also I'm learning AS ATM. Plus I'm using Script Debugger.app (which is excellent) to work with AS and I can't seem to run JSX scripts from within Extend Script Toolkit 2 (perhaps I need to make my scripts point to Illustrator?)
    But Javascript is okay if someone has this covered already :-)

  • 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

  • Querying for a script insert multiple selected objects...

    Is there a script or plugin which insert multiple selected objects in one new text frame with one click?
    And is there a script or plugin which extract the content of anchored text frame out it's frame and replace it with it's frame. and extract selected text and insert it inside a new anchored text frame in it's place? (like convert text to table - convert table to text, but instead table we use text frame)

    Hi,
    Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
    Cheers,
    Phil

  • Select Object Tool Adobe Pro 9.0

    Can someone please help me. My "Select Object Tool" under Tools, Advance Editing is greyed out. Does any one know how to activate it?
    Thank you in advance
    [email protected]

    Are there any security settings on the document?

  • Create a new object that surrounds the selected objects

    Is there anyway in illustrator to create a new vector object from selected objects?
    IE if i have three rectangles selected, can I make a new vector path that surrounds them all.
    I dont mean welding a group of vectors together or offsetting a path...which isnt exactly what i need.
    What Im needing to do is create cut lines around complex vector art quickly.
    Thanks in advance.

    Mike i need to make an outline around a logo but if the logo has many elements that make up the edge of the logo does that method work?
    As the cut line needs to be a closed path
    Ideally i want to avoid tracing around the logo with the pen tool or add to shape area in pathfinder tab.
    I sure theres a really easy way to do this.
    Kurt its an interesting discussion however in need a closed path to surrond artwork and live paint does just the opposite :)

Maybe you are looking for

  • How to charge your Palm Centro via 64-bit Windows, with a USB cable

    Here is a way to recharge your Palm Centro on your 64-bit Windows computer, through a USB cable.  But first, a few brief explanatory notes... Note 1:  I have successfully used this method to charge my Palm Centro from my 64-bit Windows 7 computer.  T

  • How do I find out if a class file has deprecated functions

    Currently I'm having problems with a old Visual Cafe class. It is definately using deprecated awt funcions. My question is.. 1) Without the source code how do I find out what deprecated functions the CLASS file is using. 2) Has any deprecated class b

  • Removing music from itunes without affecting music on ipod

    How can you delete music from the itunes library as well as the itunes folder, but not have these same songs deleted from the ipod that syncs with the computer?

  • Itunes needs quick time? Instillation help please!

    My computer crashed and I took it to a friend a few days ago to get it cleaned off. He cleaned everything off and gave it back to me running like a brand new comp. So I was in the middle of downloading all of my things and I was downloading itunes ag

  • Formatting a Drive in a Quick Silver G4 733

    Hello Hello I just picked up a Quick Silver G4 733 from Ebay, and it was supposed to have had it's hard drive erased. Well, when I tried to boot it up, it tried to boot into OS 9.2, but apparently gets stuck in the process. My guess is that the moron