Session Implementation in flex application

Hi ,
I m getting problem in how to implement session in flex
application.
Thanks in advance

I'm not using Flex, but the following preserves session in Flash:
var url = "http://" + WebServerIPAddress + "/" + ApplicationName + "?data=" + datavalue;
var cmd:String = "window.open('" + url + "','win','height=768,width=1024,toolbar=no,scrollbars=yes');";
var request:URLRequest = new URLRequest("javascript:" + cmd + " void(0);");
navigateToURL(request, "_self");

Similar Messages

  • Question about implementing a Flex app in Wlp 1.3.2

    Does anyone have an example of implementing a flex application in weblogic portal? I'm trying to figure out how one flex portlet (java 286) can trigger an event and have another java 286 portlet catch the event.
    thanks

    Yes, you have the snmpEngineTime / .1.3.6.1.6.3.10.2.1.3 option on IOS 12.0(3)T or later, as explained in this post:
    https://supportforums.cisco.com/message/573246#573246

  • A certain set of keys randomly stop working in a Flex application

    My company has a Flex application (version 4.5.1), and certain keys will stop working from time to time when typing in a TextInput (the MX variety).
    Each occurrence has been on a Windows machine.  I have noticed it in Internet Explorer 11, using 15.0.0.152 (developer version), and co-workers have noticed it on other versions of IE (I don't know which Flash Player versions they were using, but they weren't the developer versions).
    About the only major change I can think of that may coincide with this issue would be having to convert a Google Map from using the Flash API to the JavaScript API.
    The keys that have stopped working are: k, m, !, #, $, %, &, (, -, _, =, +, ', " (capital "K" and "M" still work)
    I can still paste these characters into the text box even when the keys aren't working, so it's not an issue with the text box not accepting the characters.  I can have the application open in multiple tabs and have things working normally in 1 tab but not the other.  I have seen the keys stop working and start working again without refreshing the tab.

    Understood.  We have an extensive set of automated regression tests, and in the rare instances where we do break text input, it's an on/off thing.  This is super interesting because it's so weird, but I have zero theories about why it might be happening.
    If it is a Flash bug, there's probably a really long sequence of steps required to get it into a wonky state where this would occur, and the only way that we would figure out what's going on would be to reproduce it under an interactive debugging session.  I'll ask around, but I've been working on the engineering team since 2006 and I've *never* seen this.  I really like crazy stuff like this, but I've got nothing...

  • Flex application -- Focus

    I'm designing a Flex application, and for the most part, I
    want to allow users to drive the application with simple
    keystrokes.
    Obviously I need to content with a couple of UI issues:
    1) I don't want to interfere with text field input and the
    likes.
    2) After the user commits (i.e. closes or exits text fields
    or other objects that claim focus of text input) I'll need to set
    focus (responder?) to the flex application itself .
    Is this easy to accomplish?
    Thanks John

    You can set focus within the flash player to components
    within the flash player.
    You can set focus within the browser window to the Flash
    player (if you need to).
    Easy? That depends on how you want your app to behave and how
    you implement that behaviour. A "suck it and see" approach might be
    best to ascertain that one - learn by doing and similar
    clichés have merit here.
    If you have a more specific question about implementation
    detail, post back and the board should fix you up with an
    answer.

  • Drag between two flex applications?

    Hi,
    In the project I'm working on I display tree which the user can manipulate by dragging and dropping. So far I have a tree in a flex application, and I've implemented dragging and dropping. I'd like the user to be able to drag from one tree to another, but as my flex application will interact with my HTML pages, I don't want to waste space by having room for the second tree all the time.
    The flex application is embedded on a HTML page, and I'd like to be able to have two instances of my flex application and have the user able to drag between them. Is this possible? I did wonder if it would be possible to implement something like this using a javascript callback, but is there a standard way of doing this?
    Thanks,
    Jonny

    Hi Jonny,
    I've also faced with problem of draging between two applications.
    It's possible to transmit data between these applications, but it's only a half of the task.
    The main problem it to handle mouse release error on second application.
    There is no problem to handle that user drag object and move it out of the component - it's ok.
    After that we should handle the position of droping this object.
    Also it's no problem to handle that mouse is on over component and left button is pushed (at this handle create imitation of starting draging). But it's impossible to handle first mouseUp event. This event don't visible in html (object don't rise mouseUp event) and don't handle in flex. I'm still try to understand the way to get round.
    The only way I've founded is to hide flash object on mouseOver event and show an image instead of it until mouseUp event raised. After that show flash and calculate the position of draging. But's if you use tree it's not a good way.

  • Restarting A Flex Application Programmatically

    Howdy folks,
    I have just created a database driven user management system
    which works wonders, but I'm having a problem with logging out a
    user. By far the easiest, sure fire way of doing this would be to
    clear the users login in the database (not really relevant to the
    problem) then restart the application programmatically (as if the
    user pressed the refresh button in thier browser) which would bring
    them back to the login screen at the start of the application. Is
    re-initialising the application possible to do in actionscript?
    If not it would involve clearing user specific variables,
    resending http requests which relate to the login, removing
    permissions based controls and all this over many modules... just a
    hell of a lot of what may be unesscessary work, especially if all
    that really needs to happen is the application to re-initialise.
    Any help on this would be amazing!
    Many thanks

    quote:
    Originally posted by:
    mattyb1515
    My initial suggestion is to wrap your flex application in a
    PHP web page and let PHP do the authentication/deauthentication. To
    logout the user you can create a PHP function that destroys the
    session variable and then refresh/redirect to the login/home page
    of your application.
    Thanks for the reply but I'm afraid it isn't as easy as that.
    I'm a php guru and I do use PHP and FlashVars for use with
    authentication but only to 'remember' user information when the
    user opens up a different application (basically if they log into
    one application, theyre logged into the rest). Using 'out of
    application' authentication is of no use when it comes to a
    permissions based user system and applying dynamic permissions
    (such as "this user can see this menu", "this user cant press this
    button") to a flex application. It's clearing these permission
    variables I'd prefer not to do if the application can be
    programmatically re-initialised which would have the same
    effect.

  • Drag and Drop between Flex application

    Hello,
    Can we implement the Drag and Drop functionality between 2
    FLEX applications?
    Each flex application is in its own IE.
    Thank you,
    Thierry

    To my knowledge you can't drag and drop anything between 2
    windows in a browser using any technique in the way that you mean.
    In other words, I don't think you can even do this in javascript
    between 2 windows.
    You can use LocalConnection to simulate this though, by
    having the drag manager notify the other application when it leaves
    the stage, so that when you reach the other application it will
    start the drag effect again in that window.

  • Playing with Session Data in Flex App

    Hi!
    I'm trying to figure something small out.
    1. Users login to (Index.php) and Session information is stored.
    2. When I want to display specific session data, I use the code: $session->username
    Now for the Flex Application
    How do I display that "$session->username" in a label? on that exact page? (Index.php which loads the Flex App)
    Any help is really appreciated.
    Thanks!

    I am going to assume by, "with subnods(sp)" you mean things nested like a tree control in the rows.  The name of this control in Flex is AdvancedDataGrid, with that a simple google reveals:
    http://flexgeek.wordpress.com/2007/06/13/simple-ganttchart-using-advanceddatagrid-of-flex-30-moxie/
    http://flexpearls.blogspot.com/2007/06/advanceddatagrid-summary-roll-up-sample.html
    http://livedocs.adobe.com/labs/flex/3/langref/mx/controls/AdvancedDataGrid.html
    Adobe Labs info with known issue list:
    http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Advanced_DataGrid

  • Session handling in Flex

    I am using remote object for the flex and service communication. After multiple time log in and log out , which is done by remote object call also, I am getting different session id for browser and from the client side. Is there any way to restrict this session id conflict

    I think you are getting confused by comparing flex
    development with jsp serverside development, its completely
    different thing,
    1. How to pass hidden variables using flex.(In jsp we pass it
    throuth hidden field, is there any mechanism similar to that one)
    -- honestly, where do you really want to pass hidden field to
    ? (hidden fields is a hack implemented to overcome the way http
    protocol works , in flex you don't need that hack) .
    2) you can implement exception routine same way (even easier
    in flex) if error occures show this and this page(for example error
    canvas. with error mesage thats it,
    3) How to do session handling in Flex.
    -- question is too vague, do you ave concrete problem that
    you think of?

  • Why plugin/addon concept for Runtime Shared Libraries not implemented in Flex?

    Hi All,
    I am posting my refined query here in continuation to my post Fundamental and crucial drawback with Flex in Flex India Community as my last refined query was left unanswered though I feel there is a definite sense of purpose to it.
    Why plugin/addon concept for Runtime Shared Libraries not implemented in Flex?
    Here is why I feel it should be implemented in Flex.
    Though Runtime Shared Libraries SWF file can be cached in the client browser and just need to be loaded only once when the user access a Flex application for the first time,
    "40-60% of daily visitors to your site come in with an empty cache. Making your page fast for these first time visitors is key to a better user experience."
    Qouting from 'Best Practices for Speeding Up Your Web Site' as described in Tenni Theurer's blog post Browser Cache Usage - Exposed!
    While still retaining the cacheability of RSL's for compatibility reasons, flex should give the flexibility and thereby enhance performance by offering RSL's as a plugin/addon.
    Looking for your comments and insigts on the same.
    Thanks,
    Ram Manoj Kongara.

    I finally skimmed through the links you posted.  The terms plugin and addon
    are not in either of the articles so I'm unclear what you are suggesting.
    The topic seems to be about application performance.  The Flash Player
    supports a cross-domain cache of actionscript libraries separate from the
    browser cache.  Each official release of Flex contains a set of these
    libraries.  As new Flash Player versions or new Flex versions are released,
    and users visit sites utilizing those new versions, the browser picks up the
    latest Flash Player and the Flash Player picks up the latest Flex libraries.
    These days, it only takes a few months for a new Flash Player to achieve
    major saturation in browsers although it still takes a bit longer for Flex
    libraries to achieve saturation.
    Adobe will soon be hosting these libraries so if you build your application
    to leverage these libraries, you will find that the total download from your
    server will be minimized, limited to only your application code and assets,
    although you might want to serve the libraries in case they are not already
    in the cache if you see high latency to the Adobe servers on a cache miss.
    The SWF or SWFs you do serve off your servers should be optimized through
    normal good application development practices.  Flex provides features such
    as deferred instantiation in its ViewStack and Accordion containers to defer
    the creation of objects until viewed.  Flex has a ModuleManager to allow you
    to not download parts of your application until they are needed.  A
    model-view or MVC architecture will make it easier to create modular
    boundaries within your application and leverage these features.
    If I have not addressed your concerns please describe your issue in more
    detail.
    Alex Harui
    Flex SDK Team
    Adobe System, Inc.
    http://blogs.adobe.com/aharui

  • FlashIsland UI element missing to embed Flex application

    Hi,
    I am trying to add flex application into my webdynpro java . But FlashIsland UI element is not displaying in my NWDS.
    I am using NWDS Version: 7.0.09
                     EP Version: 7.0      SP: 16
    Is there any way to get the FlashIsland UI element in my view?
    Regards
    Vineela

    Hi Vineela,
    To implement Flash Island for Web Dynpro Java applications integrating Flash Islands, you require the following:
    Adobe Flex Builder 2 or 3
    Adobe Flash Player 9 Update 3
    Flash Island Flex library WDIslandLibrary.swc. To enable the use of a Flash/Flex component in Web Dynpro, the component must exist in the form of a FlashIsland. This wrapping enables the communication between the Flex component and the Web Dynpro Framework.
    Are you sure, you are having the required installations available with you. Please check the links below for more information on the same, in case you have missed:
    [Adobe Flash Islands for Web Dynpro Java|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/301e6047-01c9-2b10-3998-a08970c23639]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/203ece12-85bf-2b10-31a1-cc051670e9c7]
    Please keep posted in case found useful. Thanks!
    Regards,
    Gaurav Bhardwaj

  • Using TableLocking API in Stateless Session Bean through WD application

    Hi All,
    We have develpoed a webDynpro application which involved Jav Dictionary Table.
    We have given UI for Creation, Updation and Deletion of the table.For database connection we have used Stateless Session Bean.
    we have the requirement of Locking the Table record when one user is either editing or deleting the record of Table from UI, so any other user cannot update or delete the same record.
    To implement the above functionality, we have used TableLocking API with lifetime as userSession in the Stateless Session Bean to acquire a Lock for particular record.
    With lifetime as usersession the record should get unLocked automatically, if the session of application is expired and record is not unLocked Explicitly.
    We are calling the Session Bean from Webdynpro application to acquire a lock, When the Dynpro application expires the locked record should get unlocked automatically as the lifetime is defined as usersession,But the record remains unlocked only even after expiration of the application sessionand deadlock occurs for that record.
    So if anyone can suggest the solution for the above problem.
    Or some other method to Lock Particular Record from application.
    Thanks in advance.
    Regards,
    Shruti.

    HI,
    Can you resolve this issue?
    I have the same scenary, could you give me some tips?
    Thanks,
    Freddy F

  • How to debug a Flex application on a mobile device

    I have a Flex application that has been tested thorougly on all major operating systems and browsers with no issues.  However, it does not work on my Droid device (Droid X also tested on EVO).
    My current Flash version on my phone is: 10.1.105.7
    My application is getting stuck at the very begginning when loading some XML via a URLRequest after loading a policy file manually.  I've looked at the WebServer debug messages and it seems like the request is never made.  What's the best way to debug this?  Is there an equivalent debug player for Android?
    Thanks!    

    Use Flash Builder Burrito from Adobe labs.  I am able to launch debug sessions w/ the app on my nexus one.  Although this is for native apps; I do not know if there is a way to test browser based apps

  • Prepopulating Flex application

    Hi,
    I am using flex applications for designing forms for Licecycle ES.
    I have a problem about prepopulation of forms.
    For XDP forms, I could prepopulate forms using render pdfform service.
    But for rendering Flex forms, I could only see Read resource content service which only gets the application from defined resource.
    And as I know, it has no capability of merging template and form data as I did for XDP forms.
    For example my current problem is when process creator opens a form to initiate a process, I want to prepopulate the form with some userss
    İnformation like name, departmet etc..
    Is there any method to propose to solve this problem?
    Note : As my flex form is opened in workspace (which is also a flex application ), and in workspace application I could see the username (commonname), may be it is possible to get this variable of parent applications from my flex form. If it is defined public..
    Anyone knows how can I reach this variable?
    Thanks in advance
    Regards
    Cihan

    There is a way to do that. This is an extract from an email one of my colleague on the subject:
    In your Flex form you will make use of the FormConnector (see Flex Language Reference under lc.core.FormConnector which is used to simplify communication between Flex app and Workspace ES) that exposes three events (formInitiallData, formSaveDataRequest, formSubmitDataRequest). This will let you run a function when the Flex form initializes in Workspace - -the goal of that function will be to make a call to retrieve the data required and merge it into the Flex form.
    In order to retrieve the data required for pre-population a common need would be to retrieve data related to the logged in user making the start form request. This information is not known to your Flex Form but is known to the Workspace ES Flex application that is hosting the form. So what you will need to do here is gain access into the Workspace application to retrieve the current session. From that current session you can extract the id (sessionManager.authenticatedUser.oid) of the current user. This will be an argument to your function calling some external source for data to be pre-populated.
    You can now make a call to the data source to retrieve the data you want. For example, call a LC process that is exposed as a Web Service taking as its input a users id (the oid you retrieved from the session) whose steps will make the call to the directory server and get the info you need (e.g. department, manager, employee id, etc.) to prepopulate and return it back to the Flex form.
    I do not have a working sample of this but below is a portion of sample code that would be in the Flex form and reflects what was discussed above.
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:lc="http://www.adobe.com/2006/livecycle" creationComplete="connector.setReady()" width="100%" height="100%">
    <lc:FormConnector id="connector"
    formInitialData="initialData(event)"
    formSaveDataRequest="returnFormData(event)"
    formSubmitDataRequest="returnFormDataForSubmit(event)"/>
    <mx:Script>
    <![CDATA[
    import lc.domain.SessionMap;
    import lc.core.ISessionManager;
    private function getUserId():string
    var session:SessionMap = SessionMap(Application.application.session);
    var sessionManager:ISessionManager = ISessionManager (session.getObject("lc.core.ISessionManager"));
    return sessionManager.authenticatedUser.oid;
    Private function prepop(userId:String):XML
    \\add code to call Web Service and retrieve info to prepopulate (in our example à name, dept, mgr)
    private function initialData(event:DataEvent):void
    if (event.data != null && event.data != "")
    xmldata = new XML(event.data);
    else
    var myUID:String = getUserId();
    xmldata = prepop(myUID);
    ]]>
    </mx:Script>
    <mx:VBox horizontalCenter="0" verticalCenter="0" width="100%" height="100%">
    <mx:Form id="theForm" backgroundColor="0xffffff" width="100%" height="100%">
    <mx:FormHeading label="My form"/>
    <mx:FormItem label="Name" required="true">
    <mx:TextInput id="userName" text="{xmldata.name}" change="xmldata.name = userName.text; connector.setDirty()"/>
    </mx:FormItem>
    <mx:FormItem label="Name" required="true">
    <mx:TextInput id="userDepartment" text="{xmldata.dept}" change="xmldata.dept = userDepartment.text; connector.setDirty()"/>
    </mx:FormItem>
    <mx:FormItem label="Name" required="true">
    <mx:TextInput id="userManager" text="{xmldata.mgr}" change="xmldata.mgr = userManager.text; connector.setDirty()"/>
    </mx:FormItem>
    </mx:Form>
    </mx:VBox>
    </mx:Application>
    I hope that helps.
    Jasmin

  • Sso session timeout per partner application

    Hello,
    I was just wondering if it is possible to configure SSO session timeouts per partner application? I'm looking to log out users of a particular application after 15 minutes, but don't want this change to affect any of my other SSO enabled applications. Is this possible?
    Thanks,

    Hi,
    I do not think so, you can not specify specail parameter for one application in SSO.
    Why because SSO is one component (within your Infra) through which you logon different apps.
    Another solution may be it will expensive is that you 'll need to use different infra for this specific application.
    Regards,
    Hamdy

Maybe you are looking for

  • How can I display appraisals in "employee search(MSS)"?

    I created a new iView that is copied from employee search of MSS . <pcd:portal_content/com.sap.pct/line_manager/com.sap.pct.erp.mss.bp_folder/com.sap.pct.erp.mss.iviews/com.sap.pct.erp.mss.hcm/com.sap.pct.erp.mss.generalinfo_employeesearch> I changed

  • Weekwise Inventory report

    hello all i am working on one report on the inventory cube 0IC_C03. the report goes like for a particular plant, inventory value for that week say, Plant                                                                                0VALSTKVAL Week1 

  • I am using photoshop elements 11

    My problem is adjusting color.  I am having problems with the colors of red and green.  I have a figurine that is hunter green.  After taking the photo the color is a light green when I need a dark hunter green.  Is there a way to adjust color on gre

  • I don't understand how to put text files on 5th generation

    please help me, i dont even see where the settings thing is

  • Visual attribute help

    I have Datablock A & B... Both display 3 columns based on the same table but different schema. Each block displays 15 records .I created a pre-select trigger with the following visual attribute For datablock A set_block_property('A',current_record_at