Session for Global Variables values

Hi all

I am working in Oracle APEX 4.2.5


My Application configuration:

(1) we have 2 applications both to the same workspace. Request 1 to authentication and application 2 has no authentication. (We try to keep it as a child of App1 App2).

Note us have several modules like purchase, sales, finance, we decided to make a Global centralized Application that connects to the wise child module Applications. [Please correct me if my installation is wrong or will cause deployment problems].

(2) request 1 has the global variable defined with global scope

(3) the user in application 1 and value, we have a global application variable, and it works very well within the app

(4) press a button in App1 redirect in the second request and try to refers to the overall application of 1st app variable (but becomes null).


How to maintain the Session State on the whole of the Application?

Do we need an installation with a global scope to the second request so application variable?

Any advice would be great? Thank you very much.


Kind regards

Melanie

What you do should work properly. App 2 from not my guess is that the name of the cookie for authentication does not app 1.

Go to security for the applications and make sure that the cookie name matches. Then re - test.

Once the cookie names match app 2 could also have authentication and you will not have to connect again after that you connect to the application 1.

Jorge

Tags: Database

Similar Questions

  • Global Variable length problem

    Hi all

    I'm moving a group of a pll key values.
    I'm holding all the key values in a text field that can contain up to 10000 bytes and I'm assigning the text field values to a global variable.
    This value of the global variable is read by pll and fetch the records using these key values.

    But I'm getting ORA-06502 error. This is a question about the length of the variable.
    Form builders help I got to know that this global variable can hold only up to 5000 bytes.

    Suppose that
    New_id is a text field that has more than 7000 bytes values separated by comma

    New_id is that a text field of type char length is 10000,

    +: global .new_cust_id: = Block.new_id +;

    On this line, I get ORA-06502 error, because this value is used by other packages.

    Can someone help how do I fix this

    Use forms [32 bit] Version 11.1.1.4.0 (Production) and Oracle database 11 g R2

    Thank you
    malandain

    Citing the Globals online documentation:

    A global variable is a variable of Oracle Forms whose value is available for the triggers and the subprogrammes in any module that is active in the current session. In previous versions of Oracle Forms, a global variable stores a string of length, for all uses up to 255 bytes. In Oracle 10g form, global variables are now limited to 4000 bytes when they are set or referenced using PL/SQL bind variable notation. for other uses, no limit is imposed.

    This means: If you access the global variable like this:

    :global.variable := value;
    

    You can store up to 4000 bytes in length. If you use the copy and name_in built ins you should be able to store up to 32767 bytes in a global variable.

    see you soon

  • Files of Global Variables

    Anyone know which files are used for global variables?

    I found a - rhvariable.apj-, but there must be another (or more).

    Here's my problem: developers should be able to access and modify these files without going into HR.

    I entered rhvariable.apj, change the value of a variable, open HR and the new value was NOT displayed. Yet, when I reopen it rhvariable.apj, it still contains the new value of the variable I changed (I changed the 'certificate' to "Hello" and "Hello" was still the value of the variable. This leads me to believe that there is another file that I need to change because HR does not 'Hello' as the new value.

    I must say that in this case, Peter and well-nonymous answers are correct.

  • Setting the value of an element of Application (defining a global variable);

    Apex 3.2.0.00.27, I need to initialize a global variable to 0 to implement a variable to test to see if something on the page has changed. Will update to 1 when some lists of selection on the page are changed. Read through a few similar questions and answers within the forum, as well as blogs and other sites. So, I think that what I do is the way forward in this regard. Unfortunately, my point/global application initialization is not past yet. Here's an overview of what has been implemented:

    1) has created an element of demand, G_CLASSIFICATION_ID_NEW in the shared components.
    (2) created the Javascript (JS) function called by addLoadEvent area header html page so when the page is loaded, the application global/G_CLASSIFICATION_ID_NEW element should be set to 0 with the following JS and using AJAX and htmldb_GET:

    < script type = "text/javascript" >
    function initVars()
    {
    Alert ("before the initvars get");
    get var = new htmldb_Get (null, $x('pFlowId').value, null, 22);
    Get.Add ('G_CLASSIFICATION_ID_NEW', 0);
    gReturn = get.get ();
    {if (gReturn)}
    Alert (gReturn.value);
    }
    get = null;
    Alert ("after get initvars");
    }

    Alert ("before the call to the initpage");
    addLoadEvent (initVars ());
    < /script >

    I used the htmldb_Get successfully to populate other global variables and processes on request with onchange THAT JS call in the attributes of html form elements select list on the page. Later, I check the globals via the Session view and research on elements of Application. Unfortunately, I'm missing something, because my G_CLASSIFICATION_ID_NEW never gets filled when I load the page. The Alerts popup every when the page is loaded, so I know that the script is running when the page loads. alert (gReturn.value) is not defined. And, of course, the G_CLASSIFICATION_ID_NEW to 0 does not place.

    I tried the htmldb_Get with her call for a process of application and without (null value). What I read, you should not need to call an application process to have the get.add of the value of the global variable. Here again, this could be where I'm wrong. However, as I mentioned, it works for the other functions called from an onchange to fill a part of the application, but the page has already loaded when the onchange (s) executed. They can work because the page is already loaded when the onchange is called. My point here is that my other on application processes are NOT set or modify global variables at all. The globals are preparing with the get.add (< element app >, < value >) part of my other JS works within the HTML header area. So I'm inclined to believe that I don't need 'application_process = < some_odp >' set parameter, but if it is not true, please let me know. If so, what should be in the application process-that is to say, what would be the purpose of the get.add (< application item >, < value >) if I set the global variable in the application process on because it's the only thing I could think to do within an application process on for this?

    If someone can point out what I'm not understand or, failing to do it here, that would be great. I am doing fine with APEX, but don't consider myself a guru with it immediately. I'm certainly not a JS/AJAX guru, and when things like that, go astray, I get bogged down because I'm not sure of the problem. So, I hope that you gurus who monitor this forum can get going in the right direction.

    Thank you
    Bob

    Hello

    Create page 0 (zero) to your application.
    Then try this javascript in your HTML page header

    
    

    BR, Jari

  • A global variable is adjustable, and a Boolean value in LV3.1.1?

    A global variable is adjustable, and a Boolean value in LV3.1.1? I can do in LV 8.0, but 3.1.1 I need because of instrument gives me the penalty.

    All suggestions from users for a long time?

    Well, I'm a long time user, but that will come back some time.

    A global variable is basically a VI without a block diagram, so you should be able to place a Boolean control on the global variable just as you would place a digital command. Boolean values are treated differently at the time, but it probably won't affect what you do. The prices you say you tried, you can't put a Boolean value controlling this? I honestly don't remember not that is the case, but if this is the case, you can still use the functional overall construction, which is what we did before global variables have been introduced.

  • global variables for the XML plugin problem

    Hello world

    recently I started working on a dialog box SOUTH, where the user can load the *.xml files in DIAdem.So much my code for the button looks like this:

    ....

    Call the FileNameGet ('ALL', 'FileRead","*.xml")
    Call DataFileLoad (FileDlgName, "XML_Plugin", "Load")

    ....

    And I must say that it works very well! I am able to load all listed in the devices file. BUT when I tried a number of loading devices, I used a global variable, that I defined in the vbscript file that I load the SOUTH since, I've noticed that global variables, I've defined with GlobalDim are not defined in the vbs.:mansurprised of XML_Pluging:

    Then I started to experiment and so far without success, no matter where I define global variables, in my plugin *.xml all not defined! The native commands even and DIAdem functrions does not work. If I run the script in tiara, it shows no errors, but when I use the plugin to open a file, then it gives an error. For example, MsgBox is not allowed.

    I used the plugin example for *.xml, which was published on the Web site of NOR, and I made a few changes. But overall I have it has not corrupted and I kept the same structure:

    Void ReadStore (File)

    Dim XmlFile: xmlFile = File.Info.FullPath
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'open the file '.
    OpenXMLFile xmlFile

    End Sub

    Void OpenXMLFile (xmlFile)
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Open MS - Xml Parser
    'Create the ActiveX object for the Microsoft XML parser.
    Dim XDoc: set xDoc = CreateObject ("MSXML2. DOMDocument.3.0")

    "Try to load the XML document
    If xDoc.Load (xmlFile) = False Then
    "Failed to load the document XML.
    RaiseError ' unable to load XML document!
    End If

    protected originalLocale: originalLocale = Getlocalte
    "SetLocale" en - us ".

    "The XML document loaded successfully!
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

    '----------------------------------------------
    "Read the header information.
    '----------------------------------------------

    Here, I have read some values of the header and then I loop on all devices present in the file!

    So basically I have two subroutines and that's all.

    SetLocale originalLocale

    End Sub

    So what I am doing wrong? Why global variables and other functions do not work. Is it because there is xml code in the script this way or it's a version problem?

    I use DIAdem 10.2. If I use global variables in other vbscripts, I use to draw curves for example I have no problem. Now I'm no *.xml code and no subroutines.

    I'd appreciate any solution that will make my *.xml plugin to work.

    Hi fscommand.

    It is expected all behavior.  Use XML, as all VBScript DataPlugins, runs in a separate VBScript host of the DIAdem VBScript host.  DIAdem VBScript host adds all global variables green and Red controls global to host Microsoft VBScript standard.  Use VBScript host has its own special abilities (file object, root object), but there is NO access to Globals green or red blanket orders in the reception of DIAdem VBScript.  Your SUDialog runs in a third host VBScript, which is separated from the other two and the other two are not capabilities (command SUDialog callback functions), but the SUDialog VBScript host and VBScript tiara share all global variables green and Red orders overall.

    Normally all blue VBScript commands are allowed in all 3 VBScripts hosts, but in the case of the DataPlugins MsgBox and InputBox functions were especially restrained because the dialogues could cause a lot of trouble with the DataFinder.  In fact, they have been allowed to 9.1 tiara which was the latest version of tiara for the DataFinder appear.

    So, why do you want to pass information between the XML use and tiara?  If you want to use to share information with DIAdem, then you should just expose every piece of information as a new property in the data portal, which can read and use the code VBScript DIAdem.  The path of the XML file is already available inside the use of XML.  What other information in the call VBScript DIAdem do you need to share with the use?

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • How to set global variables for use by all THE #subform [0] items of form1. ?

    Hi all

    I don't know how to code javascript but am new to Adobe LiveCycle.  When I open the script editor, I have the following code (the code is in United Nations in bold):

    -form1. #subform [0]: initialize :-(FormCalc, client).

    //////////////////////////////
    TO START: SET GLOBAL PRICES.
    //////////////////////////////

    var Cityscope_Sydney_CostUser1 = 60,39;
    var Cityscope_Sydney_CostUsers2to5 = 3.02;
    var Cityscope_Sydney_CostUsers6to20 = 1.21;
    var Cityscope_Sydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_Sydney_CostHardCopyWithoutOnline = 54,67;
    var Cityscope_Sydney_CostHardCopyAdditional = 14.59;

    var Cityscope_NorthSydney_CostUser1 = 48,40;
    var Cityscope_NorthSydney_CostUsers2to5 = 2.42;
    var Cityscope_NorthSydney_CostUsers6to20 = 0.97;
    var Cityscope_NorthSydney_CostHardCopyWithOnline = 14.59;
    var Cityscope_NorthSydney_CostHardCopyWithoutOnline = 43,54;
    var Cityscope_NorthSydney_CostHardCopyAdditional = 14.59;


    ////////////////////////////
    END: SET GLOBAL PRICES.
    ////////////////////////////

    -form1. #subform [0]: enter :-(FormCalc, client).

    -form1. #subform [0]: output :-(FormCalc, client).

    -form1. #subform [0]: calculate :-(FormCalc, client).

    -form1. #subform [0]: validate :-(FormCalc, client).

    -form1. #subform [0]: preSave - (FormCalc, client).

    < < = etc etc etc = > >

    -form1. #subform [0]. Item1Cost::initialize :-(JavaScript, client).

    -form1. #subform [0]. Item1Cost::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    Store the values of the form of friendly names.
    var AreaSelected = Item1Area.rawValue;
    var NumberOfUsersSelected = Item1Users.rawValue;

    Declare other variables.
    var Users1Calculation;
    var Users2to5Calculation;
    var Users6to20Calculation;


    Calculate the cost to the "components" user will depend on the number of users selected for the region.
    Switch (true)
    {
    If (NumberOfUsersSelected < 2):
    Users1Calculation = NumberOfUsersSelected * Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 0.00;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 1 & & NumberOfUsersSelected < 6):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = (NumberOfUsersSelected - 1) * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = 0.00;
    break;
    If (NumberOfUsersSelected > 5):
    Users1Calculation = Cityscope_Sydney_CostUser1;
    Users2to5Calculation = 4 * Cityscope_Sydney_CostUsers2to5;
    Users6to20Calculation = (NumberOfUsersSelected - 5) * Cityscope_Sydney_CostUsers6to20;
    break;
    by default:
    Alert ("BROKEN: calculate the individual components of cost of use will depend on the number of users selected for the region.");

    }

    apply the total cost for this article
    Item1Cost.RawValue = Users1Calculation + Users2to5Calculation + Users6to20Calculation;

    -form1. #subform [0]. Item1Cost::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Cost::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Cost::ready:layout - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::initialize :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::enter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::exit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::calculate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::validate :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseEnter :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::mouseExit :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::change :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::full :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseUp :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::MouseDown :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::click :-(FormCalc, client).

    -form1. #subform [0]. Item1Users::preSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postSave - (FormCalc, client).

    -form1. #subform [0]. Item1Users::prePrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::postPrint - (FormCalc, client).

    -form1. #subform [0]. Item1Users::preSubmit:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::docReady - (FormCalc, client).

    -form1. #subform [0]. Item1Users::docClose - (FormCalc, client).

    -form1. #subform [0]. Item1Users::ready:form - (FormCalc, client)-

    -form1. #subform [0]. Item1Users::ready:layout - (FormCalc, client)-

    .. and so on and so forth...

    In short, I want the code in:

    -form1. #subform [0]. Item1Cost::calculate :-(JavaScript, client).

    .. .to be able to access the variables I created in:

    -form1. #subform [0]: initialize :-(FormCalc, client).


    (I guess that's where I store global variables)

    At this point, global variables are not accessible with the above configuration.  Was the only one I can get this working is to cut and paste the Globals in each item of form1. #subform [0], which of course defeats the purpose of global variables!  I intend to have a lot more items so wouldn't duplicate global variables for each of them!

    Can someone show me how to do this?

    Any help is very appreciated!

    Thank you

    Stanbridge

    Post edited by: stanbridgej - colors and fonts or not will not save.  Are bolded my question make (non-fat) code easier to read (I hope).

    I haven't used Formccalc, but I thought it would be the same regardless. Insert a script object to the top of the hierarchy and call it, for example "sco." Paste the Globals. Then refer to variables of the extent that sco. Cityscope_Sydney_CostUser1, etc. Make one

    App.Alert (sco. Cityscope_Sydney_CostUser1);

    one of the fields. If the debugger is activated, it will tell you if it cannot resolve the reference as "sco. In this case, you may need to use the som expression to reference the script object, for example

    var scoScript = xfa.resolveNode ("topOfHierarchy.sco");

    scoScript.Cityscope_Sydney_CostUser1

    But if as close as possible to the top of the hierarchy above should work.

  • How to get the global variable for an instanceId

    Hello

    I have data in global variables of an instance level. And using that instanceId, how can I get the global-level variables data.

    Please me tips


    Thank you
    Sailendra

    Hello
    I guess you want to get the value of the external variable within the process. You can do like this:

    assuming that it is of type string. For other types of type cast properly...
    String extVarValue = (String) (New Component(instance: this)).get(attribute: extVarName);

    Replace "extVarName" with your project name. It returns the value of your project for the instance that you are currently working.

    -Thank you,
    Malar.

  • The values of global variables change spontaneously

    I am currently doing a quiz/board game. There is a 'Question to card' button that goes to a random image in a specified movie. All images in this film has a question with answers that make players advence on the Board of Directors. The problem is, I have to make sure that once a question appeared and has received a reply, it cannot pop up again. I thought to declare a global variable for each question ("_global.q1" in question 1 and so on) in the framework one of the movie root with a value of '0 '. The answers to each question, to move the pieces on the Board, becomes the '1' variable value (on (release) {_global.q1 = "1"}). And directly under each question of the film container question, I made an invisible film with the script below, thinking the first time governing load the variable must be set to 0, then the question will load normally. and later, since the answer is set to 1, the script below in the next section. Thus, no question is repeated.

    onClipEvent (enterFrame) {}
    If (_global.q1 = '1') {this._parent.nextFrame ()};
    }

    However, on the film tests, I push the button with the gotoAndPlay (random ()) and all my values of variables defined by one, taking me all the way to the last image in the question that contains the movie.

    > If (_global.q1 = "1")

    Must be:

    If (_global.q1 is "1")

    A = single assignment, a double == is a test for equality.

    --
    Dave-
    www.offroadfire.com
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • Using a Global Variable for the input recorder DisplayRange

    I'm assuming; Since I can't do it; that you cannot change the display range of a graphic recorder by using a variable.  If there is a way I'd love to know how.

    Thank you!

    Determine if you can use a global variable is to click right in the parameter field. If the global variable is available in the context menu, then you can use a variable y.

    You can use a variable of the y-axis from the settings.

    You cannot use a variable for the display range of the x-axis parameter. This is because DASYLab needs to know the amount of memory to be allocated at the beginning of the measure.

  • How to enable notification of change of value with DSC for several variables

    Hello

    I would like to request a notification with DSC for two shared variables value saved for change events. In the example attached, it is no problem to do it for only a variable. But I have no idea how to do to achieve for that variable.

    Any ideas?

    Matthias

    Hi Matthias,

    You can implement it as you can see in the attached example.

    Best regards
    Mencef

  • Range of values for substitution variables

    Hello

    Can assign us range of values for substitution variables...

    CurrActuals: Jan: Mar
    CurrFcst: Mar: Dec


    When I set up and use the void daataforms var aboive... his throw error... How can I set vales for variable sub range.

    Jan: Mar will not work in Web Forms. I have not tried 11.1.2.2 but older versions, it will not be

  • How the value for several variables using a single guest

    Is there a way to put more than one variable with a single guest?
    for example, the value @CurrentYear and @PasteYear using just a single guest for @CurrentYear.

    A clue?

    Thank you

    Luke

    Using variables to repository you can set like this.
    Check this link http://gerardnico.com/wiki/dat/obiee/set_variable

    If brand pls help

  • Global variables and for loops

    Hello

    I am working on my project for my programming course (a game of Connect 4) and am now in gritty step to rewrite all the code to make look it somewhat professional. Was it the original... disaster: http://zephyr.pastebin.com/7kfyaMRY--Oui, I know who will probably do someone of you cringe. I try to avoid the massive chain of JPanel panelXxY = new JButton(""); using loops for. I need to keep global variables so that I can call in my actionPerformed method, but apparently you can not put a loop outside of a method or main and even if you could, apparently all variables declared in a for loop said would not exist outside this loop. So, any suggestions? Keep in mind that I only knew even what a string for all... 10 weeks, so please nothing too complicated.

    Thank you ~.

    See the following for some ideas:
    Update of textFields via a For loop

    To Connect-4, you can use a two-dimensional array.

  • What are the best practices for use of GLOBAL Variables

    Hello

    Please guide how Global Variables can be declared and how they can be initialized.


    Further please guide what are the impacts of the Variables(if any) world on the memory of the CLIENT or the SERVER, if they are not initialized or released after use.


    Thank you.

    Kind regards.

    There are 255 characters (fixed) - or a less than before, don't know if they still are that length.
    My preference is not to use and use the settings or package variables. There is no real control of globals, so you may find yourself with an applications which has a good number of them which is used only once but which persists during the user's session.

