How do I put rectangles in a group (JavaScript)?

Hello,
I have a JavaScript script that draws several graphics rectangles on a page. I would like to put them in a group, the same as I would manually with a selection and ctrl-G.
I have tried many, many approaches but am unable to do it. I would be grateful if someone could either post a code fragment or sketch an outline of what I should do.
Thanks much,
Bill

You can also use an array. For example, say you had a mix of items that met various criteria, you could do something like this:
myPage = app.documents[0].pages[0];
groupies = new Array();
myPIs = myPage.pageItems;
for (var j = myPIs.length - 1; j >= 0; j--) {
  if (myPIs[j].label == "GroupMe") {
    groupies.push(myPIs[j]);
myGroup = myPage.groups.add(groupies);
I've just used one criterion here, but you could have as many tests as you want within the loop.
Dave

Similar Messages

  • How can I put a contact in two different groups?

    How can I put a contact in two different groups.  I downloaded Glite and have developed many groups, but I have some contacts that I would like to include in two different groups.  Any solutions?

    If I want to copy a contactl to another address-book I simly hold down the ctrl-key when I drag and drop

  • How do I put a group of tracks into one album

    How do I put a group of songs into one album?  They copied separately into iTunes.

    Generally, in iTunes, all you need to do is fill in an appropriate Album Artist to keep things together. For older iPods each track from the same album should have the same artist, or be marked as a compilation where appropriate. On iOS devices you may need to go to Settings > Music > Group By Album Artist > On. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • HT2486 How can you put same contact in a Group multiple times so that you can print the same mailing label multiple times?

    How can you put same contact in a Group multiple times so that you can print the same mailing label multiple times?

    Hello,
    Avery...
    https://discussions.apple.com/thread/2588943?start=0&tstart=0
    Or...
    http://www.belightsoft.com/products/labelsaddresses/overview.php

  • I see an "archive" group listed in the ibook catagories section.  How do i put the books that I've read into that catagory?

    I see an "archive" group listed in the ibook catagories section.  How do i put the books that I've read into that catagory?

    Are you sure that you are not talking about the Kindle App? I might be missing it, but I don't see an Archive section in iBooks categories.
    You can create a section for the books that you have read in collections in the iBooks app.
    Tap on Collections, tap New - name it Archived if that is what you want to call it. Tap Done, then tap the bookshelf anywhere. Tap the Edit button, tap the books that you want to move to Archved - tap Move in the upper left and select Archived.

  • How do I put myself in the staff group?

    I have been trying to optimize my iMac 24 ever since I upgraded to OS X Lion.  Tons of SBBOD and general slowness.  I went through all the basics and things are much better.  This included booting in to the recovery partition and resetting my home folders permissions back to the defaults for Lion.  I did this because I noticed that the permissions on my stuff in my home folder still had me in the group that was identified by my username - a throw back to a prior version of OS X.
    After running the procedure, here is what my home directory looks like:
    iMac24:~ hstan$ ls -l
    total 2032
    -rw-r--r--@  1 hstan  staff  518912 Sep 23 15:26 Apache Documents
    drwx------+ 13 hstan  staff     442 Dec 20 08:11 Desktop
    drwx------+ 62 hstan  staff    2108 Dec 16 15:14 Documents
    drwx------+  5 hstan  staff     170 Dec 20 08:09 Downloads
    drwx------@ 73 hstan  staff    2482 Dec 21 10:22 Library
    drwx------+ 19 hstan  staff     646 Nov 28 21:25 Movies
    drwx------+  7 hstan  staff     238 Mar 26  2006 Music
    drwxrwxrwx   6 hstan  staff     204 May 27  2008 News.framework
    drwx------+  8 hstan  staff     272 Oct 15 14:48 Pictures
    drwxr-xr-x+  6 hstan  staff     204 Sep 24  2010 Public
    drwxr-xr-x   8 hstan  staff     272 Nov  6  2010 Sites
    iMac24:~ hstan$
    I did successfully reset all the permissions in my home folder to what Lion expects as above.  Popping a terminal, I ran the 'id' command and this what I see:
    iMac24:~ hstan$ id
    uid=502(hstan) gid=502(hstan) groups=502(hstan),401(com.apple.access_screensharing),12(everyone),33(_appstore ),61(localaccounts),80(admin),98(_lpadmin),
    100(_lpoperator),204(_developer)
    How do I put myself back in to the staff group?  I know that I have to do it via the shell - just don't know to do it.  Also, once I do manage to put myself back in to the staff group should I delete the gid 502(hstan)?
    I do admit that things did indeed smooth out after I reset my home folder to the default permissions.  Just stuck on this last bit of cleanup work.
    Thanks!

    Realize this thread has been dead for a while, but I was running into permission problems on 10.8.0 and managed to find this fix. I can't remember when I last did a clean install, but it was before the transition to staff as the primary group, so the account is pretty old.
    I used Directory Utility to change the primary group on my account (twillis) from twillis to staff as described. I then rebooted into the recovery partition and ran resetpassword to repair the home directory permissions and also rain repair permissions from Disk Utility. Finally, I used chgrp to manually change groups on some things like apps and frameworks that were in twillis (this looked like the right group to use based on context). Process went smoothly and worked as expected with one glitch.
    I have now found a few situations where files are still created or changed to the twillis group. According to id I am no longer in that group (as I would expect):
    [twillis@elle] ~ 39 # id
    uid=501(twillis) gid=20(staff) groups=20(staff), 401(com.apple.access_screensharing), 12(everyone),
    33(_appstore),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),9 8(_lpadmin),
    100(_lpoperator),204(_developer)
    As an example, unzipping a zip file with the Finder creates files in the group twillis even if the zip file and its contents were in staff. Another example involves AlbumData.xml in the iPhoto Library package: I can chgrp it to staff, open Aperture, edit a picture, and quit and AlbumData.xml will be back in twillis on exit (doing a simlar set of steps with iPhoto though does not change it).
    Should I have removed the twillis group with Directory Utility too (using the "-" button right under the left column of the window) --- twillis is showing up listed in Users&Groups too in a "groups" section after the accounts, so perhaps I can delete it from there too? Or is there some other state that is still associating the twillis group with the twillis account that I also need to change?
    Thanks,
    tw

  • How do i put multiple albums into one huge album collection?

    How do i put multiple albums into one huge album collection?
    Some examples include: Linkin Park - Studio Collection, Michael Jackson - The Indisposable Collection

    Hi skullkrunch3r,
    Thanks for visiting Apple Support Communities.
    If you "Get Info" on the tracks that are part of your collection, you can use the Compilation option in iTunes.
    In iTunes 8 and later, you find the option to mark multiple items as "Part of a compilation" in the Options tab of the Multiple Item Information window.
    See this article for more information on marking your albums as part of a compilation:
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Best Regards,
    Jeremy

  • How to move Tablespace from One disk group to another disk group in RAC

    Hi All,
    I have 11gR2 RAC env on Linux.
    As ofnow I have problem with disk group. I have 3 disk group which is almost full - 98%. I have added one NEW disk group and want to move some of the Tablespace(TBS) from OLD disk group to NEW diskgroup and make some free space in OLD disk group.
    Can any one suggest me how to move TBS from one disk group to another disk grup without shutting down the instance.
    DB is in Noarchive mode.
    Thanks...

    user12039625 wrote:
    Hi Helios,
    Thanks for doc id but I am looking for noarchive mode solution. becaues I got ORA-
    "ORA-01145: offline immediate disallowed unless media recovery enabled " when run alter database datafile '...' offline.
    Hence I am trying something and findout below steps but not sure how useful it is:
    1- put tablespace offine
    2- Copy the file to new diskgroup using Either RMAN or DBMS_FILE_TRANSFER.
    3- Rename the file to point to new location.
    4- Recover the file.
    5- Bring the file online.
    I had move 240M TBS from OLE to NEW.
    These steps run successfully so I think this is valid for noarchive mode.Hence want to confirm..so inform me please.
    Thanks :)I have doubt in my mind:
    1. You database is in noarchivelog mode
    2. You're taking tablespace offline
    3. Suppose you're moving a file of size 10GB(or any larger filesize) to another disk group
    4. Now after moving the file, you're trying to bring the tablespace online............NOW
    tablespace will need recovery. if the required data is inside the SGA then it is ok. But if the data has been flushed, then?
    if step 2 and 3 has taken significant time, then most probably you'll not be able to bring that tablespace online.
    Regards,
    S.K.

  • How to create a new user and group on command line?

    Hi,
    I am trying to install INN, the news server on OS X.4.8 (non-server), but it requires me to create a user and group, both called 'news'.
    I know this has something to do with using Netinfo to create them, but I am logged in remotely via ssh and I can't use Netinfo Manager.
    How do I create new users and groups via the command line.
    Thanks for any help.
    PowerMac G5 2x2.7GHz   Mac OS X (10.4.8)  

    I've put some shell scripts that do this here,
    and descriptions
    add_user
    addgroup

  • How to add a button to the grouped data in an AdvancedDataGrid?

    Hi,
    Can anyone please suggest how to add a button to the grouped data in the AdvancedDataGrid?
    I have tried extending the AdvancedDataGridGroupItemRenderer and using it as the groupItemRenderer but its not reflecting.
    For the leaf node the itemRenderer property works just fine.
    Please help!

    HI ,
    I want to add a push button on the ALV list out put which is comming as a pop up and I want this using classes and methods.
    I have got a method IF_SREL_BROWSER_COMMANDS~ADD_BUTTONS from class cl_gos_attachment_list  but still I am unable to get any additional button on the output ALV popup.
    Please help.
    Regards,
    Kavya.

  • How do i put duplicate albums together

    i have 1 album but all the songs are not together how do i put them as 1?

    Generally setting a common Album title and Album Artist will fix things.
    For deeper problems see Grouping tracks into albums.
    tt2

  • How can i put mandatory fields in my selection screen

    I am having Sales Office,Sold to Party,Sales document Number,Sales Group,Date of Creation,Name Of The Person Who Creat and Short Text For Sales Order in my selection scrren.How can i put sales office and sold to party fields manadatoty input fields at selection sceen.

    hi,
    Use obligatory keyword while you are declaring the fields of selection screen.
    Example for the same is :
    Obligatory
    e.g Parameters p_id like vbak-vbeln obligatory
          Select-options s_vbeln for vbak-vbeln obligatory
    I hope this will solve your problem.
    Thanx.

  • How can I put "Favorites"portlets for various users in a page?

    How can i put in a page two "Favorites" portlets (one for each user that log on into the page and one for each group of users that logon into the page),so each
    user can customize (add favorites,delete favorites,..) it's own "Favorites" portlet and the other "Favorites" portlet is only customizable by a
    group of user,so if the user log on is not in that group can't customize the portlet.

    The favorites portlet is set up to work this way automatically. You put one version on a page, and the customizations are stored for each individual user. So the same portlet displays different favorites based on the logged in user. At this point, there is no way to define favorites for a group.

  • HT201317 I accidentally deleated a photo from my photostream, how do I put it back again

    I accidentally deleated a photo from my photostream, how do I put it back

    Deleting a photo in the photo stream group deletes it from the photo stream servers. The photo should still be in the camera roll.  If there, sync it to a computer using itunes, then put it back in the stream from the computer.

  • How do get rid of a tab group without closing the tabs? How do I take tabs out of a group?

    I accidentally put all my tabs in one group. I'd like to get rid of the group without closing all the tabs in it; in other words, to undo putting all the tabs in one group. It would be useful to know how to remove a tab from a group without closing the tab, accidentally putting a tab in the wrong group will probably be a common error that needs to be easily undone.

    '' SisqB;''
    ''I searched about:config and found a listing of "stuff" under the S3 Downloads ''
    Can you take a snapshot of what you see?
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

Maybe you are looking for

  • Ipod mini battery issue

    My ipod mini's battery life is over and I was looking into the apple support options and battery replacement. However, I was wondering if you get a battery replacement if all data on the ipod will be deleted or if apple will just give me a new ipod m

  • How to add payment details to a loan contract?

    Can anyone tell me how add payment details to a loan contract? I´ve searched all the customizing in sap banking but I couldn´t find anything related to this. I was able to create a loan contract in TCode FN1V but the payment details area is missing.

  • Trouble started with the .15 version of Firefox. Several newspaper web sites get locked up.

    I noticed the trouble back in the ver .15 of Firefox or whatever came out before .16 version. I thought it might be bad OS so I removed Firefox and did a repair install of Windows XP sp3. Came up clean and I installed Forefox but still the same troub

  • Ios software problems

    why does it make me backup my stuff when i want to update new software, but it takes atleast an hour for it to do the tiniest bit, please help?

  • My icloud email account needs help...

    my icloud email account for past 5 days keeps returning "sent emails" that i have NOT sent . I have over 2000. How do I stop this and fix this problem?