Populate a database

Hi guys,
i would like to know hot to perform the insert of new rows
in the database. I don't want to do it using the user interface (the green cross). I want to understand how ADF business components perform the insert of rows.
There is someone who can help?
Thank you,
christian

ADF BC uses a create method at the entity object level. You can override this method if you want to change the way it works.
To see the method, double click on the entity object and go to the Java node in the propery window, check the methods you want to generate code for. Then look at the Java file that belongs to this entity.
For more about the various methods that are in ADF BC check out this document:
http://www.oracle.com/technology/products/jdev/tips/muench/mostcommon/index.html

Similar Messages

  • How do you create a database so that the PDF forms will populate the database as they are submitted?

    I am trying to create PDF forms that will be filled out by multiple members of an organization. I would like them to be submitted electronically and then populate a database so that the data does not need to be reentered into a database.
    I generally use Microsoft access but certainly know how to use comma separated values (CSV) or Microsoft Excel.
    I currently utilize Acrobat Pro X.

    Thanks for the info obviously I will need to watch the videos/tutorials on distributing and tracking documents.
    John W. Hellstein D.D.S., M.S.
    University of Iowa, Oral Pathology
    356 DSB South
    Iowa City, IA 52246
    Ph 319-335-9656
    Description: QR_Droid_73041 3

  • Cannot populate Example Database using ant create-tables

    I encounter the problem like this [t-5362238]. But I've tried to do any thing, but I still cannot populate database. Somebody has another way to populate the database (not use ant) ?
    And more. I can't use ant to deploy the *.WAR file. The terminal shows the message like the message when I perform ant create-tables

    I encounter the problem like this [t-5362238]. But I've tried to do any thing, but I still cannot populate database. Somebody has another way to populate the database (not use ant) ?
    And more. I can't use ant to deploy the *.WAR file. The terminal shows the message like the message when I perform ant create-tables

  • Populate the database from a file

    Hi guys,
    I have to populate an Oracle database using a java standalone application. The application gets the data from a file and copies them into the database. I don't know how to structure the entire thing and in which layer (view or model) i have to implement this functionality.
    thank's a lot,
    christian

    either you configure FOP to use a SAX Parser that supports Cp1251 or you encode your XML data to UTF-8.
    we flawlessly generate Greek PDF documents out of data selected from Oracle 8.1 by using UTF-8.

  • Populate non database items with lov

    Hi,
    Let's say that I have one database block with 2 columns ID and NAME.
    Only ID it is a not displayed database column, and NAME it is a displayed text item with an lov which retrieve data for both columns.
    How can I do, to populate the non database item NAME after querying the block, without using POST-QUERY trigger and select into statement.
    Thanks.

    Hi Gabriel
    How can I do, to populate the non database item NAME after querying the block, without using POST-QUERY trigger and select into statement.u can't do that but with using POST-QUERY trigger and select into statement.
    This Trigger fires the action of populating the non-db item block Level after executing query...
    Regards,
    Amatu Allah

  • TOUGH ONE: How to get Adobe 9 ext PDF submission to auto populate a database??

    Have a close friend and coworker who's using Acrobat 9 Pro Extended.
    What he's trying to do, is create a form with certain fields (checkboxes, text fields, etc.) that he wants to send out to a few hundred clients and have them fill in updated information (the clients will only have Reader for the most part), and then instead of them saving the form and sending it back to him (means he has to manually enter the data they filled in into an Excel spreadsheet), he wants to have them be able to click 'submit' (or submit it somehow), and it AUTOMATICALLY populate the Excel spreadsheet, so he doesn't have to manually handle each one of the 300 or so that are going to be submitted back to him.
    Apparently there's a way to make this work - anyone have any idea?
    Much appreciated
    Regards
    ~Lorenzo

    I looked at Adobe.com and even the professional version only claims to convert TO PDF. not the other way.
    But I am having a similar problem - have used a dataset to automatically collect data. When I export as a CSV it gets the data wrong although all the rows and columns are there, it's misplaced from where it should be (for example, 5 columns with numeric data 4 4 2 3 1 might export to excel as 0 0 3 4 3) Very strange (and unacceptable!).  I can't get it to export to xls at all  generates an error that the file can't be read when I try to open it.
    Suggestions? Adobe, what's the story here ...

  • Populate a database from a pdf

    Hi,
    I'm trying to extract data from a pdf file. The pdf is actually release notes from another project.
    Another thing bugging me is that while the layout stays the same, the length of the text varies from one file to the other (it may event take more than one page for an element). The information I need to access is stored inside a table.
    I want to know if it is possible to parse a pdf, like someone would do to parse an xml file, to achieve my goal. I've looked if it was easier to convert the file into another format (xml, html, text, and even into a mars file), but it really doesn't seem to facilitate my task.
    Thanks in advance

    Hmm..Why don't you employ an API which can parse PDF data for.
    All you ought is to write out your resolving code according to your specs and update the bounded entities(Object) after the process of parsing and binding of stated PDF documents.
    the below links might help you in findout few commertial & open source Java APIs which can help you in parsing and rest of binding logic would be according to your specs.
    http://schmidt.devlib.org/java/libraries-pdf.html
    http://www.icesoft.com/developer_guides/icepdf/htmlguide/ICEpdfTOC.html
    Hope that might help :)
    REGARDS,
    RaHuL

  • Can I connect my form to a database to populate data?

    Can I connect my form to a database to populate data?

    Hi;
    You want to poplulate your form with data from a database, or to populate the database from the form?
    There isn't any way to import the data into the form in FormsCentral from a database.  To populate and external database from the table on the View Responses tab there are no APIs to do it automatically but you can export to Excel or CSV and then import the Excel or CSV into your database:  http://forums.adobe.com/docs/DOC-1383
    Thanks,
    Josh

  • Use formsweb.cfg to pre-populate database field on login screen?

    Hello,
    Is it possible to configure formsweb.cfg to pre-populate the 'Database' field on the Oracle forms login screen? I still want users to be able to overwrite what's entered there but just have it populated with something by default.
    Thanks,
    Andrew
    Edited by: Andrew V on Nov 16, 2011 12:33 PM

    Hi,
    In Forms 10g you can set the userid parameter to something like "@DATABASEID LOGON_SCREEN=YES", where databaseid is your database server.
    In Forms 11g this doesn't work so well, but I got round this by doing the following in our menu form, if you haven't got a single menu form then you may need to do this in all your forms where the user isn't already logged on when the form opens.
    First off you need to set the userid parameter to something like "@DATABASEID".
    Next an on-logon trigger is required in your menu or first form, I used the following:
    on-logon trigger
    DECLARE
    cn VARCHAR2(80);
    BEGIN
    ** Get the connection info
    ** If userid paramater in formsweb.cfg is set to '@<database>' or
    ** '@<database> login_screen=true' then this will put <database> into database field
    ** in default logon form
    cn := Get_application_property(CONNECT_STRING);
    if instr(cn,' ') > 0
    then
    cn := substr(cn,1,instr(cn,' ')-1);
    end if;
    LOGON(null,'@'||cn,TRUE);
    if form_success
    then :global.login_success := 'TRUE';
    end if;
    END;
    Also, to deal with the situation where a user decides to click cancel in the logon screen, you need to put the following at the start of your wnfi trigger.
    when-new-forms-instance trigger
    default_value('FALSE','global.login_success');
    if :global.login_success != 'TRUE'
    then
    erase('global.login_success');
    exit_form;
    end if;
    erase('global.login_success');
    Edited by: Ady Keeling on Nov 16, 2011 2:38 PM

  • Crash in __db_truncate_pp for a DS database in version 4.7.25

    My application creates a DS database (version 4.7.25). It is a single threaded application that reads/inserts records from/to this database.
    This application is guarded by a heart-beating parent process that listens to SIGCHLD to re-start this process. There is also a mechanism to cleanly stop the parent and child processes. Both these tasks listen to SIGTERM signal to do cleanup and shutdown gracefully.
    The requirement is to populate the database, periodically do a db->sync, continue using the data if crashed and restarted, but in case of a graceful shutdown and restart use a clean database. In the startup path, the application cannot determine whether it is started afresh for the first time or has restarted.
    - Hence it tries to open the DB handle.
    - If DB is already existing, run db->verify on this DB before accessing it.
    - If task is gracefully shutting down, call a truncate on the DB (since this cannot be done at startup).
    The truncate call fails and the application crashes with the following core
    (gdb) bt
    #0 0xfee11ce4 in __db_truncate_pp ()
    from /export/home/myapp/3rdparty/bdb/libdb-4.7.so
    The code fragment is simply as follows
    if(dbase != NULL)
    if((ret = dbase->truncate(dbase,NULL,(unsigned long*)count,0)) == 0)
    return SUCCESS;
    if(ret < 0)
    fprintf(stderr,"DB-truncate failure error (BDB returnval: %d)\n", ret);
    else
    perror("truncate perror");
    else
    fprintf(stderr,"DB-truncate Invalid DB handle ...\n");
    return FAILURE;
    Is something missing out here ?
    Regards,
    Ravi Nathwani

    Hello,
    Is it possible to configure with:
    enable-debug and enable-diagnostic
    and get a complete stack trace, as that could
    help identify what is going on a bit better.
    Thanks,
    Sandra

  • How to use CrossReference and DVM in ODI &how to populate data into Xref

    Can any one tell how to use Domain Value Maps and Cross Referencing in ODI?
    DVM or Domain Value Map are created and used in ESB console of SOA suite.
    My actual requirement is as follows:
    The below steps describe loading data from ERP Application 1 to ERP Application 2.
    1. The Source Application ERP APP1, populates the interface table using their native technology.
    2. A job scheduler invokes the Source side ODI Package.
    3. ODI then extracts the data from Source Interface table and populates the Target Interface table.
    4. After populating the Target interface table the ODI populates the X-ref table with App 1 ID and generated common ID.
    5. The ODI either deletes or updates the rows that were processed from the Source interface table.
    6. On the Target Application ERP APP2, the native application extracts data from target interface table and populates target database there by generating ERP Application 2 ID.
    7. A job scheduler on the Target application invokes the ODI package to populate the Application 2 ID onto the Xref table matching on the Common ID.
    I just want to know :
    1. How to populate data into the Xref table from Source datastore
    2. And if data is successfully laoded from target datastore to actual base table of target then how to populate the target id into the cross reference table.

    can anyone suggest me some answer, then it would be of great help?

  • Servlets Not Working with PointBase Database

    Hello All,
    Background (This is more of a PointBase Question): I am developing a web application and am attempting to integrate a PointBase database with the app to capture my data.
    Issue: While attempting to start and populate my database, I receive an error which reads (Class Not Found: JBDC driver com.pointbase.jdbc.jdbcUniversalDriver could not be loaded)
    Question: Has anyone ever encountered this issue and resolved it?...or have any ideas about what could be the problem. Thanks for any assistance. RodneyM
    Detail: I have the pbclient.jar file in the tomcat\common\lib directory.
    My ant build.xml script is below....as well as my db schema.
    <!-- =================== Web.xml DATABASE TARGETS =============================== -->
    <target name="createUserData">
    <input message="Please enter username for table: "
    addproperty="table.username" />
    <copy file="db/data_template.sql" tofile="db/data.sql">
    <filterset>
    <filter token="username" value="${table.username}"/>
    </filterset>
    </copy>
    </target>
    <target name="createSchema">
    <sql
    driver="com.pointbase.jdbc.jdbcUniversalDriver"
    url="jdbc:pointbase://localhost/dvdlibrary,new"
    userid="PBPUBLIC"
    password="PBPUBLIC"
    classpath="${pointbase.home}/lib/pbclient.jar"
    onerror="continue"
    src="db/schema.sql"
    />
    </target>
    <target name="populateDatabase" depends="createSchema,createUserData">
    <sql
    driver="com.pointbase.jdbc.jdbcUniversalDriver"
    url="jdbc:pointbase://localhost/dvdlibrary"
    userid="PBPUBLIC"
    password="PBPUBLIC"
    classpath="${pointbase.home}/lib/pbclient.jar"
    onerror="continue"
    autocommit="true"
    print="true"
    src="db/data.sql"
    />
    </target>
    <!-- =================== END DATABASE TARGETS =============================== -->
    <!-- =================== SCHEMA =============================== -->
    -- This is the Database Schema for the DVD Library Application.
    -- Clear out the old table.
    DROP TABLE ObjectIDs;
    DROP TABLE Item;
    -- This table represents the "next" object_ID for a given table.
    CREATE TABLE ObjectIDs (
    -- PRIMARY KEY --
    table_name VARCHAR(30) PRIMARY KEY,
    -- DATA FIELDS --
    id INTEGER NOT NULL
    -- This table represents the DVD Items
    CREATE TABLE Item (
    -- PRIMARY KEY --
    id INTEGER PRIMARY KEY,
    -- DATA FIELDS --
    username VARCHAR(20) NOT NULL,
    title VARCHAR(100) NOT NULL,
    year CHAR(4) NOT NULL,
    genre VARCHAR(20) NOT NULL
    COMMIT;

    Yeah. Millions of Java programmers have had the problem where something isn't in their classpath, and gone on to resolve it. In fact it's a rare Java programmer who hasn't had that problem.
    Perhaps there's a conflict between this statement:"I have the pbclient.jar file in the tomcat\common\lib directory."And this configuration option:classpath="${pointbase.home}/lib/pbclient.jar"

  • Adobe Form Fields to database (either Excel or Access)

    i have a pdf form created from adobe acrobat XI pro that works perfectly.  When submitted, it emails directly to me, which I manually add to a database file stored in Excel. 
    I'm trying to find a simple way to have the data automatically added to an Excel spreadsheet or Access database, or even manually.  So far, I export it to it's own file, then copy/paste into my "database" file in Excel.  The hardest part is aligning the fields if one form has a skipped fields,etc. 
    Is there a better option than this PDF form?  I don't want to have to worry about what software others have installed.  But basically I just want the form to populate a database of information via email distribution.
    The form has about 60+ fields for employees that we are hiring with yes/no fields, dates, text, etc. 
    Any help is appreciated.  I just need a way to manage the information that has so many hands in it! 

    There are many ways of doing it, from fully automated ones to ones that require manual interaction.
    Have you see that there's an option in Acrobat to merge multiple data files into a spreadsheet? You can do that and then import that spreadsheet into your database, either directly (if they have the same columns and structure) or by using a simple macro or script.
    This command is available under Tools - Forms - More Form Options.

  • Database Credentials When Scheduling Crystal Report

    In our Crystal Reports 2008 server, each user has their database credentials populated in their user account on the Crystal Reports Server.
    (in the area where is says "Enable Database Credentials").
    For each of our reports, we have the option "Use SSO context for database logon" selected.
    This causes the server to connect to the database using each user's database credentials when they run reports "on-demand".
    However, these credentials do not automatically populate when they go to schedule a report.
    Is there a way to get these credentials to populate the Database Login fields when scheduling reports to run?
    It seems odd to me that it would use the credentials "on-demand", but not when setting up a scheduled report.
    Any info would be appreciated.
    Thanks.

    Thanks Brian.
    What you describe is what we currently have setup.
    The difference with what I'm asking is that each user's account has different database login credentials.
    So when running "on-demand", it logs in using the credentials in their account settings.
    But when running "scheduled" everyone logs into the database using the default account.
    We have row-level security on the database (using Oracle VPD) to enforce security based on the user account that is logged into the database.
    This means that when running the report scheduled, the security doesn't work because it doesn't populate the database credentials from the user's account.

  • Whats the best way to expose this in memory database? (ArrayList)

    Hello everyone.
    I was looking for advice on how I should implement this...currently I have the following ArrayList that stores ClassEntity objects. I'm going to write 2 classes that need to access this ClassEntity Object arrayList because they are goign to use these objects to spit out 2 different files.
    I didn't want to make the database public and static though.
    Here's a snippet of my current class that populates and creates the arrayList data structure:
    public class RODMFileParser
         //used to keep file information
         ClassEntity classEntity = null;
         //used to store ClassEntity objects
         List<ClassEntity> classEntityList = new ArrayList<ClassEntity>();
         //used to store the conversion table RODM->ENGLISH/ENGLISH->RODM
         ConversionTableParser convTableParser = new ConversionTableParser();
            else if(line.contains("Field Value "))
                        //now we can create a new Entity Class object! tricky! huh
                        classEntityList.add(new ClassEntity(idClassName,  idFieldName,
                                                                       englishClassName, englishFieldName, fieldType));
    Iterator listIter = classEntityList.iterator();
              while(listIter.hasNext())
                   ClassEntity tempObj = (ClassEntity) listIter.next();
                   System.out.println(tempObj);
              }So now classEntityList has all the objects I need to create these 2 seperate files but these 2 files are dramtically different. What would be the best way at exposing this classEntityList ArrayList so my 2 other classes can access it?
    Thanks!

    well if I made it non-static, wouldn't I have to create a new object of that class in each class I want to use it in?
    for example, that class that populates the database must parse a file to create the database.
    RODMFileParser file = new RODMFileParser();
              file.parseFile("QAGENT");So inside each class I would have to do this wouldn't I? if I made it public static, wouldn't I only have to read to the disk once?
    Putting it to a worst case say, 100 classes need this database, that means I would have to make 100 accesses to the disk woulnd't it?
    And if it was public static, it would jsut return a copy of the database that was only read from the disk once or am I misunderstanding how it works?

Maybe you are looking for

  • File Adapter as Sender not picking the files

    We configured the File Adapter as Sender, Transport Protocol =NSF and message protocol as FCC. In OS we have folder to read the file, but SAP XI unable to read the file. To trouble shoot this issue we copied that file into another location and revert

  • Lost album art when upgraded to itunes 6.0.4

    I just upgraded to Itunes 6.0.4 and now all of my album art is gone. Anybody else have this happen? Any ideas about what to do?   Mac OS X (10.4.5)  

  • Ipw2200-fw error

    I am new to arch, but I have gotten a working arch installation with xfce (lxdm isnt working at the moment but that is a problem for another topic). However, on startup, the package ipw2200-fw returns an error (-2), so the wireless doesnt work immedi

  • Imac not reading ram...

    hi guys- i recently bought ram from the apple store and installed it in my computer. I installed (2) 1 gig cards, the max my computer allows. My 'about my computer' still says that I only have 512 mb have ram. any suggestions?

  • Mac pro web sites not being able to access

    having problems at accessing web sites since installing lion for example i tried to access ebay and wouldn't load waited & waited & waited gave up in the end and had to use my old toshiba laptop this worked fine so nothing wrong with modem or router