How to fill in the field on the page with the value of the primary key of the previous page

I am trying to create a patient monitoring system for a group of doctors. There is a patient form add based on the Patient table (which has Patient_Id as primary key) which branches off toward an preoperative evaluation form. I would like to fill in the field of Patient_Id of pre-surgical assessment with the Patient_Id generated by the page add Patient during treatment, which comes from the Patient_seq sequence. How can I do this? I tried to use a calculation on the pre-operative evaluation form, but no matter what I put, the field remains empty.

Hello

If I understand you correctly, once the patient record is created you branching to the next page (preoperative assessment form). First create a static hidden point in the form of patients *: PX_PATIENT_ID_COPY *.

Create a process on submit after the calculation and validation patient form to get the inserted patient_id of patient table. Here's the code-

SELECT patient_id into :PX_PATIENT_ID_COPY from patient_table where rownum=1

order by patient_id desc

I would not use the sequence to get the present value, because if the record inserted was removed from your patient table, the current value of the sequence would be invalid to find this record in the patient table.

Basically when the inserted record, the process of getting the value and put into the hidden element.

Pass the value of the item hidden on the next page by defining them in the direction of the page. Under the section of the Action in the branch of the page, set this items field type - *: PX_PATIENT_ID * (page the order of the day for patient_id). Type * & PX_PATIENT_ID_COPY.* in the with the field of these values. Make sure that include you the dot (.) after * & PX_PATIENT_ID_COPY *.

Try it now. Hope that it would help.

Kind regards

Djelloul

Blog: http://aspblog.whitepagesbd.com

Web: http://tajuddin.whitepagesbd.com

Tags: Database

