Loading defining global variables?

Hello all!
I have a project that is an online presentation, which I (being no pro in codeing) create in Edge and Muse. I create the animation in Edge, publish it as OAM and place it into the muse site/page. Master looks fine and I am happy with it.
My problem, that I have to solve, is that it has to be translated into 44 Languages and kept updated regularly, which is near to impossible without using external data source.
I thought to create an XML file for each language and use it for text and maybe Image content. I can use an xml file for a specific animation, but at my current knowledge level i!Il have to define the variables and the source of content for each and every animation/object.
What I would like to see is that if you land on the Index page, you can choose the preferred language, and all the content appeares in the given language. For that (my best guess) I'll have to define global variables, which do not lose their value i.e.: which is my preferred language.
How do I do that? Had anyone a similar issue? Also, how do I use external data in Muse?
Any help would be appreciated!
Greetz
ND

Here it is :
In the Stage > document.compositionReady event handler, we define a JavaScript object LANG containing
• a property flag that is the state of the displayed flag (in the example file, symbol drapeau, french for flag) ;
• a function switchLang executed each time the flag is clicked, to refresh the content of
- the three titles (b1A_tit, b1B_tit, b1C_tit) by  assigning hard-coded values,
- the three texts (b1A_txt, b1B_txt, b1C_txt) by loading HTML snippets files in a text folder.
LANG =
  flag: 'NL',
  switchLang: function()
    sym.getSymbol('bandeauH').getSymbol('drapeau').stop( LANG.flag);
    var symBloc1A = sym.getSymbol("bloc1A");
    var symBloc1B = sym.getSymbol("bloc1B");
    var symBloc1C = sym.getSymbol("bloc1C");
    switch (LANG.flag)
      case 'NL':
        symBloc1A.$('b1A_tit').html("Montagne");
        symBloc1A.$('b1A_txt').load('text/b1A_FR.html');
        symBloc1B.$('b1B_tit').text("Peinture");
        symBloc1B.$('b1B_txt').load('text/b1B_FR.html');
        symBloc1C.$('b1C_tit').text("Maison d’hôtes");
        symBloc1C.$('b1C_txt').load('text/b1C_FR.html');
        LANG.flag = 'FR';
        break;
      case 'FR':
        symBloc1A.$("b1A_tit").text("Montagne");
        symBloc1A.$('b1A_txt').load('text/b1A_NL.html');
        symBloc1B.$("b1B_tit").text("Schilderen");
        symBloc1B.$('b1B_txt').load('text/b1B_NL.html');
        symBloc1C.$("b1C_tit").text("Bed & Breakfast");
        symBloc1C.$('b1C_txt').load('text/b1C_NL.html');
        LANG.flag = 'NL';
        break;
LANG.switchLang();
The drapeau > click event handler is a single call to LANG.switchLang();
Download the example file here : https://app.box.com/s/f8boa2oswnowyl3ehb2o
Gil

