How can I group two annotations with JavaScript?

I create two annotations with JavaScript:
var annot1 = this.addAnnot({
                  page: 0,
                  type: "Square",
                  rect: [150, 150, 180, 180],
                  name: "OnMarketShare",
                  author: "A. C. Robat",
                  contents: "This section needs revision."});
var annot2 = this.addAnnot({
                  page: 0,
                  type: "Square",
                  rect: [200, 200, 300, 300],
                  name: "OnMarketShare",
                  author: "A. C. Robat",
                  contents: "This section needs revision."});
How can I group them with JavaScript?

Can I select them in JavaScript Code?
like:
annot1.selected = true;     //wrong JavaScript code.
annot2.selected = true;     //wrong JavaScript code.
annot3.selected = true;     //wrong JavaScript code.
annot4.selected = true;     //wrong JavaScript code.
If I can do these, I can group them easily : right-click them, and then, click "group" button.

Similar Messages

  • How can I use two displays with my Mac Mini?

    How can I connect two displays to my Mac Mini (newest generation with one thunderbold and one hdmi)?

    Have you tried connecting one to the HDMI output, and another to the Thunderbolt port (with the appropriate Mini DisplayPort-to-other connection adapter as needed)?

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

  • How can I sync two iPhones with iCloud on my mac?

    My husband and I both have an iPhone and one macbook between us. How can I get iCloud to transfer photos/info from both our iPhones to our mac withough having to change login details all the time (defeating the purpose of iCloud if I need to log onto the computer to transfer my photos)?

    Please link to an example of a page you're having problems with. It should be accessible without a login.

  • How can I have two devices with separate iTunes accounts on the same computer without sharing libraries?

    I have an iPhone 3s and my sister has an iPhone 3.  We use them only as iPods.  We each have our own iTunes account, but we have to share a computer.  How can we both syn our devices without sharing our music and app libraries?

    The most reliable way would be to set up individual user accounts in WIndows. Then each of your iTunes libraries will be completely separate.
    Regards.

  • How can I use two mics with my dual XLR to 3.5mm adapter?

    Eveything I try to google on the subject just talks about creating an agregate device with USB mics. I don't have a USB mic but I do have two mics with a dual XLR to 3.5mm adapter that I use for my camera.
    I feel like their has to be a way to use them in Garageband but it's my first time using it and I'm clueless.

    Does your computer have a line-in? Then you could try to plug the 3.5 mm adaptor into it, though the level is probably not sufficient. And that would always put both mics on the same track. If you want actual 2-channel recording, you need an audio interface with two XLR inputs.

  • How can I sync two calendars with Outlook?

    My iPhone is set to Spanish and so it uses a calendar automatically named "Calendario." All my data is on there.
    I would like to add the US holidays to my calendar.
    When I tried to do this on Outlook, it added the holidays to its own default calendar called "Calendar" (which is otherwise empty). Nothing was added to "Calendario." There was no obvious way to bypass "Calendar" in favor of "Calendario" when adding the holidays.
    So I have two calendars, one with all my data, the other with just the holidays. The two sets can merge (overlay) just fine on Outlook, but I can't figure out whether this is possible on the iPhone. It seems I can only set one default calendar on the device. It would be helpful to just be able to delete "Calendar" altogether, but Outlook doesn't let me do this.
    Is there a way to merge these two calendars so I can see them together on my iPhone, or to delete "Calendar" and just put all the holidays on "Calendario"? Thanks.

    I think (and I'll double check) only the BBLink events will sync on a wired USB sync. I'm fairly certain of that.
    You'll need to use your calendar syncing via an EAS email account (outlook.com, for instance, is free) to sync wirelessly. It works great. I use it and was a former tied to the USB sync guy as well... and I thought I was gonna die a painful death without it. I found more freedom this way.
    This explains the process. But I don't think you'll get BBM Groups to sync.
    http://supportforums.blackberry.com/t5/BlackBerry-​Z10/How-To-OTA-Sync-BB10-and-non-BES-Outlook-Overv​...
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can i put two domains with IAS

    Hi!!
    I have IAS in Win NT and i publish www.mycompany.com published with it, but now i want to publish other domain www.myproduct.com in the same machine and i dont know how because in the http.conf servername parameter i only can put one server, if i install two networks cards and with two IP's can i do this? or is impossible?
    Could anyone help me?
    Regards.

    Hi!!!
    Thnaks for your help!!
    But if with these two domains i need to publish pages generated with the pl/sql toolkit how this works?
    If i publis /pls/myapp and /pls/myapp2 where i see this in this, in two domains? can i give permissions or something to only see myapp in domain1 and app2 in domain2?
    Thanks in advance.

  • How can I read two channels with fieldpoint and labview

    I'm trying to read two or more channels with the TC 120, and I follow the examples of sopport page, but doesn't work.
    What can I do?

    For more information about reading or writing to or from multiple channels in Fieldpoint, please refer to:
    How Do I Read or Write to Multiple Channels on a Fieldpoint Module in LabVIEW?
    This should enable you to read multiple channels. The only other option available is to use one fp open.vi, multiple Create Tag.vi's and multiple FP Tag Read.vi's.

  • How can i distinguish two controls with the same name?

    I'm recording automated tests with VS 2012 Coded Ui Test for testing a web application.
    In that web application it is possible to enter data in something looking like a list.
    There is - per example - an Edit control sitting on a ColumnHeader with the name/text "Description".
    Below that header is another Edit control for data input - containing the text "Description" too and which lies on a Cell control.
    When i playback my recording, Coded UI Test looks for a control with the name "Description" and gets the one, it finds at first.
    In that case the Edit on the ColumnHeader, which causes an exception, when the Text will be setted with the data input from the recording.
    Unfortunately the controls have no ID.
    Is there a way to distinguish controls with the same name?
    Thanks in advance!

    Hi Patrick Pirzer,
    >>Is there a way to distinguish controls with the same name?
    Based on the blog "How does “Coded UI test” finds a control ??", we know that to really find a control, it would be related to the unique properties as the search properties,
    so if two controls have the same property, please use other unique property as the search property would be better.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I hide a button with javascript in Captivate 8?

    I need to run some javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.

    It is very strange, most users who have focus on JS try to do everything with it, whereas lot of simple actions can easily be done with advanced/shared actions. I will only go to JS when it is not possible with advanced/shared actions.
    You are lucky, I was just restarting to work on an advanced training for next week when your question showed up.

  • How can I print two-sided with Mountain Lion and an Epson WF-2540?

    I just purchased an Epson WF-2540 printer with two-sided printing capabilities. The manual includes easy to follow instructions on doing this with a PC. However, it doesn't seem to be present in OSX Mountain Lion (10.8.4). I have looked all over for the answer, but nothing helps with this specific problem. It seems like, before Mountain Lion, there was a simple check-box within system preferences>print and fax>options and supplies>drivers that said "duplexer." Now, that option is not present. I would love to be able to use this function on my new printer. Thanks for all of your help!

    I have the answer ...
    The Epson WF-2540 does not appear to be a two-sided printer!
    Reference this article:
    http://www.epson.com/cgi-bin/Store/jsp/Product.do?BV_UseBVCookie=yes&sku=C11CC36 201
    The following is extracted from that article:
    There is no reference anywhere in what I've shown or the rest of the article to two-sided printing.
    Compare that to my Epson Workforce 645, which is a two sided printer.  Here's what it says in the Epson writeup:
    ... and indeed my options under the Layout dropdown menu look a lot different from yours, and from there I can choose two sided (whether I've attached as AirPrint or not, by the way).

  • How can I manage two boxes with exchange mail clie...

    I have two mail boxes and I need to update it from my nokia N8.
    one is a company's business and works with exchane server, the other is hotmail.
    I need to sync with mail for exchange, but once set up the company, if I try to insert a new exchange box with the default client replies that I have already reached the maximum number of boxes exchange.
    Is there a way to synchronize them both (of course with exchange)?
    I tried to synchronize with hotmail PoP / IMAP but it is a disaster. I do not have all the folders, and then I can not sync contacts and calendar.

    Hi aningro,
    Welcome to Nokia Support Discussions!
    You can add only one Mail for Exchange mailbox on Nokia N8. This is by design and unfortunately cannot be changed. The workaround is to use IMAP, like you mentioned, and it should be possible to synchronise your folders even over IMAP.
    To synchronise subfolders perform the following steps:
    Go to Mail.
    Open your Inbox.
    Tap the Inbox on the top of the screen.
    Swipe the list and select Folders, and Folder list opens.
    Select the folder you would like to sync.
    Also, please see this thread for more information on IMAP folder synchronisation.
    Hope this helps,
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • How can I sync two Bolds with the same contacts?

    I have two bolds and are trying to sync them both with the same contact list.
    The first bold has all the contacts and I sync that phone using the BB Desktop manager setup with Outlook Express main identity.
    When I try to sync the second bold with the same setttings, outlook express and main identity, none of the contacts transfer to the new bold, why?
    What is the best way to sync two phones to the same contact list?
    Claim your missing money with foundmoney.com today Missing money

    Any solutions to this please ????
    Claim your missing money with foundmoney.com today Missing money

  • How can I plot two plots with two different Y axis,one on the left and one on the right ?(double axis)

    I have read many similar questions  on the forum but I see no best ways . I use DAQ card .LabVIEW 8.0, to measure two signals at the same time  ( ex: intensity mA (autorange),temperature:0-400oC) and I want to plot them on the same graph. I used stack plots without problems,but it doesnot satisfy me . Help me.
    Attachments:
    doulbe axis1.JPG ‏56 KB

    Ok, I did all as you told me. I got the graph that I want to create. I got two curve on the same graph but the scale is not right. Only on one Y axis the scale is correct, the other is not . ( I want to use one Y axis : 0 to 400, the other :0-10 (or autoscaleY)). The attached screen shot shows that. It is no problem when I use stack plot. Thanks.
    Attachments:
    doubleaxis.jpg ‏114 KB

Maybe you are looking for