Exposing SWF object's computed value as a returned value to the host

Hi Everyone,
I have an HTML page that host a Flex object (SWF object).
The Flex object execute computational work (i.e, calculating time values in several methods) and I want to a single value return (text or numeric) as a result of this computations to the HTML page where I can assign the returned value to an HTML field.
What I need to do inside my code?
Appreciating your collaborations...
BR,
Yasser

Maybe you want to use ExternalInterface?

Similar Messages

  • How to create a display value and a return value for an item

    Hi! I have an item on a form. I want the default value for my item to be :":APP_USER", but the return value, to be the id of my user. I tried to create a PL/SQL Expression for the default item, but it doesn't work. What do I miss?
    It should be something like this, but it's not.
    begin
    select first_name || ',' ||last_name as "Employee",
    id_employee -- display value,return value
    from employees
    where id_employee = :APP_USER;
    end;
    Does anyone know?
    Thanks!
    Vitaly

    Hi VItaly,
    Display value and return value concept applies very well in case of a Combo box if i am correct, I don't know what type of item is your's.
    But any way, you can have a workaround like,
    Create a hidden item such that it's default value should be ID of the user which can be get from db by using :APP_USER.
    Use the this item for your references.
    I think this will meet your requirement.
    Thanks
    Kumaraswamy.

  • List manager displaying view value and not return value

    Hello,
    I'm using a list manager based on pop-up LOV. When I click on an item on the pop-up window, the window is closed and the return value is inserted in the page textbox. I would like to have (as expected) the view value, and have the return value used just as field value during form submit.
    I'm using Application Express 2.1.0.00.39
    Thanks.
    Eugenio

    Unfortunately, you can't. The way to do it is to return the display value into the List Manger item and then use the APEX_UTIL.STRING_TO_TABLE function to loop through the values and fetch the IDs. You will need to make sure the LOV items are unique and don't contain any colons.
    I hope that helps
    Shunt

  • SWF Object Won't Play In PowerPoint 2003

    I'm having a problem with an SWF Object in PowerPoint
    2003...I've followed the instructions at
    http://office.microsoft.com/en-us/assistance/HA010348071033.aspx
    ...however when logged in under Windows XP (SP2) as a
    non-administrator, the Flash object will not run. When a standard
    (non-administrator) user runs PowerPoint, they receive the error
    "Some controls on this presentation can't be activated. They might
    not be registered on this computer.". . .but when an Administrator
    logs on, they don't receive this error and the embedded SWF file
    runs fine when running the PowerPoint presentation?
    I have the latest Flash Player installed and when opening the
    SWF file in Internet Explorer, it runs fine.
    Any Ideas?

    There are some known issues with the latest Flash player
    version (8,0,24,0) and non-administrator accounts. Not only with
    Powerpoint. No work-around known. Sorry.
    You will have to wait for the next version and hope....
    Wolf

  • Hyper-V encountered an error trying to access an object on computer ...

    I'd like to share an issue which occurred during one of my recent configurations as well as the associated solution which worked for me.
    While configuring Hyper-V Manager on a non-domain joined Windows 8.1 Enterprise client, to communicate with a non-domain joined Microsoft Hyper-V Server 2012R2, I received the following enjoyable message:
    Hyper-V encountered an error trying to access an object on computer '.....' because the object was not found. The object might have been deleted. or you might not have permission to perform the task. Verify that the Virtual Machine Management service
    on the computer is running. If the service is running, try to perform the task again by using Run as Administrator.
    As it turns out I forgot to change the machine name on the Hyper-V server. It's worth noting that it's also necessary to add an entry in the client machine's HOSTS file which matches the computer name of the Hyper-V server.

    Hi ITMAGE,
    Thanks for your sharing and support for this forum .
    It should be helpful to other people who are facing this issue .
    Best Regards,
    Elton JI
    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.

  • Authorization check on Function module return values

    Hi,
    I have a tricky situation. In our BW implementation, many of the FI infoobjects are authorization relevent. One of the objects is 0COSTCENTER.  A user has been assigned with authorization profile, in which the user is authorised for COST CENTER = A* and #.  All planning templates were working nice.
    We were on SP 12 earlier, now we upgraded to SP 20. Now came a issue, the user gets error that user is not authroised for the data. After our analysis, we found nothing wrong as such, so contacted SAP. They came back with a root cause
    In my planning function, an ABAP function module is used. The function module returns a COSTCENTER value. This return value is then assigned to a variable, this variable is of type 0COSTCENTER.
    SAP said there was a bug in their own design. The bug was, if the cost center value is directly used in planning function for other calculations, it will throw an authorization error.  But, if the COST CENTEr value is given to a variable and that variable is used for other calculations,  it works fine. Thats why it worked for us earlier.
    Now, they have removed that bug, so variables are also checked against authorizations and they said we need to either change the code or give * for the COST CENTER authorization.
    So we have a problem. It is not straight forward to give * for COSTCENTER in FI BW implementation. SAP theory is that they cannot say which value the functional module will return. So they will check against ALL the values for COSTCENTER but not the authorised values.
    Has anyone seen this issue before? is it only specific to planning function or its just ABAP concept? Any suggesations to come out this problem?

    Bindu, thanks,
    The error is coming at the program compile level itself i.e. before executing the planning group itself. As per the F1 help on forumla editor and from their support, the system reads all the reference data,  So when it sees the function module and its export parameter, it captures all the data for COST CENTER as reference data.
    Thus even I am sure that the return value will be always authorized, the reference data is checked for the full authorization. Thus its failing

  • Can not user Raw value as NULL return in Select List

    Help me!
    I recently converted my application to take advantage of the sys_guid() function that oracle offers over the sequence/trigger option.
    However, I user a hierarchical set up and I need to be able to insert a RAW value of '00' if the user does not select something in a select list. When I try to do this, I get an "ORA-01465: invalid hex number" error.
    I've also tried to return 00 and HEXTORAW(0) but that didn't work either. Infact 00 return a can not insert null value. Please help as I believe the sys_guid function is the best choice if I can make it work.

    Hey Scott, my first name is Daniel.
    Here is in detail the reason for which I want to be able to work with RAW. As everyone knows, most of your tables your going to have a UID. In general this is going to be a NUMBER column into which you will insert values that populate from a trigger getting the nextval of a sequence and returning the result into the NUMBER column of the row being inserted.
    This, however, requires a trigger and a sequence. Not that that's really a bad thing, I just think it can be done better. All we are really after here is a UUID or GUID. The thing is if you used a sequence to generate this value, you don't have a good way of knowing that the number is truly unique. You'll learn this as soon as you try to merge with a table from another database or do something else of the like.
    What I prefer to do is to use Oracle's SYS_GUID function when I create a table. To use this function you create a RAW(16) DEFAULT SYS_GUID(). From that point you don't even need to reference the column on insert, unless you're inserting into * and in that case you just specify DEFAULT. The use of sys_guid means I don't need a trigger and I don't need a sequence, and the result will always be unique, regardless of the DB.
    In APEX, and elsewhere, the way you use a select list is with a display value and a return value. An example would be, emp_name as the display value and emp_id as the return value. In my case, the emp_id would be the RAW values returned by the SYS_GUID() function when the employee was created. But it's not working because of the RAW value.
    I know that APEX can enter the value in session state that is returned from a RAW column because I did a test earlier and it worked. I would have to see it in session state for debugging. *** The problem is in creating a new record. ***
    APEX really does not have to work with the RAW column because the default value has been specified. But for some reason, it does not like it anyway. I found this problem when working with parent/child relationships in my tables.
    Lets say there are three columns GUID, TITLE, and PARENT. When creating a new record, I allow the user to select its parent. If the new record IS a parent then they would leave it as the default '- Is Parent -' and the PARENT column would be left as NULL. But because the GUID is RAW to make the relationship work with the parent, the PARENT column would be RAW too and APEX gives me the errors I was telling you about before.
    Sorry for going on so long. I don't know if I even got my point across. ;) Please let me know if you need me to do something on my part to further demonstrate my point. I would be happy to set up a demo if requested.

  • Display pass or fail in Report based on return value

    Hi,
    I'm trying to integrate TestStand with TestComplete using the ActiveX/COM server adapter.  I have the COM setup so that TestStand can call a test in TestComplete and have TestComplete return a string value (true|false) to TestStand.
    Now I need to get the TestStand report to display "pass" or "fail" text for this sequence call,  based on the return string from TestComplete.
    Is there someplace in Expressions or Post Actions that I can state and how:
    return value "True" = pass
    return value "false" = fail
    Thanks.
    Solved!
    Go to Solution.

    Hi,
    Option 1.) Use a String Value Test.   The Limits.String would be 'True'.  This would be the easiest because you already returning strings from your ActiveX call.   You could make your ActiveX calls a String Value Test.
    Option 2.) Use a Pass/Fail Step.   You could set the returned string to a local variable and then create another Pass/Fail step that would have the Pass/Fail criteria as Locals.StringReturned == 'True'
    These are two options that hopefully can get you started....
    Thanks,
    PH

  • Redesignating the Host Computer

    Hello.  Maybe these are simple questions, but I am not an expert, so here it goes. 
    1.  I am replacing my host computer so I will need to redisignate the host computer on my network.  Do I have to start over and set up the network again, or is there an easier way that will not affect the exisiting networked computers and devices? 
    2.  My current host is hardwired to a WRT54GS router.  I am replacing the existing hardwired desktop host with a laptop that will be wireless and the router and cable modem will be stand-alones.  Are there any issues associated with this I should know about?  Thanks!

    1)  Your WRT54GS does not care which computer is the host.  All network computers are treated equally.   I don't know whether or not Windows cares about this - I guess this depends on how you set things up in Windows.  But this definitely is not a router problem.  Might be a Windows problem.
    2)  The only issue with this setup is that whenever you change any of your router settings, you should connect to the router by wire.  Do not try to change router settings wirelessly.   Changing the router settings wirelessly usually works, but sometimes can cause serious router problems.  And never ever try to upgrade the router's firmware wirelessly - this will likely kill your router. 

  • Router not seeing the return value from a webservice

    Hello. I have two input fields and a button that calls a web service, is an action that is passed to a router.
    So it looks like this form-->execute web service-->router-->decision
    I'm passing back a string of success or failure as follows:
    @WebMethod
    public String doLogin(String userName, String password)
    if(userName.equals("1"))
    return "failure";
    return "success";
    It executes the method fine, but the router doesn't see the return value correctly. It always evaluates to false (which is the default)
    My text boxes and button is defined as follows:
    <af:inputText value="#{bindings.arg0.inputValue}"
    label="Username:"
    required="#{bindings.arg0.hints.mandatory}"
    columns="#{bindings.arg0.hints.displayWidth}"
    maximumLength="#{bindings.arg0.hints.precision}"
    shortDesc="#{bindings.arg0.hints.tooltip}">
    <f:validator binding="#{bindings.arg0.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.arg1.inputValue}"
    label="Password:"
    required="#{bindings.arg1.hints.mandatory}"
    columns="#{bindings.arg1.hints.displayWidth}"
    maximumLength="#{bindings.arg1.hints.precision}"
    shortDesc="#{bindings.arg1.hints.tooltip}">
    <f:validator binding="#{bindings.arg1.validator}"/>
    </af:inputText>
    <af:commandButton actionListener="#{bindings.doLogin.execute}"
    text="doLogin"
    disabled="#{!bindings.doLogin.enabled}"
    action="doLogin"/>
    </af:panelFormLayout>
    My loginpagedef.xml is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.51.88" id="loginPageDef"
    Package="customerportal.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables">
    <variable Type="java.lang.String" Name="doLogin_Return"
    IsQueriable="false" IsUpdateable="0"
    DefaultValue="${bindings.doLogin.result}"/>
    <variable Type="java.lang.String" Name="doLogin_arg0"
    IsQueriable="false"/>
    <variable Type="java.lang.String" Name="doLogin_arg1"
    IsQueriable="false"/>
    </variableIterator>
    </executables>
    <bindings>
    <methodAction id="doLogin" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="doLogin" IsViewObjectMethod="false"
    DataControl="OracleWebServices"
    InstanceName="OracleWebServices"
    ReturnName="OracleWebServices.methodResults.doLogin_OracleWebServices_doLogin_result">
    <NamedData NDName="arg0" NDValue="${bindings.doLogin_arg0}" NDType="java.lang.String"/>
    <NamedData NDName="arg1" NDType="java.lang.String"
    NDValue="${bindings.doLogin_arg1}"/>
    </methodAction>
    <attributeValues IterBinding="variables" id="arg0">
    <AttrNames>
    <Item Value="doLogin_arg0"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="variables" id="arg1">
    <AttrNames>
    <Item Value="doLogin_arg1"/>
    </AttrNames>
    </attributeValues>
    </bindings>
    </pageDefinition>
    What am I doing wrong? I can never seem to get the router to view the result coming back from the web service. Thanks in advance!

    Hi,
    Can you try this
    <method-call id="DepartmentCheck">
    <method>#{bindings.DepartmentCheck.execute}</method>
    <return-value>#{pageFlowScope.checkResult}</return-value>
    <outcome>
    <fixed-outcome>result</fixed-outcome>
    </outcome>
    </method-call>
    <router id="routerReturnCheck">
    <case>
    <expression>#{pageFlowScope.checkResult==true}</expression>
    <outcome>succes</outcome>
    </case>
    <default-outcome>return</default-outcome>
    </router>
    just put the result of a method in pageFlowScope variable then the flow case go the router where you evaluate the variable
    hope this helps

  • Issue with getting handle to the swf object in a jsp

    Hi,
    I have a jsp file which has the <object> tag to include the Flex swf file on the jsp. I have certain functions exposed to javascript (using ExternalInterface.callback) that can be used in the jsp. But when I try to get the handle to the swf object using document[swfId] or window.document[swfId] or document.getElementById(swfId) ..it returns back NULL..
    This works on some browers and doesn't work on some. I even tried to reinstall my browser but in vain.
    Any someone provide me with some pointers on this ?

    Hi, Thanks for getting back with me.  I know exactly what you mean about  the "www" or "public" section of a server as I've seen that on other servers that I've worked on with DW.
    However, this is different and it doesn't appear to have one.  I've taken a screen shot below of what the server looks like.  I did it with FTP as I'm on another computer that does not have DW.  As you'll see there are actually 2 sites I need to get connected to to change the web pages with DW - "beta.----.gov" and "www.----.gov." That's pretty much how it is.  The beta one is what they want me to do is make the edits on a page in the beta site first and then show them.  Upon approval, I will then go into the live site (www) and duplicate what I did to make the changes live. So again, your screen shots seem to help (I won't know until tomorrow when I'm on the other computer in another building that has Dreamweaver on it to try to use your DW settings) but does this make sense?  Any other ideas that could be useful to get me up and running? Thanks.

  • Filter view object by selected values from list of values

    Hello,
    I've the following problem with my ADF Application. I have three view objects in my application module. Two of them are connected via a view link. For example take users, who are connected to their departments. The remaining view object consists of factories. Now I want to show the user/department dependency in a tree table and the available factories in a list of values. This list of values should be used to filter the shown users.
    I've already tried to use bind variables in the users view object. But I don't know how to fill them with the value of the list of values.
    Can someboy give me a tip how to solve this problem.
    Best regards,
    Enno

    Hi Enno,
    Try this:
    - Have a AM method with one parameter(which takes user from the list of values) and inside AM method write code to set the bind parameter value and execute the query
    Sample Code
    public void filterByUser(String user){
       //Get your UserViewObject instance to userVO
       userVO.setNamedWhereClauseParam("<Bind_Variable_Name>", user);
       userVO.executeQuery();
    }- Expose the method as client interface
    - Drop the method (Data Control) as a button on to the page and pass the listofvalues value as a value to the method binding param
    Something like this: ${bindings.<User>.inputValue}
    - Finally refresh the master and detail tables based on the ListOfValues selection by setting partialTriggers property to the listofvalues component id
    Hope it is clear
    Sireesha
    Edited by: Sireesha Pinninti on Oct 15, 2009 4:54 AM

  • Safari 5.1.2 on Windows 7 has issues with hiding SWF objects in IFRAMEs

    Try as I may I cannot hide a Flash object in an HTML page referenced as the source of an IFRAME tag despite being able to hide the IFRAME when using Safari 5.1.2 on a Windows 7 machine.
    This is not a problem for the latest versions of Safari, Chrome and Firefox on a Mac. This is not a problem for the latest versions of Internet Explorer, Chrome and Firefox on a Windows 7 machine.
    Following is sample HTML and JavaScript for the page that includes the IFRAME tag:
    <button id="tryit" type="button">Try It</button>
    <div id="test">
         <iframe src="hideswf-iframe.html" width="770" height="610" frameborder="0"></iframe>
    </div>
    <script type="text/javascript">
         var test = document.getElementById("test"),
              tryit = document.getElementById("tryit");
         tryit.addEventListener( "click", hideAndSeek, false );
         function hideAndSeek(e) {
              var style = test.style;
              style.opacity = (style.opacity == 1 || style.opacity == "") ? 0 : 1;
    </script>
    And the following is the OBJECT tag for the SWF object that would exist in the page "hideswf-iframe.html" referenced as the source of the IFRAME tag in the above code block:
    <object type="application/x-shockwave-flash" id="strobemediaplayback" data="StrobeMediaPlayback.swf" width="743" height="600" style="visibility: visible; ">
         <param name="allowFullScreen" value="true">
         <param name="wmode" value="direct">
         <param name="flashvars" value="favorFlashOverHtml5Video=true&swf=StrobeMediaPlayback.swf&javascriptCallbackFunction=$.fn.strobemediaplayback.triggerHandler&minimumFlashPlayerVersion=10.0.0&expressInstallSwfUrl=expressInstall.swf&autoPlay=false&loop=false&controlBarMode=docked&poster=&src=http://players.edgesuite.net/videos/big_buck_bunny/bbb_448x252.mp4&useHTML5=false&width=1187&height=959&queryString=favorFlashOverHtml5Video=true&swf=StrobeMediaPlayback.swf&javascriptCallbackFunction=$.fn.strobemediaplayback.triggerHandler&minimumFlashPlayerVersion=10.0.0&expressInstallSwfUrl=expressInstall.swf&autoPlay=false&loop=false&controlBarMode=docked&poster=&src=http://players.edgesuite.net/videos/big_buck_bunny/bbb_448x252.mp4&useHTML5=false&width=1187&height=959">
    </object>
    The complex aspect is that this issue only manifests itself with some SWF objects, but not all. In the admittedly small sample of objects I tested I observed that the ones that failed were focused on video content (basically they were video players) while the ones that didn't exhibit the issues were not delivery mechanisms for video content.
    I have already tried using JavaScript libraries and frameworks such as jQuery and Scriptaculous - they didn't fare any better.

    Actually it doesn't let me choose either of the buttons and before anything can happen the crash occurs. I tried to click on both buttons but it seems not to work. Thanks!

  • Exposing Business Object as Web Service

    Hi,
    I've designed a Business Object and would like to expose its findAll Operation as a web service. The wizard tells that the operation has “Improper operation message cardinality". While browsing through saphelp I found this: http://help.sap.com/saphelp_nwce10/helpdata/en/44/24128b347c1c9fe10000000a11466f/content.htm
    That’s nice to know but doesn't solve my problem. How do I create a web service that returns ALL objects?
    Thanks in advance for your help.
    Bastian
    edit:
    this on solved it:
    CE/CAF: Expose service as Webservice

    Hi,
    you need to create wrapper method of findAll,
    The reason you are not able to expose it as service because findAll resturning array of values instead of one response (or candinality of return is 0..n). So create one wrapper complex type add your BO as datatype of that complex type with multiple cardinality,
    In new method add this complex type as response (with cardinality 0..1) and within code call standard findAll and mapp return value to complext type.
    It will work.
    Regards,
    Gourav

  • SWF Object 1.6 issues with Safari 5

    Just downloaded Safari 5 on Snow Leopard.
    SWF Object 1.6 is not working at all with it.  It is shifting the swf files around and not playing nice.  Anyone else having this issue?
    Steven Houtzager

    Auntyjoy23 do you face the same difficulties when accessing the Date of Birth option at Acrobat.com? 
    Have you looked to see if you have any add-ons or plug-ins installed in your browsers?  If so then you will want to try disabling them to see if this then allows you to adjust the Date of Birth option.
    Also as another alternative you may want to consider accessing a different computer to enter your Date of Birth.  You will only need to do this once and it may be the most expedient option to resolve your current difficulties.

Maybe you are looking for

  • Project settings - few file formats are involved

    Hi, I would like to create a project that combines few file formats: - AVCHD (.m2ts) files taken by Panasonic HDC-TM700 at 1920x1080i and downloaded from the camera by Panasonic's HD writer AE 2.1 - MP4 files taken by GOPRO Hero HD at 1920x720 - Stil

  • Redirect not working on registration or login

    Hi I have just started using the Developer Toolbox with CS3 and seem to have a problem. I built a registration login system. When I register the data is entered into the database however the redirected page does not appear the same page tries to relo

  • Understanding meaning of ORA-44602: pageout in progress

    I have a logical standby database. The v$logstdby_process view has been helpful in troubleshooting different issues from time to time, but I came across a new builder condition today and wanted to see if anyone has some insight on what this status me

  • Read color profiles in older EXIF formats

    The ability to read color profiles in older EXIF formats even when the profile is not embedded in the image itself, only written to EXIF, as the Kodak CD files discussed in a thread in the Bridge Macintosh forum. http://www.adobeforums.com/cgi-bin/we

  • How do I put my logo or whatever I want at the end of my movie iDVD6 ?

    I have been making DVD's for people taking their old B&W's and color photos and putting them into iPhoto after working on them in Photoshop, and then transferring straight out of iPhoto into iDVD 6 how can I make a page at the end with my logo who it