Maybe you are looking for

  • Recover deleted files Comileo P30

    Hello I accidentally deleted all the movies on my Camileo P30 (with menu option).How can I recover/restore these files.I have already used Ontrack Easy Recovery and corrected files.But I can't play the files with the Arcsoft software.When I put a fil

  • Satellite L500 - keyboard does not work

    Hello I have Vista L500 with a dead keyboard. This machine has not been abandoned or anything it is spilled on it. I plugged USB keyboard external that works. The laptop keyboard does not work. I flashed the BIOS, update drivers, held shift for 10 se

  • Constant change of look, feel and action of the MS software

    Is it my imagination or Microsoft changing the look , the feel and action of older versions of their programs and the operating system on my computer Win XP 6 years?  In the automatic updates, I had 'ask me first' checked for years.  Yet things keep

  • Error: Windows cannot access the specified device, path or file. You can not have appropriate permission to access the item

    So I can't access pretty much ANYTHING on my computer.  This problem is not related to a single file, it is akin roughly ALL of the files, it seems, I can not access to Mozilla Firefox, can not open anything, I recently downloaded, can't access "Add

  • X 51 - R2, replacement 760Ti GTX for GTX 970?

    Hi, I think to upgrade my GTX 760Ti graphics card to 970 GTX, I know that the GTX 970 is a very effective power GPU, it took 145-160W, if anyone knows if this graphics card is compatible with Alienware X 51 - R2? Any problem?