How to populate new record on data entry form based on search results?

Hello,
I'm new to jdeveloper im using version 11.1.2.1.0.
Usually Im using forms 10g.
I created search panel with table and its working but problem is how to transfer/populate all the field value according to that search result to New data Entry Form
by clicking the table record or a button.
Given :
TABLES,EO
1. PatientMasterIndex
2. PatientTransactionMaster <<---- master
3. PatientTransactionDetail <<-- detail relation
Here the scenario,
After Search of any patient, when i clicked one or more patient (which Jdeveloper allow multi select on jtable) on the table record it should automatically transfer or copied to the text field, i want to show on the form of PatientTransactionMaster like PatientNumber,PatientInsuranceNumber etc. to be save on db as new record, also non database field for view only like patient Name,address,age.
IN forms i can do that by :PatientTransactionMaster.PatientNumber := :blocksearch.PatientSearchNumber ,etc.....
or an item trigger to populate the said PatientTransactionMaster block. ( select .... into :PatientTransactionMaster.PatientNumber,etc....)
Any suggestion,links,sample is highly appreciated.
Sorry for my english.
Thank you very much

Hi,
Do you want to create a detail record that will include some values from your master record??
Or do you want to create a record with values from your Search criteria, only in the case you do not have any results?
if it is the second case.
When do you want to do that? After a press of button? or immediately?
In general you have to handle the values from search criteria.
Additionally, if you use ViewCriteria, you have to have bind variables for your search criteria that you will want to use.
So in general, you have to know the values by using bind variables, understand that the query has no results (This can be done in many ways, depending on your implementation. if you are using a button, you could make a disable condition with iterator.estimatedRowCount property.)
Perform the insert operation with the values from the bind variables.
Regards,
Dimitris.

