Assign the value to the Application Variable via javascript

Hello

How can I assign value to an element of the application (not the page element) through javascript.

I tried to assign the value as follows:

$s ('F150_REGION_TEMP', region);

where F150_REGION_TEMP is the application variable and 'region' is populated value in javascript.

Kind regards
Benz

Hello

Try


BR, Jari

Published by: jarola on March 1st, 2010 14:47

Tags: Database

Similar Questions

  • assign value to select the application variable

    Hi, is it possible to do something like:

    SET the VARIABLE rq_var = (select 'table - param'.param_value from test_obiee where 'table - param'.param_value = ' @{ps_var} "");

    or

    @{ps_var2} = (select 'table - param'.param_value from test_obiee where 'table - param'.param_value = ' @{ps_var} "");

    If so, this action is possible before loading data from db (type something under "Prefix" under "Advance of Clauses SQL" in the title of the page in the tab 'Advanced' in the 'Answers')

    Thank you!!

    I hear you, response, which was the thread I would have done you.

    Ok then. Create static variables repository called HUNDREDS and MILLIONS of worth 100 and 1000000. Then you actually use the quick captured values to switch between variable names instead of changing the content of a variable.

    You have to build the formula by concatenation, so that he could read something like this then:

    Fact. "" My way "/" VALUEOF ("' | ')" @{vPromptedDivisor} {HUNDRED} | '")'

    See you soon,.
    C.

  • Assign the substitution variable to another variable of substitution with truncation of value

    I launch sql * more script .sql through a competitor job. Simultaneous work provides date a parameter to the script.  Task log displays the date passed to scrpit as:

    Arguments

    ------------

    2013/09/01 00:00:00

    For aesthetic purposes in the position of the output, I want to convert/truncate the string in a format for the end user of the 09/01/2013.

    Try to simply change a variable substitution

    (below does not work, but we hope to Telegraph my intention):

    Undefine Low_date
    Set Low_date = ' 2013-09-01 00:00:00 '
    Undefine Low_date_10
    Set Low_date_10 = "yyyy-mm-ds."

    Select substr ('& Low_Date', 1, 10) in & double Low_date_10;

    Guest of "value of the Variable is: & Low_date_10.
    /

    WHICH PRODUCES:

    old: select substr ('& Low_Date', 1, 10) in & double Low_date_10
    New: select substr ("2013-09-01 00:00:00 ', 1, 10") in yyyy-mm-double ds

    Error from the 8 in the command line:
    Select substr ("2013-09-01 00:00:00 ', 1, 10") in yyyy-mm-double ds
    Error in the command line column: 8:55
    Error report:
    SQL error: ORA-00905: lack of keyword
    00905 00000 - 'lack the key word'
    * Cause:
    * Action:
    old: prompt "value of the Variable is: & Low_date_10.
    New: prompt "value of the Variable is: yyyy-mm-ds."
    "Value of the variable is: yyyy-mm-dd"

    "I need to get to" value of the Variable is: 01/09/2013.

    Hello

    SELECT... IN works in PL/SQL.

    In SQL * Plus, you can use the COLUMN... New_value, like this:

    SET low_date = ' 2013-09-01 00:00:00 '

    COLUMN low_date_10_col new_value by low_date_10

    SELECT REPLACE (SUBSTR ('& Low_Date', 1, 10))
    , '-'
    , '/'
    ) AS low_date_10_col
    DOUBLE;

    Value of the PROMPT Variable is: & Low_date_10

  • How to save the settings of the application (variables)?

    How can I save the application settings? I have a variable, which by default is 0. User can it set to 1 if it has something to do. How it save? It is possible without e/s?

    The best place to start is SharedObject.

  • Question by passing the value of the report column via javascript

    I'm going through #COL05 # to P28_CREATIVE_URL using the following javascript code. I got this Oracle documentation example, but it does not work for me. The status bar shows me that #COL05 # is recognized correctly, so it might be in the... opener.document.

    PAGE
    Function and Global Variable declaration:
    function passback (passVal1)
    {
    opener.document.getElementById("P28_CREATIVE_URL").value = passVal1;
    Close();
    }

    Column attribute
    The column link
    URL:
    JavaScript:passback(#COL05#);

    Use instead of single quotes

    javascript:passback('#COL05#');
    
  • Development of the APEX element via javascript

    I'm fighting to set the value of an element of the APEX of the javascript.
    At the moment I have a button on Page 1 that has a URL action. The URL points to
    JavaScript:getConfirmation('&APP_SESSION.');
    and my function is

    < script type = "text/javascript" >
    function getConfirmation (sessionNumber) {}
    var response = confirm (' remove this step remove also all the dependencies that depend on this step.) ») ;
    {if (Answer)}
    html_SetSelectValue (P4_CREATED_STEP, 'YTest');
    document.getElementById('P4_CREATED_STEP').value = "YTest1";
    } else {}
    html_SetSelectValue (P4_CREATED_STEP, 'Packers');
    document.getElementById('P4_CREATED_STEP').value = "NTest1";
    }

    Window.Location.href = "http://appsit-dev-10g.oraclecorp.com/pls/aitmarvel/f?p=101:3:"+ open; "
    }
    < /script >

    I see that I get no error javascript via the Firefox error console.
    However when I redirect to page 2 with the javascript call. The value of 'P4_CREATED_STEP' is undefined.

    Help, please.

    Hello

    You do not submit the page or use AJAX to set the item session state.
    This might help

    http://www.oracleapplicationexpress.com/tutorials/68
    http://Apex-at-work.blogspot.com/2010/02/set-item-value-with-AJAX.html

    BR, Jari

  • assigns the application program to extension

    Usual procedure, accessed through the Start/Default programs / associate a file or Protocol with a program type refuses to associate .pdf Adobe Reader (10), and the .dcd file, opened by DesignCad 3d Max, type is not yet registered on the list who is responsible.  The two associations have worked in the past; but I have no idea when the association first does not have or what I could have done deal the problem.  Help!

    I guess this is a new behavior and that you have Adobe Reader or Acrobat (or another. PDF Reaser/visualiseur/EDItEUR) installed.

    It seems that the default file association for the. Filetype PDF was changed to Adobe or deleted altogether. It's pretty easy to restore.

    1. Open Explorer and locate a. PDF file. Right-click and select Open with >, then Choose default program dialog box.


      Figure 1.0 - open with dialog box

    2. Make sure that always use the selected program to open this type of file is selected in the lower left corner.
    3. If your Adobe Reader software is in the list of recommended programs , double-click it. The file will open in Adobe Reader and you are INF.
    4. If your Adobe Reader is not in the list of the programs recommended , click on Browse and locate your Adobe Reader app. The default location is something like:

      %ProgramFiles%\Adobe\Reader 10.0\Reader\AcroRd32.exe
      ... or more commonly:
      C:\Program 10.0\Reader\AcroRd32.exe Adobe

    5. When you have selected you will return to the Open with dialogue with Adobe Reader selected at the breast of other programs. Click OK to accept. The file will open in Adobe Reader.

    Your. PDF file association should be back to normal. Repeat for DesignCAD 3D Max and a. DCD file.

  • [CS4:JS] How to run the file ".sh" via Javascript

    Dear all,

    How to run the file ".sh" through Adobe InDesign Javascript, I used the code below:

    //================== Code =============================//

    var myFile = File("xxx/xxx/xxx/Test.sh");

    var Exec = "sh" + "" + "\""+myFile+"\;"

    Leader (exec). Execute();

    //================== End =========================//

    codes above does not work, I checked before without the "sh" in addition, it does not work.

    Please can someone give me the solutions and the suggestion, and I'd appreciate it.

    Thanks and greetings

    SudhaN T.R.Harihara.,.

    Have your IDMLExportparse.sh file runs permission set?

    If you open Terminal.app and type

    /Applications/MacXinPro/IDMLExportparse.sh

    It work? Or do you need to run "sh"? If so, either adjust the

    permissions with

    chmod a + x /Applications/MacXinPro/IDMLExportparse.sh

    or modify the JavaScript code for:

    shell("sh "+myFile);
    
  • How to open the print window via Javascript (normally we use shortcut Ctrl-P in illustrator)

    Screen Shot 2016-04-05 at 4.42.26 PM.png

    You can use the method executeMenuCommand as below:

    app.executeMenuCommand("Print");
    
  • Get the name of the current strategy via JavaScript

    Hello

    Anyone know if there is a way to read the current policy that is located on a

    document using JavaScript code from the document?

    Thanks in advance.

    I don't think that this is possible.  I checked the Acrobat JavaScript API Reference ( http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm? href = JS_API_AcroJSPreface.87.9.html #1516075 & accessible = true ) and there is the possibility to obtain information from document (properties) but is no name of the policy.

    The properties that are available are:

    Title

    Author

    Authors

    Object

    Keywords

    Creator

    Producer

    CreationDate

    ModDate

    Trapped

    Steve

  • How to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • How to set the value of the value of the options in the application server

    Hi all

    I run the application that stores a set of options in the application server. (via BES)

    It is not store it on the local device.

    The use of the facility of service is not well understood.

    Is it also possible to use it to preserve such a configuration?

    Or, should I use as JSR-172 web services?

    Thank you

    Third-party applications can read of service books, but they cannot create or edit.  You could do a sleeve or a HTTP connection to your application server to store and read the options.  For an example, take a look at the httpdemo or the socketdemo provided with the BlackBerry JDE.

  • Help with the session variable PHP CS5.5 - Please

    Hi all

    I am needing a little help with the help of a session variable, and I hope someone can point me in the right direction.

    I created a PHP page that uses the Dreamweaver 'User authentication' feature and the basics of this works very well, to direct a user to the correct page depending on whether they are or are not a valid user. I want to customize the page 'user valid' with people, user name entered in the authentication of the user table... a seemingly simple task using a session variable, but I just seem not to be able to make it work!

    The generated code for the AU on page 1 is the following:

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['txtfirst_name'])) {}

    $loginUsername = $_POST ['txtfirst_name'];

    $password = $_POST ['txtsurname'];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "member_update.php";

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_panto, $panto);

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username'] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    First of all, the text highlighted in red above seems to be setting the session variable that I need. Is this correct?

    If so, what is the code that I need to put on page 2 to use this session variable? or

    I have to do something else on the page 1 to correctly assign the session variable?

    Would be very grateful for your expertise

    Mark

    It seems that you put the columns incorrectly in the user authentication server behavior. This is the SQL query that checks the credentials of the user:

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    You are looking for first name and last name, while you should look for the user name and password of the user.

    $_SESSION ['MM_Username"] is a session variable that stores the login name of the user. To use it in a page, all that is needed is the page start with session_start(). You can then echo the value to display.

    If you want to display the person's true name, you must create a recordset in the second page, use of $_SESSION ['MM_Username'] to search for the first name and the patronymic. Alternatively, you can change the code like this (I copied only part of it):

    $LoginRS__query = sprintf ("SELECT firstname, surname OF web_access WHERE firstname = %s AND password is %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    $row = mysql_fetch_assoc ($LoginRS);

    $_SESSION ['full_name'] = $row ["FirstName"]. ' ' . $row ['name'];

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    You can then use $_SESSION ['full_name'] in a page which begins with session_start().

  • The addition of '\n' to a specific position in the LONG Variable

    Hello

    I have a requirement where I will read the file and it will contain a field with a data LENGTH. I'm assigning this value in a long Variable. I know that LONG is outdated, but I need to live with it now that there are a lot of changes in multiple procedures.

    Requirement is
    1. the value will be length approximately 8000 characters.

    2. I need to read the value and add a '\n' in every 79th position

    For example, in the 79th, 158th, 237th positions and so on for each 79th position.

    Please help with a solution to achieve this.

    Please let me know for any question about the requirement.

    As mentioned Blu, SQL LONG is obsolete, but it looks like you are using a long Variable. Therefore, specify here. If I understand right, read you file in PL/SQL in the LONG PL/SQL variable (which is nothing but VARCHAR2(32760) ) and then insert into the column. There is no direct relationship between the LONG SQL and PL/SQL LONG, so you can use the VARCHAR2 variable. In addition, you must specify \n. You literally mean \n or \n say CRLF? I'll assume that CRLF:

    SQL > create table tbl (long l);

    Table created.

    SQL > declare
    v_str 2 varchar2 (32760);
    3. start
    4 v_str: = ' I have a requirement where I'll read the file and it will contain a field with a data LENGTH. I'm assigning this value in a long Variable. I know that LONG is outdated, but I need to live with it now that there are a lot of changes in multiple procedures. » ;
    5. Insert
    6 in tbl
    7 values)
    8 regexp_replace (v_str,'(.{78}) ',' \1' |) Chr (13) | 10
    9              );
    10 end;
    11.

    PL/SQL procedure successfully completed.

    SQL > set 1000 long
    SQL > select *.
    2 tbl
    3.

    L
    --------------------------------------------------------------------------------
    I have a requirement where I will read the file and it will contain a field ha
    ving a BIG data. I'm assigning this value in a long Variable. I know that
    LONG is outdated, but I need to live with it now that there are a lot of cha
    NGES in several procedures.

    SQL >

    SY.

  • Assign the activity overwhelming data transformation

    I created a BPEL process that has the following sequence:
    Transform1-> Invoke1-> Transform2-> Invoke2-> Assign--> adapter InvokeB2b

    Now what happens is that the payload created in the first transformation is overwritted after the invoke in the second transformation. The payload created in the second transformation is not to be replaced by the entitlement, so the output load has just the values that were in the last beneficiary. I have the same variable I update in the two transformations and assign. What should I do so that the output contains all values beginning with the first transformation?

    I'd really appreciate a quick response...
    Thank you very much!!
    POOJA-

    Create different variables for each transformation. Within the entitlement, obtain the required data for these two variables (defined for processing) and assign the output variable.

Maybe you are looking for