Similar Questions

  • How to fill out the customer type when you submit a form?

    How to fill out the customer type when you submit a form?

    You can't do right now in British Colombia by means of forms.

  • How to fill out the "to:" line with a variable email address?

    I'm new to coding and am not sure how to ask my question. I have a link in an 'Email' symbol that I would like to have the window open to a 'mailto', but there are several instances of that symbol on the timeline, each using a different email address. If the [symbol]. Email.Click code reads as follows:

    Window.Open ('mailto:'+ sym.getVariable = ("emailWindow"), "_self")

    and the line in the Stage.creationComplete code that is supposed to call the variable code reads:

    sym.getSymbol("Details_David").$("Email").html ("[email protected]" "").setVariable("emailWindow","[email protected]");

    With this code, the browser opens a window of mailto, but the ' to: ' line readings, "indefinite".

    Either in the [symbol]. Email code. Click, I have:

    Window.Open('mailto:"emailWindow"',"_self")

    without the "emailWindow" as the variable name, the "to:" line to the mailto line reads, "emailWindow".

    How to fill out the "to:" line with a variable email address?

    Otherwise, it works better:

    1)

    replace

    sym.getSymbol("Details_David").$("Email").html ("[email protected]").setVariable("emailWindow", "mailto:[email protected]");

    with

    sym.getSymbol("Details_David").$("Email").html ("[email protected]");

  • How to revert to the previous version. Last update makes the new windows appear less of a complete new window should appear.

    I have my system tell me when a new update is available. Happened today. I downloaded the latest update. My Firefox now sits at 38.0.1.

    I use no legs. I want a new separate window for all that I opened. Since the upgrade this morning... when I open a new window, it is fine. But when I click on something in that window when a new opens up and it doesn't seem to be an entirely new window. There is no tool bar and it doesn't seem to be a way to have displayed toolbars. So I have no control over this new window except to reduce to a minimum or nearby. That's all. It does not appear as a tab either.

    It sucks! This was?

    How to return to the previous version before upgrading this morning? Otherwise I'll have to find another application to use other than Firefox, because I don't like it at all.

    Thank you

    ksburrus

    Another solution is to modify some hidden settings related to windows dialog style. Should not you make changes to the way you use Firefox, but sometimes you need to enlarge some small pop-up windows that have been sized for a window with no toolbar displayed.

    Here are the steps:

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste feat and make a pause so that the list is filtered

    (3) for each preference that begins with dom.disable_window_open_feature. , if it is not 'true', double-click it to true.

    You may find that you prefer this anyway, given that sites can band is more these pop-up windows features.

  • How to return to the previous version?

    I hate this UI! How to return to the previous version?

    I don't know if it's course, but here's the January release: http://ftp. . Mozilla org/pub/mozilla. org/mobile/releases/10.0/Android/

  • I installed Firefox 4 Mobile on my N900, but I am not satisfied. How to return to the previous version?

    While Firefox 4 is a commuter application, it does not play Flash videos and there is no add-on for this and so she won't let me watch videos on various news sites I visit.

    Supported the previous version of Firefox Mobile made a version of Flash that was enough to play Flash videos, but I can't find the previous version of Firefox anywhere on the web.

    My question is: How can I install the previous version of Firefox mobile on my N900?

    To enable Flash in Firefox 4.0 for N900:

    1. Enter about: config in the address bar and press return.
    2. Find the preference "plugin.disable".
    3. Press the rocker switch to set the value "false".

    If you want to download the previous version, you can find it here:

    http://FTP.Mozilla.org/pub/mozilla.org/Mobile/releases/1.1/maemo/

    (Choose your language, for example "en-US" is English us.)

  • How can I recover the previous games loaded (Freecell, Spider, Pinball, etc.) on Win XP/SP3 in the start menu

    How can I recover the previous games loaded (Freecell, Spider, Pinball, etc.) on Win XP/SP3 in the games from the start menu. Somehow they must be deleted. If I go to the disc cleaner and click on games to again install it says for me to show the way to C:\i386 and something zclientm. I hope you understand my explanation.

    Hello

    I'm happy to help.

    See you soon!

  • How can I delete the previous owners username

    How can I clear the previous owners user name if not showup in address of file instead of mine

    Hi Spyro,

    Type 'LUSRMGR. CSM ' in cmd.
    In the local groups & users window select "users".
    Right-click on the empty space & create a new user with your name or one.
    Sign in with your newly created account. Open again ' LUSRMGR. CSM '
    Find the user to be deleted. Make a right click on it & delete the user.
    Close the window.
    Browse the folder "Documents and settings" & remove the old user folder.
    It's her!

    ___________________________________________________________________________
    AmS8_7 (MCSE, MCSA, CCNA, network + / has +):-If this post can help solve your problem, please click the 'Mark as answer' or 'useful '. By marking a post as answer, or relatively useful you help others find the answer faster

  • The only InDesign that appears on my CC is the trial version, how to get back the previous version? It is not even in applications to find "additional" and "view previous versions"!

    The only InDesign that appears on my CC is the trial version, how to get back the previous version? It is not even in applications to find "additional" and "view previous versions"!

    Follow these instructions carefully: How to find and install the previous Version of Adobe Apps in CC 2015 | Adobe Customer Care Team

  • How to return to the previous version of Flash?

    Everything worked fine until I installed the latest version of Flash, now Firefox crashes, unless I have turn off the Flash. How to return to the previous version of Flash? I'm using Firefox on OS X 10.6.8 11

    Flash player archives

  • How to fill out a field value based on the value of another field

    I developed a page. It has two fields 'Qualification' and ' Points' (these two values are stored in a table of rear end).»

    The requirement is, if I select "Qualification" "Points" should be auto Norway.

    This can be achieved using LOV. But I don't want to use LOV here.

    I tried this using the partial Action of fire, but I m not getting the details of "Qualification" in CO, instead getting the value zero.

    How to get there?

    Thank you
    Srinivas

    Hello

    Pls change the code this way

    OAMessageTextInputBean omtb = (OAMessageTextInputBean) webean.findIndexedChildRecursive ("the field id");

    String QName = (String) omtb.getValue (pageContext);

    If ("PopulatePoints".equals (pagecontext.getParameter (EVENT_PARAM)))
    {

    OAMessageTextInputBean otbpnts = (OAMessageTextInputBean) webean.findIndexedChildRecursive ("points field id");

    otbpnts.setValue (pagecontext, Points);
    }

    Thnax
    Pratap

  • How to fill out the empty fields of a document downloaded from my email?

    I have the filliing problews in the blank spaces where my personal information is required.  It seems that I can read and save the document, do not fill the required spaces.  I need help

    Hi Atiimkwabena,

    I guess you are trying to fill out the PDF using Adobe Reader. (Correct me if I'm wrong)

    If so, this form can not be Reader rights enabled. Adobe Reader is a single PDF reading software is only meant to read and save a blank copy of the PDF. If you want to change something in the PDF file, then the creator has enable user rights (commonly called player to extend rights) so that you can save the completed PDF file. This can be done by Adobe Acrobat.

    I would ask you to kindly contact the author of the PDF file to allow the user rights and send it again.

    I hope this helps.

    Kind regards

    ~ Dominique

  • How to fill out the USER name in a [RESOLVED] text field

    Hi all

    Forms 10g (10.1.2.0.2), Windows XP
    In my form, I have 2 blocks.
    1 block with a single element, where we enter a value and press on enter (this place you block2 and run the query).
    Block 2 (tabular) will get the records. This block2 have now 3 columns (caseid, userid, date).

    Now when I insert a new record, I just need to get the caseid only. And username and date must be filled in automatically.
    I am able to fill in the date by setting the property Initial Value * $$DATETIME$ $* for the column.
    And I tried many ways to fill the username in the userid column without success.

    I am tired of something like that
    In *When-New-Item-Instance*
    
    if :System.Cursor_Item is null then
         :BLOCK2.userid := Get_Application_Property(USERNAME);
    else
         null;
    end if;
    /*In this case, I can navigate to to the last recrord w/o any changes in the fetced records
     and while inserting the new record, USERNAME doesn't populate.*/
    In *When-New-Record-Instance*
    
    declare
         v_dummy varchar2(15) := null;
    begin
         v_dummy := nvl(:system.cursor_value, null);
         Copy(to_char(v_dummy), :System.Cursor_Item);
         if :System.Cursor_Item is null then
              Copy(null, :System.Cursor_Item);
              :BLOCK2.userid := Get_Application_Property(USERNAME);
         else
              null;
         end if;
    end;
    /* Nothing populates into the userid item while inserting new record */
    Any help please...

    Use one

    :BLOCK2.userid:=GET_APPLICATION_PROPERTY(USERNAME);
    

    or

    :BLOCK2.userid:=USER;
    

    in a WHEN-CREATE-RECORD-trigger.

  • How to fill out the list of dynamic measurements

    Hello

    I create a dynamic action on a region by using a select list (item) (lov on table A).

    now the problem is that if the value in the selection list is present in the table B then must trigger the action.

    can someone tell me how to fill the column of values as the values in table B.

    I don't want to set the values manually.

    Thank you
    Little Foot

  • You can create a hidden page element that acts as an indicator of the condition "exists."
  • Create a D.A. say 'Set Hidden Page Item"that fires on the element of change o selection list, which is of type 'set Value' and uses a function body PLSQL to set the hidden page (the affected item) item, choose the item of list selection in the field 'referred to submit page '.
    Now the PLSQL block, can return 1/0 'TRUE' or 'FALSE' or 'Y' / ' not etc. Depending on whether the record exists in the other table (or whatever condition you have)

    Now when the selection list is changed, the hidden element would be set correctly by using this dynamic Action.

    So, to check if the element exists, we can use the value of the element of hidden after that page.

    You can do this either as another action True under the dynamic Action of "Set Hidden Page Item" itself (after the action SetValue True) and added a condition using the value of the hidden element
    or add another dynamic Action, fired when the hidden item is changed and when the value of the hidden element corresponds with that of your conidtion.

    Hope that I was clear enough.

  • How to fill out the name of the file to the file upload

    Hi team,

    I'm trying to fill in the name of the file that is selected in the Explorer of files to other filed(text field) in the same region (dynamically when the file is selected). Is there a way to do this?

    Thank you

    Jyo

    Hi, Jyo

    Create a dynamic Action with the following parameters:

    Event: change

    Selection type: point

    Article (s):

    By this DA you can set the value of another element in your page. File name, in that you can get

    • using jQuery: dittos var = $("#P1_FILE_BROWSE").val)
    • without jQuery: dittos var = document.getElementById("P1_FILE_BROWSE");