Similar Messages

  • How to populate a field in an Infopath form based on the people picker input - only OOTB approach

    Hello,
    I have 3 lists : Resource , Project, Contract
    In "Contract" list i have created a form with MS Infopath 2010. This form is used to collect data of a new resource joining a project . This form also takes the information about the resource's costs.
    Scenario :
    Project informations are already present in the "Project" list.
    Any new resource who will be joining a project will be added in the "Resource" list at first . This list has its own form to do so. While adding this resource the form asks for the project which should be assigned. This is dealt with.
    "Contract" list : In this lists form their is a people picker field where the resource email id(already inserted in "Resource" list earlier) will be typed by me. There is a field which will capture the project name.
    Issue in "Contract" list:
    When i type the resource email id and click on the people picker icon , the project field in the form should get auto populated with the corresponding project of the existing resource so that i donot have to type the project name again. This project info
    should be fetched from "Resource" list only.
    Please let me know how i can achieve this by OOTB approach .
    Regards,
    Guru

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • Creating data entry form/screen dynamically

    How does one create web application data entry form/screen dynamically? One part of screen will have the option to bring up forms so that users can create forms. DO i need any sort of markup language?
    Examples please.

    use javascript. use the buttons on one panel and forms on another panel.
    for buttons onclick events change the form "action" and send the hidden parameters you want.

  • How to Save Multiple Records In Data Block

    Hi All,
    I Have Two Blocks --> Control Block,Database Block
    Please Any Idea How to Save Multiple Records In Data Block when User changed Data in Control Block.
    Thanks For Your Help
    Sa

    Now i have to use each record of control block(ctl_blk) as where condition in data base block(dat_blk)and display 10 records from database table.>
    Do you want this coordination to be automatic/synchronized or only when the user clicks a button or something else to signal the coordination? Your answer here will dicate which trigger to put your code in.
    As to the coordination part, as the user selects a record in the Control Block (CB), you will need to take the Key information and modify the Data Block's (DB) "DEFAULT_WHER E" block property. The logical place to put this code is the CB When-New-Record-Instance (WNRI) trigger. You code will look something like the following:
    /* Sample WNRI trigger */
    /* This sample assumes you do not have a default value in the BLOCK WHER E property */
    DECLARE
       v_tmp_dw    VARCHAR2(250);
    BEGIN
       v_tmp_dw := ' DB_Key_Column1 = '||:CONTROL.Key_Column1||' AND DB_Key_Column2 = '||:CONTROL.Key_Column_2;
       Set_Block_Property('DATA_BLOCK', DEFAULT_WHER E, v_tmp_df);
       /* If you want auto coordination to occur, do the following */
       Go_Block('DATA_BLOCK');
       Execute_Query;
       /* Now, return to the Control Block */
       Go_Block('CONTROL_BLOCK');
    END;
    The Control block items are assigned with values in Form level (Key_exeqry).If your CD is populated from a single table, it would be better to create a Master - Detail relationship (as Abdetu) describes.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to identify new records in a table using OBIEE

    Hi,
    I have price change table as and when a record comes into this table i have to generate an alert. Then show a report with the price changes on which i can invoke an action to go into my transactional system to make the chnage. And once the change is made the process again starts to look for any new price chnage records that are recieved.
    Could anyone pls tell me how to identify new records in a table.
    Rgds

    SELECT ID, LastName, FirstName,
    RANK() OVER (PARTITION BY LastName,
    FirstName ORDER BY ID) AS SeqNumber
    FROM
    (SELECT ID, LastName, FirstName
    FROM Customers
    WHERE (LastName, FirstName) IN
    (SELECT LastName, FirstName
    FROM Customers
    GROUP BY LastName, FirstName
    HAVING COUNT(*) > 1)

  • How to Create a PDF of a Webpage Data Entry Form

    When using Adobe Acrobat XI, what conversion settings do I need to create a PDF file of a completed webpage data entry form so that the created PDF file contains the data that was typed into the webpage form? Typically whenever I try to do this, I get a PDF file that is a copy of the webpage form but does not contain any of the information that was entered into the form. If I want to retain the information that I entered into the webpage data entry form, I have to retype it into the PDF file that I created.

    What did you get when you print to "Adobe PDF" ?

  • Creating a Data Entry Form combining 2 or more tables like a Master Detail

    I have a client requirement to create a data entry form which shows fields from 3 different tables joined by linking key. The data entry form should allow the user to enter a new record details. This should populate into 1 or more tables.
    Example: User table with userid,username. userRoles with userid,roleid. The user can have one or more roles. There are 4 roles and possibility of expanding. The data entry form should show userid, username and all the possible roles fetching from a look-up table roles_lookup which has role_id, role_description. When a new user is created with 4 roles selected the system should create one user record and r userRoles records.
    What is the best approach.
    Thanks in advance.
    Satya

    I found the solution. We can create a database routine to which we pass all the values and in the routine we create two different insert statements. Based on the number of roles selected we can control the loop to create number of records in role table.
    Satya

  • Hierarchical tree - Data Entry Form

    I am trying to make a data entry form for hierarchical tree. Any one help me to send a sample .fmb file.
    I created a table like
    create table master_ACTIVITY
    (INITIAL_LEVEL NUMBER (4) ,
    NODE_DEPTH NUMBER (4) ,
    NODE_LABEL VARCHAR2(160) ,
    NODE_ICON VARCHAR2(60) ,
    NODE_DATA VARCHAR2(160) ,
    NODE_PARENT VARCHAR2(160)
    1. How do i use hierarchical tree for adding and deleting item into it.
    2. In my other form i use the item from hierarchical tree. so how to get the return value of the selected item in a hierarchical tree. and which of filed in this table i need in other forms to connect to this table and get values.
    please send a sample form to [email protected]
    thank you
    saji daniel

    Andreas,
    It got worked.
    I have another problem now. I have 2000 records in my tree. when i populate it is taking time to populate.
    I want to display only parent trees ie Level 1 & 2 Items. But the Level 1 & 2 should have '+' symbol to display.
    When the user click on any items in level 2, only then the child of the selected parent should populate.
    By default all the items are displayed in collapsed mode (-1). But still it take time to populate.
    Any solution ?.

  • How to create exchange grid in web entry form...

    Hi to all,
    I am new to HFM..my query is How to create exchange grid in web entry form...i try it a lot but it didn't get the solution...
    i did this exchange grid in web grid..any one can share the document or ppt or video clip related to this..which will be helpful for me...
    Thanks

    Hi...
    Its better to create the Exchange Rates in a Data Form than in an Data Grid, so that you can easily Import and Export the form and even can feed the values easily....
    Select the POV like in Scenario-Actual,Year-Your particular year,Period-In Period Dimension do not choose any option so that it can be selected in Columns and Rows,View--the same as Period Dimension,Entity-[None],Value-<Entity Currency>,Account-Do Not select ,ICP- [ICP None],Custom 1-[None], Custom 2-[None], Custom 3-[None], Custom 4-[None]...
    In Columns Select Scenario -Actual,Period-{[Fourth Generation]},Currency-#USD(Default Currency)
    In Rows Select-Account-A#AVGRATE,View-w#Periodic,Currency-C2#EUR
    A#AVGRATE.w#Periodic.C2#CFA and so on for rest of the currencies....
    and same in the below rows for the Closing Rates---- A#CLORATE.w#Periodic.C2#EUR
    A#CLORATE.w#Periodic.C2#CFA
    This might help you.....

  • Data entry form problem - form in query-only mode

    Hi there,
    I am trying to create an data entry form to insert recordacross 2 out of 3 tables. The last of the four tables already have details and does not need to have record inserted into.
    This is the scenario, my four tables are Factory, Employee, Works_in. Works_in resolves a many to many relationship between Factory and Employee
    Now for a person to be employed in a factory, he must be assigned to a factory.
    I have a list of factories already in the database. After choosing a factory from the database, I want to insert records to do with his Fname, Lname, Hiredate bla, bla, bla to the Employee table.
    I have a single form with Factory as the master, and 2 tabs each for Employee and Works_in.
    After linking all my tables with the ability to choose a factory first on the master form from a combo box and after inserting records into the other forms, it says form running in query-only mode.
    What do you think?
    Many thanks in advance.
    Cube60

    I think that's too much of the wrong information.
    It sounds like you have multiple forms. Are they Modal or Non-Modal?
    What code do you use to call the form that's not working?
    Does it work initially and then stop working?
    James.

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • What can be considered as the business logic of simple data entry form

    Hi all,
    I want to separate my applications logic into layers. It is a simple data entry form and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of simple data entry form.
    How do I separate business logic of this simple data entry form to another layer?
    any help is appreciated,
    Thanks in advance,
    Dil.

    dcminter wrote:
    It is a [form] and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of [form].Are you asking which bits are business logic?
    Suppose that the data comes into your system immaculate from some external system. Imagine that it will go out into some other system. The bits that you would still have to write are your business logic.That's a nice practical definition. Thank you, I'm stealing it.
    Also interesting to note that validation falls into that category... say you're recieving data from a magical external source... you still have to validate it.
    And of course you'd still have to store it somewhere, ans retrieve it.
    Yep, I definately like that definition.
    Cheers. Keith.

  • Make Item of Data Entry Form Insert Only, Non Updateable

    Hi,
    Can someone please tell me how to make an item on a data entry form insert only and not updateable. The user can enter the text item in insert mode but cannot update the text item in update mode. This was really simple in Oracle Forms, hoping it is as simple in APEX.
    Thanks

    I think that's too much of the wrong information.
    It sounds like you have multiple forms. Are they Modal or Non-Modal?
    What code do you use to call the form that's not working?
    Does it work initially and then stop working?
    James.

  • Creating data entry forms in numbers

    How do I create a data entry form in Numbers for Macbook Air?

    Hi Francie,
    Ever since I switched to the Mac over a decade ago, I've been puzzled by why Apple gives the keyboard interrupt such low priority. When the computer gets busy, keystrokes start to lag. Sometimes, rarely, they are even lost.
    The computer gets very busy with Flash websites. If you have several Safari Windows or Tabs running with Flash animation, the fans will start to rev up, a laptop will start to warm your legs (ok in the winter) and your keyboard will lag.
    The computer also gets busy when you are editing a large Numbers iWork '09 document. Large for Numbers '09 is not really very big compared to many Excel documents that we are used to seeing in a business setting. This is because Numbers '09 constantly recalculates the document as you type. It doesn't wait for you to finish an entry, it just gets busy recalculating. They tried to address this recalculation problem in iWork '13 (Version 3).
    In general, your spreadsheet work will go better if Numbers is the only app you have running. At least close windows, tabs and apps that you aren't using.
    One lsat thing is your Free Memory. If you are short on RAM, Restarting your computer will free-up memory by releasing allocations for apps that you may have closed earlier. This is a pain, so it's best to install as much RAM as your computer will hold.
    Jerry

  • Can I Create A Data Entry Form with iWeb?

    I want members of my club to be able to make data entry selections each week directly to my web site via a data entry form, and have those entries stored for my retrieval and later posting. Can this configuration be set up in iWeb? Thank you in advance for pointing me in the right direction.

    http://discussions.apple.com/thread.jspa?messageID=7465901
    _Additional Info_

Maybe you are looking for