How complete is the javascript API?

Hi,
I am trying to serealize a AI document using the javascript API. Based on the "AI CC SCRIPTING REFERENCE" I assumed this could be done by simple traversing the dom and saving the type and properties of each object. It seems however that the API isn't complete. For example, I can't figure out how to read the transformation matrix of a symbolItem. (i.e. when creating a new symbolItem from a symbol and then resizing/rotating/repositioning it, how can I find these new properties?)
This is just one thing I ran into, that might be fixed using the C SDK. I am wondering however if this is worth the effort or more like filling a bucket full of holes? How complete is the javascript API?
Thanks,
Tom

the DOM in Illustrator is very limited, half the features are not exposed to scripting, SymbolItem Matrix is one of them.

Similar Messages

  • Getting error when updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1

    Hi,
    I`m getting error message like "None of the apps in your project can be activated in the target. The manifest file of one or more apps contain API sets or Office applications that are not supported by
    the target Office client. To debug those apps, update manifest files to exclude any unsupported API sets or Office applications, and then start the project again. Alternatively, you can debug your apps by using Office 365 as a target." when when
    updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1 in manifest file though i have added host elements.
    any help in this regard is highly appreciated
    Thanks,
    Santosh Sutar  

    Hi Satosh Sutar,
    Based on the description, you got the error message when you update the apps from version 1.0 to 1.1.
    From the error message, it seems the menifest include some settings no allowed in the new version. Would you mind sharing more detail about how you update the project?
    And here is an article about updating apps for Office and menifest schema files in the project for your reference:
    How to: Update the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1
    Regards & Fei
    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.

  • Some more typos in the Javascript API documentation

    Very minor, niggly things, but even so, they are there.
    In the Javascript APIs, the function definition refers to the parameter pNd, but then in the Parameters subheading, it is referred to as pId (inconsistent).
    The two that come to my immediate attention are: $v_Array and $f_ReturnChecked.
    $v_Array( pNd )
    Returns an item value as an array. Useful for multiselects and checkboxes.
    Return Value
    (Array)
    Parameters
    pId (DOM Node | string ID)
    $f_ReturnChecked( pNd )
    Returns an item value as an array. Useful for radio items and check boxes.
    Return Value
    (Array)
    Parameters
    pId (DOM node | string ID)Upon further searching the others that come up are:
    $x_SwitchImageSrc(pNd, pSearch, pReplace) - the function description refers to pId.
    $dom_AddInput(pThis,pType,pId,pName,pValue) - the function description place all paremeters in parenthesis, except for the last one in the sentence, pValue.
    Ta,
    Trent

    I've just come accross this $nvl function in the javascript API. see: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#CHDGAIJJ
    The description reads:
    *$nvl(pTest, pDefault)*If pTest is empty or false return pDefault otherwise return pTest.>
    So this sugguests to me, that if the value of pTest is either empty or null or false, return the value of pDefault. However, when you pass in an empty string (or a false variable), it just returns that value.
    And if you look at the function specification in apex_4_0.js
    function $nvl(b,a){
         return(b != null) ? b : ((!!a) ? a:"")
    }Obviously, passing in an empty string as pTest (or a false variable), will just return you that empty string (or false), as it isn't null.
    In a javascript console:
    *Test 1: False variable*var t = false;
    undefined
    t
    false
    $nvl(t, '0');
    false
    Test 2: Empty variable
    var s = ''
    undefined
    s
    $nvl(s, '0');
    Test 3: null variable
    var r = null
    undefined
    r
    null
    $nvl(r, '0');
    "0">
    Ta,
    Trent

  • HOW TO TRACE THE PLSQL API BEING CALLED WHEN WE USE FORM

    Dear ALL,
    How I can track the PLSQL API name when we press any button in form.
    For example when I click on Bill By Requirement button on EAM Work Order Billing FORM , how will I know which PLSQL API is being called.
    Please give me an idea about how to identify the PLSQL API being called.
    Thanks and Regards,
    Lavan

    Please refer to (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]).
    Thanks,
    Hussein

  • How to filter the Rest Api data based on Taxanomy columns

    Hi Everyone,
    We are using SharePoint2010 Standard Edition.
    I wanted get the library details through REST Api. I am using as below:
    https://SiteUrl/_vti_bin/listdata.svc/Documents?$filter=Title eq 'SharePointDoc'
    Here I am able to get the info regarding "SharePointDoc". But when I am trying to get the details from Taxonomy filter, it didn't.
    Can anyone please tell me how can we filter based on Taxanomy fields.
    Thanks in Advance
    Krishnasandeep

    Hi,
    I understand that you wanted to filter the Rest Api data based on Taxanomy columns.
    Per my knowledge, in SharePoint 2010 , not all types of column are available via REST, most annoyingly managed metadata columns are amongst this group of unsupported column types.
    However, in SharePoint 2013, we can filter list items based on taxonomy (managed metadata) columns.
    Taxonomy fields can be now called via REST API using CAML query in REST calls.
    Here is a great blog for your reference:
    http://www.cleverworkarounds.com/2013/09/23/how-to-filter-on-a-managed-metadata-column-via-rest-in-sharepoint-2013/comment-page-1/
    You’d better to change the REST calls and the CAML query to check whether it works in SharePoint 2010.
    More information:
    http://platinumdogs.me/2013/03/14/sharepoint-adventures-with-the-rest-api-part-1/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to use the windows API GetCaretPos with FireFox? It works with IE

    I want to get caret position from a windows desktop application using the Windows API GetCaretPos. It works in any windows Application and in IE. It worked also in FireFox for some minutes in version 3.6.8 but than it stopped working. Can anyone tell me how to make it work?
    == This happened ==
    Every time Firefox opened

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Did this fix your problems? Please report back to us!

  • How to implement the javascript and the  insert process ?

    Hi,
    In my application I have created one region with one text box and one button.
    On click of the button , first a javascript should run to validate the textbox value , if there is an error it should alert the user ,otherwise the insert process (I have written a PL/SQL block under processes in page processing) should get executed.
    when i tried to implement this only javascript is getting executed but the insert process is not executed...
    so how I should implement the above case?
    here i invoke the javascript in the URL Target as
    javascript:myfunction();

    hey hiiii,
    i have also tha same problem as mentioned by ANOO.
    and the button on which i m applying the javascript is "Create"
    i have written doSubmit('Create'); in my javascript code ,
    but after doing this the process named "Create" which is conditioned by this button is not being called...
    so what can i do now...

  • How to find the JavaScript Script Actions?

    Where can I find the JavaScript Script Actions for being executed in the
    Correlation Engine Java VM process?
    sonfan
    sonfan's Profile: https://forums.netiq.com/member.php?userid=692
    View this thread: https://forums.netiq.com/showthread.php?t=42697

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1
    What do you mean? The action plugins are available for download from
    the regular Sentinel plug-in site:
    http://support.novell.com/products/s...elplugins.html
    The ability to access or manage plugins will depend on your product
    (Sentinel 6.1, 7.x, or Log Manager).
    What you want to do may also slightly affect how you access them so
    knowing that, and really knowing the entire story, would help.
    The SDK can also be used to build new ones, if you're interested.
    Good luck.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.19 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
    iQIcBAEBAgAGBQJQbyY5AAoJEF+XTK08PnB5KVEP/RuXqAbhsFWtt5iBVF8OHn2y
    dlhgNcYbBHvC5YCrO+AD3lOD4kBX2NMCHXmZQiyU/c8eohGzG6iJgOXwIj1MiUiF
    fBkbvSi8tvT85j7og0noAUKMyhp4cASa8EPl0C5JiSRYZGvH57 PXDRxd+J5TUdyK
    lS9nHhmLXKgOTVeUcmUoqatywF2wgHbtvJsj0Ys5Zb1ITcddRK khenb8pn9cZrx0
    GUgQip3Z/wSPJphgpluVRs74z3qJkRwmpNBZCpRouDWJUM6ca2nwUOECMSO rIAD4
    KI2zHiJKdYosLdUpkIIFQpwmOEJ/JW0pLSL9TZxeO3/yz4gSuK/YFFw9GFAWtq/D
    ddl/9+iUoelYIl43PowvPG4gG8M/JCRLjL2f1FQ0ZHTPeAEIFPSzY1+1pu0O2fcG
    mq9vJ7cV1nrw2WGh46zCWVprB8bT1IEBffm8vj/6/tSysZAEgfZH/+2hmWMxstP8
    kZL03QeIJZ2Ks0fbZ4YroqIfPEI4qQTVHcRgV4OsgsRL2N6PiL aEJOaVqLthSCPG
    srUbECkg9JidSfp2BWDYI9tzOeOTwf4NCM7Wvlu2B9eqp97uEA cU0amuJrGYWxBP
    cKVqjTD6SwlvCsEo0614Q/ohlH524l+1gi985E3RNWeWn32BFt4sNCvaau4R0VJu
    n1RTg5azY9RlS/zjVR41
    =kCL+
    -----END PGP SIGNATURE-----

  • How to use the COMM API in a JAR file

    I have developed an application, using the NetBeans IDE, to communicate with a modem over the COM1 serial port using the Java Comm API. The application works fine within the IDE, but when a JAR file is created and "double-clicked", the application launches correctly, but when the code is executed to "talk" over the COM1 serial port - nothing happens. No exceptions and no warnings are thrown. My environment is XP, SP1.
    The manifest file is as follows:
    Manifest-Version: 1.0
    Class-Path: ../j2sdk1.4.2/jre/lib/ext/TimerBean.jar ../j2sdk1.4.2/jre/
    lib/ext/AbsoluteLayout.jar ../j2sdk1.4.2/jre/lib/ext/comm.jar
    Created-By: NetBeans IDE
    Specified-By: Projects/TheApp/Files/TheApp.jarContent
    Main-Class: Main
    According to the Comm API installation instructions, the following files are copied:
    copy comm.jar \j2sdk1.4.2\jre\lib\ext
    copy wind32com.dll \j2sdk1.4.2\bin
    copy javax.comm.properties \j2sdk1.4.2\jre\lib
    I suspect it has something to do with the paths.
    Any help would be greatly appreciated. Thanks.

    Thanks for your input, but after trying what you suggested the problem still exists. I think your right to be suspicous of the javax.comm.properties file. The application, that worked in the IDE, exhibits the same behavoir as the JAR file if the javax.comm.properties file is removed from the ../jre/lib directory. In other words it compiles correctly in the IDE, but when executed, nothing happens when the code that "talks" to the serial port is run.
    I've tried moving the javax.comm.properties file into the working directory. Also, the CLASSPATH and PATH system variables were modified to include the path to javax.comm.properties.
    If you have anymore ideas, please let me know.
    Thanks.

  • How to use the UME api in order to search the LDAP?

    Hello,
    I have an application which connects to the LDAP the portal is connecting to and search users according to a certain search criteria.
    Here is the relevant piece of code:
    Hashtable env = new Hashtable();
    DirContext ctx = new InitialDirContext(env);
    SearchControls controls = new SearchControls();
    String filter = "firstName=..."
    NamingEnumeration results = ctx.search("OU=OUs", filter, controls);
    I would like to do this same search using the UME API.
    Can someone please show me the equivalent code to it using the UME API?

    Hi Roy,
    you find the Configuration File you are using in your portal via System Administration -> System Configuration -> UM Configuration -> Data Sources
    or in sapume.properties where you can find
    ##xml file that configures the persistence except roles
    ume.persistence.data_source_configuration=YOUR_DATASOURCE_CONFIG_FILE.xml
    In this xml file, there is the entry
    <principal type="user">:
    <principal type="user">
         <nameSpaces>
         <nameSpace name="com.sap.security.core.usermanagement">     
    <attributes>                               
    <attribute name="firstname" populateInitially="true"/><attribute name="displayname" populateInitially="true"/>               <attribute name="lastname" populateInitially="true"/>                    <attribute name="fax"/>                         <attribute name="email"/>                    <attribute name="title"/>               <attribute name="department"/>                    <attribute name="extensionAttribute2"/>               <attribute name="mobile"/>          <attribute name="telephone"/>                    <attribute name="streetaddress"/>               <attribute name="pobox"/>                    <attribute name="location"/>               <attribute name="telephoneShort"/>               </attributes>
         </nameSpace>
         <nameSpace name="com.sap.security.core.usermanagement.relation">
         <attributes>
         <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
         </attributes>
         </nameSpace>
        </nameSpaces>
    </principal>
    According to your company LDAP attributes, you will have to extend the above attributes, telephoneShort for example is an attribute within our company.
    The UME API does the rest.
    All you have to do, is request the right attribute (in my above example it was the last name).
    (Sorry for the format, but it is quite cumbersome to format it properly with the available editor   )
    Kind regards,
    Rebecca

  • How to use the Worklist API from Java (classpath ??)

    Hi all,
    Sorry for a novice question but I couldn't find the way to go about this (probably because it's such common knowldge...)
    I would like to try and use the Worklist API from my Java code in Eclipse, and according to the BPEL dev-guide I need to add an Import command for oracle.tip.pc.api.worklist. Where do I find these classes ?????
    I guess I need to change my CLASSPATH but I couldn't find a single word about this in the BPEL dev-guide (chapter 17), BPEL installation guide or elseware.
    thanks.

    Hi all,
    Ok now.
    To summarize - I was trying the code from BPEL developer guide, chapter 17, page 40 for using the Worklist local API's.
    Only after adding the following JAR's to the build path, was I able to compile it:
    orabpel-common.jar
    orabpel.jar
    bpm-infra.jar
    bpm-services.jar
    So, these 4 JAR's are required for using the Worklist local API's (not a clue in the dev guide itself for this requirement though...)
    Thank you very much for your help,
    assaf.

  • How to use the servlet api

    I can't compile servlet code because it doesn't recognize the http... classes.
    I downloaded the servlet api but don't know what to do with it (unziped it but no installation!)
    please help

    I can't compile servlet code because it doesn't
    recognize the http... classes.
    I downloaded the servlet api but don't know what to do
    with it (unziped it but no installation!)
    please helpI am having the same problem... i am running windows 95 (unfortunately) and have installed the jsdk1.3.
    These are my autoexec.bat entries
    SET PATH=c:\jdk1.3\bin
    SET JAVA_HOME=C:\jdk1.3
    set classpath=c:\jdk1.3\lib;c:\jdk1.3\jre\lib\ext\servlet.jar%classpath%
    I am still not able to compile a servlet program though.
    Any ideas?
    Much appreciated!!!!
    -Charlie

  • How to run the javascript in httpunit

    I need to run the javascript code in the HttpUnit.I appreciate if any body helps out in this regard.

    You can't. Don't try. Try something else... Women and children first.... Run away. Run Away !!!!
    Without pushing the point too hard we had three seriously bright sparks (and a halfwit McManager) trying to answer that exact question for the better part of a month before they just have up and ripped all the fancy (read stupid) dhtml menu's out of the product to get it to run with httpunit.
    I've never had anything to do with html-unit so I can't comment on it.
    Keith.

  • How to use the crypto api with gemalto cyberflex 32k ?

    Hello ,
    I've done many javacard programs using this method :
    _compilation with javacard kit 2.2.1
    _convertion into ".cap"  with the javacard kit 2.1.2
    All this programs work fine with this method : helloworld, read, write in the card, ....
    But when i want to use the crypto api, i can't charge the program in the card (just by adding 2 lines for generating keys):
    ----------> returns 0x80206A80 (6A80: Wrong data / Incorrect values i data.)
    I think it's because i use the 2.1.2 version , but if i use the 2.2.1 to convert , it's another error and no program work with this method.....even helloworld doesn't work...
    -----------> returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)
    I thing i must change my gpshel command , but i have read many forums but can't find the configuration for my card cyberflex 32k, some people had similar problems so they used the kit 2.1.2 combined with 2.2.1 like me, but i think they can't use the crypto api with this.........
    Any help will be apreciated,
    kind regards
    Franck
    Edited by: jojo85 on Mar 20, 2009 11:03 AM

    Hello,
    Thanks Sonnyyu,
    I deleted my gpshell 1.4.2 directory and i installed gpshell 1.4.0 instead like they said , to avoid some bugs
    i've tested the exemple CardEdgeII.ijc ,
    here's what i got:
    mode_201
    enable_trace
    establish_context
    card_connect -readerNumber 1
    select -AID a0000000030000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
    delete -AID A0000003230101
    delete -AID A00000032301
    delete -AID A00000000101
    delete -AID A000000001mode_201
    enable_trace
    establish_context
    card_connect -readerNumber 1
    select -AID a0000000030000
    Command --> 00A4040007A0000000030000
    Wrapped command --> 00A4040007A0000000030000
    Response <-- 6F188407A0000000030000A50D9F6E060011020201009F6501FF9000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
    Command --> 8050000008674672AE4B85E01800
    Wrapped command --> 8050000008674672AE4B85E01800
    Response <-- 000081410002B2C600E4010151982BB4CF843B1431E57DB6418652AE9000
    Command --> 848201001073CF9B92B3F11E10BE12D1318E9A8095
    Wrapped command --> 848201001073CF9B92B3F11E10BE12D1318E9A8095
    Response <-- 9000
    delete -AID A0000003230101
    Command --> 80E40000094F07A000000323010100
    Wrapped command --> 84E40000114F07A000000323010149D51E784E07966B00
    Response <-- 6A88
    delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
    delete -AID A00000032301
    Command --> 80E40000084F06A0000003230100
    Wrapped command --> 84E40000104F06A00000032301E3788AF4A9E32C2100
    Response <-- 6A88
    delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
    delete -AID A00000000101
    Command --> 80E40000084F06A0000000010100
    Wrapped command --> 84E40000104F06A00000000101C3CC96E6E54AF0ED00
    Response <-- 6A88
    delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
    delete -AID A000000001
    Command --> 80E40000074F05A00000000100
    Wrapped command --> 84E400000F4F05A000000001DA73D168B218692C00
    Response <-- 6A88
    delete_applet() returns 0x80206A88 (6A88: Referenced data not found.)
    install -file CardEdgeII.ijc -nvDataLimit 12000 -instParam 00 -priv 2
    install -file CardEdgeII.ijc -nvDataLimit 12000 -instParam 00 -priv 2
    Command --> 80E602001705A00000000107A00000000300000006EF04C60231000000
    Wrapped command --> 84E602001F05A00000000107A00000000300000006EF04C60231000019F52839EB52A80200
    Response <-- 009000
    Command --> 80E80000EFC48230F401000FDECAFFED010204000105A00000000102001F000F001F000A00290256006C2307000A04230000067F00060000000004010004002904000107A0000000620101010107A0000000620102010107A0000000620201000107A000000062000103000A0106A0000000010119CE06006C00800313000C040400051856FFFF1BA41A2A17FB1818183718A61971008300020001011100001E4F1EC51F771F9A1FA71FAC1FB31FBC1FCD1FF41FFD20082043204B205520662071008300030001010D0000209520B520C520D52101211C21742196221F2230226F227D22E1072307000640188C00861803880010
    Wrapped command --> 84E80000F7C48230F401000FDECAFFED010204000105A00000000102001F000F001F000A00290256006C2307000A04230000067F00060000000004010004002904000107A0000000620101010107A0000000620102010107A0000000620201000107A000000062000103000A0106A0000000010119CE06006C00800313000C040400051856FFFF1BA41A2A17FB1818183718A61971008300020001011100001E4F1EC51F771F9A1FA71FAC1FB31FBC1FCD1FF41FFD20082043204B205520662071008300030001010D0000209520B520C520D52101211C21742196221F2230226F227D22E1072307000640188C00861803880010C9DE1DD3FD6CD8CE
    Response <-- 9000
    Command --> 80E80001EF08900B7F001C7B001C03104D387B001C041075387B001C051073387B001C061063387B001C07106C387B001C081065387B001C10061030387B001C1007103038187B001C037B001C925B8C004D6108119CFF8D005318100891008087011810089100808702AD02038F00803D0610108C002037AD020324940000807B001C037B001C925B8B002A7A05361A0525321A062529071F62071F10086C08119C108D00531607610EAD021F24940000802804700CAD011F2494000080280415046708119C108D0053031A07258D002E2905198B003016056A081167008D00531605076D08119C0F8D00531A08252906160504
    Wrapped command --> 84E80001F708900B7F001C7B001C03104D387B001C041075387B001C051073387B001C061063387B001C07106C387B001C081065387B001C10061030387B001C1007103038187B001C037B001C925B8C004D6108119CFF8D005318100891008087011810089100808702AD02038F00803D0610108C002037AD020324940000807B001C037B001C925B8B002A7A05361A0525321A062529071F62071F10086C08119C108D00531607610EAD021F24940000802804700CAD011F2494000080280415046708119C108D0053031A07258D002E2905198B003016056A081167008D00531605076D08119C0F8D00531A082529061605045F95980396338536
    Response <-- 9000
    °
    °
    °
    there are again many lines and the response is always 9000
    i'll try to find a converter to convert the .cap files of my crypto application into .ijc files
    thanks,
    kind regards
    Franck
    Edited by: jojo85 on Mar 21, 2009 2:48 PM

  • How to use the RequestService API to create request in OIM 11g

    Hi Guys,
    We are trying to build a custom ADF app (Request Forms) to allow users to request access to resources. We want to use the OIM RequestService APIs (oracle.iam.request.api.RequestService).
    We can't seem to find a proper guide to use this service.
    Is there anyone who has done this or know how we can achieve this in OIM 11g?
    Thanks in advance
    Tav

    Try here
    http://java.net/projects/openptk/sources/svn/show/branches/Oracle/OIM11g/examples/java?rev=1313
    Fred

Maybe you are looking for