Issue with flex lifecycle

I am trying to address an issue with flex lifecycle
There is a ui component ( say CompA) comprising of multiple tabs with individual components used in each of them.
CompA uses a data object that is used to populate the fields.
On click of a button in another panel, I am setting the current state of the application to this view component and after CompA is completely rendered I would like to load the data object and populate the fields.
The issue here is I cannot use the creationComplete event of CompA to load this data object because at this time not all components are  completely created. (creationComplete of each of those components is not completed yet),.
When exactly can I load this data object into the UI fields. I am not able to figure out where even callLater() can be used .
applicationComplete 
Event doesn’t seem to be an option, in this case.

You can load the data when the state changes.  There are events for that.
You could also look into updateComjplete which may work for you.

Similar Messages

  • Tricky issue with $FLEX$

    Hi All,
    I have a concurrent program with three parameters(say A, B,C)
    My requirement is to
    a) derive B using parameter A (I guess it can be done using $FLEX$)
    b) dervice C using both parameters A, B
    Is it possible to use $FLEX$ to fetch values of both A,B parameters.
    Could someone please assist.
    Regards
    Kiran

    Kiran
    I think you can do that. As when you flex you give value set name along with it. So you should be able to write in the query with $FLEX$.VALUE_SET1 and $FLEX$.VALUE_SET2
    I think it should work

  • Issue with $FLEX$ and populating dates.

    Hello,
    I'm creating a custom report for a HR report. I have a requirement to enter a report type, if that report type <> 'DATE' then the parameters to enter dates are to be disabled. I when through the following steps.
    Steps:
    1. Define controlling parameter, XXRPT_TYPE
    2. Define parameter - P_HIDDEN_PARAM. As it's name suggests, this is a hidden parameter, which will not be visible when we submit the conc. program.
    Set it's Default Type as "SQL Statement " and
    Default value as - "select decode(:$FLEX$.XXRPT_TYPE,'DATE','Y',null) from dual".
    3.Define custom valueset, which will used for the date parameters - " Date From" and "Date To".
    a) Click on Edit Information and enter forllowing query in Table Name field.
    (SELECT (TO_DATE (SYSDATE - 200 + LEVEL, 'DD-MON-RRRR')) date_range FROM DUAL CONNECT BY LEVEL <= 1000)temp_tab
    I am using "CONNECT BY LEVEL" concept to produce dates with the range of 1000 days.
    You can modify 1000 to any other figure as per your requirement.
    b) Set Value Name as date_range, which is nothing but the alias name in the query above.
    c) I Entered following WHERE clause in Where/Order By field.
    WHERE :$FLEX$.AMS_SRS_CHAR50='DATE RANGE'
    When I run the concurrent program, the date field will disable if the report type will is on something other than Date Range, however when the report type is date range, I get an error (No Entries found for List of Values) If I comment the where clause then the date are displayed, but the disabling doesn't work. Does anyone have any ideas for me?

    not sure what do you want but
    >
    if that report type 'DATE' then the parameters to enter dates are to be disabled.
    >
    >
    1. Define controlling parameter, XXRPT_TYPE
    >
    >
    3.Define custom valueset, which will used for the date parameters - " Date From" and "Date To".
    >
    for each date parameters
    WHERE :$FLEX$.XXRPT_TYPE != 'DATE'

  • Issue with Flex Profiling

    I am trying to run memory profiling for a flex application. But when I run the profiler, it does not open up the window for me to select options to do profiling on. I followed a link on http://stackoverflow.com/questions/2354891/flex-profiler-doesnt-do-anything and updated the mm.cfg file didnt help either. Can any one help me with this?
    Thanks.
    KM

    Reboot.  Make sure debugging works.  Then try profiling again.

  • Issues with Adobe LifeCycle Designer

    Hi,
    I m using Adobe LifeCycle Designer 7.0 with SAP NetWeaver 7.0.11 on windows XP.I m facing these 2 problems :
    1. In my form i have few subforms.For those i have set Auto fit property as true,Expand to fit property is true ,Allow multiple lines property is true ,Allow Page breaks within content property is true & the layout is flow content.
    If the complete data for 1 subform is shown in same page,it shows the complete data but if the data is split into more than 1 pages,its showing the data in both pages but it truncates some data.
    e.g. Suppose 1 have a subform & in that 20 rows are available.If that subform split in 2 pages,it shows 10 rows in 1st page but in 2nd page it shows only 6-7 rows & truncates 2-3 rows from the last.I m not sure what can be the problem.
    2. I m not able to put some extra space between 2 subforms while using Flow Content Layout.
    regards
    Sumit

    To create a form in the AcroForm format or LiveCycle Designer you will need Acrobat Professional as Standard does not have the form tools. Although LiveCycle Designer will export in the XML format. It is also possible to export form data from Acrobat in the XML format by using the XFDF format.

  • Issues with Adobe LifeCycle Designer & SAP Netweaver

    Hi,
    I m using Adobe Lifecycle Designer 7.0 with SAP NetWeaver 7.0.11 on Windows XP.I m facing these 2 problems in that.
    1. I have few subforms in my form & for those i have set Auto fit property as true,Expand to fit property is true ,Allow multiple lines property is true ,Allow Page breaks within content property is true & the layout is flow content.
    If the complete data for 1 subform is shown in same page,it shows the complete data but if the data is split into more than 1 pages,its showing the data in both pages but it truncates 2-3 lines at the end.I m not sure what can be the problem?
    2. While using Flow content ,i m not able to put some blank spaces between 2 subforms.
    regards
    Sumit

    Hi Sumit,
    You have probably worked this out by now but just in case anyone else has this problem (I remember how frustrating it was):
    Just to point out this has nothing to do with NetWeaver (apart from the LiveCycle version it is using) only with LiveCycle.
    Page flow will only occur within the parent subform so if you have an subform that is flowed it can only flow within the parent and if the parent is static (or positioned) then the child subform will appear to be cut off as it flows within its parent.
    To be able to flow over pages you need to have all the parent objects right up the chain to the sub form that represents your page to be flowed as well.
    The next challenge is to be able to position things the way you want them and flow your content. This is where you need to get a creative mix of positioned and flowed elements within your layout to achieve your goals.
    Relating to the second question you can use the margin attributes to create space between two flowed objects.
    Hope this helps (someone...)
    Ben.
    Ben Patterson
    http://www.acclimation.com.au

  • Issue with Flex field context value

    Hello all,
    I have changed the seeded flexfield context segments to customize based on our requirement for the "Additional Period of service" DFF. It looks good but the segments still point to the old value sets validation. Please advice how to fix it.
    thank you
    KK

    Hi Kalyan,
    Just check out if some kind of conversions are possible. You haven't specified the type of the parameters - both the search help parameter and the screen field parameter. Specify that too.
    Regards
    Anil Madhavan

  • Issue with child items of flex tree using QTP

    Hi,
    We are trying to automate Flex web application using QTP10.
    We are facing below issue with Flex tree when we try to automate a scenario of selecting a child item displayed in flex tree.
    Issue:
    On recording the step of selecting an item from Flex tree using QTP, the script displayed is .Select Index1. But when we replay it back no action is being performed.
    Also on object spy we are able to navigate only till flex tree and we are not able to spy child items of flex tree.On the web page the child items are displayed as radio buttons/checkboxes.
    Please provide a solution for me to this problem.
    Thanks

    Hi,
    You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
    Perhaps there is some additional/missing information being passed from catalog to SRM.
    Kind regards,
    Ricardo

  • Issue with graphics tearing on thumb scroll in Flex 3

    We are seeing some off issues with graphics (one using the charting package and the other using degrafa) tearing on thumb scrolling in a large Flex 3 app.  It's very hard to reproduce on OSX with the latest versions of Safari and Firefox, but it shows almost immediately when you run the app on Windows or Linux (regardless of the browser).  I took one of the pieces out of the app and put it into a very simple testbed app and can't get the problem to show on Windows (i was hoping to isolate the issue in a smaller test case, but no such luck).
    So, ii've got a few idea's on how to work around the issue, but i was wondering if anyone else has seen this type of problem before?
    Problem:   
         - graphics tear on thumb scroll
         - doesn't happen if you click in the track or use the arrows
         - one view is using the charting package, the other view is using degrafa
    Thanks for any comments or suggestions...
    Richard

    SOLUTION:  changed wmode from "opaque" to "window" in the jsp serving as the wrapper for the app's main swf...
    Here's the reference we used to determine the proper setting for wmode;
    http://kb2.adobe.com/cps/127/tn_12701.html
    Thanks again for the response...  Richard

  • Flex Module issue with Panel

    Hello everyone. I have the following problem.
    In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
    Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
    at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
    at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
    Indicates that the main applications have object Panel
    Please help.
    P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
    ADDED: I extendes the Panel class and do something like that:
    override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
                    use namespace mx_internal;
                    if(!(mx_internal::titleBarBackground is TitleBackground)) {
                            mx_internal::titleBarBackground = new TitleBackground();
                    super.layoutChrome(unscaledWidth, unscaledHeight);                     
    But now i had something like that: Before After
    You can see that it loos style declaration.H

    Thanks for the anserw.
    I don't exacly understand all but i found a solution for my problem and it works.
    Could you tell me if this is ok ?
    I Add in my main app
    public function getProductWindow():ProductWindow {
        return new ProductWindow();
    And in the module i change
    From var productWindow:ProductWindow = new ProductWindow();
    To var productWindow:ProductWindow = Application.application.getProductWindow();

  • Issues with file upload in flex mobile application (sharepoint as backend)

    Hello,
    I am working on flex mobile application for android platform for which we are having sharepoint as a backend.
    (Flex SDK 4.6 and AIR 3.9)
    Issue which we are facing is as follows:
    We are communicating with the backend server using webservices: example:
    <s:WebService id="kWebService" wsdl="http://www.kservice.net/kdatabaseservice.asmx?WSDL" >
                <s:operation name="AddPost"
                             resultFormat="object"
                             result="addPostResult(event)"
                             fault="postsfaulterr(event)" />
    </s:WebService>
    Above services are working fine but we are facing issue with one service which is related to file upload.
    File upload for <10 MB is working fine but when we try to upload larger file on server it fails to process.
    We are sending bytearray to the backend and backend code is writing those bytearray into file.
    We have tried many ways to overcome from this situation. like we have checked configuration for file upload size on server , we have tried wcf services as well. Please help us on this criticle point as soon as possible
    Thanks
    Dhwani

    Prashant8809 wrote:
    Hi
    >
    > I have already gone through the video by Thomas Jung for multiple file upload but it saves the contents in server and not in >transparent table. So please suggest me alternative solutions.
    >
    >
    > Regards
    > Prashant Chauhan
    What do you mean that my video saves the contents int he server and not in transparent table?  I save the data into a temporary database table so it can be accessed by the parent WDA session. From there the WDA session can do whatever it wants with it.  What do you mean by transparent table - that would be a database table. Do you actually mean internal table?  if so, just read the data from the temporary database table into memory.

  • Flex file upload issue with large image files

         Hello, I have created a sample flex application to upload an image and also created java servlet to upload and save image and deployed in local tomcat server. I am testing the application in LAN. I am able to upload small as well as large image file(1Mb) from some PCs but in some other PCs I am getting IOError while uploading large image files however it is working fine for small images. Image uploading is hanging after 10%-20% and throwing IOError. *Surprizgly it is working Ok with XP systems and causeing issues with Windows7 systems*.
    Plz give me any idea to get a solution.
    In Tomcat server side it is giving following error:
    request: org.apache.catalina.connector.RequestFacade@c19694
    org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:371)
            at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.ja va:126)
            at flex.servlets.UploadImage.doPost(UploadImage.java:47)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
            at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:594)
            at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStre am.java:982)
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:8 86)
            at java.io.InputStream.read(InputStream.java:101)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:96)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:66)
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:366)
    UploadImage.java:
    package flex.servlets;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.util.regex.*;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.*;
    import sun.reflect.ReflectionFactory.GetReflectionFactoryAction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class UploadImage extends HttpServlet{
             * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
             *      response)
            protected void doGet(HttpServletRequest request,
                            HttpServletResponse response) throws ServletException, IOException {
                    // TODO Auto-generated method stub
                    doPost(request, response);
            public void doPost(HttpServletRequest request,
                            HttpServletResponse response)
            throws ServletException, IOException {
                    PrintWriter out = response.getWriter();
                    boolean isMultipart = ServletFileUpload.isMultipartContent(
                                    request);
                    System.out.println("request: "+request);
                    if (!isMultipart) {
                            System.out.println("File Not Uploaded");
                    } else {
                            FileItemFactory factory = new DiskFileItemFactory();
                            ServletFileUpload upload = new ServletFileUpload(factory);
                            List items = null;
                            try {
                                    items = upload.parseRequest(request);
                                    System.out.println("items: "+items);
                            } catch (FileUploadException e) {
                                    e.printStackTrace();
                            Iterator itr = items.iterator();
                            while (itr.hasNext()) {
                                    FileItem item = (FileItem) itr.next();
                                    if (item.isFormField()){
                                            String name = item.getFieldName();
                                            System.out.println("name: "+name);
                                            String value = item.getString();
                                            System.out.println("value: "+value);
                                    } else {
                                            try {
                                                    String itemName = item.getName();
                                                    Random generator = new Random();
                                                    int r = Math.abs(generator.nextInt());
                                                    String reg = "[.*]";
                                                    String replacingtext = "";
                                                    System.out.println("Text before replacing is:-" +
                                                                    itemName);
                                                    Pattern pattern = Pattern.compile(reg);
                                                    Matcher matcher = pattern.matcher(itemName);
                                                    StringBuffer buffer = new StringBuffer();
                                                    while (matcher.find()) {
                                                            matcher.appendReplacement(buffer, replacingtext);
                                                    int IndexOf = itemName.indexOf(".");
                                                    String domainName = itemName.substring(IndexOf);
                                                    System.out.println("domainName: "+domainName);
                                                    String finalimage = buffer.toString()+"_"+r+domainName;
                                                    System.out.println("Final Image==="+finalimage);
                                                    File savedFile = new File(getServletContext().getRealPath("assets/images/")+"/LowesFloorPlan.png");
                                                    //File savedFile = new File("D:/apache-tomcat-6.0.35/webapps/ROOT/example/"+"\\test.jpeg");
                                                    item.write(savedFile);
                                                    out.println("<html>");
                                                    out.println("<body>");
                                                    out.println("<table><tr><td>");
                                                    out.println("");
                                                    out.println("</td></tr></table>");
                                                    try {
                                                            out.println("image inserted successfully");
                                                            out.println("</body>");
                                                            out.println("</html>");  
                                                    } catch (Exception e) {
                                                            System.out.println(e.getMessage());
                                                    } finally {
                                            } catch (Exception e) {
                                                    e.printStackTrace();

    It is only coming in Windows 7 systems and the root of this problem is SSL certificate.
    Workaround for this:
    Open application in IE and click on certificate error link at address bar . Click install certificate and you are done..
    happy programming.
    Thanks
    DevSachin

  • Any issues using ALCS with Flex 4?

    We're about to move some of our code base to Flex 4, and I wanted to check in advance if there would be any issues with ALCS using Flex 4 Beta 2 and Flash Builder Beta 2.
    Thanks,
    Rick

    Hi,
    If you are using player 10 ALCS swc and Whiteboard with Flex 4 and Flash Builder beta 2, it might throw an exception sometimes which has been fixed recently and will be updated in the next drop.
    Player 9 ALCS swc should work fine. We haven't done testing extensively on Flex 4 for our framework, so if there are any issues that you come across, please report to us.
    Thanks
    Hironmay Basu

  • Ideapad Flex 14 issue with Windows 10

    I had this with Windows 8.1 for almost 2 years.  It works fine.  Now i upgraded it to windows 10 and everything went ok but both Wired internet connection LAN and Wireless internet connection was not working.  I have downloaded the drivers by myself and also what Lenovo support suggested but it is not working.    Has anyone with Lenovo Flex 14 upgraded to Windows 10 successfully. In some ways Lenovo was advocating to update to windows 10 but they don't want to help me but send me to premium support where i have to pay :-( Thanks in advance for any help.  

    This really is a driver issue with Nvidia SLI or not, but it has to do with this monitor and possibly it's 75Hz refresh rate.  I thought I'd share and hopefully Acer can work with Nvidia to make their new monitors compatible with Win10.  I know we are using bleeding edge tech here, I don't mind doing the troubleshooting as long as someone acknowledges the issue and will fix it. Serious memory leak with 355.60 as soon as the monitor goes to sleep. I've done extensive testing with poolmon, xperf, etc to see if any other drivers cause this, but nothing, this is a brand new win10 fresh install. Easiest way I can show this is via MSI afterburner. Monitor is set to sleep after 1 minute so I can do this quick test.    You can see less than 2 minutes in, pagefile usage already jumped up 4gb.Unless I wake the monitor, this will eventually eat up all virtual memory resulting in:  

  • I'm having issues/glitches with Flex Pitch

    When I analyze any vocal track with flex pitch, It messes up quite a few of my notes and tunes with weird buggy sounds,skips & stutters.
    sometimes with gargly noises as well. When I decide I just won't flex pitch that area and delete the flex pitch, it's already messed up my track and won't go back to sounding normal. I want to know how to get rid of it! or at least how to fix that problem. even if there's an easier way to just actually delete it. I've even tried to make a seperate track for just the vocal parts that are haing issues, but it's still there when i move it. I feel like it's corrupt my vocal track and i'd like to use to one i already have instead of rerecording all the time .
    Any help would be greatly appreciated
    Here is a small sample of my problem in the vdeo link below and one of the smaller glitches. it's very noticable when the whole track is playing too.
    https://vimeo.com/78046518

    Same issue for me. Has happened on different projects and different kinds of tracks (vocals and guitars)

Maybe you are looking for

  • Setting cursor in JTable TableCellRenderer

    I'm trying to get the cursor to change (hand cursor) when mousing over a cell in a JTable. I've tried making my own TableCellRenderer as such: public class DrillDownCellRenderer extends DefaultTableCellRenderer {   public Component getTableCellRender

  • Can I edit an preexisting vector image in PSCS5?

    I know I can make a vector image in CS5, but is there a way I can import an existing vector image (ie. an .ai image) and then edit it in Photoshop? I'm using CS5, on MacOSX Lion. Thanks for your feedback!

  • Copy tv shows to ipod

    Hi, can someone tell me if it's possible to copy tv shows directly to ipod from tv? If so, how do I do it and what will I see on the ipod. I tried connecting an av cable but nothing happened. Thanks ever so much

  • RFC-enabled authorization checks for specific tables?

    I am developing an Excel application which calls several BAPIs and RFC-enabled FMs, most notably RFC_READ_TABLE.  While I will provide security at the FM level by checking S_RFC for these FMs, I need to find a way of restricting access for users to s

  • None of the resources are being displayed in ESS

    Hi Experts, i have created test user in ESS, when i click on EMPLOYEE SEARCH----> WHO IS WHO, I get a blank page, and data field is visible, i have maintained the infotype 0105 with subtype 0001 can someone help me to troubleshoot this issue, thank y