Maybe you are looking for

  • Importing RAW + JPEG photos files times

    I put up my Nikon D5100 to shoot RAW + JPEG files when I take pictures. Photos is to import both, when I just want to import JPEG files. Can I separate the two formats and delete the RAW files in pictures? Also, how can I stop the RAW files to import

  • Qosmio F60 - Toshiba updates causing the blue screen (BSOD)

    Hello I applied updates based on the recommendations of the Toshiba Service Center app on my F60 and now it starts with windows and then displays the BSOD. Updates have been a nVidia display driver and an update of the BIOS, published on 11/10/2010.

  • HP 15-n225TU: I can update my laptop graphics card?

    I have 2 questions. 1: I installed a new graphics card in my laptop? Currently it is to have an integrated graphics processor (Intel HD 4400). 2: the game experience will improve if I upgrade the RAM? Thank you

  • How can I delete my payment information for my iPhone

    HI, I just need some help, I want to take my my iPhone off payment information 6. 64 gb, iOS 9.2. I tried to go into the settings of application/ITunes store but I couldn't find a 'none' button or whatever it is to get to be there. I took my iCloud t

  • Vista - Error Code: 8007065E (cannot install updates)

    When I run my windows update I 8007065E error. ... will not install updated... on Vista (I hope not much longer)...