Can a Layer be Selected Using document.select()?

For CS5, Windows 7, ActionScript:
Hi all,
I very innocently assumed that I could use myDocument.select(myLayer) to select a Layer. However this explodes at runtime with a parameter exception saying that the function select() expected to recieve either an object or an array of objects, but instead recieved a Layer. Is a Layer not an object? Is this a known limitation?
TIA,
mlavie

select() only works on actual objects that you can select in the UI as well. A layer is *not* an object you can select that way -- you can't "select a layer and delete, copy, move, etc." as you *can* with objects that are your page.
Think of it like the menus; surely you can "select" a menu item with the mouse? Layers are like pages, swatches, and paragraph styles. There is a correct way, though, to make the layer you want selected: activeLayer (see "Element of" in the Layer ref.: http://jongware.mit.edu/idcsjs5.5/pc_Layer.html).

Similar Messages

  • Can I do an Insert using two selects from different tables?

    Hi,
    I have three tables, Course (CID, NAME, TIME)
    Teacher (TID, NAME, DESCRIPTION) and OfferedBy(CID, TID) to match a course to a teacher.
    After I do an insert on Course, I want to be able to do an insert on OfferedBy using the CID of the course I inserted, and the TID of the teacher that's offering it.
    I tried this after doing inserts on Course and Teacher:
    INSERT INTO OfferedBy values (SELECT CID FROM Course where courseName = 'name' , SELECT TID FROM Teacher WHERE LastName = 'teacherName').
    I get an ORA 00907 error.
    What am I doing wrong? Can this actually be done?
    Thank you
    I

    Hi,
    How would you relate the TID with CID?
    I tried this after doing inserts on Course and Teacher:
    INSERT INTO OfferedBy values (SELECT CID FROM Course where courseName >= 'name' , SELECT TID FROM Teacher WHERE LastName = 'teacherName').
    I get an ORA 00907 error.You can use the query in this way:
    SQL> SELECT ( ( SELECT dummy FROM DUAL), (SELECT DUMMY FROM DUAL)) FROM DUAL;
    SELECT ( ( SELECT dummy FROM DUAL), (SELECT DUMMY FROM DUAL)) FROM DUAL
    ERROR at line 1:
    ORA-00907: missing right parenthesis
    SQL> SELECT 'AA',(SELECT dummy FROM DUAL) FROM DUAL;
    'A (
    AA X
    SQL>Regards

  • Can a check-box be used to select more than one value

    Hi, I have a form with a check-box that only allows one selection at a time. I have a requirement now to allow the user to select multiple selections. How can I accomplish this with a checkbox? Please help.

    Then i didn't get your actual form-design.
    Well there are 14 items displayed for each 14 denial reasonSo you have 14 items where each is for one denial reason, or 14 items where each has 4 denial reasons (14x14)?
    They are all 'grouped' as one check_box item in the blockWhat does that mean. For the 14 items there is one checkbox? And what is the meaning if you check it?, and what if you uncheck it?
    so I don't quite know how to be able to check 2 or more reason per recordAs far as i understand you, you would have to have 14 checkboxes, one for each reason, which can be individually checked/unchecked.

  • How can I always have  "enable all documents" selected when opening files in Indesign CS6?

    Every time I open a file in CS6, I still have to select "open all documents" to see my files that have already been converted to CS6. Before, once a file was converted to the newer version of indesign, you would see it in the menu automatically when open "readable documents" was selected. Now when I go to find a file that I've already converted to CS6, it still makes me select "open all documents" because it doesn't show up as a "readable document"
    hope this makes sense.
    i'm running osx 10.6.8, mac pro

    if it has a .indd, .indt, .inx or .idml extension ist should show up as readable, regardless of the version. If it's not you have a bigger problem.
    Start by trashing your prefs. See Replace Your Preferences

  • Can't burst by email using Document Processor API

    I am using the API's to burst a file. I can burst to teh printer and filesystem - no problem. But when I attempt to burst via email I get this error:
    [EXCEPTION] oracle.apps.xdo.delivery.DeliveryException: Document file
    [EXCEPTION] Error!! Could not deliver the output for Delivery channel:null . Please check the Log for err
    My mail server is up and running as I can telnet to it. I also can use the front end application to email reports. Oracle support has validated that my syntax is correct. I have included the mail jar files in my classpath even though there is no documentation saying I need to do include jar files besides the bi pub ones.
    Here's the bursting control file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/CPMAILSEQ1/LIST_ROW">
    <xapi:delivery>
    <xapi:email id="123" server="myserver" port="25" from="[email protected]" reply-to ="[email protected]">
    <xapi:message id="123" to="[email protected]" cc="[email protected]"
    attachment="true" subject="CP Mail Report"> Please review the attached document</xapi:message>
    </xapi:email>
    <xapi:filesystem output="/myfiles/output.pdf" />
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="123">
    <xapi:template type="rtf"
    location="/u01/app/oas/product/10.1.4b/OracleBI/xmlp/XMLP/Reports/Financials/CertifiedPayroll/Mail_Seq_1/Seq_1_Temp
    late.rtf" />
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    here's the java:
    DocumentProcessor dp = new DocumentProcessor ("Bursting.xml","/myfiles/mailData.xml","/myfiles/
    outdata");
    dp.process();

    [081110_082842034][oracle.apps.xdo.template.FOProcessor][STATEMENT] Calling FOProcessingEngine.process()
    [081110_082842041][][STATEMENT] Using optimized xslt
    [081110_082842071][][STATEMENT] Temporary file created: /var/tmp/xdoicgRL0O6111480.tmp
    [081110_082842087][][STATEMENT] [ RTF GENERATOR ]---------------------------------------------
    [081110_082842093][][STATEMENT] XDO version = Oracle BI Publisher 10.1.3.4.1
    [081110_082842099][][STATEMENT] java.home = /u01/app/oas/product/java1.5/jre
    [081110_082842105][][STATEMENT] XDO_TOP = null
    [081110_082842112][][STATEMENT] Config Path = null
    [081110_082842118][][STATEMENT] Debug Cfg Path= /u01/app/oas/product/java1.5/jre/lib/xdodebug.cfg
    [081110_082842124][][STATEMENT] Font dir = /u01/app/oas/product/java1.5/jre/lib/fonts/
    [081110_082842130][][STATEMENT] Locale = en
    [081110_082842137][][STATEMENT] [ RTF GENERATOR PROPERTIES ]----------------------------------
    [081110_082842143][][STATEMENT] fo-image-handling-ver=5.5
    [081110_082842149][][STATEMENT] rtf-output-default-font=null(not set)
    [081110_082842155][][STATEMENT] rtf-protect-document-for-tracked-changes=false
    [081110_082842161][][STATEMENT] rtf-track-changes=false
    [081110_082842167][][STATEMENT] system-temp-dir=/var/tmp/
    [081110_082842174][][STATEMENT] ------------------------------------------------------
    [081110_082842506][][STATEMENT] Rendering page [1]
    [081110_082842531][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
    [081110_082843577][][STATEMENT] Phase2 time used: 1096ms
    [081110_082843585][][STATEMENT] Total time used: 1537ms for processing XSL-FO
    [081110_082843711][][STATEMENT] FO+Gen time used: 1671 msecs
    [081110_082843719][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) is called.
    [081110_082843734][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) done. All inputs are cleared.
    [081110_082843740][oracle.apps.xdo.template.FOProcessor][STATEMENT] End Memory: max=910MB, total=735MB, free=661MB
    [081110_082843774][][STATEMENT] initConfig(): config file used :null
    [081110_082843780][][STATEMENT] initCustomFactories(): loading custom delivery channels :{}
    [081110_082843787][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] initConfig(): loading default properties :{}
    [081110_082843793][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): called with request type :smtp_email
    [081110_082843852][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): exiting
    [081110_082843876][oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequest][STATEMENT] submit(): Called
    [081110_082843884][oracle.apps.xdo.batch.DeliveryHelper][EXCEPTION] oracle.apps.xdo.delivery.DeliveryException: Document file or input stream is not set.
    at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
    at oracle.apps.xdo.batch.DeliveryHelper.submitRequests(Unknown Source)
    at oracle.apps.xdo.batch.bursting.DocumentDelivery.submitCoreDeliveryRequests(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:263)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:210)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:263)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(Unknown Source)
    at oracle.apps.xdo.batch.DocumentProcessor.process(Unknown Source)
    at MailProcess.BurstEmail(MailProcess.java:40)
    at MailProcess.main(MailProcess.java:58)
    [081110_082843890][][EXCEPTION] Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..

  • I want to move a selection (a person) into an image of a brick wall and have it look like the person was painted on the wall. Can it be done? Using CC on iMac. Thanks

    I want to move a selection (a person) into an image of a brick wall and have it look like the person was painted on the wall. Can it be done? Using CC on iMac. Thanks

    Yes of course its Photoshop. Cut the person out copy to clipboard paste onto toe brick wall document  and texture the layer using a displacement map for the brick wall. Look for Photoshop tutorials on using a displacement map.

  • Is it possible to edit (levels, curves, exposure, saturation, etc.) a selected area of a photo (using quick selection, magnetic lasso, etc.) without moving the selected section to another document and editing it there?

    I'm trying to edit a portion of a photo of a lake so that the rays of sunlight (the lines that run across the sky) are more prominent, without darkening the rest of the photo. I've sucessfully selected, removed, and edited the sky in the photo (the part that I want to enhance the sun rays on), but I can't figure out how to get that piece (currently it's own document) back onto the original jpeg document. I took the selection from the Background copy if that is of any help to figuring this out.

    Another way in photoshop is to make a Group above the photo. add a layer mask using the selection and put the adjustment layers in the group
    There is also a forum for the full version of photoshop:
    Photoshop General Discussion

  • My Photoshop CS 5 has some strange actions when I copy a portion of a photo using the clone stamp  to transfer to another part of the image. It carries the entire layer (not just the stamps selection) across the screen and I cannot place it where I need t

    My Photoshop CS 5 has some strange actions when I copy a portion of a photo using the clone stamp  to transfer to another part of the image. It carries the entire layer (not just the stamps selection) across the screen and I cannot place it where I need to. It appears as if I selected the entire layer on purpose (which I did not)
    The below items appeared when I opened Photoshop CS 5:
    “Photoshop has encountered a problem with the display driver and has temporarily disabled G & U enhancements. Check the video card malfunctions website for latest software. GPU enhancements can be enabled in the performance panel of preferences.”
    (I believe this started after the automatically updated Windows was applied. It was coincident with the before mentioned problem . . . but I don’t really know if it had anything to do with it. )

    For the Clone Stamp problem, check the Clone Source panel and Clipped is probably unchecked.
    If so, check Clipped and see if that makes a difference.
    (Window>Clone Source)
    As to the video card problem:
    Which version of windows are you using?
    What is the make and model of your graphics card?
    Do you know which update windows installed?

  • How can a classic report be filtered using one select item and dynamic action?

    APEX 4.2.1
    DB 11g
    I have a page with 4 reports on it.  The top report is an interactive report and the following 3 are classic reports.  The users would like to be able to use a select list to filter the 3rd report by PO line number without refreshing the entire page.
    After verifying that the report is set to allow partial refreshes, I took the following steps
    1.  Created a PO Line select item (p_po_line_select) in the same report region
    2.  Added p_po_line_select to the report query
    3.  Created a dynamic action on p_po_line_select with 2 true actions
         1.  Set value (p_po_line_select)
         2.  Refresh report region.
    The Set Value dynamic step was not working; I would get an out of memory error at line 2, memory stack error, or the value did not get saved to session state depending on the settings I selected.  I was able to get it working with the following set:
    1.  Action = Set Value
    2.  Set type = PL/SQL Expression
    3.  PL/SQL Expression = :p_field_does_not_exist
    4.   Page items to submit = blank
    5.  Selection Type = Item(s)
    6.  Item(s) = p_field_does_not_exist
    p_field_does_not_exist does not exist as a page or application item which leads me to believe that this is a bug and I am just lucky that it worked.  I would rather know how to do this properly.  Can someone please provide a link to a working example of how this should be done or state which settings are wrong?
    I was able to reproduce the issue in the following app
    http://apex.oracle.com/pls/apex/f?p=4500:1000
    workspace = occam
    user  test/apex1
    Thanks,

    STOP POSTING DUPLICATE THREADS.
    If you have additional information, continue the discussion by posting it as a follow-up on the original thread: What is the proper way to filter classic report using just an LOV select field with dynamic action?

  • After upgrading the new operating system, it seems some useful features no longer work such as when typing a message the text anticipates the next word and when trying to delete individual messages from a contact, you can no longer tap and hold to select

    After upgrading the new operating system on my Droid Razr M it seems some useful features no longer work such as when typing a message the text anticipates the next word and when trying to delete individual messages from a contact, you can no longer tap and hold to select multiple message you have to delete them individually or the entire thread. Is there a way to get these back?

    Well, that's kind of embarrassing. And I honestly thought I paid attention to that... It works perfectly now, thank you so much!
    As expected, cdm-git also works fine since DMs only work in the root mode as of now.
    Just for the record, both type commands output "/usr/bin/startx" and pacman -Q gives "systemd 215-4".
    Last edited by looki (2014-08-23 13:04:49)

  • Can I use a select and update statement in a single jsp file?

    I want to update the BUY table everytime I would add a SELL transaction.....I want to minus the stocks that I sold to those that Ive bought before.....
    note: I used a seperate table in BUY and SELL transaction
    After I Have added a transaction, I want to update the buy table. This is my problem, can I used both SELECT and UPDATE statement at the same time in a single jsp file for example like this:
    select * from test, test1;
    update test
    set total_shares=total_shares-Stotal;
    where stock_code=Scode AND name_broker=Sbroker;
    Can i have both of these statements in the same jsp file in oder to update the buy table?
    Or can anyone suggest how can process that update?THANKS!
    --------------------

    Can i have both of these statements in the same jsp file in oder to update the buy table?Yes. But wouldn't it have been easier just to try it?

  • The scaling selection using SHIFT doesn't seem to be working for me all of a sudden.......how can I resolve ?

    The scaling selection using SHIFT doesn't seem to be working for me all of a sudden.......how can I resolve ?
    Specifically, when I select and object I used to be able to hold SHIFT while re-sizing the object and keeping it in scale.
    All of a sudden, I don't have that option as my SHIFT key doesn't seem to activate within AI
    B.Marks

    B,
    You may have something disturbing Illy so she gets confused, see Item 7 in 5) below for usual suspects, or you may have what appears to be a preference corruption, see 1) - 4) and 6) below.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to 3 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • [BUG]PS CC Layer Group add vector mask and disable it,use path selection tool click,always crash!!!

    [Bug] Photoshop CC,Layer Group add vector mask and disable it, use path selection tool click canvas, always crash!!!  Please help me!
    The sample psd file(158KB):
    http://doc.aoyea.com/ps_cc_bug.psd
    My Computer configuration:
    SONY VAIO CA100 Notebook、Intel Core I5 2410 CPU、16GB RAM、AMD Radeon 6600M(1G RAM)、Windows7 x64 SP1(clean)、Scratch disk free space is 100GB
    email: [email protected]

    Hi,
    As far as i know that's a bug that will hopefully be fixed in the next update to photoshop cc.

  • I am using iphoto 6.0.6 and after opening the application it drops below the dock.  I can see it when I use expose to reveal all open windows but once selected it drops below the dock.

    I am using iphoto 6.0.6 and after opening the application it drops below the dock.  I can see it when I use expose to reveal all open windows but once selected it drops below the dock.

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • Can subreports use same selection parameter(s) as main report?

    Hi,
    Is it possible to create subreports that use the selection selection parameter(s) as the main report.
    And if so, would the user need to make their selections twice, or just once when they open the report?
    Thanks, Jon

    Hi
    Yes you can use the same parameter for both your subreport and the main report with running the parameter just once,.
    Create a parameter in your main report and link the same field(for which you have created the parameter) of subreport with this parameter.
    Now when you refrresh the report, you would input the values and the subreport would also return records based on those values.
    Note that this is simple when you are using same datasource and tables for both subreport and main report. Otherwise you need to have same structures for tables and data type as well for subreport and the main report.
    Hope this helps!!
    Regards
    Sourashree

Maybe you are looking for