Setting variables during component initialization

I am loading a component which makes a HTTPService call to get data that will then be used to set certain variables in the component.  I make the HTTPService call in an init() function (for the initialization event) and then set the variables according to the data received in the HTTPService result handler.  However, the variables are still null at both the initialize stage and at the creationComplete stage.  If I try and read the variables in a creationComp() function (for the creationComplete event), those variables are still null.  Is this correct?
I guess I don't understand the flex initialization cycle very well.  When are those variables actually set and available to be used?  I need to manipulate those variables automatically after the component loads.  Is there an event that comes after creationComplete that is appropriate or some other way to approach this?  I am using Flex 3.

initialize is at the beginning of creation, creationComplete is at the end of creation.
You can create those variables at anytime, but making the HTTP service call before creationComplete will not gurantee you that they have been created yet.
I would create the variables in init, fire off my HTTP call in creationComplete and have a result handler setting the variables I created earlier.  Make sure you are actually setting the variables to the recieved values.

Similar Messages

  • Issues during Component Batch Determination for Process Orders

    Hi,
    I am encountering a strange issue during component batch determination of process order.
    1. During creation of process order, when I execute batch determination, systems does determination based on strategies we have set and when I click on Copy it gives an error
    "Log cannot be saved: Object/subobject not specified"
    Message no. BL201
    *Diagnosis
    Log save cancelled because at least one log contains no object or subobject.
    Object and subobject are needed to classify application logs because there are several log types. Only a few logs are managed in main memory at runtime, so this classification is not needed.
    If the logs are to be saved in the database, object/subobject must be specified for later retrieval.
    Procedure for System Administration
    Object/sub object can be passed when a log is created (function module BAL_LOG_CREATE) and changed with BAL_LOG_CHANGE.
    The possible values for object and sub object must be configured in transaction SLG0.*
    If I save the order with CRTD status and come back again in change mode and do determination, It works fine.
    Again when the order is in REL status and do the determination, It gives the same error.
    This happens only for a specific plant, In other plants batch determination works in all scenarios.
    I checked for all plant related Config for batch determination and coudn't find any discrepancies.
    Please advise how to resolve this issue. Thanks in advance for your help
    Regards,
    Aheesh

    There Is no direct solution for your requirement just try this work around.
    While defining the batch determination search strategy for process order in COB1, there is one column Quantity proposal where you can attach the Routines (This is written in ABAB code )  make use of this, define New Routines with ABAB help to fulfill your requirement. Try this if found useful award full points.
    Regards,
    Ajay Nikte

  • Design mode troubles - "Error during component layout."

    Hi all.
    Since this is getting pretty annoying, I thought someone might know the right solution to this. Whenever I try to open Design mode on my AIR app (Spark + MX), I get:
    Design mode: Error during component layout. Choose Design > Refresh to refresh design mode.    MyTestApp.mxml    /MyTestApp/src    Unknown    Problem
    The MXML code for it is as simple as it can get:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                skinClass="spark.skins.spark.SparkChromeWindowedApplicationSkin"
                                >
    </s:WindowedApplication>
    And app descriptor XML only contains transparent set to true and systemChrome to none, even tho it shouldn't make any difference in the Design view anyway. Refresh doesn't solve the error, and sometimes the Design view itself goes into infinite loop of refreshing.
    However, if I remove the skinClass, it all works fine and Design view loads (but then I don't get the window chrome on run-time). Same goes if I declare the skin within <fx:Style /> tag, it only breaks when using skinClass attribute in the WindowedApplication declaration. And the same thing happens if I try to edit some of the Spark skins in the Design view.
    I've tried creating a new project, switching workspaces, building a blank workspace, switching from Flex SDK 4.1 to 4.0 - all to no avail, the same error always occurs and it never goes away.
    Any ideas?

    Instead of declaring the skin within the WindowedApplication tag, you have to call the Skin class from a Style tag right after you close your window tag:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    Xmlns:mx="library://ns.adobe.com/flex/mx"
    title="YOUR APP">
    <fx:Style>
    @namespace s "library://ns.adobe.com/flex/spark";
    s|WindowedApplication
    skinClass:ClassReference("spark.skins.spark.SparkChromeWindowedApplicationSkin");
    background-color:#999999;
    background-alpha:"0.7";
    </fx:Style>
    source: http://help.adobe.com/en_US/air/build/air_buildingapps.pdf

  • Oracle 12c getting ORA-4846 (missing read...permission on directory during ADR initialization)

    I'm in initial stages of testing Oracle 12c (12.1.0.1) on Windows, 64-bit with an application I develop.
    I had two working instances on the system. After an unscheduled power cycle, the instances refuse to start.
    The error I get is:
    C:\Users\b>sqlplus SQL*Plus: Release 12.1.0.1.0 Production on Thu Oct 17 13:54:27 2013
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    Enter user-name: / as sysdba
    Connected to an idle instance.
    SQL> startup
    ORA-48146: missing read, write, or exec permission on directory during ADR initialization [d:\oracle\diag\rdbms\cldb12c] [0]
    ORA-48187: specified directory does not exist
    OSD-00002: additional error information O/S-Error: (OS 5) Access is denied.
    The directory exists, but appears to be read-only. I've changed that (just to check), and there's no change except that the permissions are set back to read-only after the attempt. Ideas?

    Is it Vista or 2008, by default in these severs only files have a read only attribute Any changes to the folder's read-only box will only affect the files inside the folder, then the read-only box will default back to blue when you check it again.
    Because the attribute is set on the file level, then unchecking the folder box doesn't remove the Read-Only attribute, Check his note for more understanding and solution.
    Directory Permission Problems While Creating Database On Windows Vista and Windows Server 2008 (Doc ID 838547.1)

  • Reading locale system properties like set-variables of a windows Client

    Hello,
    is there a possibility to read locale system properties like set-variables of a windows Client?
    We want to read path-Info and user-info. Can I perhaps user javascript?
    Best regards
    Oliver Prodinger

    Hi Oliver,
    This code will work (assuming the client approves running of ActiveX)
    <html>
    <script>
      var shell = new ActiveXObject("WScript.Shell");
      var env = shell.Environment("process");
      alert(env("COMPUTERNAME"));
      alert(env("USERNAME"));
    </script>
    </html> 
    You can't really run it from WD, but what you can do is run this code from a portal component (DynPage/JspDynPage) that is running in the same page as your WD application and pass data by using portal eventing.
    The portal component iview can have size of 1 pixel so it won't be seen...
    Regards,
    Omri

  • Data loss during the initialization of sales documents

    Hi,
    I have to initialize all my sales documents data with the extractors 2LIS_11_VAITM, 2LIS_11_VAHDR and 2LIS_11_VASCL.
    I have done those steps :
    1 - Clear set up tables for application 11.
    2 - Fill the setup table for application 11.
    3 - Do Init with data transfer of those extractors.
    But when I look the data the next day (after the deltas which are running in the night), I have a loss of som sales documents.
    Can anybody explain me why ?

    Hi
    Have you locked the application tables during your initialization process..?
    You have to lock the application tables(so that users cannot create sales orders) until the below process completed.
    1)filling setup tables.
    2)Run IP init with data transfer.
    Now you can unlock, because we have delta queue now and any orders created will be updated to delta queue and this will be moved to BI in next delta.
    Solution:
    Now if you know the sales document numbers run the full repiar IP with sales document as selection.You will get the missed records.and you delta will work fine
    Hope this helps
    Regards,
    Venkatesh.

  • Send ecc variable during a conference

    HI,
    i have a cvp application which passes some values to icm during a transfer to agent and icm stores these values in ecc variables. Customer and agent are in conversation and the cvp port is released, now the agent initiates a conference which goes via a conference script in icm to cvp, i am setting the previous ecc variable in one of the toextvxml array in the conference script and sending it to cvp but this array value is empty when received i cvp.
    Is it possible to get the ecc variable value from the previous script and access it in the new script and then send it to cvp?

    Hi,
    Agent receives the call and the ecc variable gets displayed onto the callvariable grid, but when agent dials a conference number I am just routing to another skill group(using conference script where I use set variable to set the previous ecc variable into the callvariable) and populating the ecc variable into the call variable grid. Its not displayed.

  • Get value of formula variable during query runtime into a text variable

    Hi all,
    I wanna get the value of the formula variables during the query runtime into a text variable.
    My scenario is like this: First I defined a formula variable Z_DATE_3 which is processing by replacement. It will get the day of a characteristcs(Startdate).
    Then I defined a text variable and in the function module related to this text variable, I used the parameter I_T_VAR_RANGE which can store the value of formula variable during the query runtime.So I can read the value from this table in my function module.
    But I have a issue, when I run the query which used the defined text variable, it seems that it doesn't call the corresponding function module. Because I set a breadpoint in hte code and it never reach this breakpoint.
    If I removed the parameter I_T_VAR_RANGE , it can enter the function module.
    So could you please give some advice?
    Is my solution correct or not?
    And what's wrong with the parameter I_T_VAR_RANGE? Did I use it correctly?
    And My code is:
    DATA:  l_s_range_v TYPE rrrangeexit,
                 l_day type sy-datum.
    if i_step <> 2.
    raise no_processing.
    endif.
      READ TABLE i_t_var_range INTO l_s_range_v
         WITH KEY  vnam = 'Z_DATE_3'.
    if sy-subrc = 0.
         l_day = l_s_range_v-low.
    endif.
    Thanks in advance!
    Best regards
    Fanchest

    Hi, Fanchest,
    I'm having just the same issue.  Did you find a solution?
    I wrote a short routine in CMOD to derive the value of a formula variable to a text variable, but it's not working (I don't get any value).  Can you share your solution?
    Thanks in advance,
    LL

  • Error During Track Initialization

    I created a presentation in Keynote and exported it into iDVD6. I burned the presentation with not problem. Then I had to make a change in the presentation in Keynote and now iDVD won't let me burn any presentations from Keynote. I can burn others like iMovie. So I know my burner works.
    The message is:
    There was an error during track initialization and iDVD can't continue burning the DVD. Select "Delete Encoded Assets' from the Advanced-menu and try burning this project again.
    I tried deleting the encoded assets, I've tried creating a new presentation and importing it, I tried renaming the presentation - still the same message.
    I'm using Verbatim DVD-R.
    Can anyone help?

    Suggestion:
    Drag and drop the plist for keynote as well as iDVD to the trash. Empty the trash and restart your computer. Your computer will make a new default set of preferences for each.
    com.apple.iDvd.plist
    com.apple.iWork.Keynote.plist
    Hope this helps but if not come on back.

  • Using Spry Data Set Variable in Recordset

    I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

    I believe passing this the variable through the URL requires you to update the page, right?
    Yes
    Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
    The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
    A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
    Gramps

  • 6.0.3 Error During Disc Initialization for both DVD+R and Disc Image - Help

    I've been a mac user for a few years now, but I just bought a new MacBook, and my first superdrive! I'm all excited to test out the new hardware along with iDVD.
    I've made a rather simple DVD setup and the first time through it was encoding for about an hour and then it gave an error message which I don't recall other than it mentioned QT7. I ran updater, no new updates that I needed and I tried again, and from then on I've been getting the Error During Disc Initialization message when burning to my DVD+Rs or when I try and save as a disc image (yes, I've deleted the encoding assets). I have about 20GB free on HDD, and I'm trying to burn approx. 100min of video. I've rebooted multiple times, and I've remade my project a couple times but no dice.
    Any idears?
      Mac OS X (10.4.8)  

    What hardware do you have???
    You didn't answer Sue's question about free space on
    your start-up drive. You should have 20GB+ free.
    What are you sending to iDVD?
    Verbatim DVD-R, not DVD+R, are very reliable, unlike
    TDK and Memorex.
    Also look here:
    http://docs.info.apple.com/article.html?artnum=302925
    I am running on a 2.0 ghz MacBook with a SuperDrive using Sony DVD+R. I will definitely pick up some Verbatim DVD-Rs though to see if that makes iDVD happy.
    I have cleared up some room and now I have around 50GB free.
    I am trying to make a DVD of two seperate .mp4s of a soccer game. I have 3 pictures and two buttons.

  • OBIEE 10g - Can I use logical SQL to set variable?

    I am trying to set value of a session variable in the Advanced tab Prefix box of a request.
    Assigment of absolute value like this is working good:
    SET VARIABLE MYVAR=1;
    Can I set the variable using logical SQL? Something like:
    SET VARIABLE MYVAR = (SELECT table1.col1 from catname where table1.col2=1)
    Thanks in advance.

    Hi,
    You can create a session variable or dynamic variable in the RPD and try using it in here at the Advanced Tab prefix.
    But still check yourself if you need multiple values returning in the SQL statement.
    Hope this is helpful/ useful.
    Regards
    MuRam

  • Need help with Different approaches to setting variables in a Flash movie in Adobe Flash CS3 Professional Version

    Hi,
    I'm using Adobe Flash CS3 Professional version of Flash
    software,
    I need help and guidance on
    Different approaches to setting variables in a Flash movie,
    what I should do in the fla file, and in the html file.
    Thanks, Gil

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • ODI-SET VARIABLE IN PACKAGE

    HI.
    I am using odi11g.
    i set variable "STARTTIME" To sysdate .
    And "END_DATE" to a default value-- '20-JUNE-1981'.
    Now in package i dropped the variable "end_date",and put the TYPE to "SET VARIABLE" and the value as below:
    #VARIABLES_STARTTIME.[ The projects name is VARIABLES]
    But the value of "end-date" isnt getting reset to STARTTIME.
    should there be a different syntax.

    HI,
    Refresing the variable is working thanks.BUT i was trying to use the variable in a loop.
    Where when the package is run fo rthe 1'st time the variable 'LAST_UPDATE' value should be '20-JUNE-1981' and then it should get set to the value present in 'STARTTIME" for the next time the package is run.
    So, in this case, i need to set the value of the variable in the package itself.
    #VARIABLES.STARTTIME isnt getting set.
    i tried the package as per the below link:[ i use odi1g though]
    http://blogs.oracle.com/dataintegration/entry/using_variables_in_odi_the_tim

  • How to set a Swing component as Modal window on a SWT Component.?

    How to set a Swing component as Modal on a SWT Component.I mean, I have a window (SWT Container) with some menu items.
    When I click on one menu item then i will get one new Swing Window.
    When creating the new frame I had passed Modal value as TRUE in the constructer.Now child is not behaving as Modal Window.I mean I am able to go to parent window even though the child window is opened as a Modal Window.This is only happened when I double click on the Title Bar of the Parent Window.
    If I try to click on any other part of the Parent Window except Title bar ... the child window is working as a Modal Window.
    Can any one suggest me to solve this one !!

    int this case, do this :
    JFrame f = new JFrame("Authentification");
    f.getContentPane().setLayout(new BorderLayout());
    f.getContentPane().add(myJPanel, BorderLayout.CENTER);
    f.setBounds(x,y,w,h);
    f.setVisible(true);
    Where myJPanel is the Panel you developped.

Maybe you are looking for