Application points value becomes zero after submit - Login Page

Hi all

I created 3 application elements, and I put the values of them in a calculation in the login page (Page 101) after Submit.

After the FIRST connection its value becomes zero but then if I logout and reconnect, then it sets the value in the application parts.

Not understand...! Can someone help me please?

FYI - I use Apex v3.2 on FF v5.0 & IE v7.0.

Your help would be appreciated.

Best regards
Blabla

Hello

Change the type of calculation to the SQL query and

  select max(person_name)
  from rp_persons_tb
  where UPPER(user_id) = :APP_USER

Kind regards
Jari

Tags: Database

Similar Questions

  • Application of VO becomes empty after the backup of the VO

    Hello

    Application of VO becomes empty after the backup of the VO. Can you please let me know why this is happening.

    Thank you
    HC

    Again create a new VO with the same query, save it and open the Jdev and let us know the result.

    Don't forget to win twice three times the time :)

    Thank you
    -Anil

  • SRA 4600 Web Application Firewall blocks access to the Portal login page.

    We have a 8.0.0.1 - 16 4600 running and run the Web Application Firewall.  We had a few reports of users home that our portal page was not available, only tried IE, but everything went well here.  Today we had an internal machine with the same question and noticed that it was blocking WAF access: "threat of avoided WAF: Injection SQL 1 attack" you can see nothing wrong with this machine that may be cause the WAF to block the Portal login page.  Here are the event log:

    "Jun 10 09:34 sslvpn1 SSLVPN: id = sslvpn sn = C0EAE4745184 time =" 2015-06-10 09:34 ' vp_time = '2015-06-10 14:34 UTC' pri fw = xx.xx.xx.xx = 2 m = 34 c = 402 src = dst = xx.xx.xx.xx xx.xx.xx.xx user = 'Unknown' usr = 'Unknown' msg = "prevented WAF threat: SQL Injection attack 1 ' URI=remote.ncmic.com:443/ rule-match =" _ga = ga1.2.1366358136.1433946841; " _dc_gtm_ua-21325736-1 = 1 "AttackCat = 'SQL Injection attack 1' somm ="SQL Injection is a technique of attack used to exploit websites that construct SQL statements from user-supplied input,"hamid = category '9005' = 'command execution - SQL Injection' agent =" Mozilla/4.0 (compatible; " MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729 .NET CLR 3.0.30729; Media Center PC 6.0; NET4.0C;. NET4.0E; Tablet PC 2.0)' geoCountryID = '0' geoCountryName = 'LAN' geoRegionName = 'unknown' geoCityName = 'unknown '.

    Other machines can access the page without problem... thoughts?

    Can not reproduce this problem at the moment...

  • Point empty the Cache after submit press

    Hello

    I have 5 element on a page as
    P1_A,
    P1_B,
    P1_C,
    P1_D,
    P1_E.

    I want to here when I press the "submit" button value of P1_A, P1_B, P1_C, P1_D, P1_E must be inserted in table and clear Cache last item P1_C, P1_D, P1_E
    and the value of the point P1_A, P1_B do not have to clear the Cache.

    How can I clear the Cache of the selected item.

    Thank you
    Ed

    Max clear selected element on press the button submit

    Maury

    Create a Page State in Session process to clear items. Make sure that the process is running after your insert.

    Clear Cache items (POINT, POINT, POINT) by entering a list delimited by names of elements to erase. Use a comma (,) or a colon (:)) to separate the element names.

    Example (: P1_C,: P1_D,: P1_E)

    Jeff

  • Message of success or failure only, after Submit form page

    Hello

    I have a setup form/report on a table, but I don't want the form creates a branch to the table after the submission. Instead, I want that he stay on the page form and displays a message 'Success' or 'error '. I started by removing the automatic connection has been set in place, but how to display the message of success/fail now me?


    Thank you

    create a branch to the same page and check the box "include the success of process message."

    If you want you can give the condition of your click on the submit button.

    Thank you
    Tauceef

    Published by: Tauceef on May 11, 2011 21:59

  • How to set point values when redirecting to the same page.

    I just create a button to redirect I want to redirect to the same page and place 2 elements on the page to the same value they had before the redirection.
    But I can not write:
    Place these items: P1_Permit_Number, P1_Fishing_Year
    With these values: & P1_Permit_Number, & P1_Fishing_Year.

    Because there are no values in session state, because a shipment has not been done.

    So, how can I do this?
    I know how to get the values stored in the elements, for example, $v ('P1_PERMIT_NUMBER')
    but where should I put this command? It is not allowed under the "with these values.
    And I don't really want to make a button "submit" and create a process that says:
    P1_PERMIT_NUMBER: = $v ('P1_PERMIT_NUMBER'), because that would complicate the page too - I already have other branches and the process on the pages which conditions have to be modified so that they do not work in this scenario.

    Thank you.

    Hello

    The syntax seems correct to me. Your summers of uppercase element names?

    Try:

    alert("Here");
    var permitNumber = document.getElementById('P1_Permit_Number').value;
    alert(permitNumber);
    var fishingYear = document.getElementById('P1_Fishing_Year').value;
    alert(fishingYear);
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.:Vessel_Display:::P1_Permit_Number,P1_Fishing_Year:' + permitNumber + ',' + fishingYear;
    alert(url):
    window.location.href = url;
    

    All alerts MUST display expected values. Doesn't it?

    Andy

  • How can I navigate to a new page when after - submit proc process running

    I have a lengthy procedure and would like to provide users with an animated gif to indicate the progression that updates a line of description to indicate the current step in the process.

    Currently, I have a few pages to this application which is called a stored procedure in a package that performs a long-term process that updates the progress of a table. These processes have a single parameter argument. In this case I call the procedure via the Task Scheduler as part of my process of the after Submit and page navigation Jump to another page that shows a graphical representation of the % complete based on the progress updates in the table and refreshes every 5 seconds until the work is finished. It works very well.

    I use now on an issue where I have a whole more complex process, with a number of parameters. To solve this problem I used the same process above, however, I have everything first to check to see if the process exists in the Task Scheduler, otherwise I create. Then, I put all the settings and tell the Task Scheduler to run the procedure. This should work as for the process, that I am running on other pages, however, on this page where I have several parameters and send a command execute rather than an immediate execution on the creation of jobs, the system runs all the work before executing the part of the page, so the end user is stuck on a page of hanging with no feedback user two minutes after pressing send.

    I'm looking for how to call the procedure and branch run so a progress screen is visible. I'm not committed to using Task Scheduler, if there is a better way.

    Any help is greatly appreciated.

    Hello

    Follow these steps to start the work (guess you have defined employment)

    dbms_scheduler.set_job_argument_value (,,);
    dbms_scheduler.set_job_argument_value (,,);
    dbms_scheduler.set_job_argument_value (,,);
    dbms_scheduler.run_job (job_name => < job_name=""> , use_current_session = > FALSE);

    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28419/d_sched.htm#i1013568

    CITY

  • How to develop a login page for my application

    I am new to Oracle ADF. AM to develop a simple web application, but I want to integrate a login page that a user can access the home page. How do I get there?

    Read this article http://www.oracle.com/technetwork/issue-archive/2012/12-jan/o12adf-1364748.html

    Timo

  • Several variables from the session to the login page

    Hey there, I have to point out that I use ASP for several years and am trying to start a transition to PHP. I'm kinda stuck and I don't know that there is a simple solution for this. After a login page, I go to my home page. When you are at the homepage depending on the status you are given i.e. level 1, 2 etc.

    Dreamweaver gives you the code to start a page and I seem to be able to capture the session variable 'MM_Username' on the start page, but in my setup, that's your name. Of course there could be a lot of 'Fred' out there so you need the info from the first name field. How to capture the session password or create a new session for password, so when I'm filtering the session on the page following I can use several variables as what follows must match the user name, password, address, etc?

    In asp is was easy. I started just a session variable capture since the names of the fields username and password. Like this:

    < % session ("NomUtilisateur1") = request ("username") % >

    < % session ("password1") = request ("pass") % >

    My session would be NomUtilisateur1, password1, and I would like to sort out.

    In PHP how would I do a similar thing? Help please!

    Here's the code generated from Dreamweaver.

    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION < 6) {}
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }
    ? >
    <? 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['username'])) {}
    $loginUsername = $_POST ['username'];
    $password = $_POST ["password"];
    $MM_fldUserAuthorization = "";
    $MM_redirectLoginSuccess = "/ support/startpageSQL.php";
    $MM_redirectLoginFailed = ' / test2.php ';
    $MM_redirecttoReferrer = false;
    @mysql_select_db ($database_toyosupport, $toyosupport);

    $LoginRS__query = sprintf ("SELECT name, password AND password entry WHERE name = %s is %s",
    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $toyosupport) 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);
    }
    }
    ? >

    To make this work it turned out to be very simple. at the login page, I simply used:

    <>

    This is to set session values.

    $_SESSION ['username'] = $_POST ['username'];

    $_SESSION ['pass_word'] = $_POST ["password"];

    ?>

    After all the code from Dreamweaver to start a totally different pair of sessions.

    On the home page, I made the Recordset like this:



    <>
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    If (via PHP_VERSION< 6)="">
    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }

    $pass_word_rsUSERNAME = "-1";
    If (isset($_SESSION['pass_word'])) {}
    $pass_word_rsUSERNAME = $_SESSION ["pass_word"];
    }
    $user_name_rsUSERNAME = "-1";
    If (isset($_SESSION['user_name'])) {}
    $user_name_rsUSERNAME = $_SESSION ['user_name'];
    }
    @mysql_select_db ($database_toyosupport, $toyosupport);
    $query_rsUSERNAME = sprintf ("" SELECT * WHERE the password = name = %s AND %s entry ", GetSQLValueString ($pass_word_rsUSERNAME,"text"), GetSQLValueString ($user_name_rsUSERNAME,"text")");
    $rsUSERNAME = mysql_query ($query_rsUSERNAME, $toyosupport) or die (mysql_error ());
    $row_rsUSERNAME = mysql_fetch_assoc ($rsUSERNAME);
    $totalRows_rsUSERNAME = mysql_num_rows ($rsUSERNAME);
    session_start();? >

    Although Dreamweaver code struggled a bit he works and seems to be stable. Note that I added a session_start to the top of the page, even if the source code for Dreamweaver does not. This helped.

    I hope this helps.

  • redirect to login page

    Hello

    I have the following procedure to redirect the user to a page 50, when the password is about to expire.
    The problem is that instead of going to the 50 page go to page 1

    Thank you

    Tony R.

    declare
    date of v_pwd_expire;

    Start
    Select pwd_expiration
    in v_pwd_expire
    of cms_modsecurity
    where trim (upper (username)) = trim (upper (:P101_USERNAME));

    If (v_pwd_expire - sysdate) between 1 and 5 can
    HTP.init;
    owa_util. REDIRECT_URL ('f? p ='| wwv_flow.g_flow_id |': 50');
    htmldb_application.g_unrecoverable_error: = true;
    end if;

    end;

    Could Tony - you please change your OTN handle to something easy to read? Thank you.

    It seems that your application specifies the built-in authentication scheme login page. Can you null this field and select 101 from the LOV (assuming that you have a login page 101)?

    Scott

  • Apex, language of login page set after the connection based on the user pref browser lang and application-based

    Hello

    Request Express 4.2.3.00.08

    I created an application of multi languaguage in which the language is defined by setting: FSP_LANGUAGE_PREFERENCE

    But the login page, I would like to than the login page to be displayed in the browsers language.

    The url of the application connection looks like as shown below but the & BROWSER_LANGUAGE. product always (English).

    f? p = & APP_ID.:LOGIN_DESKTOP: & SESSION. : FSP_LANGUAGE_PREFERENCE: & BROWSER_LANGUAGE.


    LOGIN_DESKTOP is an intermediate page that has one before branch header for the page of real connection if the FSP_LANGUAGE_PREFERENCE is set prior to the loading of the page.

    If I set the language set in this URL, it works as expected:

    f? p = & APP_ID.:LOGIN_DESKTOP: & SESSION. : FSP_LANGUAGE_PREFERENCE:nl - page Login Show in NL

    f? p = & APP_ID.:LOGIN_DESKTOP: & SESSION. : FSP_LANGUAGE_PREFERENCE:-see the login page in EN

    When I put the application to choose the language based on the browser language that it works, but then I am not able to have users to save their preferences for the next time they are connected.

    Any ideas on why & BROWSER_LANGUAGE. translates by "in" even though the language in the browser is different?

    See you soon

    Bottom

    OK, he stares at me

    For all those interested, this is how.

    Create a page additional empy (with alias page LOGIN_FORWARD_PAGE) and set the url to connect to the application of this new page and set the value of the application on BRANCH_TO_PAGE_ACCEPT:

    f? p = & APP_ID.: LOGIN_FORWARD_PAGE: & SESSION. : BRANCH_TO_PAGE_ACCEPT:

    On the page to create a pl/sql process submit before calculations similar to one below which affect the en language, if the browser is not NL (in Dutch):

    If upper (substr (owa_util.get_cgi_env ('HTTP_ACCEPT_LANGUAGE'), 1, 2)) = "NL" then

    : FSP_LANGUAGE_PREFERENCE: = "nl";

    on the other

    : FSP_LANGUAGE_PREFERENCE: = 'en ';

    end if;

    And create a branch to submit before the treatment which redirects to the current login page (the value of FSP_LANGUAGE_PREFERENCE is then already set and the application is configured to use this setting).

    After that loging in you can extract the FSP_LANGUAGE_PREFERENCE based on the user.

    BTW, I had to switch to 4.2.5 there in 4.2.3 is a bug preventing to set session state when you use BRANCH_TO_PAGE_ACCEPT!

  • What is the correct syntax to reference a page point (P23_ID, for example) in a process of PL/SQL page after submit?

    What is the correct syntax to reference a page point (P23_ID, for example) in a process of PL/SQL page after submit?

    TexasApexDeveloper wrote:

    Variable binding is preferred: P23_ID you can also use & P23_ID. (variable substitution notation).

    Bind variable and static text substitution references are not interchangeable. For example, static text substitution references cannot be used in allocation targets:

    :P23_ID  := 'foo';  -- valid
    &P23_ID. := 'bar'; -- syntax error (or something weird or sinister due to SQL injection)
    

    Substituting static text references should be avoided in SQL and PL/SQL code because of the risk of behavior topic SQL injection and / odd error because of values containing quotes, etc.

  • Process of calculation to calculate the value after submit after all validations

    Hello

    Please help with a possible approach or suggestions for the calculation process.

    I have a calculation process after submit I want to calculate its value after that all validations are handled. Because this process of calculating trim is off of the first part of the input string of the user for the P3_USES element. Thus, for example consider; the user selects a value for P3_USES (point list manager) to be "TAC"... BCA... BCA... BCA... 0.CA BC... "CA IT BC. So my calculation process just stripes off the coast of the first portion of the string and computes the value will be "BCA"... BCA... BCA... 0.CA BC... "CA IT BC. It works fine when all postings on the page are placed without cooking.

    The problem occurs, then the validation fails on the form. Once the validation fails, the calculation process; already calculates the value and the P3_USES value form element is set to "BCA"... BCA... BCA... 0.CA BC... "CA IT BC. So, here the user solves the problem of validation and sends it again the form, but at this point the value is calculated again but this time that my string is "BCA"... BCA... BCA... 0.CA BC... CA IT BC"which is not correct, because my initial user string entry was"TAC"... BCA... BCA... BCA... 0.CA BC... "CA IT BC.

    So my question is how they treat the value of my calculation after all validations. While I can keep the original value of the P3_USES element. I'm using the version of Oracle APEX 4.0 and Oracle 10 g R2 database.

    Thank you

    Rambeau

    Hello

    Combine code of calculation and validation?

    Perform the calculations in the process?

    Use another element to contain the value 'real '?

    Kind regards

    Jari

  • How to eliminate zeros after the decimal point

    Hello

    I have the columns in the table of Planner has BEGIN_DAY BEGIN_MONTH BEGIN_YEAR and the values are coming as 12.00, 11.00, 2009.00.

    In the database there are no zeros after the decimal point, but when the tables are imported into OBIEE see zeros in columns above. Is it possible to remove the zeros after the decimal place to the RPD.

    Rgds,
    Amit

    Set the data type in the physical layer int.

  • Titles/subtitles in Dutch are "Preview", but disappear (become the default values in English) after "publishing to devices.

    In my project all the (sub-) titles and legends (in Dutch) remain in "Preview", but disappear (become the default values in English) after "publish for Devices.

    How can I solve this?

    Departure met with CP you lanceren als administrator! Dat is put good, en is niet als administrator rights have op jouw system use.

Maybe you are looking for