Call Plugin-Function with parameters via JavaScript

Hi!
I have following problem: I wrote a plugin for Illustrator CS2 in C++ and now I would like to call a function of the plugin from outside of illustrator (from a JavaScript).
This can be done with the Actionsuite. But how could I then give some parameters to my function?
For example:
In the plugin, I have a function "void myFun(char * test)" and I want to call this function in JavaScript with test="Hello World" for example.
The only possible way right now seems to write parameters into a file and open that file in the plugin to "receive" them.

Hi,
Could you send your plugin coding.
Regards,
Maria

Similar Messages

  • How to call java function with parameter from javascript in adf mobile?

    how to call java function with parameter from javascript in adf mobile?

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • How to call a function with parameters in ScriptStart function

    i am trying to call ScriptStart function from SUD dialog. This is how iam calling Call ScriptStart(path & "test.vbs","abc") abc is function which is written test.vbs. It is working. But when i want to pass some parameters to the abc function of test.vbs. It is not working why. can anybody suggest where i went wrong. I am calling the same function as Call ScriptStart(path & "test.vbs","abc(" & text1.Text & ")"). It is not working why ? Is the ScriptStart function only point to functions. it does not take any parameters or waht ?

    Hi abc421,
    Another option in addition to UserCommands would be to use ScriptInclude(path). If you execute a ScriptInclude(path) command at the beginning of your VBScript, then all the functions and Subs in the VBscript located at "path" are now available to you-- including passing parameters and receiving return values from functions. If you are calling a VBscript that uses only VBScript variables, then this is the preferred method.
    If instead you are calling a VBScript that uses global DIAdem variables declared in a VAS file (their variable names all end with the "_" character), then those parameters are already available at the subroutine called with ScriptStart(path, routine).
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Call stored procedure(with parameters) via odbc

    In my application I like to use the below statement to call a stored procedure with parameter and return a result set.
    {CALL PP.getPerson('daniel')}
    but this will just return errors to my application.
    If I change the statement to:
    {CALL PP.getPerson(?')}
    and bind a parameter and its value, it will work.
    My question is, is it possible to call a stored procedure via ODBC without binding parameters in application? I mean, what will be my SQL equivalent if I don't want to do parameter binding in my application?
    Thanks in advance. I appreciate any help :-)

    hi 
    Please see the e.g bellow
    create proc proc_test(@SchoolNumber int,@SchoolName
    varchar(100),@StudentNumber int, @StudnentName
    varchar(100)output ,
    @StudentAddress varchar(100) output,
    @Studentbirthdate datetime output,
    @StudentPhoneNumber varchar(100) output,
    @GuardianName varchar(100) output)
    as
    begin
    select @StudnentName varchar=StudnentName ,
    @StudentAddress =StudentAddress,
    @Studentbirthdate =Studentbirthdate ,
    @StudentPhoneNumber =StudentPhoneNumber,
    @GuardianName =GuardianName
    from table where schoolno=@SchoolNumber
    and SchoolName=@SchoolName
    and StudentNumber=@StudentNumber
    return
    end
    http://technet.microsoft.com/en-us/library/ms187004(v=sql.105).aspx
    http://www.lynda.com/SQL-Server-tutorials/Using-input-output-parameters/104964/113058-4.html
    Please mark answered if I've answered your question and vote for it as helpful to help other user's find a solution quicker

  • Calling a function in Flash via JavaScript

    My project is in Flash CS3 ActionScript 2. I am using
    JavaScript elements in my project that are called within Flash. The
    following code placed on frame 1 of my main timeline goes to frame
    2 and displays the JavaScript element = that works. Here's the
    code;
    HS_Film_Button.onRelease = function ()
    gotoAndStop(2);
    flash.external.ExternalInterface.call("firehs");
    Now when on frame 2, I want the JavaScript "close button" in
    the element to go to frame 1 on my Flash main timeline. Right now
    what it does is closing itself in frame 2 of my Flash page, so I
    added a flash button in there to go to frame 1. Thus the need to
    double click to finally end up on frame 1. But I want the
    JavaScript element to do that in the first place!
    The real issue here is that the JavaScript element was once
    on my main single frame timeline but its performance (display speed
    and such) was greatly affected by my Flash Time and Date and Frame
    rate calculations. This JavaScript element is based on miliseconds
    and I suspect that my Flash file is based in seconds and that my
    Flash calculations are grabbed by the Browser and directing my
    JavaScript element.....Hey I am getting lost I hope you kind of see
    what I mean. Anyways, if I could just get rid of frame 2 all
    together and have some kind of coding that would eighther have
    Flash calculate in miliseconds rather than seconds????? to match my
    JavaScript one.... Or codify JavaScript so that when called it
    would take over and tell the Browser to change its calculations
    rates?
    If you wish please have a look at the Forum topic postings
    where all of this is evolving with questions examples and
    answers....This link gets you right in the posting.
    Highslide
    JS Forum
    This is where Flash meets JavaScript! I need help please.
    Kind Regards
    Pierre

    Hi, Since your reply I have been trying to follow your
    direction and found a couple of things,
    My flash site is based on the AC_FL_RunContent JS file
    not the
    <object classid= ..............>
    <param name="allowScriptAccess" value="
    sameDomain" /> which element in bold should probably be
    repalced by "always" for the externalinterface addCallback() to
    work properly. The question being what code I have to ad to the
    AC_FL_RunContent JS file for allowScriptAccess.......
    quote:
    ExternalInterface is similar in functionality to the
    CallFrame() method but is more flexible and more generally
    applicable. ExternalInterface is the preferred method for
    JavaScript–ActionScript communication in Flash Player 8 and
    later.
    So I see I could use externalinterface addCallFrame() for
    achieving Javascript to ActionScript communication ; when
    Javascript close button is pressed Flash goes to frame 1........
    The latest hint I got from Highslide JS was to add the
    following in the Head section;
    <script type="text/javascript">
    hs.Expander.prototype.onBeforeClose = function (sender) {
    return confirm("Do you really want to close this nice
    image?");
    </script>
    The line in bold should be the code to call to go to frame 1
    in Flash and the onBeforeClose should probably be onAfterClose.
    Anyways, I am completely lost in space = could you really hep
    me out with this code by code and where to put those exact
    codes.....please
    Pierre

  • Call Bex Workbook with parameters via ABAP

    Dear all,
    I have a problem with Excel workbook run from the functional module and transfer parameters to it.
    For this purposes I have used FM RSAH_LAUNCH_EXCEL. I use SAP BW 2004s version.
    In fact this FM opens the Excel workbook but these parameters (that were defined in the table I_T_VAR) are not available in Excel. The window with variables pops up anyway and fields in this window are empty.
    What I would like to do finally is to run this Excel workbook, send some parameters to avoid of appearing this window. It was possible to do in Sap BW 3.5 (according to my experience). Probably it is possible to do in some other way in 2004s? If you know please give me a clue.
    One more question: I try to use the function SAPBEXsetVariable() in BeX that I used to use in 3.5. In 2004s it is not available. Does somebody know what can be used instead of it in 2004s?
    Thanks in advance.

    How about putting values of variables into filter area of WB?

  • Calling Transaction SP01 (Display spool requests) with parameters via URL

    Hi,
    I would like to be able to list all spool requests of a certain title via a URL.
    Unfortunately ITS does not seem to work. A URL constructed like this
    http://host:port/sap/bc/gui/sap/its/webgui/!?sap-system-login-basic_auth=X&sap-client=500&sap-language=EN&transaction=SP01&S_RQTITL-LOW=Testing123&okcode=CRET
    causes a short dump that SP01 (Program RSOSP01NR) is a Module Pool.
    I am therefore considering the following options:
    1. BSP Program
    2. Java WebDynpro
    3. ABAP WebDynpro
    Ideally, I want to be able to enter in my browser something like
    http://host:port/<BSP_or_WebDynPro_stuff>&~title=Testing123
    and for this to show in the browser a list of all spool requests that are named "Testing123".
    Can someone advise whether any of the above options are preferable?
    Also, whether such a program should call transaction SP01 with parameters (skipping first screen) or look to using the associated function modules.
    Many thanks for any assistance.
    Regards
    Adrian

    Solved myself. Thanks

  • How to call PDF Report with parameters in jdeveloper 10.1.3

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

  • How to call a function with pl/sql

    How does one call a function with pl/sql that uses a function?

    Hi,
    How does one call a function with pl/sql that uses a
    function?I'm not sure what you mean.
    In PL/SQL function can be used just about anywhere where an expression (with the same data type that the function returns). Arpit gave a very common example.
    Here's another example, where all the functions take a single NUMBER argument and return a NUMBER, so they can all be used in places where NUMBERs are used:
    IF  fun_a (fun_b (0)) < fun_c (1)
    THEN
        UPDATE  table_x
        SET     column_y = fun_d (2)
        WHERE   column_z = fun_e (ROUND ((fun_f (3), fun_g (4)));You call a function simply by using its name, followed by its argument list, if any.
    If the function is in a package, you must call it with the package name, like "pk_foo.bar (1, 2, 3)", unless the call comes from within the same package.
    If the function is owned by someone else, you must give the owner name, like "scott.bar (SYSDATE)" or "scott.pk_foo.bar (1, 2, 3)". You can create synonyms to avoid having to name the owner.

  • Call outside function with same name in a package

    I created a function as follows:
    create or replace function f1 return number
    is
    begin
    return 1;
    end;
    This f1 is to be called in a package created below.
    Then I create a package with a function in it, as follows:
    create or replace package pack1 as
    function f1 return number;
    end;
    Now I define the package body as follows:
    create or replace package body pack1 as
    function f1 return number as
    -- I am trying to call the first function f1 defined above here
    How do I resolve the name issues here?
    In other words, I want to call a function with the same signature outside a package.
    Thanks for your kind help.

    Hi,
    Welcome to the forum!
    Do you have a good reason for using the same name?
    Refer to the stand-alone function with the owner name, even though it's your current schema.
    That is, even if the package and the stand-alone function are owned by scott, in the package, say
    x := scott.f1;

  • Is there a way to call a function with in the initializer of a ArrayCollection?

        Is there a way to call a function with in the initializer of a ArrayCollection?
    It won't let me do this:
    var ac:ArrayCollection = new ArrayCollection([
                        {childName:'addTrade',index:addTradeIndex },
                        {childName:'tradeList',dealsCanvas.getChildIndex(tradeList) }

    The correct syntax is
    var ac:ArrayCollection = new ArrayCollection([
                        {childName:'addTrade',index:addTradeIndex },
                        {childName:'tradeList',index:dealsCanvas.getChildIndex(tradeList) }

  • How to call a function with event

    How do I call a function with a event inside it?
    function showTopTen(e:Event):void
        highscoreData = new XML(e.target.data);
        trace("Hiscores: " + highscoreData.item[0].name.text() + " - " + highscoreData.item[0].score.text())
    //showTopTen();  ..??

    Could you indicate why you would want to?
    The eventhandler you show here uses the properties of the event object passed as an argument.
    The way I read it it is data retrieved from a server so your app won't know anything about is untill it is loaded from the server which should be done with an URLLoader object which in it's turn calls your eventHandler when the Event.COMPLETE is triggered.
    something like:
    var urlLoader = new URLLoader();
    urlLoader.addEventListener( Event.COMPLETE, showTopTen )
    urlLoader.load( new URLRequest( "http:// etc." ) );
    to me would seem the proper method to have the function execute.

  • Office control ms_word - runmacro, calling a macro with parameters

    How can I call word macro with parameters?
    I have ms word document with macro, for example:
    Sub Makro1(ByVal bookmark As String, ByVal text As String)
    ' Makro1 Makro
        Selection.GoTo What:=wdGoToBookmark, Name:=bookmark
        Selection.TypeText text:=text
        ActiveDocument.Bookmarks(bookmark).Delete
    End Sub
    I try call this macro from webdynpro:
      TRY.
          CALL METHOD
    wd_this->document->IF_IOS_APPLICATIONPROPERTIES~RUNMACRO
            EXPORTING
              NAME             = 'Makro1("z1","test")'
              ERRORINFORMATION = co_error_getcontent_stru
       IMPORTING
         RESULT           =
        CATCH CX_IOS_APPLICATIONPROPERTIES .
        CATCH CX_IOS_COMMUNICATIONWRAPPER .
        CATCH CX_IOS_ENVIRONMENT .
      ENDTRY.
    This macro cannot call. )
    Calling a macro without parameters is ok.
    Sub Makro2()
    Call Makro1("z1", "test")
    End Sub
          CALL METHOD
    wd_this->document->IF_IOS_APPLICATIONPROPERTIES~RUNMACRO
            EXPORTING
              NAME             = 'Makro2'
              ERRORINFORMATION = co_error_getcontent_stru
       IMPORTING
         RESULT           =
    Greats Radek

    1. Yes. Download from some location as binary file.
    2. Unzip by class CL_ABAP_ZIP. For filling bookmarks i need file 'word/document.xml'.
      CL_ABAP_ZIP->GET
    Unzipped files are only in memory.
    3. For parsing and filling bookmarks i use classes and interfaces cl_ixml, if_ixml*
    * create a DOM from the xstring
      lr_ixml = cl_ixml=>create( ).
      lr_stream_factory = lr_ixml->create_stream_factory( ).
      lr_istream  = lr_stream_factory->create_istream_xstring( iv_docx ).
      lr_document = lr_ixml->create_document( ).
      gr_document = lr_document.
      lr_parser = lr_ixml->create_parser( document       = lr_document
                                          istream        = lr_istream
                                          stream_factory = lr_stream_factory ).
      CALL METHOD LR_PARSER->ADD_PRESERVE_SPACE_ELEMENT
        RECEIVING
          RVAL   = lv_rval.
      IF lv_rval <> abap_true.
    * Err in parser XML
      ENDIF.
    CALL METHOD LR_PARSER->SET_XML_SPACE_AWARE.
    IF lv_rval <> abap_true.
    * Err in parser XML
    ENDIF.
    * Finding and filling bookmarks
      lr_root     = gr_document->get_root_element( ).
    * All elements "w:bookmarkStart"
      lr_elements = LR_ROOT->GET_ELEMENTS_BY_TAG_NAME(
    *      DEPTH     = 0
          NAME      = 'bookmarkStart'
          NAMESPACE = 'w'
      lr_itr_bookmarkStart = lr_elements->create_iterator( ).
      DO.
        lr_node = lr_itr_bookmarkStart->get_next( ).
        IF lr_node IS INITIAL. EXIT. ENDIF.
        lr_attributes = lr_node->get_attributes( ).
    * Read attribute "w:name" of element "w:bookmarkStart"
        lr_attribute = lr_attributes->get_named_item(
          NAME      = 'name'
          NAMESPACE = 'w'
        lv_name = lr_attribute->get_value( ).
        if iv_name <> lv_name. continue. endif.
    * Element "w:fldSimple" was found, iv_name = Name of bookmark to fill
        lv_bookmark_found = abap_true.
        lr_node_bookmarkStart = lr_node.
    * Read attribute "w:id" of element "w:bookmarkStart"
        lr_attribute = lr_attributes->get_named_item(
          NAME      = 'id'
          NAMESPACE = 'w'
        lv_id_start = lr_attribute->get_value( ).
    clear lv_id_end.
    * .... work with parser
    * find element w:bookmarkEnd for relevant w:bookmarkStart, bookmarkEnd with the same id as bookmarkStart
            lr_node_next = lr_node->get_next( ).
            do.
              IF lr_node_next IS INITIAL. EXIT. ENDIF.
              lr_node = lr_node_next.
              lv_name = lr_node->get_name( ).
              if lv_name = 'bookmarkEnd'.
                lr_attributes = lr_node->get_attributes( ).
    * Read attribute "w:id" of element "w:bookmarkEnd"
                lr_attribute = lr_attributes->get_named_item(
                  NAME      = 'id'
                  NAMESPACE = 'w'
                lv_id_end = lr_attribute->get_value( ).
              endif.
              if lv_id_start = lv_id_end.
                lr_node_parent = lr_node->get_parent( ).
                lr_node_bookmarkEnd = lr_node.
                er_node_bookmarkEnd = lr_node.
                exit.
              else.
                lr_node_next = lr_node->get_next( ).
    * remove elements between bookmarkStart and bookmarkEnd
                lr_node->remove_node( ).
              endif.
            enddo.
    * insert new elements between boomarkStart and bookmarkEnd
    CALL METHOD me->XML_RUN_TEXT_ADD
              EXPORTING
                IR_PARENT = lr_node_parent
                IR_REF    = lr_node_bookmarkEnd
                IV_VALUE  = iv_value
              IMPORTING
                EV_OK     = lv_bookmark_ok.
      EXIT.
    ENDDO.
    For example, XML with bookmark:
    <w:bookmarkStart w:id="0" w:name="testing123"/>
    <w:r>
    <w:t>This is sentence two.</w:t>
    </w:r>
    </w:p>
    <w:p>
    <w:r>
    <w:t xml:space="preserve">This </w:t>
    </w:r>
    <w:bookmarkEnd w:id="0"/>
    4. replace file 'word/document.xml' in zip (.docx) with class CL_ABAP_ZIP.
    CL_ABAP_ZIP->DELETE
    CL_ABAP_ZIP->ADD
    5. You can store result where you need.
    6. You can use for editing by users classic dynpro with container with word.

  • FRM-92101 Error by calling the form with parameters

    Hi All!
    After the migration Oracle Forms from version 6i to 10g by calling the form with parameters the error FRM-92101 occurs. In Application Server log shows the following:
    08/12/01 10:26:20 formsweb: Forms session <5> aborted: unable to communicate with runtime process.
    08/12/01 10:26:20 formsweb: Forms session <5> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
    at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
    at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    System: Oracle Application Server 10.1.2.0.2 with Red Hat Enterprise Linux Release 4. Client PC: Windows XP SP3 and Internet Explorer 7.
    Please help me if anybody has this problem before.
    Sergey

    Hi Sergei,
    I've just finished a three day search for a FRM-92101problem, so I want to post my case, just in case it helps someone.
    My case is similar to yours, in that you have a Forms 6i form migrated to 10g and deployed on Linux, although my problem was "very" specific, and thus very hard to find, this might give you some light.
    I had a visual attribute that defined the property "Fill Pattern" as "none" applied to a canvas, and it deployed without any problem on 10gR2/Windows, but when deployed on Linux (10gR2/SUSE 9) it would abort the application getting a FRM-92101.
    The solution in this case was just changing "none" to "Transparent".
    Hope this helps.
    Regards,
    Miguel.

  • Calling C++ functions by Java via CORBA?

    Hello,
    I am interested in source code examples of calling C++ functions by Java via CORBA. For example the client is in Java and the server is in C++. Is it posible that the IDL compiler can generate "java" client stubs and "c++" server sceleton? So the implementation of the client will "inherit" the stubs generated by the IDL compiler, and the server implementation will use the sceleton.
    Thank you in advance.

    As far as I know, you've got to have your idl on both side. You compile idl mapping to java on client side and mapping to C++ on server side. Then you should be able to do it.
    Kim

Maybe you are looking for

  • Print to windows remote printer from solaris Please help

    Hi, I basically have 2 machines that are networked ( a solaris 9 sparc machine & a windows machine) The epson C42UX is on the Windows XP machine. I have samba set up on the Unix machine and can succesfully access solaris folders from the my network p

  • Where we maintain the cost of  characteristics  values in variant  conf.

    Hello guys,   This thread i have posted many times in sdn , but never got the satisfactory answer.This time again i am trying my luck.     Actually i am unable to understand how costing takes place in variant configuration.     Suppose i have created

  • White border in pdf preview of bleed doc

    Hi, As the attached image shows I get a thin white border on my pdf preview of a document that has a 3mm bleed. I have tried to increase the bleed to 5mm but with same result. I've also tried to exceed the black background outside the bleed marks in

  • How do i move from mac mini to a newer mac mini?

    How do i move all my stuff including programs to a new mac mini. Or do I have to buy them again?

  • DVD Sound issues with Siundblaster Audigy ADVANVED

    Hi. I've searched endlessly through the net and this forum, but so far I havent found a resolution to my problem. When I play DVDs I get very bad popping. Its identical for each DVD and makes watching a DVD on my PC unbearable. I dont have any proble