Updated session state, but are not the elements

Hi guys,.

I have a few user contact form where you enter the idea then focusout/focusouthandler() he calls a process to see if this user already exists.

If the user exist elements of session state are defined in the relevent (e-mail, name) values. If there is no they are set to null.

Session States evolve as you wish, but the elements (text fields) remain empty. Someone knows how to change that to the JS?

JS:

$("#P15_USER").focusout(function() {
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=PULL_DATA',15);
    get.add('P15_USER', $("#P15_USER").val());
    var results = get.get();
$('#P15_EMAIL').val($v('P15_EMAIL'));    
});

PULL_DATA process:

SELECT COUNT(*) INTO :P_COUNTER FROM password_users 
WHERE USERNAME = :P15_USER;
IF :P_COUNTER > 0 THEN
SELECT EMAIL, FIRST_NAME, LAST_NAME 
INTO :P15_EMAIL, :P15_FIRST_NAME, :P15_LAST_NAME
FROM password_users 
WHERE USERNAME = :P15_USER;
ELSE
SELECT NULL, NULL, NULL
INTO :P15_EMAIL, :P15_FIRST_NAME, :P15_LAST_NAME
FROM DUAL;
END IF;

Hello

Your application need 'print' return value.

For example, use htp.prn. Then you get meet your variable in JavaScript 'results '.

