Where can I store global variables.

Hi All,
Where can I store global variables. Requirement is, ability to modify and add to the list of global variables. Any modification should be reflected dynamically. One way to do is to store in Entity Beans. I thought storing in DataBase will impact performance. Any advice.
Appreciate any help.

Hi,
If these variables won't changed prgramtically, then store them in Enveroment Variables

Similar Messages

  • 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.'

  • 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

  • Where can I store my VI's so I can use them in other programs

    When I write a VI where can I store this VI to use in other programs as sub-VI's and how do I retreave them.
    (Example) I build a special timing program and want to use this timing in other programs. So iI don't have to re-write this program over and over. I am using LabView 6i with some revisions. (Older cards)

    You can store them where ever you want. To retrieve them you can drag and drop them to the diagram or use "Select a VI..." from the function palette. The later will open a file dialog that will allow you to navigate to where you stored the vi. Another way to do it is to store your vi in the LabVIEW\user.lib directory, then you can retrieve your vi from "User Libraries" in the function palette.
    Hope this helps
    Brian

  • When apple switch to icloud...where can I store my Mac Gallery?

    when apple switch to icloud...where can I store my Mac Gallery? any suggestions

    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage.

  • I have 5000 photos on my 16GB iphone, where can I store them where i can access them easily?

    I have 5000 photos on my 16GB iphone, where can I store them where i can access them easily?

    I completely agree Fox.  Photostream should be used as a convenience for sharing, not for anything other than temporary storage. Same goes for the device itself.
    At least once a week, I import my photos/videos from my iPhone to my computer, and at least once a month, I make a backup of my computer to an external hard drive.  And at least once every few months, I burn 2 DVDs of the past few months worth of photos/videos, one for myself, and one that I put in my fire safe with other important hard copy documents.  And there are off-site image storage options out there as well which are available, and I've used occassionally.
    The only time I've ever lost photos was about one half-day's worth while I was on vacation when my camera went overboard.  And this was on day 5 of my vacation.  Each night, I swapped out memory cards and uploaded the current day's card to my laptop.  For anyone going on a trip, I recommend at least three memory cards for your camera, or if you're only using an iPhone, backup to either iCloud or iTunes every day.
    An ounce of prevention is worth a pound of cure.

  • Where to store "global variable" for a web application

    There are some "global" variables in my portal web application. e.g. email server
    name, admin email address etc. Will web.xml context-param a good place to store these
    kind of information?
    If so, how do I retrieve it back from a java class? It is easy in a jsp file: appalication.getAttribute(),
    but how about a pipeline component or input processor which are all java file.
    Please help!
    Thank you very much
    Ellen

    I still believe that the information like connectivity parameters to remote
    servers in the distributed environments would be best stored in the JNDI
    tree. I agree, that it is not a "general storage area", but I am not talking
    about storing application run-time data either.
    In the clustered environments it would provide additional benefits of
    centralizing this kind information across the cluster.
    Regards,
    Mike
    "Subrahmanyam Allamaraju" <[email protected]> wrote in message
    news:[email protected]..
    >
    JNDI is not a general-purpose storage area, although you could bind data
    in a JNDI tree. A better (and simpler) way is to store them as context
    parameters. You could read the initial values for these variables from a
    servlet init parameters.
    Subbu
    Michael Goldverg wrote:
    Ellen,
    I would advise to put you global variable in JNDI tree.
    You can use jndi.properties file to store name-value pairs, which will
    get
    loaded into jndi tree at the server startup. Just put this file in your
    application class path.
    The other method would be to code a startup class to store the global
    variable in the jndi tree.
    Regards,
    Mike
    "ellen" <[email protected]> wrote in message
    news:[email protected]..
    There are some "global" variables in my portal web application. e.g.
    email
    >>
    server
    name, admin email address etc. Will web.xml context-param a good place
    to
    >>
    store these
    kind of information?
    If so, how do I retrieve it back from a java class? It is easy in a jspfile: appalication.getAttribute(),
    but how about a pipeline component or input processor which are all javafile.
    Please help!
    Thank you very much
    Ellen

  • Can i use global variable in web forms

    guys can any one tell me if i can use global variables when i am
    deplying the forms on the web,.....
    thank you
    vas
    null

    Global variables work in their perfection even when you deploy
    your forms on the WEB.
    null

  • Can not use Global Variable in Event Structure

    I am using LabVIEW 2009.
    In my LabView project I have a Boolean Global variable called EStop. I can read and write the Global variable. If I double click on the Global variable, it takes me to EStop.vi which includes a Text Button. EStop.vi is part of my Project.
    In one of my VIs, I have an Event Structure. If I go to one of the Event Handlers in that Event Structure and right click and then select Add Event Case, I get a list of possible events. But that list does not include EStop or an EStop events.
    I want to Add an Event Case for EStop: Value Changed.
    Why can't I Add events to an Event Case that include events on Global Variables like value changed?
    How do I add EStop: value changed event to my Event Structure.
    Solved!
    Go to Solution.

    dbaechtel wrote:
    I have many events throughout the system that might need to cause the system to do an Emergency Stop action. So I want ro use a Global variable that is accessible from anywhere in the system. Any action or condition that occurs anywhere in the system can activate the emergency Stop condition by setting the boolean EStop Global variable to True. When the Global bolean variable goes true(value changed), I want to detect that event in an Event Structure and do the actions necessary to accomplish a system Emergency Stop.
    Sorry, I am not familiar with your terminologies. What is your definition of a "system".
    One big VI with many parallel loops?
    Several VIs running in parallel?
    LabVIEW Champion . Do more with less code and in less time .

  • How can I handle global variables from different DLLs created based on VIs that access those variables

    My goal is to break apart an entirely LabView created application so I can still use parts of it (builded as Shared DLLs upon on some VIs) in my new .Net application. My problem is that some others VIs (that I am not intending using) are changing those global variables (in the natural data flow of the application).  I could , of course, send the values of those global variables as parameters, but I don't know how should I pass those data types (and their size)... There are some clusters there...
    Any help is well appreciated

    vulpe wrote:
    My goal is to break apart an
    entirely LabView created application so I can still use parts of it
    (builded as Shared DLLs upon on some VIs) in my new .Net application.
    My problem is that some others VIs (that I am not intending using) are
    changing those global variables (in the natural data flow of the
    application).  I could , of course, send the values of those
    global variables as parameters, but I don't know how should I pass
    those data types (and their size)... There are some clusters there...
    Any help is well appreciated
    Your
    problem is of course the use of globals. That is almost always a bad
    idea and asking for troubles once your application gets bigger.
    Avoiding race conditions and undesired influences between different
    parts of your application will take up more and more of your
    development time as your project grows.
    You should look into Functional Globals (LV2 style globals) and shift
    registers for data storage and queues for passing information between
    different parts of your applciation. Using these techniques
    consequently, will require you to spend some more time initially but
    will allow you to grow your application without increasing the
    complexity of managing such things exponentially.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can i store a variable to a file?

    for some reason i can't find much on writing to files, is
    this not possible?
    and if it isnt possible, how can i keep a variable? i don't
    want the variable to reset to 0 every time someone loads a new
    instance of the page.
    also, for some reason.. it seems to me that if statements
    dont work as they should. the vote() function always executes the
    countVote() function even if choice doesn't = ans.
    anyone know what im doing wrong
    example..
    private function vote(choice):void {
    text1.text=choice
    if (choice=ans){
    countVote();
    private function countVote():void {
    total=total+1
    totalS=total.toString();
    text2.text=totalS
    text2 displays the total count and every time i submit the
    vote, the count goes up no matter what i choose
    i also get a warning for all of the variables saying
    "1084: var 'total' will be scoped to the default namespace:
    sv1: internal. It will not be visible outside of this package."
    (sv1 is the name of the project)
    how to i make it visible outside of the package?

    In this case, the if statement will not work as you intended.
    You need to use the double-equals, ie, if (choice == ans)
    Also, the flash player is inside a sandbox for security
    reasons. Consequently, you can not write directly to files. To get
    around this, make a call to a php, python, java or .net script
    residing on the webserver that will write to a file for you. You
    can do this using the HTTPService object.

  • Where can I store portlet specific attribute?

    I have 2 equale portlets on one page. I need to save attribute specific for each of them. Where can I put this attributes?

    You can try portlet preferences like
    <portlet-preferences>
    <preference>
    <name>stockSymbols</name>
    <value>BEAS, MSFT</value>
    </preference>
    <preference>
    <name>refreshInterval</name>
    <value>600</value>
    </preference>
    </portlet-preferences>
    for details: http://dev2dev.bea.com/pub/a/2004/02/portlet_preferences.html

  • Where can they store this info ?

    Hi All,
    Iam working on retiree benefits.
    In which infotype can we store the death date of the dependents.
    Thanks
    Lalitha

    Create a date type in assign the date in IT 0041. Create ur date type in this table V_T548Y, to default ur date type in IT0041 use this feature DATAR
    Edited by: Santhosh Kumar R on Mar 26, 2008 3:13 PM

  • How can I pass Global Variable from Page1 to Page2

    I have the following senario.
    Pag1 - report is based on following PL\SQL
    declare
    g1 varchar2(100);
    begin
    g1 = select * from emp where dept = 10;
    return g1;
    end;
    Now I have Page2 - based on following PL\SQL
    declare
    g2 varchar2(100);
    begin
    g2 := g1; -- here i want to use variable g1???
    return g2;
    end;
    My question is - How can I use variable g1 from P1 in my new page P2.
    Thanks,
    Deepak

    Hi Andy,
    Thanks for the clarification.
    I did exactly the same, created a new Region with HTML (PL\SQL) and got the output. it was fine.
    Now when I am using exactly the same code in a Report (PL/SQL function returning a SQL Query), I am getting the following error.
    DECLARE
    g VARCHAR2(100);
    BEGIN
    g := 'This is a test string';
    APEX_UTIL.SET_SESSION_STATE('G_SQL_STRING', g);
    htp.p(v('G_SQL_STRING'));
    END;
    ERR-1002 Unable to find item ID for item "FLOW_SECURITY_GROUP_ID" in application "4000".
    ERR-1002 Unable to find item ID for item "G_SQL_STRING" in application "4000".
    I am doing the same thing, nothing changed....only difference is in 1st case I am using HTML (PL\SQL) Region and in 2nd case using the REPORT Region (PL/SQL function returning a SQL Query)
    thanks,
    deepak

  • Where can I store copy to use occasionally?

    Hi,
    I have a feature box on my website, where I put specials and things.  When I don't have specials I have a generic copy blurb that goes in there...
    Is there a place in dreamweaver CS5 (I only have cs5, not the whole creative suite), where I can store some generic paragraphs of copy, so I can just cut and past or place in my feature box each time  (instead of tying in the same text every time)?
    Thank you for your help.
    I am brand new at this, so please explain how to me like a beginner!

    The Snippets folder is great for keeping frequently used text, scripts, HTML code, etc...
    Also look at DW Commands. You can record a set-of mouse/keystrokes and save it for insertion into other pages from the Commands menu.
    http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-777ba .html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for