Sending parameters to Flex executable

Hi,
Is it possible that we can send parameters to Flex executable(s)? By Flex executable I meant, the installed .EXE(for Windows) or .APP(for MacOS), after having them installed through an EXE or DMG created with command prompt.
Thanks.

I've seen a discussion with running executable and passing parameters with Runtime.exec from Adobe : http://forums.oracle.com/forums/thread.jspa?threadID=1686479
But will it work for Flex compiled EXE or SWF also, and how can those parameters catch inside (?)

Similar Messages

  • AMFPHP - Sending data to Flex

    Since i start using AMFPHP, i've been seeing different ways to send data to Flex, two of them is sending an ArrayCollection containing all the data another way is using VO's, or sending objects each one with one row of my query (am i correct?).
    Now, what's the difference between sending the query results in an ArrayCollection (1000 records means 1 ArrayCollection) and sending a bunch of objects (1000 records means 1000 objects) to Flex with RemoteObject?
    Sending an ArrayCollection the data goes like this:
      [0] (Object)#1
        color_code = "0x9999"
        color_id = "8"
      [1] (Object)#2
        color_code = "0xCC99CC"
        color_id = "7"
      [2] (Object)#3
        color_code = "0xFF9999"
        color_id = "10"
      [3] (Object)#4
        color_code = "0xFFCC66"
        color_id = "9"
    And the PHP code is this one:
    public function all_colors_array(){
         $db=$this->connection();
         $rs=$db->Execute("SELECT * FROM colors WHERE color_status=1 ORDER BY color_code ASC");
         $i=0;
         while (!$rs->EOF){
              $color_code[$i]['color_id'] = $rs->fields['color_id'];
              $color_code[$i]['color_code'] = $rs->fields['color_code'];
              $rs->MoveNext();
              $i++;
         return $color_code;
    Sending as Objects, it goes like this:
      [0] (Object)#1
        color_code = "0x9999"
        color_id = "8"
        color_status = "1"
      [1] (Object)#2
        color_code = "0xCC99CC"
        color_id = "7"
        color_status = "1"
      [2] (Object)#3
        color_code = "0xFF9999"
        color_id = "10"
        color_status = "1"
      [3] (Object)#4
        color_code = "0xFFCC66"
        color_id = "9"
        color_status = "1"
    And the PHP is like this after including the VO file:
    include_once '../vo/ColorVO.php';
    .......public function all_colors_objects(){
         $db=$this->connection();
         $rs=$db->Execute("SELECT * FROM colors WHERE color_status=1 ORDER BY color_code ASC");
         while (!$rs->EOF){
              $color = new ColorVO();
              $color->color_id = $rs->fields['color_id'];
              $color->color_code = $rs->fields['color_code'];
              $color->color_status = $rs->fields['color_status'];
              $a[]=$color;
              $rs->MoveNext();
    return $a;
    Now:
    1. What's the difference?
    2. Which one is best pratices?
    3. Which one is better? ans Why?
    4. If is there anything wring with my code please fell free to correct it!!

    i dont know why.. Adobe Forum is just banned my account !!! :O
    and..to your answer... well, i never tried MS sql to connect to flex.
    but you may check this:
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html
    thank you.

  • How to send E-Mail Notification executing through workflow?

    hi All
    I want to send E-Mail Notification executing through workflow in MDM Data Manager?
    I have tried it, But still i am unable to send E-Mail Notification?
    i will explain, how i have tried?
    1) I have created the simple workflow with the following components
        they are in sequence
          start--> process-> notify--->stop
    2)  owner of the workflow is Admin and launcher of the workflow is Admin and i have given email id to the Default Admin user in the console.
    3) i have created another user (i.e. User2) with default roles as like as Admin and i have assigned User2 to the process component in workflow and I have created e-mail address for the User2 in the console.
    4) i have created another user(i.e.User1) with default roles as like as Admin. and give e-mail address,under the notify component User1 is selected in To Field.
    5) stop component as usual
    coming to configuration part about the SMPT server in MDS.ini file
    1) in mds.ini file for the MailServer=, I have given SMTP Server name once and restarted the server and executed the workflow, but not worked
    2)in mds.ini file for the MailServer=, i have given SMTP Server IP Address and checked the port,and we have configured the host file also and restarted the server and executed the worflow , but not worked
    In all the ways i have executed and tried to send E-Mail Notifications through workflow, But I didn't
    can any one help where i have went wrong, so i can rectify  it
    what actually we have to give in mds.ini file? is any other cofiguration required for it?
    if any one have any solution for it , can you please explain me in step by step
    Thanks in Advance
    bharat.chinthapatla

    Hi Bharat,
    your steps seems to be correct. Just try to ping your mail server, to verify if your mail server is running up, besides note that mdm go throw port 25 for sending emails, so please check if you are able to send emails using port 25 in your network.
    Regards,
    Vito

  • Sending parameters to reports by using Run_Report_Object

    Hi All,
    How do I send parameters to report while using Run_Report_Object built-in ?
    Thanks in advance.
    Regards,
    Sanjay Kanakath

    hello,
    there is a builtin for setting the parameters :
    from the forms builder online help :
    DECLARE
         repid REPORT_OBJECT;
         report_prop VARCHAR2(20);
    BEGIN
         repid := find_report_object('report4');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, FILE);
    END;
    you can use      
    SET_REPORT_OBJECT_PROPERTY(repid,
    REPORT_OTHER,
    'deptno=10');
    to set the Other Parameters property of the report object.
    regards,
    philipp

  • How to make a link in textflow that send parameters to a function?

    How to make a link in textflow that send parameters to a function?

    In the examples included with the weekly builds there is a CustomLinkEventHandler.as example.  Passing parameters would be done in the CustomClickHandler function.  You could attach the parameters to the LinkElement as user styles using the setStyle API.
    Hope that helps,
    Richard

  • URLConnection problems(Sending parameters with URL)

    Guys i have some problems with sending parameters through URL using URLConnection class.
    That's my code:
    URL url = new URL("http://kiosk.homebank.kz:9090/default.asp?action=SaveContact&src=C_HOMEBANK&ClientId="+request.getParameter("ClientId")+
                        "&IdService="+request.getParameter("IdService")+
                        "&Contact="+URLEncoder.encode(request.getParameter("Contact"),"utf-8")+
                        "&Number="+URLEncoder.encode(request.getParameter("Number"),"utf-8")+
                        "&Work="+URLEncoder.encode(request.getParameter("Work"),"utf-8")+
                        "&Mobile="+URLEncoder.encode(request.getParameter("Mobile"),"utf-8"));
            URLConnection connection = url.openConnection();
            connection.setDoInput(true);
            connection.setDoOutput(true);I want just send these parameters without going to this link. How can i do it using URLConnection class? Help please!

    Try using this set method in the URL class (query is the parameters):
    protected void set(String protocol,
    String host,
    int port,
    String authority,
    String userInfo,
    String path,
    String query,
    String ref)

  • How to send event from flex extension to other flex extension in InDesign?

    I have two extensions created using flex for InDesign. I need to send an event from one of these extensions and capture that event in other extension. How can it be done? Please help me.

    Hi,
    What I believe that data cannt be send from flex to java as hash maps...... we can send data from flex to java, but this data can be in form of array, string or boolean value..... Then the data can be send using ExternalInterface...............
    and if it is web application you need to use java script in between to communicate and if it is desktop application you can send data using MERAPI...
    MERAPI will act as a bridge for sending data from java to flex and vice versa... and you can send any type of data using merapi.

  • Send parameters from java to SSRS 2008 R2

    I have java code which has cascading parameters like State and County. If i select State respective county would be displayed in County dropdown. Both will have all option as well. Is there a way to handle it in java? Please let me know

    If the report is published in report server then the easiest way is to use URL and display it in an IE browser. We can even send parameters to the URL. Refer
    http://msdn.microsoft.com/en-us/library/ms152835.aspx
    There is another method that we can access a published report, i.e using
    SSRS Web Services.
    Otherwise if you are trying to access SSRS report file then you may need to create object or report viewer control(.net framework).
    Refer http://msdn.microsoft.com/en-us/library/aa337089.aspx
    http://msdn.microsoft.com/en-us/library/ms251671.aspx
    Regards, RSingh

  • HT1277 somehow I lost all my mail box STMP send parameters and I can't change anything

    somehow I lost all my mail box STMP send parameters and I can't change anything in the program to allow me to set my STMP

    What happens when you try to change the settiings?

  • Send parameters  to Allocation script

    Hi experts, I have an "Allocation Script" working well, but now I want to send parameters to "Allocation Script", I looked in this forum and have not found information, I am sending the package setting and the "Allocation Script"
    PACKAGE INFO
    'DEBUG(ON)
    PROMPT(SELECTINPUT,,,"Seleccionar Categoria ",%CATEGORY_DIM%)
    TASK(Traslado,USER,%USER%)
    TASK(Traslado,APPSET,%APPSET%)
    TASK(Traslado,APP,%APP%)
    TASK(Traslado,SELECTION,%SELECTIONFILE%)
    TASK(Traslado,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\TopDownPremisas.lgx)
    TASK(Traslado,RUNMODE,1)
    TASK(Traslado,LOGICMODE,1)
    ALLOCATE
    *RUNALLOCATION
       *FACTOR=(1+USING)
       *APP                                                 WHAT=GASTOSADM;             WHERE=<<<;                   USING=<<<;
       *DIM ACCOUNTGASTO                 WHAT=BAS(706);               WHERE=<<<;              USING=799Porcentaje
       *DIM RPTCURRENCY                         WHAT=LC;                               WHERE=<<<;              USING=<<<
       *DIM DATASRC                              WHAT=INPUT;                       WHERE=<<<;              USING=<<<
       *DIM AGENCIA                              WHAT=BAS(999);                    WHERE=<<<;              USING=9999
       *DIM DEPENDENCIA                         WHAT=BAS(999);                    WHERE=<<<;              USING=9999
       *DIM PLAZA                                      WHAT=9999;                        WHERE=<<<;              USING=9999
       *DIM CATEGORY                                 WHAT=%CATEGORY_DIM%;   WHERE=ESCENARIO8; USING=ACTUAL
       *DIM ENTITY                                      WHAT=BAS(999);                     WHERE=<<<;              USING=1
       *DIM TIME                                      WHAT=BAS(2011.TOTAL);      WHERE=<<<;               USING=2011.JAN
    *ENDALLOCATION
    I want to is for the category you have choosen is the one that I want to use in  the "Allocate Script" but not know how.

    I followed all the steps, but does not work, I dont know, what I'm doing wrong.
    PACKAGE
    DEBUG(ON)
    PROMPT(TEXT,%CATEGORY_SOURCE%,"Enter SOURCE category",,"ACTUAL,ESCENARIO7")
    PROMPT(TEXT,%CATEGORY_TARGET%,"Enter TARGET category",,"ACTUAL,ESCENARIO7")
    PROMPT(SELECTINPUT,,,"Seleccionar Categoria",%TIME_DIM%)
    TASK(Traslado,FORMULASCRIPT *FUNCTION CAT_SRC=%CATEGORY_SOURCE% *FUNCTION CAT_DESTN=%CATEGORY_TARGET%,)
    TASK(Traslado,USER,%USER%)
    TASK(Traslado,APPSET,%APPSET%)
    TASK(Traslado,APP,%APP%)
    TASK(Traslado,SELECTION,%SELECTIONFILE%)
    TASK(Traslado,RUNTHELOGIC,FORMULASCRIPT)
    TASK(Traslado,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\TopDownPremisas.lgx)
    TASK(Traslado,RUNMODE,1)
    TASK(Traslado,LOGICMODE,1)
    SCRIPTLOGIC
    *IGNORE_SECURITY
    *XDIM_MEMBERSET CATEGORY=CAT_SRC.INPUT
    *XDIM_MEMBERSET CATEGORY=CAT_DESTN.INPUT
    *RUNALLOCATION
       *FACTOR=1
       *APP                                                 WHAT=NOMINA;                       WHERE=<<<;               USING=<<<
       *DIM ACCOUNTNOM                   WHAT=[TOPDOWN]="S";        WHERE=<<<;        USING=706102Porcentaje
       *DIM RPTCURRENCY                             WHAT=LC;                      WHERE=<<<;          USING=<<<
       *DIM DATASRC                      WHAT=INPUT;                      WHERE=<<<;          USING=<<<
       *DIM AGENCIA                      WHAT=BAS(999);                      WHERE=<<<;          USING=9999
       *DIM DEPENDENCIA                             WHAT=BAS(999);                      WHERE=<<<;          USING=9999
       *DIM PLAZA                                  WHAT=9999;                      WHERE=<<<;          USING=9999
       *DIM CATEGORY                               WHAT =CAT_SRC;                    WHERE =CAT_DESTN; USING = ACTUAL;
       *DIM ENTITY                                  WHAT=BAS(999);                      WHERE=<<<;          USING=1
       *DIM TIME                                  WHAT=BAS(%TIME_SET%);      WHERE=<<<;          USING=2011.JAN
    *ENDALLOCATION
    Please help!

  • Probelm in Sending Parameters/Attributes in JSP

    I have the following two file and i want to send parameters for index.jsp to middle.jsp and print them. But when i run the files there print "null" value at <%= request.getAttribute("myparameter")%> in midle.jsp.
    Index.jsp
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>Hi, I am Zaid from Karachi and My hobby is Cricket</h1>
    <h1>Whats Your Name, Hobby and where you belong</h1>
    <form method="GET" action="middle.jsp">
    <input type="text" name="username" size="25">
    <input type="text" name="hobby" size="25"><p></p>
    <input type="text" name="city" size="25"><p></p>
    <input type="submit" value="Submit">
    <input type="reset" value="Reset">
    </form>
    <%
    request.setAttribute("myparameter", "Passion");
    %>
    </body>
    </html>
    middle.jsp
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>Hello World---!</h1>
    <%= request.getAttribute("myparameter")%>
    <%= request.getParameter("username")%>
    </body>
    </html>

    Consider the lifecycle.
    You request page "index.jsp" It runs index.jsp and produces html. It sets the request attribute "myparameter"
    You request page middle.jsp. It runs middle.jsp.
    Note that this progression requires two seperate requests - one for "index.jsp" and then another for "middle.jsp", which sends the request parameters from the form from your browser to middle.jsp.
    Request attributes only last the life of one request - so when you request "middle.jsp" the request attribute set when running "index.jsp" is not available.
    cheers,
    evnafets

  • How to send Parameters FORM to PHP WEB Page with method POST (secure)?

    Hello everyone,
    i hope someone can help me to find a solution to this problem!
    i have to send "+precious+" parameters from an oracle form to php page, like username and password, with a secure method... i tried with WEB.SHOW_DOCUMENT procedure but it uses GET Method and when the web page open up you can read those parameters in the url...no good!
    some suggestion?
    Thank a lot in advance... FMicio

    The other way you have is to make a PJC java bean ...
    which uses HTTPClient library..
    for example:
    PostMethod post = new PostMethod("http://jakarata.apache.org/");
            NameValuePair[] data = {
              new NameValuePair("user", "joe"),
              new NameValuePair("password", "bloggs")
            post.setRequestBody(data);
            // execute method and handle any error responses.
            InputStream in = post.getResponseBodyAsStream();
            // handle response.I have done a multipart form data post to upload files to my db over httpClient.. and other things...
    Or with java.net.* api-s
    try {
        // Construct data
        String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
        data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
        // Send data
        URL url = new URL("http://hostname:80/cgi");
        URLConnection conn = url.openConnection();
        conn.setDoOutput(true);
        OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
        wr.write(data);
        wr.flush();
        // Get the response
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            // Process line...
        wr.close();
        rd.close();
    } catch (Exception e) {
    }Or you can call your web page (post data) from your database
    http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
    Edited by: Peterv6i on Mar 30, 2012 3:49 PM
    Edited by: Peterv6i on Mar 30, 2012 3:55 PM

  • How to use URL parameters in Flex?

    Hello Everyone,
    I wanted to know how can the parameters passed in a URL be used in our Flex application. I searched in the forum and tried these links:
    http://forums.adobe.com/message/217950#217950
    http://www.danvega.org/blog/index.cfm/2009/2/5/Flex-FlashVars-in-local-development
    In the second link, this is the solution provided:
       1. // if we've detected an acceptable version
       2. // embed the Flash Content SWF when all tests are passed
       3. AC_FL_RunContent(
       4.         "src", "ffManager",
       5.         "width", "100%",
       6.         "height", "100%",
       7.         "align", "middle",
       8.         "id", "ffManager",
       9.         "quality", "high",
      10.         "bgcolor", "#869ca7",
      11.         "name", "FFManager",
      12.         "allowScriptAccess","sameDomain",
      13.         "type", "application/x-shockwave-flash",
      14.         "pluginspage", "http://www.adobe.com/go/getflashplayer",
      15.         "flashvars","username=dvega"
      16. );
    private function init():void {
        // grab the username so we can track who is logged in
        [Bindable] private var:username= Application.application.parameters.username;
    But here, I am getting the hardcoded value (ie.,dvega) as the data inside my flex application. Instead I would need the dynamic data that is passed through the URL. For Ex: if I use the URL, http://172.22.41.154/MH_2.html?myName=Arush
    I need would need to use the name 'Arush' inside the application. Can you please help me on how and what part of the code is to be modified?
    Thank you,
    Warm regards,
    Deepak

    That would come within flex.
    In my case, there is a SAP CRM web application which has a push button. On click of this button, flex URL is called(ie., http://172.22.41.154/MH_Bluebook_Integration2.html). On click of that button I need to pass an Object ID, which is passed withing that flex URL, something like this:
    http://172.22.41.154/MH_Bluebook_Integration2.html?objID=abcd
    I need to receive 'abcd' in the flex. Any way we could modify the HTML wrapper to send this value to swf? 

  • How to send parameters from java to perl

    I have a java program which is executing a perl script. I m using
    Runtime.getRuntime().exec method to execute the perl script. Now I have to send some parameters to the perl script from java which will be processed there. can you help me how to do it?

    nitu007 wrote:
    Then there is no solution for this .Not true.
    Actually the perl script was preety big and to convert it to java it will take time.That's no excuse not to do it.
    So i thought i could execute it througn java.You can. CGI is basically a protocol on how to invoke programs and deal with their output; so other programs than web servers can follow it to invoke CGI scripts.
    However, (1) you may find that implementing the CGI protocol from the invoker's side may be a bigger pain than it's worth, and (2) in the long run, you'll end up with a hack that will be a pain to maintain.
    In your case, because the script uses CGI.pm, implementing the full CGI protocol probably won't be necessary. But you'll still be doing some klugery to run the CGI script at all, and you'll be buying yourself pain in the long run. Even if you do run it this way, I'd advise that once you have that working and have some breathing room, you start to work porting the script.

  • HTTPService sending parameters

    Hi,
    I am looking for a way to send in a list of parameters to my
    JSP. I already know how to use <mx:Request> tag, but it only
    allows for a predefined number of parameters (at design time). What
    i want to do is to send in an x number of parameters in, basically,
    send in an XMLList contents as parameter list.
    The documentation on HTTPService has a method xmlEncode() and
    xmlDecode(). I could not get it to work and there aren't any
    working examples out there. I guess i could serialize an XMLList
    into a xml string myself and send it as one parameter field and
    then parse it in jsp... or use JSON.
    Is there a workable design pattern for sending complex
    objects in?
    If i was to use HTTPService in ActionScript, theoretically i
    could dynamically add parameters to the Request object. I just
    don't know how to create and use HTTPService fom AS... can someone
    show me? is it hs:HTTPService = new HTTPService();
    hs.request.add("key", "value"); ??
    Thanks for any help.

    I personaly don't agree what they do in that example you
    showed (
    http://www.adobe.com/devnet/flex/articles/complex_data_02.html),
    that is way too much extra unnecessary fanciness that adds
    additional layer of logic on both sides, flex and jsp,which does
    not really give any justifiable FLEXIbility to developer
    why would you want to generate xml then on server side parse
    xml when you can just as easily build request parametes on flex
    side iteratively and same thing on jsp (with existing servler/jsp
    API ) Exaple : iterate through all or partial request parameters
    with code something like this :
    for (java.util.Enumeration e = request.getParameterNames();
    e.hasMoreElements() ;) {
    String name = (String) e.nextElement();
    String value = request.getParameter(name);

Maybe you are looking for

  • Javascript within an iframe is not rendering

    We have an iframe on a page within our Portal that does not render completely. We are attempting to render SocialText.net within an iframe and it seems that Firefox is blocking the javascript that is attempting to run on the page. The page loads succ

  • Where to Buy Mac Pro?

    Hello Folks, Any recommendations on the best place to buy a new Mac Pro, the Apple Store, online, LA Computers, MacConnection, Amazon and would you recommend the purhcase of Apple Care? Many thanks for your help. Jim

  • Air port extreme not working with 10.5

    ok so hear is one of the many problems i am having my airport extreme is working and functions fine i can screen share and see all 3 of my macs. now to the problem when i use the network diagnostics it get all green lights up till internet and server

  • Foreign JMS Server Limitation

    Hi all,           Iam facing a limitation with Foreign JMS server.           We are tyring to migrate from Message Bridge to Foreign JMS server.           Our current setup is           We have 3 MQ queues which are bridged to one JMS destination(que

  • ORA-01122: database file 30 failed verification check

    SQL*Plus: Release 10.1.0.4.2 - Production on Wed Feb 13 20:33:13 2008 Copyright (c) 1982, 2005, Oracle. All rights reserved. when starting the DB for 10gAS get following error, db is started but cannot sign in SQL> SQL> Connected. SQL> ALTER DATABASE