var results = get.get();
$s('P15_EMAIL,result);

BTW, if you're on APEX 4.x your should convert your code of dynamic action.

Kind regards

Jari

Tags: Database

Similar Questions

  • At the request of firefox, I'm continully download of updates for firefox but are not save?

    I started using firefox as my browser after a break of several months. This version is now old as it seems and I have been asked by Firefox update. However whenever I try it fails to register or it fails to be accepted by my computer, and Firefox time still requires once I update...

    You should be able to update help

    You must make sure that you use an admin account or UAC settled properly, and that any security software does not block downloads or changes to the system.

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

  • Options expenses, but are not accessible. Unusual small box described in the Center. Win 10 64 istalled operating system. Have you tried disableing extensions.

    Loads Options page but are not accessible. Small box (without text) appears in the middle of the page. Have you tried various installs Firefox (current edition of Foxstart). Tried to disable extensions. Win 10 64 operating system. Chrome is by default because it can not reset Firefox because of issue of Options.

    You may have a corrupted file xulstore.json .
    https://support.Mozilla.org/en-us/KB/changes-toolbars-and-window-sizes-are-not-saved

  • Passwords are in the computer (checked in the Security section), but are not not in Firefox

    I just upgraded to 4.0. I see that passwords are installed on the computer and fix (where?, my office is located on a network.) Are passwords on my workstation?), but are not used by Firefox on Web sites.

    Make sure that you do not run Firefox in private - browsing using Firefox without saving the story mode (permanent).

    • You enter private browsing mode, if you select: Tools > Options > privacy > History: Firefox will be: "don't forget the story ever.
    • To view the history settings and cookies, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Uncheck: [] "Permanent private browsing Mode.
  • CC works on all my other devices except my laptop. CC files everywhere are not the synchronization in the folder of files on my computer cloud creatives.

    CC works on all my other devices except my laptop. CC files everywhere are not the synchronization in the folder of files on my computer cloud creatives. When I try to open it online, it gives me the error message which is something like "this page is temporarily unavailable. We will return soon. "and"we are working to solve the problem quickly and we're sorry for the delay. Please check back or visit our site in the status updates. "But then I go to the website of the State and either, he said all 'normally works' where it says there is an error but it was"resolved"but error sign icon still appears in the menu dropdown. What should I do to solve this problem and come back if it is old auto synchronization?

    Hello:

    Could it please check the synchronization of files is enabled in your application of creative cloud? Please go to the creative cloud > creative cloud > files and verify that the synchronization on / off is on. If your synchronization of files has been enabled, but you still cannot sync assets compared to the clouds in your local creative cloud files folder, then we need more information to understand your question. Could you please use the log collector (https://helpx.adobe.com/creative-cloud/kb/cc-log-collector.html ) and send me the zip file on your two [email protected]machines? And please, please provide the information below:

    • Adobe ID:
    • Forum post link:
    • File or folder of the specific names that are affected:
    • You use creative collaboration Cloud:
    • How many computers you use with creative cloud:
    • Type of internet connection (Ethernet/WiFi):
    • Using a proxy (Y/N):
    • Firewall (no/company/Local):

    Best regards.

    Lin

  • Online contacts but are not

    I have a problem with Skype contacts being shown as online while they were not on the days. I use 4.2.0.187 for many years and never had a single problem... Now I have to update to 6.18.0.106 and now Skype is a mess! never disappoint you Microsoft, never.

    First of all, you killed msn and now you kill Skype. Wonder that things go the way reverse for microsoft these days?

    I tried a few things like change my status and reconsignation Skype, even quit and restart, but nothing suits him. My desktop or laptop have this same problem.

    is not a question of your Skype, but in your contacts, if some of them use Skype from mobile devices, such as a tablet or a smartphone, you will always see as if they are connected, but are not.

  • My computer is runing but sends not the power of the moniter the mouse or the keyboard. What could be?

    Original title: does not!

    my computer is runing but sends not the power of the moniter the mouse or the keyboard. What could be?

    Hello

    These details are pointing to it is not material.

    If under warranty, I suggest you contact the manufacturer; or if not under warranty get it to a repair shop local and good.

    See you soon...

  • Things are not the tail

    Things are not the tail in Design view. They are very good in Live View and when I upload to the server. Any suggestions? One minute, they were beautiful and the next day they were all wobbly.

    http://michaelgabrielmusic.com/home/home.html

    Here's what it looks like in Dreamweaver - mode Design.

    Picture 2016-08-29 17_14_19.png

    I use Dreamweaver CS6.

    Design view is a relic of Macromedia in the past when all sites use tables-based layouts.  A lot has changed since then, but Design view has not kept pace with these changes. It will be eliminated later.

    For the purposes of editing, Design mode is very convenient, but at best, this is only an approximation of what would look like your site in older browsers.  If you use Responsive Layouts, fagetaboutit!  He can't handle the advanced CSS.

    Use the Live View and Preview in browser to test your work.   The Design mode is mainly for editing content.

    The current versions of DW CC have edition Live View.  At some point, you may want to increase the Creative DW Cloud version.

    For a taste of DW CC in the future, please download the public beta version currently in the trial.  It's still a work in progress, but the Beta team requires an entry.

    Welcome to all! Beta version of Dreamweaver is now online!

    Nancy O.

  • Why apps like slate say available on any device but are not compatible on Android?

    Why apps like slate say available on any device but are not compatible on Android? It is today the largest operating system.

    Hi Michael % 20alaska,

    We have a slate Adobe user forum that you can post to. Please go here and post your situation of assistance:

    Adobe_Slate user forum

  • I want to reset my security questions, but there not the possibility of

    I want to reset my security questions, but there not the possibility of

    Click here > If you forgot your Apple ID - Apple Support security questions answered

  • I have a Toshiba Satellite A105-S361 and I get this message: Windows successfully loaded the device driver for this hardware, but does not the hardware device. (Code 41)

    I have a Toshiba Satellite A105-S361 and I get this message: Windows successfully loaded the device driver for this hardware, but does not the hardware device. (Code 41)

    Hello

    I suggest to refer to this link, scroll down to error code 41 and follow the steps and check if that helps:

    http://support.Microsoft.com/kb/310123

    It will be useful.

  • trying to update my windows but it shows the found error Code 80070017

    I'm trying to update my windows but it shows the found error Code 80070017, I installed Microsoft fixit center to solve the problem, but the problem persists, in addition to this Windows Secuirty Center service is off please guide me how to do?

    Hello

    1. what day you're talking about?

    2. what Microsoft fixit you talking?

    3. don't you make changes to the computer before the show?

    Please follow the steps from the link below.

    http://support.Microsoft.com/kb/956704

  • Separators from decimals/mile are not the same for the number and format of thousands. How can I get even. ?

    I installed the version 11 of Pastel partner and the error message "separators from decimals/thaousand for number and currency formats are not the same" how to get this right?

    Pastel partner support site through and their instructions/FAQ

  • I had the literoom last Sunday. but did not the program. When I start this program. "Please disconnect in the menu help reconnect you, and then click license of this software.

    I had the literoom last Sunday. but did not the program. When I start this program. "Please disconnect in the menu help reconnect you, and then click this software license" How can I do?

    Hello

    I see that you bought the subscription of photography and it seems it is stuck in the sign in a loop.

    Please try out the following links

    Solutions to connection errors, activation and connection with creative Cloud applications and Creative Suite

    Solve the common activation Adobe Creative Cloud (login) and questions (disconnect) disabling or error messages

    Troubleshooting of Activation creative cloud (solved 99% of the questions)

Maybe you are looking for

  • Why my downloads when you're done automaticly play in media player?

    When I download an mp4 or avi file using firefox... download ends and he begins to play in windows media automatically player without even asking me... all I want to do is d load the file and play it later. Any suggestions to solve the problem.

  • Extremely slow scrolling of Web pages on Tecra M5

    I have a Tecra M5 and on the web pages, when I'am scrolling, it is extremely slow and the photos roll up like blinds.What could be the problem with that?

  • Bike E 2nd Gen LTE: Amoled screen?

    I read different things on the screen. Is it amoled or ips? I heard that the lte version has an amoled.

  • Kernel-EventTracing for Windows 10 ideapad Y700

    During the system startup, there is a black screen with cursor in the middle and I have to wait a few minutes for windows to come and ask for the password. It happened to me several times and everytime I look at the event viewer, it indicates that th

  • Don't connect to the Admin account

    everytime I try to log on my computer I have 2 accounts. It is said that the system profile service does not connect and I am the administrator. on another name, it doesn't let me do anything about it either in dealing with admin help.?