Similar Messages

  • Define Global Variable in XSLt

    H,
    Please let me know how to define Global Variable in XSLT.
    I have define a variable under for-each and i want to use that variable after for-each.
    Please suggest on the same.
    Thanks,
    Pradeep

    Hi Pradeep,
    IN XSL design, right click on target node and then select --> Add Variable. Give the name you desire to that variable and click OK. You can use that variable anywhere in that particular XSLT. In the source xsl you will see entry like this after adding your variable
    "<xsl:variable name="your variable name">value you want to give</xsl:variable>".
    Hope this helps.
    Regards,
    Karan

  • How can I define global variable in user exit whic I can use anywhere.

    Hi all,
    How can I define global variable( Table ) which I can use when it come back to same user exit where I defined and stored some data.
    What I mean is I want to define 1 global table.
    In user exit when it comes I store some information. and again when it will come I will have that stored information so I can use it.
    Thanks a lot in advance.

    You can use EXPORT  TO MEMORY ID and IMPORT FROM MEMORY ID Statement for this.
    EXPORT T_ITAB FROM T_ITAB TO MEMORY ID 'ABC'.
    IMPORT T_ITAB TO T_ITAB FROM MEMORY ID 'ABC.'

  • Challenge - Defining "global" variable accessible in Transfer Rules Routine

    Hi,
    Is there a way to define a global variable in BW which is accessible via all the "Routines" in the Transfer Rules in the Info Source.
    Scenario:
    1) I have a field called ZTEXT in the transfer rules.
    2) I am adding code in the Routine to manipulate this data in the Transfer Rules for the Info Source.  Ultimately the RESULT will be populated with a value.
    RESULT = .
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line   
    3) In the Routine Code, the value of the RESULT will be derived based on what's in a field called "g_value".  I don't want to derive the value in the "g_value" field in each Routine for each record that gets processed as it will take a performance hit. I am looking for a way that "g_value" can be populated once e.g. in a START Routine or another alternative and then "g_value" can be used throughout the Routine for any field in the transfer Rules.
    Is there a way to define and populate "g_value" as a global variable so its VALUE can be retained and used in all the Routines in the same transfer rules.  Note that there will be a fair amount of logic to derive "g_value" and hence the need to avoid deriving it each time.
    Could someone advise me if this is even possible?  If so, could you give me a ABAP code sample for it please? 
    Thank you very much,
    Haritha

    if you create the variable as global and in your start routine, calculate and give it a value, you can use that value in all your individual routines.

  • Global Variable in Oracle Forms 6i

    Hi,
    How & where to define global variable in Oracle form 6i and also let me know how to access it.
    Thanks in advance
    Regards,
    Sanket

    hi
    Global variable are forms specifice variable.
    it can store character value upto 255 for all usages.
    We can initialize it when we declare otherwise give error if we did not assign it any value.
    Oracle 10g it can take upto 4000 bytes
    GLOBAL.ur_globalvar := TO_CHAR(15);
    or
    :GLOBAL.ur_globalvar:= '15';
    or
    Remmber numeric values are implicitly converted by oracle 2 character
    :GLOBAL.ur_globalvar:= 15;
    -- which can then subsequently be accessed using...
    :GLOBAL.ur_globalvar;
    -- To destroy a global variable and release its memory, use the ERASE built-in procedure:
    Erase('GLOBAL.my_var'); Regards,
    Abdetu...

  • Forms Personalization:Global variable Error

    Hi,
    Two Forms one is AR transactions and 2nd is AR TO AP,
    navigating from ACTIONS menu in Transactions window to call AR TO AP form
    Have defined Global Variable for Transaction Number in AR R12, AS,
    Object Type - Global variable
    Target object - MAIN_TRX_VALUE
    Property name - Value
    Value - :TGW_HEADER.TRX_NUMBER_MIR
    And want to use this global variable in another calling form AR TO AP but not getting value of generated transaction Number in my form field TRANSACTION_NUMBER which is defined as in personalization
    Object Type - ITEM
    Target object - BLK_CTRL.Transaction_number
    Property name - Value
    Value - :GLOBAL.MAIN_TRX_VALUE.
    Any Syntax error?have done all trial n error menthod.
    Using followin syntax in form 10g WHEN NEW FORM INSTANCE,
    :Blk_Ctrl.Transaction_Number := :global.MAIN_TRX_VALUE ;
    Any other way to fetch TRX_NUMBER_MIR value?
    On Priority.THANKS.

    hi
    u did not mention error and u r forms version?
    sarah

  • Forms personalization and global variable

    Hi,
    I'm trying to call a procedure in forms personalization and using a defined global variable. The data in the global variable is number. In the procedure, some of the parameter has a number datatype and I'm converting the global variable using to_number eg (to_number(:global.XX_LINE_NUM). This fails with error message ora-01403 no data found. I've tried putting the above into a variable with datatype number in the declare statement, and it errors as well.
    Does anyone knows the syntax to convert the global variable to number datatype in personalization.
    Thanks

    Ask in this forum : OA Framework

  • How use global variable in other form

    hi master
    sir i define global variable abc in form1
    sir can i use use this global variable abc in form2
    form2 i call from from 1
    please give me idea

    thank's for your reply
    sir i use this method
    i form1
    :global.fatherstatus :=0;
    form2
    :global.fatherstatus :=:accountcode0;
    thanking you

  • How can I access global variables in a loaded Applescript?

    How can I access global variables in a loaded script, in Xcode, ApplescriptObjC? Basically, I have a global variable defined in my parent script using "property", and I need to modify objects connected to those variables inside of a loaded script.
    Example:
    Parent script:
    script AppDelegate
    property myTextField : missing value
    //linked to a text field object
    tell myScript to myAwesomeHandler_()
    end script
    Loaded script:
    on myAwesomeHandler_()
    myTextField's setStringValue_("The new Xcode is so glitchy ugh")
    //changes value of linked text field of parent script
    end myAwesomeHandler_
    The problem is, the variable is undefined in the Loaded script, and I need it to have the same value as the parent script, and I don't want to pass the variable through the Handler. Any ideas?

    I think want you are looking to do will need to be done in two steps. Because myTextField needs to be a property for the ObjectiveC part of the code you cannot turn it into a global.
    However if you make a temporary variable global assign the string to it in the handler then set myTextField off of it.
    global myTextFieldGlobal
    script AppDelegate 
    property myTextField : missing value 
    //linked to a text field object 
    tell myScript to myAwesomeHandler_() 
    myTextField's setStringValue_(myTextFieldGlobal)
    end script 
    on myAwesomeHandler_() 
    set myTextFieldGlobal to "The new Xcode is so glitchy ugh"
    //changes value of linked text field of parent script 
    end myAwesomeHandler_ 
    I know you stated you did not want the handler to return a value but I have to ask why? Global's, imo, are not a good idea and really should be used as a last resort.
    One other possibility is to pass a reference to the property to the handler. Not sure if that works in AS of if that would satisfy our requirement of not passing the variable through the handler
    <edit>
    Another though have you tried to define the property outside the script?  That is
    property myTextField : missing value
    script AppDelegate
    Not sure if that will work.
    You might also want to have a look at Scope of Properties and Variables Declared in a Script Object

  • Loading a text file into a global variable issue - really a global var?

    From all the documentation and examples I can find, it appears that it would be
    correct to create a global array variable [outside of any functions] to load image names into,
    then use these images for a slideshow. I want to make the app dynamic, in that changing the text file gives a new set of images.
    The global variable goes null [no values] after the load event listener. Why is that?
    Isn't global, well global, and alive for the duration of the SWF?
    PARAMS.TXT:
    monthNames=January,February,March,April,May,June,July,August,September,October,November,De cember&dayNames=Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
    CODE:
    var dNames:Array = new Array();
    var mNames:Array = new Array();
    var request:URLRequest = new URLRequest("images/params.txt");
    var variables:URLLoader = new URLLoader();
    variables.dataFormat = URLLoaderDataFormat.VARIABLES;
    variables.addEventListener(Event.COMPLETE, completeHandler);
    try
    variables.load(request);
    catch (error:Error)
    trace("Unable to load URL: " + error);
    trace("2 mNames 2: " + mNames[2]);
    trace("2 dNames 3: " + dNames[3]);
    stop();
    function completeHandler(event:Event):void
    var loader:URLLoader = URLLoader(event.target);
    dNames = loader.data.dayNames.split(",");
    mNames = loader.data.monthNames.split(",");
    trace(loader.data.dayNames);
    trace("1 mNames 2: " + mNames[2]);
    trace("1 dNames 3: " + dNames[3]);
    OUTPUT:
    2 mNames 2: undefined
    2 dNames 3: undefined
    Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
    1 mNames 2: March
    1 dNames 3: Wednesday
    How do I access these values after loading from the external file, after the load?
    Thanks in advance.

    The statement you quoted from whatever Adobe documentation is correct.
    If you want to load the data into the arrays before anything else happens, then have anything else that happens execute via the completeHandler function... after the data is loaded and processed into the arrays.
    the command: loadFile() executes before the trace("2:" +images[4]); command.  The loadFile function is processed and the loading process BEGINS... but starting the loading does not delay the main processing from continuing down the line--the loading itself becomes a secondary/background task.  The command was to execute the loadFile function and the processing of that function was completed.  If you don't believe so, then add a trace...
    function loadFile():void
         vars.dataFormat = URLLoaderDataFormat.VARIABLES;
         vars.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
         vars.load(new URLRequest("images/fnames.txt"));
         trace("started loading");
    If you add that trace, you should see that the loadFile function execution is completed and the next line in your code is then processed... trace(2....)
    The addEventlistener does not stop anything.  The addEventListener code is assigning a monitor, not a traffic controller... it is telling the monitor to indicate when the data has finished loading.  It is not telling anything to stop program execution.
    So if you want to wait until the data is loaded before you do anything else... it goes....
    function onComplete(evt:Event):void
         var urlVars:URLVariables = evt.target.data;
         images = vars.data.images.split(",");
         tnails = vars.data.thumbnails.split(",");
         ................HERE.................

  • How define a global variable in a class that all the methods will recognize

    hi friends,
    i need to define a global variable in a class that all the methods will recognize it.
    any suggestions?
    thanks,
    dana.

    Dera Dana,
    In se24, create your own "Z" class.
    Open the Attributes tab.
    Insert your variable in the declaration part.
    EQ:
    Attribute     Level                       Visibility   Typing      Associated Type         Description        
    ITAB     Instance Attribute     Public     Type     Structure name     Description
    In the Layout of View page,
    <phtmlb:formLayoutDropDownListBox id                = "Dropdown"
                                              label             = "Drop Down"
                                              table             = "<%= controller->Itab %>"
                                              nameOfKeyColumn   = "CODE"
                                              nameOfValueColumn = "VALUE"
                                              selection         = "<%= controller->feild to be selected %>"
                                               />
    Hope this will be helpful
    Regards,
    Gokul.N

  • How do I load a vi of global variables whenever LabView opens?

    I want to be able to load a VI with Global Variables whenever I open Labview, and not have it open dynamically. So in short, how do I bind or attach a VI to open every time LabView opens and starts up.

    Look at this KnowledgeBase article:
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/44e99cc41aa39f538625694b005679c0?O​penDocument

  • How do I define javascript global variables to use across windows

    I have a number of web pages. I have javascript for each page. I need to share some data across the web pages. How do I define javascript variables that can be accessed from multiple web pages?

    Use SugarSync.

  • More details about Surprising LV global variable of type 2

    I'm using a type 2 global variable because I need a big data array shared by
    two parallel VI, so this data array is manipulated in a subVI non reentrant.
    One input of this subVI is an enum called method which represents what
    action to do on the data of the subVI and this input is directly wired to a
    condition structure.
    The big data array is contained by an indicator in the front panel of this
    subVI because
    this big data is an output of the load method so this indicator is wired as
    output connector of the subVI because it is needed when loaded.
    For other method the big data array is read to extract part of needed data,
    so in the subVI diagramm, a readable local variable issued from the big data
    arra
    y terminal is used . But how big data array is not needed for these
    methods, big data array terminal is not rewritten as output in these
    condition diagramms because the big data array is theoretically unchanged
    and I want to avoid to duplicate my big data array to save time and memory.
    The result is surprising because:
    After the load method, the big data array output is right.
    Then, the input of the second subVI call as a get method is correct.
    Readable local variable of the big data array sends right data as input of
    the condition associated with this method, in the subVI.
    Then, the input of the third subVI call as a get method is wrong. Readable
    local variable of the big data array sends wrong data as input of the
    condition associated with this method, in the subVI.
    So, I suppose I have to wire my big array as output of the condition for
    every method call, what lose
    a lot of time and memory.
    Have you a better idea, please?

    Brice Chatelan wrote in message <[email protected]>...
    >I'm using a type 2 global variable because I need a big data array shared
    by
    >two parallel VI, so this data array is manipulated in a subVI non
    reentrant.
    >...
    >For other method the big data array is read to extract part of needed data,
    >so in the subVI diagramm, a readable local variable issued from the big
    data
    >array terminal is used . But how big data array is not needed for these
    >methods, big data array terminal is not rewritten as output in these
    >condition diagramms because the big data array is theoretically unchanged
    >and I want to avoid to duplicate my big data array to save time and memory.
    >The result is surprising because:
    >After the load method, the big data array output is right.
    >Then, the input of the second subVI call as a get method is correct.
    >Readable local variable of the big data array sends right data as input of
    >the condition associated with this method, in the subVI.
    >Then, the input of the third subVI call as a get method is wrong. Readable
    >local variable of the big data array sends wrong data as input of the
    >condition associated with this method, in the subVI.
    >
    >So, I suppose I have to wire my big array as output of the condition for
    >every method call, what lose
    >a lot of time and memory.
    >
    >Have you a better idea, please?
    >
    Brice,
    Are you using a while loop with uninitialized shift-registers in your LV2
    style global. This technique is what defines a "LV2 style global" also
    called functional globals because you can embed actual functionality into
    the VI (for example in your case to extract certain data from an array and
    operate on it) as opposed to the read/write only usage of the built in
    globals.
    From what I can gather, it doesn't sound like you are using the while
    loop/shift-register method. You shouldn't need to use a local variable at
    all. The data is passed around using the shift-register and it passes
    through all of you conditions (load, get, etc.) and no you won't lose time
    and memory (or money) doing it this way, certainly not any more than you
    would using a local variable. Try it and see if it doesn't fix your
    problems and work better than what you are doing now.
    If you are using a while loop and shift-registers, then I'm not
    understanding clearly what you are doing. Perhaps if you emailed me your VI
    (privately of course) to take a look at.
    Good Luck!
    Scott Menjoulet

  • Accessing Global variable which is in another script file

    Hi,
    I have 2 scripts as File1.scpt and File2.scpt in desktop. I am in need of having the common global variable 'GG'.
    File1.scpt has only the following code
    *global GG*
    *Set GG to "I am global"*
    File2.scpt has
    +set file1 to (load script file "Macintosh HD:Users:mowri:Desktop:File1.scpt")+
    +display dialog m+ -- not working -- Error message: "The variable m is not defined"
    +display dialog m+ of file1 - not working -- Error message: "Can't make m into type string"
    It will be great help if you can clarify about my mistakes in this?
    Regards
    Mowri

    Another solution, shorter than the previous one:
    File1.scpt
    set GG to "I am global"
    File2.scpt
    set file1 to (load script file "Macintosh HD:Users:mowri:Desktop:File1.scpt")
    run file1
    display dialog GG
    Ref.: [Handlers in Script Applications - run Handlers|http://developer.apple.com/mac/library/documentation/AppleScript/Conce ptual/AppleScriptLangGuide/conceptual/ASLRabout_handlers.html#//appleref/doc/uid/TP40000983-CH206-SW14]
    Message was edited by: Pierre L.

Maybe you are looking for

  • BOXI R2 with Firefox

    Hi, Could anyone help me to get exact environment details to run BOXI R2 reports in firefox browser? Version of Firefox = ? Version of Java = ? while saving webi report--user getting error = "The argument has an invalid value". <using firefox> I know

  • How to switch to S-video- or AV-input on Qosmio G30-188?

    Hello! How can I see the pictures which are coming in from the av- or s-video-input on the right side of my Qosmio G30-188? I couldn't find a way in the media centre. Please help. Thanks in advance.

  • Problems with iWeb displays on Firefox and IE

    My iWeb pages look fine on Safari but not on Firefox or IE - both those sites show graphics overlapping text, extra spaces between text, missing boxes etc. My site is theFOWL.org - it's a site for a non-profit library organization. It used to work fi

  • Purchases from Vendor

    Hi Friends, I am not getting the Purchase Report in SAP. I tried from MB51 by using 101, 102, 105, 106, But it will show the output on the basis of the Purchase order. but in we are used to change the prices at the time of MIRO ( Invoice Verification

  • Update entity attribute, auto-refresh ViewObject

    Hi, I have an entity Emp and a ViewObject based on this entity with a where clause like "salary > 2000". I update the salary from 1900 to 2100 at entity level, but the viewObject is not "automatically-refreshed". So my Employee with his new salary 21