importing data into RecordStore
Sorry for a probable newbie question, but I want to create an application with a pre-filled database and I was wondering if I should include a CSV with my app, and then create a new store by analyzing these data.
Also, I can then remove the CSVfile to save space?
My database is large (almost 500 k) and I need to be able to do research of SQL - ish on this.
What I understand, there is no way to group the data with a recordstore.
Compile a file of different cod with csv inside (different project in JDE) file.
This will be a different cod file (container).
For example allows this name will be: container.cod
In your main application try to open the file of containier.cod through the following url string:
Cod: / /container/myfile.csv
MyFile.csv - is the file name of your csv file, which is included in the container.cod file
It is not documented approach, but it should work.
When the file is loaded and processes you can remove file container.cod of the device programmatically.
Tags: BlackBerry Developers
Similar Questions
-
Importing data into tables to grant access (developer sql 3.2)
Hello
I want to import data into a table PAY_BALANCE_BATCH_LINES which is an array of interface. I am connected to a schema (APPS) and this table belongs to the HR schema. However, if you look at the grants, the APPS schema has all access to this particular table. A TOAD, this used to work great.
But in sqldeveloper, when I filter drop-down list of tables, I'm not able to find the table. Since it is my main means of downloading data I don't know how I can get access to download data in this table. I do not know the password for the schema HR incidentally.
Is there a way out?
Thank you very muchScroll to the bottom of the tree to the 'Other users' node, expand it, and then descend into HR > Tables. Then do your import.
To another browser, right-click on your connection in the tree and open a browser schema.
-
import data into the different tablespace
Hello
I had exported a my schema of production data now I want to import data in the schema of the trial, I had mentioned the tablespace default for the trial scheme, but when I import data is not taking default tablespace of schema of its database taking default tablespace. How to import data into the different tablespace. In remap_tablespace where I can specify the touser.
my version of oracle database:
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
-------------------------------------------------------------------------------------------------------------------------------------------Raj wrote:
HelloI had exported a my schema of production data now I want to import data in the schema of the trial, I had mentioned the tablespace default for the trial scheme, but when I import data is not taking default tablespace of schema of its database taking default tablespace. How to import data into the different tablespace. In remap_tablespace where I can specify the touser.
my version of oracle database:
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production-------------------------------------------------------------------------------------------------------------------------------------------
If your storage source and destination areas are different, you must use the remap_tablespace option.
example:System $impdp / * directory = data_pump_dir dumpfile = logfile = schema_refresh.log remap_schema = Prd_schema:Tst_schema remap_tablespace = prd_TBS:tst:TBS schema_refresh.dmp
-
Importing data into Tables - by using the Import Wizard - Null values
Hi all
I would like to use the data import wizard to import data into existing intermediate tables, that are already filled with data.
However, when you import my CSV file, while the import completes without error, all of the empty cells are filled with (null)"- is anyway to prevent this?
For example, ColumnA contains data for lines 1-11 and 12-14 15-30 but row are empty, when you download the wizard of column rows 12-14 are wired populated "(null)". I would like to prevent this
Thanks a lot for your help
ROssYes, it shows a (null), but there is nothing there.
If you go to sqlplus and do a query on the table, it shows a white.If you want to get rid of the (null), then go to Tools - Preferences - Database - Advanced - display Null value like: remove the (null)
You can even display a different background color when it is null if you wish.Michael
-
import data into the table with the triggers of the sequence
Hello
I'm on oracle 11G on OS SPARC.
I need to import a table from a dump using "imp."
At the destination table where I have to import a 'insert before' with the sequence as the primary key.
Suppose if I am importing data that has the sequence from 200... then when I imported the data into the new table, I have to define the sequence to be the same as the boot sequence for the source or it will automatically use this source sequence.
Please suggest
concerning
KkurkejaDisable the trigger prior to importation.
Thank you
-
Importing data into Oracle Apex
Hello
I have an obligation to provide a screen to the user where they can import excel data to an existing table and I saw a feature in the workshop of data in Oracle Apex, but I can't use that since I have extra things added into that must. The requirment is mentioned below,
(1) need a screen where the user can select the excel file and start the import of a temporary table without validation
(2) the data from the temporary table must be visible to the format of form Multi line in the screen and the user must be able to modify the data
(3) the need for a feature or a screen mapping where the user can map the temporary table to the original table column before you pass data to the original (as data) table
(4) the data should be transferred in the original table and the respective data should be deleted from the temporary table (in case if an error occurs, error record must appear in a temporary table up to less than the user of the corrected data into the original table)
(5) need to add different types of validation, update the record in the original record if same id is available or insert a record value, non-zero, etc...
Please suggest me how can I do this in the Apex.
Is it possible to use the existing data and design workshop robot code in my new screen?You will probably have to code this yourself... There are packages that have been written to import Excel and CSV style...
Here's a blog entry to make the upload of Excel file: http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Once you call who you might have a tabular layout displays the data to the user...
Other processes must be written by you (migration of data from the temporary table to the table of live data...
Thank you
Tony Miller
Webster, TXOn the road of life... He has "windshield", and there are "bugs".
(splat!)
"Squeegees wanted." -
Importing data into a custom using API object in bulk
Hello
I try to import data in Eloqua.
The data are so simple that a list of email addresses - I just want to be able to place them in a specific ORDER so that I can reference this when selecting my contacts.
I could create the object custom Eloqua.com without problems.
I could define an import against the custom using the API object in bulk (v2.0) once again without problems.
I was able to synchronize these data so that it appears in documents in the object custom without problems.
The problem is with mapping - this is not the case.
When I create the custom object, I choose 'add the contact fields' then 'e-mail address '. I tried the field configuration in the field display name, unique code, e-mail address, domain group. I have ensured that "Default Entity Mapping used in upload" indicates the type of entity such as contacts and the field of the entity as a "'email '.
In 'Map of the fields', under the heading contact I am not available "" e-mail address"option, then the field says"(none) ". What is the problem? I thought it might be, but tried to create a custom object where the field was a customer id (which is also held against contact) and despite matching that in the menu 'mapping', it still doesn't have the card.
When I set the import, I base it on the field that appears in the API
In this case:
{u 'hasNotNullConstraint': u 'internalName False': u 'Email_Address1', u 'name': 'u' Email address, u 'dataType': ' u 'emailAddress, u' hasReadOnlyConstraint ": False, u 'uri': u ' / customObjects, 265, fields, 916 ', u' statement': u'{{Objetpersonnalise [265].}}" "} {Field [916]}} ", u" hasUniquenessConstraint ": True}
So my export definition looks like:
{'name': 'Test', 'fields': {'Email_Address1': ' {{Objetpersonnalise [265].}} "}} Field[916]}}"},"identifierFieldName":"Email_Address1","isSyncTriggeredOnImport":false,"dataRetentionDuration":"P7D","isUpdatingMultipleMatchedRecords":true,"uri":"/customObjects/265/imports/17","createdBy":"Stephen.Waters","createdAt":"2015-04-28T17:52:18.8247543Z","updatedBy":"Stephen.Waters","updatedAt":"2015-04-28T17:52:18.8247543Z"}
I said "isUpdatingMultipleMatchedRecords": true in the hope that this could help, but it didn't.
According to some old posts here, I had been concerned that the e-mail address field should look more at {{Objetpersonnalise [265].}} Contact.Field (C_EmailAddress)}} - so far I found no way to be customized to create a field that corresponds to that, they always follow the format {{Objetpersonnalise [#]. Field [#]}}.
The synchronization works, but under Setup: integration: entrants: all source data: System: in bulk api if I look at the 'source download history', it says the following under parameters:
Set of data Test State of the downloaded data cards Registered Overwrite the status of existing data cards NO. Data map ReadOnly NO. Map data cards NO. How can I make this field "map data cards" say 'yes '?
Everything works very well & cards with a download of the manual the data card (where I can specify to map the maps on the last page)... it's just I make tons of them and need a more automated solution.
Any advice appreciated, thanks
StephenDefinition, but it adds in addition to {{Objetpersonnalise [265].}} Field [916]}}. When you create the record fill in the two fields: 1 is a field in the custom object that you created, the other is used to map to a contact.
-
Problem with export data from an application and importing data into another application
Hello
I need to give a stream to an application (target) of one of the other application (source) of data. So what I did is I exported the data necessary for the application target using the DATAEXPORT function in text files and you now want to import data in text files in the application of the source using rules files.
I'm trying to create files for each exported text file separate compilation, but I'm not able to do this successfully.
I traced all members of the source to the target application, but still there is something wrong is going on is to not let the successful import or do not allow that data to go to the right places.
There all the specifications, while using this function DATAEXPORT as format or the kind of DATAEXPORTOPTIONS that I use to make it work?
Here is the first part of my script to calc. For all other data I wanted to export that I wrote similar statements by simply setting on individual members.
SET DATAEXPORTOPTIONS
{
DATAEXPORTLEVEL ALL;
DATAEXPORTCOLFORMAT ON;
DATAEXPORTOVERWRITEFILE ON;
};
DIFFICULTY ("ST", "BV", "SSV", "ASV", "ESV", "W", "HSP_InputValue", "SÜSS", "TBSD", "ABU", "AC", "LB", "LT", "VAP", "Real", "FY11", @REMOVE (@LEVMBRS (period, 0), @LIST (BegBalance)));
DATAEXPORT 'File' ',' '...\export Files\D3.txt ';
ENDFIX;
Please let me know your opinion on this. I really need help with that.
~ HervéSo, you have 12 periods through the columns of the export data?
If so, you must assign each column of data at a time. The data column property is used only when you have completely defined the dimensions either through other fields or other areas and the header and the left point only possible is data. This does not work when you have several columns of data that you find, just so assign the right period; doing this means there is no column of data .
Kind regards
Cameron Lackpour
-
Reading file from the ftp server and importing data into the table
Hi experts,
Well, basically, I text with different layout files have been uploaded to an ftp server. Now, I must write a procedure to recover these files, read and insert data into a table... what to do?
your help would be greatly helpful.
Thank youuser9004152 wrote:
http://it.Toolbox.com/wiki/index.php/Load_data_from_a_flat_file_into_an_Oracle_tableSee the link, hope it will work.
It is an old method, using the utl_file_dir parameter that is now obsolete and which is frankly a waste of space when external tables can do exactly the same thing much more easily.
-
Error with PL/SQL procedure to import data into the database
When you run the procedure below, I get the message:
Compilation failure, line 448
PLS-00103: encountered the symbol "LOOP" when expecting one of the following values: case of the symbol "case" was substituted for the "LOOP" continue. Compilation failure, line 450
PLS-00103: encountered the symbol ";" when expecting one of the following values: case
Can someone help me understand what im missing? Thank you
Deanna
CREATE OR REPLACE PROCEDURE PURSUITS.IMPORT_LEGACY_PURSUIT IS CURSOR DATA_CURSOR IS SELECT * FROM PURSUITS.IMPORT_LEGACY_PURSUIT; CR DATA_CURSOR%ROWTYPE; V_PURSUIT_DATE DATE; V_ROADWAY_TYPE VARCHAR2(5); V_TRAFFIC_FLOW VARCHAR2(8); V_REASON_FOR_INITIATION VARCHAR2(6); V_VEHICLE_MARKING VARCHAR2(8); V_VEHICLE_LIGHTS_ON VARCHAR2(1); V_VEHICLE_SIREN_ON VARCHAR2(1); V_AIRCRAFT_AVAILABLE VARCHAR2(1); V_AIRCRAFT_INVOLVED VARCHAR2(1); V_OTHER_AGENCY_INVOLVED VARCHAR2(1); V_OTHER_AGENCY_STATUS VARCHAR2(8); V_OTHER_AGENCY_COUNT NUMBER(2,0); V_SUSPECT_VEHICLE_TYPE VARCHAR2(2); V_SUSPECT_RACE VARCHAR2(1); V_SUSPECT_ETHNICITY VARCHAR2(1); V_SUSPECT_ID_KNOWN VARCHAR2(1); V_SUSPECT_POSSESS_WEAPON VARCHAR2(1); V_REASON_FOR_TERMINATION VARCHAR2(6); V_REASON_FOR_FLIGHT VARCHAR2(6); V_ACCIDENT VARCHAR2(1); V_ACCIDENT_TYPE VARCHAR2(8); V_ACCIDENT_PARTIES_INVOLVED VARCHAR2(8); V_CASE_COUNT NUMBER; BEGIN OPEN DATA_CURSOR; LOOP FETCH DATA_CURSOR INTO CR; EXIT WHEN DATA_CURSOR%NOTFOUND; --PURSUIT DATE -- IF CR.PURSUIT_DATE = 0 THEN -- V_PURSUIT_DATE :=NULL; -- ELSE -- V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR'); -- END IF; --ROADWAY TYPE CASE WHEN CR.ROADWAY = 1 THEN V_ROADWAY_TYPE := 'URBAN'; WHEN CR.ROADWAY = 2 THEN V_ROADWAY_TYPE := 'RURAL'; ELSE V_ROADWAY_TYPE := NULL; END CASE; --TRAFFIC FLOW CASE WHEN CR.TRAFFICFLO = 1 THEN V_TRAFFIC_FLOW := 'LIGHT'; WHEN CR.TRAFFICFLO = 2 THEN V_TRAFFIC_FLOW := 'MODERATE'; WHEN CR.TRAFFICFLO = 3 THEN V_TRAFFIC_FLOW := 'HIGH'; ELSE V_TRAFFIC_FLOW := NULL; END_CASE; --INITIATION CODES CASE WHEN CR.INITREASON = 1 THEN V_REASON_FOR_INITIATION := 'SUSACT'; WHEN CR.INITREASON = 2 THEN V_REASON_FOR_INITIATION := 'TRAFVI'; WHEN CR.INITREASON = 3 THEN V_REASON_FOR_INITIATION := 'MISCCR'; WHEN CR.INITREASON = 4 THEN V_REASON_FOR_INITIATION := 'FELONY'; WHEN CR.INITREASON = 5 THEN V_REASON_FOR_INITIATION := 'DUIARR'; WHEN CR.INITREASON = 6 THEN V_REASON_FOR_INITIATION := 'NCICHT'; WHEN CR.INITREASON = 7 THEN V_REASON_FOR_INITIATION := 'OTHERR'; ELSE V_REASON_FOR_INITIATION := NULL; END_CASE; --VEHICLE MARKING CASE WHEN CR.CARMARKS = 1 THEN V_VEHICLE_MARKING := 'MRKLIGHT'; WHEN CR.CARMARKS = 2 THEN V_VEHICLE_MARKING := 'MRKCLEAN'; WHEN CR.CARMARKS = 3 THEN V_VEHICLE_MARKING := 'UNMARKED'; ELSE V_VEHICLE_MARKING := NULL; END CASE; --LIGHTS CASE WHEN CR.LIGHTS_ON = 1 THEN V_VEHICLE_LIGHTS_ON := 'Y'; WHEN CR.LIGHTS_ON = 2 THEN V_VEHICLE_LIGHTS_ON := 'N'; ELSE V_VEHICLE_LIGHTS_ON := NULL; END CASE; --SIREN CASE WHEN CR.SIREN_ON = 1 THEN V_VEHICLE_SIREN_ON := 'Y'; WHEN CR.SIREN_ON = 2 THEN V_VEHICLE_SIREN_ON := 'N'; ELSE V_VEHICLE_SIREN_ON := NULL; END CASE; --AIRCRAFT AVAILABLE CASE WHEN CR.AIRCRAFTAV = 1 THEN V_AIRCRAFT_AVAILABLE := 'Y'; WHEN CR.AIRCRAFTAV = 2 THEN V_AIRCRAFT_AVAILABLE := 'N'; WHEN CR.AIRCRAFTAV = 3 THEN V_AIRCRAFT_AVAILABLE := 'U'; ELSE V_AIRCRAFT_AVAILABLE := NULL; END CASE; --AIRCRAFT INVOLVED CASE WHEN CR.AIRCRAFTIN = 1 THEN V_AIRCRAFT_INVOLVED := 'Y'; WHEN CR.AIRCRAFTIN = 2 THEN V_AIRCRAFT_INVOLVED := 'N'; ELSE V_AIRCRAFT_INVOLVED := NULL; END CASE; --AGENCY INVOLVED CASE WHEN CR.OTHRAGENCY = 1 THEN V_OTHER_AGENCY_INVOLVED := 'Y'; WHEN CR.OTHRAGENCY = 2 THEN V_OTHER_AGENCY_INVOLVED := 'N'; ELSE V_OTHER_AGENCY_INVOLVED := NULL; END CASE; --AGENCY STATUS CASE WHEN CR.STATUS = 1 THEN V_OTHER_AGENCY_STATUS := 'INITIATE'; WHEN CR.STATUS = 2 THEN V_OTHER_AGENCY_STATUS := 'ASSISTED'; ELSE V_OTHER_AGENCY_STATUS := NULL; END CASE; --SUSPECT VEHICLE TYPE CASE WHEN CR.VEHICLETYP = 1 THEN V_SUSPECT_VEHICLE_TYPE := 'SD'; WHEN CR.VEHICLETYP = 2 THEN V_SUSPECT_VEHICLE_TYPE := 'MC'; WHEN CR.VEHICLETYP = 3 THEN V_SUSPECT_VEHICLE_TYPE := 'VN'; WHEN CR.VEHICLETYP = 4 THEN V_SUSPECT_VEHICLE_TYPE := 'PK'; WHEN CR.VEHICLETYP = 5 THEN V_SUSPECT_VEHICLE_TYPE := 'DS'; WHEN CR.VEHICLETYP = 6 THEN V_SUSPECT_VEHICLE_TYPE := 'OT'; ELSE V_SUSPECT_VEHICLE_TYPE := NULL; END CASE; --SUSPECT RACE AND ETHNICITY IF CR.RACE = 'H' THEN V_SUSPECT_RACE := 'W'; ELSE V_SUSPECT_RACE := CR.RACE; END IF; --SUSPECT ETHNICITY IF CR.RACE = 'H' THEN V_SUSPECT_ETHNICITY := 'H' ELSE V_SUSPECT_ETHNICITY := NULL; END IF; --SUSPECT ID CASE WHEN CR.ID_KNOWN = 1 THEN V_SUSPECT_ID_KNOWN := 'Y'; WHEN CR.ID_KNOWN = 2 THEN V_SUSPECT_ID_KNOWN := 'N'; ELSE V_SUSPECT_ID_KNOWN := NULL; END CASE; --SUSPECT WEAPON CASE WHEN CR.WEAPON = 1 THEN V_SUSPECT_POSSESS_WEAPON := 'Y'; WHEN CR.WEAPON = 2 THEN V_SUSPECT_POSSESS_WEAPON := 'N'; ELSE V_SUSPECT_POSSESS_WEAPON := NULL; END CASE; --TERMINATION REASON CASE WHEN CR.TERMREASON = 1 THEN V_REASON_FOR_TERMINATION := 'DVRVOL'; WHEN CR.TERMREASON = 2 THEN V_REASON_FOR_TERMINATION := 'ALATER'; WHEN CR.TERMREASON = 3 THEN V_REASON_FOR_TERMINATION := 'VEHDIS'; WHEN CR.TERMREASON = 4 THEN V_REASON_FOR_TERMINATION := 'VEHWRK'; WHEN CR.TERMREASON = 5 THEN V_REASON_FOR_TERMINATION := 'ROADBL'; WHEN CR.TERMREASON = 6 THEN V_REASON_FOR_TERMINATION := 'STOPST'; WHEN CR.TERMREASON = 7 THEN V_REASON_FOR_TERMINATION := 'RAMMED'; WHEN CR.TERMREASON = 8 THEN V_REASON_FOR_TERMINATION := 'WEAPON'; WHEN CR.TERMREASON = 9 THEN V_REASON_FOR_TERMINATION := 'DVRINJ'; WHEN CR.TERMREASON = 10 THEN V_REASON_FOR_TERMINATION := 'OFFTER'; WHEN CR.TERMREASON = 11 THEN V_REASON_FOR_TERMINATION := 'SUPTER'; WHEN CR.TERMREASON = 12 THEN V_REASON_FOR_TERMINATION := 'PATDIS'; WHEN CR.TERMREASON = 13 THEN V_REASON_FOR_TERMINATION := 'PATWRK'; WHEN CR.TERMREASON = 14 THEN V_REASON_FOR_TERMINATION := 'LOSTEM'; WHEN CR.TERMREASON = 15 THEN V_REASON_FOR_TERMINATION := 'FLEDAB'; WHEN CR.TERMREASON = 16 THEN V_REASON_FOR_TERMINATION := 'FLEDWK'; WHEN CR.TERMREASON = 17 THEN V_REASON_FOR_TERMINATION := 'OFFINJ'; WHEN CR.TERMREASON = 18 THEN V_REASON_FOR_TERMINATION := 'OTHAGY'; ELSE V_REASON_FOR_TERMINATION := NULL; END CASE; --FLIGHT REASON CASE WHEN CR.FLI_REASON = 1 THEN V_REASON_FOR_FLIGHT := 'SUMMON'; WHEN CR.FLI_REASON = 2 THEN V_REASON_FOR_FLIGHT := 'DUIARR'; WHEN CR.FLI_REASON = 3 THEN V_REASON_FOR_FLIGHT := 'FELONY'; WHEN CR.FLI_REASON = 4 THEN V_REASON_FOR_FLIGHT := 'STOLEN'; WHEN CR.FLI_REASON = 5 THEN V_REASON_FOR_FLIGHT := 'MISDEM'; WHEN CR.FLI_REASON = 6 THEN V_REASON_FOR_FLIGHT := 'DRUGAR'; WHEN CR.FLI_REASON = 7 THEN V_REASON_FOR_FLIGHT := 'FEARPO'; WHEN CR.FLI_REASON = 8 THEN V_REASON_FOR_FLIGHT := 'NODVRL'; WHEN CR.FLI_REASON = 9 THEN V_REASON_FOR_FLIGHT := 'NOINSU'; WHEN CR.FLI_REASON = 10 THEN V_REASON_FOR_FLIGHT := 'PARENT'; WHEN CR.FLI_REASON = 11 THEN V_REASON_FOR_FLIGHT := 'MENTAL'; WHEN CR.FLI_REASON = 12 THEN V_REASON_FOR_FLIGHT := 'OTHERR'; ELSE V_REASON_FOR_FLIGHT := NULL; END CASE; --ACCIDENT CASE WHEN CR.ACCIDENT = 1 THEN V_ACCIDENT := 'Y'; WHEN CR.ACCIDENT = 2 THEN V_ACCIDENT := 'N'; ELSE V_ACCIDENT := NULL; END CASE; --ACCIDENT TYPE CASE WHEN CR.ACCDNTTYPE = 1 THEN V_ACCIDENT_TYPE := 'PROPERTY DAMAGE'; WHEN CR.ACCDNTTYPE = 2 THEN V_ACCIDENT_TYPE := 'INJURY'; WHEN CR.ACCDNTTYPE = 3 THEN V_ACCIDENT_TYPE := 'FATALITY'; ELSE V_ACCIDENT_TYPE := NULL; END CASE; --ACCIDENT PARTIES INVOLVED CASE WHEN CR.ACCPARTIES = 1 THEN V_ACCIDENT_PARTIES_INVOLVED := 'SUSPONLY'; WHEN CR.ACCPARTIES = 2 THEN V_ACCIDENT_PARTIES_INVOLVED := 'THRDONLY'; WHEN CR.ACCPARTIES = 3 THEN V_ACCIDENT_PARTIES_INVOLVED := 'POLIONLY'; WHEN CR.ACCPARTIES = 4 THEN V_ACCIDENT_PARTIES_INVOLVED := 'POLISUSP'; WHEN CR.ACCPARTIES = 5 THEN V_ACCIDENT_PARTIES_INVOLVED := 'POLITHRD'; WHEN CR.ACCPARTIES = 6 THEN V_ACCIDENT_PARTIES_INVOLVED := 'SUSPTHRD'; WHEN CR.ACCPARTIES = 7 THEN V_ACCIDENT_PARTIES_INVOLVED := 'ALLPARTY'; ELSE V_ACCIDENT_PARTIES_INVOLVED := NULL; END CASE; SELECT COUNT(*) INTO V_CASE_COUNT FROM PURSUITS.IMPORT_LEGACY_PURSUIT WHERE CASE_NUMBER = CR.LOCCASENUM; CASE WHEN V_CASE_COUNT = 0 THEN DBMS_OUTPUT.PUT_LINE ('DONE'); --INSERT DATA INTO TABLE INSERT INTO PURSUITS.IMPORT_LEGACY_PURSUIT( CASE_NUMBER, OFFICER_LNAME, OFFICER_FNAME, OFFICER_MI, OFFICER_NAME_HP261, OFFICER_RADIO, OFFICER_VEH_UNIT, OFFICER_TROOP, OFFICER_ZONE, OFFICER_YEARS_SERVICE, PURSUIT_TIME_BEGAN, PURSUIT_DATE, PURSUIT_DOW, PURSUIT_TIME_ENDED, DURATION_MILES, DURATION_MINUTES, SPEED_MAX, ROADWAY_TYPE, TRAFFIC_FLOW, REASON_FOR_INITIATION, REASON_FOR_INITIATION_OTHER, VEHICLE_MARKING, VEHICLE_LIGHTS_ON, VEHICLE_SIREN_ON, VEHICLE_COUNT_MARKED_TOPLIGHT, VEHICLE_COUNT_UNMARKED, VEHICLE_COUNT_MARKED_CLEAN, AIRCRAFT_AVAILABLE, AIRCRAFT_INVOLVED, OTHER_AGENCY_INVOLVED, OTHER_AGENCY_STATUS, OTHER_AGENCY_COUNT, SUSPECT_VEHICLE_TYPE, SUSPECT_VEHICLE_TYPE_OTHER, SUSPECT_AGE, SUSPECT_GENDER, SUSPECT_RACE, SUSPECT_ETHNICITY, SUSPECT_ID_KNOWN, SUSPECT_POSSESS_WEAPON, SUSPECT_DUI, SUSPECT_BAC, REASON_FOR_TERMINATION, REASON_FOR_FLIGHT, REASON_FOR_FLIGHT_OTHER, ACCIDENT, ACCIDENT_TYPE, ACCIDENT_PARTIES_INVOLVED, IMMEDIATE_SUPERVISOR, TROOP_COMMANDER) VALUES( CR.LOCASENUM, NULL, NULL, NULL, CR.N/A, CR.RADIO_NUM, CR.UNIT_NUM, CR.TROOP, CR.ZONE, CR.YRSSERVICE, CR.TIMEBEGAN, V_PURSUIT_DATE, CR.DAYOFWEEK, CR.TIME_ENDED, CR.MILES, CR.MINUTES, CR.MPH, V_ROADWAY_TYPE, V_TRAFFIC_FLOW, V_REASON_FOR_INITIATION, CR.OTHER1, V_VEHICLE_MARKING, V_VEHICLE_LIGHTS_ON, V_VEHICLE_SIREN_ON, CR.MARKED_TL, CR.UNMARKED, CR.MARKED_CR, V_AIRCRAFT_AVAILABLE, V_AIRCRAFT_INVOLVED, V_OTHER_AGENCY_INVOLVED, V_AGENCY_STATUS, CR.NUM_VEH, V_SUSPECT_VEHICLE_TYPE, CR.OTHER2, CR.AGE, CR.SEX, V_SUSPECT_RACE, CR.N/A, V_SUSPECT_ID_KNOWN, V_SUSPECT_POSSESS_WEAPON, CR.DUI, CR.BAC_PERCNT, V_REASON_FOR_TERMINATION, V_REASON_FOR_FLIGHT, CR.OTHER3, V_ACCIDENT, V_ACCIDENT_TYPE, V_ACCIDENT_PARTIES_INVOLVED, NULL, NULL); END LOOP; CLOSE DATA_CURSOR; END;
Deanna,
Question, I don't understand why you're selecting in import_legacy_pursuit and insertion in the same table?
It would be wonderful if you can display the structure of the table and 1 or 2 fictitious example of records.
cursor cr is SELECT * FROM import_legacy_pursuit; ... ... INSERT INTO import_legacy_pursuit ( case_number, officer_lname, .... .. ) values (..... ...);
In any case, I made some changes to the procedure, you must replace the Insert with your statement and post if it worked for you.
DECLARE CURSOR data_cursor IS SELECT * FROM import_legacy_pursuit; cr data_cursor%ROWTYPE; v_pursuit_date DATE; v_roadway_type VARCHAR2 (15); v_traffic_flow VARCHAR2 (18); v_reason_for_initiation VARCHAR2 (16); v_vehicle_marking VARCHAR2 (18); v_vehicle_lights_on VARCHAR2 (11); v_vehicle_siren_on VARCHAR2 (11); v_aircraft_available VARCHAR2 (11); v_aircraft_involved VARCHAR2 (11); v_other_agency_involved VARCHAR2 (11); v_other_agency_status VARCHAR2 (18); v_other_agency_count NUMBER (4, 0); v_suspect_vehicle_type VARCHAR2 (20); v_suspect_race VARCHAR2 (11); v_suspect_ethnicity VARCHAR2 (11); v_suspect_id_known VARCHAR2 (11); v_suspect_possess_weapon VARCHAR2 (11); v_reason_for_termination VARCHAR2 (11); v_reason_for_flight VARCHAR2 (11); v_accident VARCHAR2 (11); v_accident_type VARCHAR2 (18); v_accident_parties_involved VARCHAR2 (18); v_lo_number VARCHAR2 (50); v_case_count NUMBER; BEGIN OPEN data_cursor; LOOP FETCH data_cursor INTO cr; EXIT WHEN data_cursor%NOTFOUND; --PURSUIT DATE -- IF CR.PURSUIT_DATE = 0 THEN -- V_PURSUIT_DATE :=NULL; -- ELSE -- V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR'); -- END IF; --ROADWAY TYPE CASE WHEN cr.roadway = 1 THEN v_roadway_type := 'URBAN'; WHEN cr.roadway = 2 THEN v_roadway_type := 'RURAL'; ELSE v_roadway_type := NULL; END CASE; --TRAFFIC FLOW CASE WHEN cr.trafficflo = 1 THEN v_traffic_flow := 'LIGHT'; WHEN cr.trafficflo = 2 THEN v_traffic_flow := 'MODERATE'; WHEN cr.trafficflo = 3 THEN v_traffic_flow := 'HIGH'; ELSE v_traffic_flow := NULL; END CASE; --INITIATION CODES CASE WHEN cr.initreason = 1 THEN v_reason_for_initiation := 'SUSACT'; WHEN cr.initreason = 2 THEN v_reason_for_initiation := 'TRAFVI'; WHEN cr.initreason = 3 THEN v_reason_for_initiation := 'MISCCR'; WHEN cr.initreason = 4 THEN v_reason_for_initiation := 'FELONY'; WHEN cr.initreason = 5 THEN v_reason_for_initiation := 'DUIARR'; WHEN cr.initreason = 6 THEN v_reason_for_initiation := 'NCICHT'; WHEN cr.initreason = 7 THEN v_reason_for_initiation := 'OTHERR'; ELSE v_reason_for_initiation := NULL; END CASE; --VEHICLE MARKING CASE WHEN cr.carmarks = 1 THEN v_vehicle_marking := 'MRKLIGHT'; WHEN cr.carmarks = 2 THEN v_vehicle_marking := 'MRKCLEAN'; WHEN cr.carmarks = 3 THEN v_vehicle_marking := 'UNMARKED'; ELSE v_vehicle_marking := NULL; END CASE; --LIGHTS CASE WHEN cr.lights_on = 1 THEN v_vehicle_lights_on := 'Y'; WHEN cr.lights_on = 2 THEN v_vehicle_lights_on := 'N'; ELSE v_vehicle_lights_on := NULL; END CASE; --SIREN CASE WHEN cr.siren_on = 1 THEN v_vehicle_siren_on := 'Y'; WHEN cr.siren_on = 2 THEN v_vehicle_siren_on := 'N'; ELSE v_vehicle_siren_on := NULL; END CASE; --AIRCRAFT AVAILABLE CASE WHEN cr.aircraftav = 1 THEN v_aircraft_available := 'Y'; WHEN cr.aircraftav = 2 THEN v_aircraft_available := 'N'; WHEN cr.aircraftav = 3 THEN v_aircraft_available := 'U'; ELSE v_aircraft_available := NULL; END CASE; --AIRCRAFT INVOLVED CASE WHEN cr.aircraftin = 1 THEN v_aircraft_involved := 'Y'; WHEN cr.aircraftin = 2 THEN v_aircraft_involved := 'N'; ELSE v_aircraft_involved := NULL; END CASE; --AGENCY INVOLVED CASE WHEN cr.othragency = 1 THEN v_other_agency_involved := 'Y'; WHEN cr.othragency = 2 THEN v_other_agency_involved := 'N'; ELSE v_other_agency_involved := NULL; END CASE; --AGENCY STATUS CASE WHEN cr.status = 1 THEN v_other_agency_status := 'INITIATE'; WHEN cr.status = 2 THEN v_other_agency_status := 'ASSISTED'; ELSE v_other_agency_status := NULL; END CASE; --SUSPECT VEHICLE TYPE CASE WHEN cr.vehicletyp = 1 THEN v_suspect_vehicle_type := 'SD'; WHEN cr.vehicletyp = 2 THEN v_suspect_vehicle_type := 'MC'; WHEN cr.vehicletyp = 3 THEN v_suspect_vehicle_type := 'VN'; WHEN cr.vehicletyp = 4 THEN v_suspect_vehicle_type := 'PK'; WHEN cr.vehicletyp = 5 THEN v_suspect_vehicle_type := 'DS'; WHEN cr.vehicletyp = 6 THEN v_suspect_vehicle_type := 'OT'; ELSE v_suspect_vehicle_type := NULL; END CASE; --SUSPECT RACE AND ETHNICITY IF cr.race = 'H' THEN v_suspect_race := 'W'; ELSE v_suspect_race := cr.race; END IF; --SUSPECT ETHNICITY IF cr.race = 'H' THEN v_suspect_ethnicity := 'H'; ELSE v_suspect_ethnicity := NULL; END IF; --SUSPECT ID CASE WHEN cr.id_known = 1 THEN v_suspect_id_known := 'Y'; WHEN cr.id_known = 2 THEN v_suspect_id_known := 'N'; ELSE v_suspect_id_known := NULL; END CASE; --SUSPECT WEAPON CASE WHEN cr.weapon = 1 THEN v_suspect_possess_weapon := 'Y'; WHEN cr.weapon = 2 THEN v_suspect_possess_weapon := 'N'; ELSE v_suspect_possess_weapon := NULL; END CASE; --TERMINATION REASON CASE WHEN cr.termreason = 1 THEN v_reason_for_termination := 'DVRVOL'; WHEN cr.termreason = 2 THEN v_reason_for_termination := 'ALATER'; WHEN cr.termreason = 3 THEN v_reason_for_termination := 'VEHDIS'; WHEN cr.termreason = 4 THEN v_reason_for_termination := 'VEHWRK'; WHEN cr.termreason = 5 THEN v_reason_for_termination := 'ROADBL'; WHEN cr.termreason = 6 THEN v_reason_for_termination := 'STOPST'; WHEN cr.termreason = 7 THEN v_reason_for_termination := 'RAMMED'; WHEN cr.termreason = 8 THEN v_reason_for_termination := 'WEAPON'; WHEN cr.termreason = 9 THEN v_reason_for_termination := 'DVRINJ'; WHEN cr.termreason = 10 THEN v_reason_for_termination := 'OFFTER'; WHEN cr.termreason = 11 THEN v_reason_for_termination := 'SUPTER'; WHEN cr.termreason = 12 THEN v_reason_for_termination := 'PATDIS'; WHEN cr.termreason = 13 THEN v_reason_for_termination := 'PATWRK'; WHEN cr.termreason = 14 THEN v_reason_for_termination := 'LOSTEM'; WHEN cr.termreason = 15 THEN v_reason_for_termination := 'FLEDAB'; WHEN cr.termreason = 16 THEN v_reason_for_termination := 'FLEDWK'; WHEN cr.termreason = 17 THEN v_reason_for_termination := 'OFFINJ'; WHEN cr.termreason = 18 THEN v_reason_for_termination := 'OTHAGY'; ELSE v_reason_for_termination := NULL; END CASE; --FLIGHT REASON CASE WHEN cr.fli_reason = 1 THEN v_reason_for_flight := 'SUMMON'; WHEN cr.fli_reason = 2 THEN v_reason_for_flight := 'DUIARR'; WHEN cr.fli_reason = 3 THEN v_reason_for_flight := 'FELONY'; WHEN cr.fli_reason = 4 THEN v_reason_for_flight := 'STOLEN'; WHEN cr.fli_reason = 5 THEN v_reason_for_flight := 'MISDEM'; WHEN cr.fli_reason = 6 THEN v_reason_for_flight := 'DRUGAR'; WHEN cr.fli_reason = 7 THEN v_reason_for_flight := 'FEARPO'; WHEN cr.fli_reason = 8 THEN v_reason_for_flight := 'NODVRL'; WHEN cr.fli_reason = 9 THEN v_reason_for_flight := 'NOINSU'; WHEN cr.fli_reason = 10 THEN v_reason_for_flight := 'PARENT'; WHEN cr.fli_reason = 11 THEN v_reason_for_flight := 'MENTAL'; WHEN cr.fli_reason = 12 THEN v_reason_for_flight := 'OTHERR'; ELSE v_reason_for_flight := NULL; END CASE; --ACCIDENT CASE WHEN cr.accident = 1 THEN v_accident := 'Y'; WHEN cr.accident = 2 THEN v_accident := 'N'; ELSE v_accident := NULL; END CASE; --ACCIDENT TYPE CASE WHEN cr.accdnttype = 1 THEN v_accident_type := 'PROPERTY DAMAGE'; WHEN cr.accdnttype = 2 THEN v_accident_type := 'INJURY'; WHEN cr.accdnttype = 3 THEN v_accident_type := 'FATALITY'; ELSE v_accident_type := NULL; END CASE; --ACCIDENT PARTIES INVOLVED CASE WHEN cr.accparties = 1 THEN v_accident_parties_involved := 'SUSPONLY'; WHEN cr.accparties = 2 THEN v_accident_parties_involved := 'THRDONLY'; WHEN cr.accparties = 3 THEN v_accident_parties_involved := 'POLIONLY'; WHEN cr.accparties = 4 THEN v_accident_parties_involved := 'POLISUSP'; WHEN cr.accparties = 5 THEN v_accident_parties_involved := 'POLITHRD'; WHEN cr.accparties = 6 THEN v_accident_parties_involved := 'SUSPTHRD'; WHEN cr.accparties = 7 THEN v_accident_parties_involved := 'ALLPARTY'; ELSE v_accident_parties_involved := NULL; END CASE; SELECT COUNT ( * ) INTO v_case_count FROM import_legacy_pursuit WHERE case_number = cr.loccasenum; IF v_case_count = 0 THEN DBMS_OUTPUT.put_line ('DONE'); -- PLEASE assign all cursor values to some variables ; e.g v_lo_number := cr.loccasenum; INSERT INTO import_legacy_pursuit ( case_number, fli_reason ) VALUES (v_lo_number, v_reason_for_flight); ELSE DBMS_OUTPUT.put_line ('Nothing inserted'); END IF; END LOOP; COMMIT; EXCEPTION WHEN OTHERS THEN ROLLBACK; DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 300)); RAISE; END;
Concerning
-
How to import Date into the text data file TDR box?
I have a report template that I use frequently for data tracing files. At the top of the TOR, I have a main title text box that says "Daily Operation" usually followed by the date (entered manually) of this file.
Q: How do I import/reference the value of the date of the file (photo #1 - black outline) in the text box (photo #2) I use to Date? I appreciate all help.
Hi man of laboratory.
Looks like you will need to use the RTT (-real time), which transforms the tiara time real number (fractions of a second from 0 AD) in a date/time string. There is also a TTR function that goes the other way.
@@RTT (ChD (1, "[1] / Date"), "" mm/dd/yyyy # hh:nn:ss.fff "') @.
Brad Turpin
Tiara Product Support Engineer
National Instruments
-
Dear Experts
I want to import data into the 9i database but I don't want archives (redo) generation during data import.
How can I do this?
concerning
SaimaHello
Not possible, if you use utility imp to import the dump.
Concerning
Anurag Tibrewal. -
Import data from multiple page form
I bought acrobat X Pro.
I would like to import data into a php program in a
Acrobat form and have a new page generated for each
set of data. What is the best way to do it?
Thanks JZ
There are actually several ways to achieve this.
How logical and simple IMHO is to define repetitive page of the document as a template and then climb a TOT who does not handle models (section 12.7.7.3.3 in the version of the reference PDF as part of the documentation for the SDK software Acrobat 10). Then you feed than FDF in Acrobat, and it should create a document according to.
An alternative would be to use XFA (which is probably suggested by the propaganda of Adobe). This approach may work well enough.
And (type of full), for larger volumes of these forms, you can watch applications side third-party server that would merge form data and basic server-side.
I hope this can help.
Max Wyss.
-
Import text data into text with script level file fields
I use Adobe 9 professional and have a level of javascript file import text into the existing fields of a pdf document.There are several fields with multiple lines of data to import.
The folder level script does not work (but there is no error in the console showing when operating)
I manually tested the file opening text with the following code in the console and the text file opens and fills text fields, so the text file must be correct:
this.importTextData ();
The following code is the folder level script that does not work:
function mailmergeFunction()
{
Import the first line of data of "Mailmerge.txt".this.importTextData ("of/h/mailing/Jo Smith Things / Mailmerge.txt", 0)
If (typeof cnt == 'undefined') cnt = 0;
this.importTextData ("of/h/mailing/Jo Smith Things / Mailmerge.txt", cnt ++ % 4)}
app.trustedFunction (mailmergeFunction);app.addToolButton ({cName: "Mailing", cExec: "mailmergeFunction ()", cTooltext: "Mailing", cEnable: true, NPO: 14});
If anyone can please provide assistance, it will be more appreciated thanks.
Try using an app.beginPriv () just before the importTextData statement and a statement of app.endPriv () afterwards. Don't forget to restart Acrobat after you change the JavaScript file.
-
Import Excel data into Form Designer
I developed a dynamic form in Livecycle designer that will be sent to hundreds of schools throughout Nebraska. There is a table in this form that has buttons to add or remove a line while dependent students informtion can be entered in this table. How I shape now works perfect for most schools, however; with the largest schools that will enter in over 200 different lines of information, it will be a long unessarily task. Most of these schools already have the information that we solicit in an Excel file. Is it possible for an end user of this form, using the adobe reader software to import excel data into the table?
-Susann Wenzel
It is possible, but you will find may be more difficult than what it's worth.
1. you must manipulate the worksheet to make it look like a DB
2. you must set up an ODBC connection on the system running the form and the worksheet...
3. you would have to change to point to the worksheet from the definition
4. you wish Reader the form using LiveCYcle Reader Extensions to allow the ODBC connection occurs in the drive.
Paul
Maybe you are looking for
-
How can I know if an external drive has been used for Time Machine and what computer it came with too? I have several laptops and iMacs. I spent the relocation of the year and only used the MacBook Pro. Now I'm trying to figure out which drive goes w
-
Why isn't my old watch backup appear in the list when you set up the replacement or new shows?
Why isn't my old watch backup appear in the list when you set up the replacement or new shows? I've been upgraded to a new watch, and during the installation of my phone would not offer a restore of backup. The problem is that the factory OS on the
-
LaserJet 1300 PCL6: New laptop / old printer won't
Hello Can anyone help please? I just bought a new laptop HP Envy, running Windows 10 (64-bit) and it does not recognize my old (10 years) HP Laserjet 1300 PCL6 monochrome laser printer (but my last laptop on 10 Windows worked with her). I can't find
-
Need to download usbvideo.sys
I erased my computer usbvideo.sys because it caused the computer stop with a blue screen. Where can I download this driver? I searched everywhere on Microsoft and he was not there, but the manufacturer is apparently Microsoft. I have a lenovo G450 an
-
Widget that uses google gears on Blackberry 8530 will not work
Hello world I have developed a widget that uses google gears and the file gears_init.js as the method to use sqlite. I am able to load and to see the widget to work on the 8530 Simulator, however it seems that the sqlite database is not created, and