Load a variable at run time

I have the following code to load in some images and
display/move them:
this.createClassObject(mx.controls.Loader, "myLoader", 1);
this.createClassObject(mx.controls.Loader, "myLoader2", 2);
this.createClassObject(mx.controls.Loader, "myLoader3", 3);
this.createClassObject(mx.controls.Loader, "myLoader4", 4);
this.createClassObject(mx.controls.Loader, "myLoader5", 5);
myLoader.scaleContent = false;
myLoader2.scaleContent = false;
myLoader3.scaleContent = false;
myLoader4.scaleContent = false;
myLoader5.scaleContent = false;
var images:Array = ["
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg"
myLoader.contentPath = images[0];
myLoader._x = 0;
myLoader._y = 0;
myLoader2.contentPath = images[1];
myLoader2._x = 320;
myLoader2._y = 0;
myLoader3.contentPath = images[2];
myLoader3._x = 640;
myLoader3._y = 0;
myLoader4.contentPath = images[3];
myLoader4._x = 960;
myLoader4._y = 0;
myLoader5.contentPath = images[4];
myLoader5._x = 1280;
myLoader5._y = 0;
This works great, but what I'm wondering is, can I load in
the images array variable at run time from an external file so I
could edit that file on the server in order to change images,
without having to re-publish the flash file? Thanks for any help.
Bob

Adrian,
Have a look at: http://www.oracle.com/technology/products/database/htmldb/howtos/howto_create_upload_spreadsheet_form.html
It's not 100% what you're looking for (as it requires you to cut & paste from the spreadsheet), but it may do what you're after.
Thanks,
- Scott -

Similar Messages

  • Teststand error states that a vi failed to load in the Labview Run-Time Engine

    I am getting an error in teststand that states that a vi failed to load in the Labview Run-Time Engine version '14.0.1'
    If I look at the software loaded on my system with the NI Measurement and Automation Explorer I have Labview Run Time engines for version 2009, 2010, 2011, 2012, 2013, & 2014 on my system.
    How do I get this VI to run on this system when it is called by test Stand?
    Thank you

    The RTE 14.0 was loaded as part of my deployment and after I ran this I got an update notice for the F1 patch which I also loaded.
    I do not have labview loaded on this system, only the run time engines from running my deployment.
    When I launch t he teststand sequence, when it calls the labview VI, I get the following error moessage:
    Error: Failed to load VI 'C:\builds\RelayVoltageMeaure.vi' in the LabVIEW Run-Time Engine version '14.0.1'. LabVIEW: The VI is not executable. This error may occur because the VI is either broken or contains a subVI that LabVIEW cannot locate. Select File>>Open to open the VI and verify that you can run it. VI Path: C:\builds\RelayVoltageMeaure.vi[Error Code: -17600, Failed to load a required step's associated module. ]
    I have attached the teststand sequence if this helps.
    Thanks
    Attachments:
    QuantumDigitalBd.seq ‏13 KB

  • Exporting DI batch to BAT and set DI parameter/variable at run time

    Hi All,
    We are looking to call DI batch job externally and pass parameter/variable at run time.
    We tried exporting DI batch to a bat file and setting substitution parameters during export.
    In the exported .bat file, it references a .txt file which shows the name of the substitution paramemters but the value of the parameters are encrypted.
    Does anyone know how to pass parameter/variable to a DI batch job at run time externally?
    Thanks,
    Bobby

    I tried out this method and I have some additional issues.
    1. if we use the BOE scheduler the text parameter file is using a specific naming convention that is not clearly documented. it is like : -GV"$VAR=ENCRYPTEDVALUE;"... trying to modify it with a clear value like -GV"$VAR=MYVALUE;" was simply ignored by the scheduler... seems also that BOE did not sent any scheduling request to the DI Job Launcher...
    What is the proper convention please?
    2.Is there a better way to enter this parameter than editing the TXT file. Most of the BOE InfoView users are not allowed to modify or store documents.. This is not very convenient if they cannot enter simply the parameter values in a let say more confortable way...
    Thank you and cheers

  • Bind variables at run time

    We have a view object with LOV, this LOV has a bind variable. How can we set this bind variable at run time through this view object?

    Hi bara,
    1. Wat you ve to do is create a transient attribute in the child entity.
    2. Create an association between master and child.
    3. The value should be a groovy expression such that it refers the field in master table which needs to be passed to the LOV.
    4. Add the transient attribute in ViewObject also.
    4. Use ViewAccessors and map the transient attribute to the bind variable in the List View Object
    Regds,
    Srinidhi

  • Any restriction on Mac that binaries running from root dirs like /usr/libexec/ cannot load dylib's at run-time?

    Hi all,
    Is there any restriction on Mac OS X 10.6/10.7 that binaries running from root directories like /usr/libexec/ cannot load dylib's at run-time using dlopen() or NSAddImage()?
    I am trying to run a binary like "sample" from a directory inside /usr/libexec/ which tries to load a dylib like "sample.dylib" which is present in the same directory as "sample".
    It resulted in a segmentation fault with the following error and stack-trace.
    Program received signal EXC_BAD_ACCESS, Could not access memory.
    Reason: KERN_INVALID_ADDRESS at address: 0x0000000000003430
    0x0000000000003430 in ?? ()
    Using gdb, I could find out that the program crashed inside dlopen() (the path passed to dlopen() being a simple filename like "sample.dylib").
    The dlopen() at the top of the stack-trace pasted below gets called around 10 times; it does not crash during this 2nd level dlopen() any-time.
    #0  0x00007fff81be9e93 in dlopen ()
    #1  0x00007fff82838f7f in map_images_nolock ()
    #2  0x00007fff82821bc0 in map_images ()
    #3  0x00007fff5fc039b9 in __dyld__ZN4dyldL18notifyBatchPartialE17dyld_image_statesbPFPKcS0_jPK15dyld_imag e_infoE ()
    #4  0x00007fff5fc0c839 in __dyld__ZN11ImageLoader4linkERKNS_11LinkContextEbbRKNS_10RPathChainE ()
    #5  0x00007fff5fc04d48 in __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE ()
    #6  0x00007fff5fc08f68 in __dyld_dlopen ()
    #7  0x00007fff81be9ec0 in dlopen ()
    #8  0x000000010002694f in AAA ()
    #9  0x0000000100026730 in XXX ()
    #10 0x0000000100026494 in YYY ()
    #15 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff810) at ../../main.c:50
    After this 2nd level dlopen() gets called 10-15 times, the stack will unwind from map_images_nolock () till  __dyld_dlopen (). But when it tries to finish all the instructions inside  __dyld_dlopen () and step out of it, the program crashes with the EXC_BAD_ACCESS signal.
    Please find below the final stack-traces obtained during debugging when I put breakpoints for AAA() and dlopen() and went on stepping inside till the program crashed.
    (gdb) bt
    #0  0x00007fff5fc04d48 in __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE ()
    #1  0x00007fff5fc08f68 in __dyld_dlopen ()
    #2  0x00007fff81be9ec0 in dlopen ()
    #3  0x000000010002694f in AAA ()
    #4  0x0000000100026730 in XXX ()
    #5  0x000000010002663c in YYY ()
    #11 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff7f0) at main.c:50
    (gdb) step
    Single stepping until exit from function __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE,
    which has no line number information.
    0x00007fff5fc08f68 in __dyld_dlopen ()
    (gdb) bt
    #0  0x00007fff5fc08f68 in __dyld_dlopen ()
    #1  0x00007fff81be9ec0 in dlopen ()
    #2  0x000000010002694f in AAA ()
    #3  0x0000000100026730 in XXX ()
    #4  0x000000010002663c in YYY ()
    #10 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff7f0) at ../../main.c:50
    (gdb) step
    Single stepping until exit from function __dyld_dlopen,
    which has no line number information.
    Program received signal EXC_BAD_ACCESS, Could not access memory.
    Reason: KERN_INVALID_ADDRESS at address: 0x0000000000003430
    0x0000000000003430 in ?? ()
    To summarise:
    For some reason, a user wants to install a product and its binaries under /usr/libexec/.
    This binary tries to dynamically load a dylib using dlopen("sample.dylib", RTLD_LAZY | RTLD_LOCAL).
    It looks like, the dynamic linker then opens dependent dylibs and runs module initialisers. Then crashes when returning (which sounds like a trashed stack).
    Can anyone please tell me whether there is some OS-imposed restriction or OS bug which can explain this type of behaviour?
    (Note: The crash does not occur if the binary and dylib are installed under a normal user's home directory and run from there.)
    Many thanks,
    Vinay

    The otool output for the binary and dylib are pasted below.
    localhost:Latest dev$ otool -L /usr/libexec/Dipu/sample/sample
    /usr/libexec/Dipu/sample/sample:
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.18.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
    localhost:Latest dev$ otool -L /usr/libexec/Dipu/sample/sample.dylib
    /usr/libexec/Dipu/sample/sample.dylib:
    libProduct.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.18.0)

  • Loading the final static variables at run time.. Please help

    Hello, fellow developers & Gurus,
    Please help me figure out the best way to do this:
    I need to load all my constants at run time. These are the public static final instance variables. The variables values are in the DataBase. How do I go about loading them.

    Your original question was diffeent, but your further posts show what you really want to do:
    1) all constants in 1 class
    2) available readonly for other classes
    3) updatable during runtime by changing in the database
    Did I understand you right?
    Then smiths' approach solves point 2):
    Instead, make the variables available through a method
    call - that way you avoid the whole final variable
    versus read-only attributes problem.
    //GLOBAL VARIABLES EXPOSED AS PUBLIC PROPERTIES
    public final class GlobalProperties
    public static int getTableSize();
    public static int getRowSize();
    Each "constant" should be a private static variable, and these methods simply return their values.
    The variables are initialized in a static initializer by accessing the db. Ok.
    You habe a table with one row containing as columns all the constants.
    A method readConstants() does a "select constant1, constant2, ... from const_table" and sets all the variables.
    The static initializer calls this method.
    Right?
    Ok, then you simply call readConstants() everytime you want to synchronize with the actual content of const_table.
    Was it this?

  • Loading style sheets at run time

    I have created few fonts css and compiled them into swf to
    load them at run time.
    There is one custom component Card, is placed into a Module
    and this Module is loaded by main application.
    The Card component contains TextArea, MyTextArea(custom
    component) and ComboBox (which display font list).
    Now when user select any font from ComboBox, Card component
    load css and when it get loaded, it updates fontFamily of TextArea
    and MyTextArea. But only TextArea updated with new fonts while
    MyTextArea is not getting update anytime.
    Can anyone help me to figure out this.
    I am using following code to load css run time.
    var myEvent:IEventDispatcher =
    StyleManager.loadStyleDeclarations(fontSource[0].src,true,false,ApplicationDomain.current Domain);
    myEvent.addEventListener(StyleEvent.COMPLETE,fontComplete);
    myEvent.addEventListener(StyleEvent.ERROR,fontError);
    Any help will be appreciated, Thanks

    Could you save the CSS files as SWCs instead of SWFs and compile them in to the IPA?
    Just a thought; I've never done this myself.
    -Randy Nielsen
    Senior Content and Community Manager
    Adobe Systems Incorporated

  • How to Load a Panel during run time from a CVI dll

    Hi,
    I want to execute/load a panel during runtime, from a CVI dll function.
    my CVI dll "test.dll" has "READ_PAN" function. while executing this function from a Test Stand Action step i want Configure Panel (from FR_GUI.uir) to pop up.
    can you please suggest me how can i do this from my "test" project of CVI.
    int __stdcall __export RunFRConfig (CAObjHandle step,CAObjHandle thisContext)
        ERRORINFO errorInfo;
        char errMsg[1024];
        int pan;
        pan = LoadPanelEx (0, "FR_GUI.uir", READ_PAN, __CVIUserHInst);
        DisplayPanel (pan);
        RunUserInterface();
        DiscardPanel (pan);
        return 0;
            Error:
       // sprintf(FinalErrMsg,"Configure Error: %s",errMsg);  
        return -1;

    Thanks for ur reply.
    Hello Asad,
    It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
    I m attaching a code sample for u. This is working in my production environment.
    DECLARE
    pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('setProposal');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('setProposal');
    // This parameter is set to hide parameter form at run time     
         Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    // This parameter is used to maximize previewer window at run // time
         Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Feel free to contact me if u need anymore assistance.
    Take care and bye

  • How to change value of instance variable and local variable at run time?

    As we can change value at run time using debug mode of Eclipse. I want to do this by using a standalone prgram from where I can change the value of a variable at runtime.
    Suppose I have a class, say employee like -
    class employee {
    public String name;
    employee(String name){
    this.name = name;
    public int showSalary(){
    int salary = 10000;
    return salary;
    public String showName()
    return name;
    i want to change the value of instance variable "name" and local variable "salary" from a stand alone program?
    My standalone program will not use employee class; i mean not creating any instance or extending it. This is being used by any other calss in project.
    Can someone tell me how to change these value?
    Please help
    Regards,
    Sujeet Sharma

    This is the tutorial You should interest in. According to 'name' field of the class, it's value can be change with reflection. I'm not sure if local variable ('salary') can be changed - rather not.

  • Findind Data type of a variable in Run Time

    Hi Experts,
        I am trying to find the data type of variable in runtime with "DESCRIBE FIELD" statement.
        but it always shows data type C by default. i have written this code.....
        DATA: w_value TYPE d.
        DESCRIBE FIELD p_value TYPE w_value.
       My requirement is that if  i pass a variable of any type(like date, time , char, Integer , Decimal etc.) from selection screen i  will   give the correct data type of variable.
    Please let me know how to acheive this problem.
    Regards,
    Shri

    Hey Raj,
    In this code it always ask a date type variable.
    Still my problem i snot getting solve.
    check the below one which might give u a fair idea
    DATA: Desc_object         TYPE ref to cl_abap_typedescr.
    Parameters:   p_char           TYPE char10 ,
                  p_date           TYPE d,
                  p_int            type i.
    Field-symbols : <any_type> type any.
    START-OF-SELECTION.
      If p_char is not initial.
         assign p_char to <any_type>.
      elseIf p_date is not initial.
         assign p_date to <any_type>.
      elseif p_int is not initial.
         assign p_int to <any_type>.
      endif.
    IF <any_type>  is assigned.
      desc_object = cl_abap_typedescr=>describe_by_data( <any_type> ).
      WRITE: / desc_object->absolute_name.
      WRITE: / desc_object->type_kind.
    ENDIF.
    The Catch lies in assigning the variables to field symbol. I think you already have that part of code
    Edited by: A J Raj on Dec 9, 2009 7:12 PM

  • How to default bind variable using session variable at run time

    Hi All,
    I have a requirement where all VO queries (multiple VOs) produce only records that meet a certain value.
    For example, I have three tables with 3 VOs and each of them has a one-to-many relationship to another table (let's call it ref table and this table has a field called release). One of the 3 VOs is a parent/master table, and the other two are child tables. I created a VO for master table that linked to the ref table and created a view criteria using the release (use bind variable) field from the ref table. The other child tables have their own VO that has view criteria that also linked to ref table using the release field.
    On the UI page, I created a query component and a table from the master table VO. I also dropped the child table VOs in a tabbed panel which partial triggered by the master table. When I ran a query for a 'release' (hint: ref table value), the table for master table was filled the correct records that meet the criteria. Unfortunately, the child tables were not correct due to the query didn't use the bind variable that filter only records for the same 'release' value as the master table.
    The question is how do I 'default' or dynamically set the bind variable on the child tables based on the selection criteria from the query component. I am thinking to set a session variable from the query and use it in the bind variable in the child table, but not sure how to do it.
    Any suggestion how to do it or better solution to achieve the same effect?

    Hi,
    How about creating a custom AMImpl method, that takes parameters as required, and set the bind variables for all the desired VOs and perform executeQuery on them.
    You could expose this as client interface, and then use the method as parameter form.
    Check this thread for ex.
    Re: Setting Attribute in View Object through Managed Bean
    -Arun

  • Variable to hold the value at run time

    Dear Friends,
         I have a requirement in customer ageing report to select a particluar record from the cube based on the record selected by the query. Is there any option for holding a value of the dimension selected by the query in to a variable at run time. kindly let me know if am not clear.
    Thanks
    Prem

    you want to :
    Exeute a query - this will select a particular record and this is to be used to select another reord from a cube. I assume that the seletion from the cube will also happen through a query - then try using a prequery - have a variable on the query on the cube which is filled using replacement path from the previous query..?

  • Variable Creation During Run Time

    Is there anyway to create new instances of variables during run time based off of user input from a command line prompt. Thnx~!

    Depends what you mean .. if you mean the user can type "a = 8", and it creates a variable "a" with the value 8, then no.
    But you can implement something very similar using a HashMap. Use put("a", new Integer(8)), or whatever, and then get it out later with get("a").

  • Run Time structure identification of a variable.

    Hi Experts,
    I have a requirement where i need to identify the structure type assigned to the variable at run time. i.e. if i have the variable name at run time i shold be able to find the structure type assigned in that program.
    Please help. let me know if you need any further information.
    BR,
    Raj.

    Check this:
    TYPE-POOLS: abap.
    DATA: gc_mara TYPE mara,
          gc_marc TYPE marc.
    PERFORM check_struct USING gc_mara.
    PERFORM check_struct USING gc_marc.
    *&      Form  check_struct
    *       text
    *      -->P_STRUCT   text
    FORM check_struct USING p_struct TYPE any.
      DATA: lcl_struc TYPE REF TO cl_abap_structdescr,
            lv_struc_name TYPE abap_abstypename.
      lcl_struc ?= cl_abap_structdescr=>describe_by_data( p_struct ).
      CHECK lcl_struc IS BOUND.
      * Get the DDIC structure of the formal param P_STRUC
      lv_struc_name = lcl_struc->absolute_name. "\TYPE=<DDIC Structure>
      WRITE: / lv_struc_name.
    ENDFORM.                    "check_struct
    BR,
    Suhas

  • Members on rows, can they be passed to run-time prompt in a business rule?

    Hi!
    I have a input form which has a business rule with properties "Run on Save" and "Use members on Form".
    The business rule has run-time prompts (local variables) as follows (showing only the fix part of br...)
    FIX ([V_Year],[V_Version],[V_Scenario],@LEVMBRS ("Offering", 0),[V_Entity],
    [V_ICP], [V_Account])
    calculation...
    endfix
    Now my accounts are on rows and I would like pass those account members to the [V_Account] variable through run time prompt. The [V_Account] ís a local variable with Type "Members" in Account dimension. I have also selected 0-level accounts as limits. Other dimension members from page/pov seem be passed successfully to run-time-prompts.
    The run-time-prompt does not seem to be able to catch those account members on rows? Is it at all possible to pass members on dataform rows to run time prompts?
    kind regards,
    user637777

    Hi!
    Thanks John!
    I just have live with that and find another way to restrict the calculation regarding those accounts.
    kind regards,
    user637777

Maybe you are looking for