Insert textbox values in CAD database
Hello
I am a newbie to adf.
My database table is to have 10 columns.
for Column1, Column2, and Column3 I need user input in the text box (from the UI)
for column4 to column10 I must hard cord (for example: column 5 is the current date) values of.
Finally submit all values must be inserted in the database of the click of a button.
I am doing through managed bean. But I have all the appropriate reference.
Is there another way to do it?
Can you please help me with a few reference sites?
I thank you kindly for your help.
Kind regards
nan18
Why you insist to use beans?
If you need to hardcode some values, then you can set EntityObject itself
Immerse yourself in Oracle: by default, the View ranks attributes object
When you drop viewObject directly on the page so you don't need to use beans, simply call createInsert operation then put values into the fields and call commit
Framework will do the rest for you
Ashish
Tags: Java
Similar Questions
-
Insert some values into the database of field boxes
I had a similar probem and error when you use the drop-down list instead of a checkbox. It was solved by putting the SELECT name = "CarMake in the menu dropdown.
But in the box, I don't know?
I seem that the problem is the action page has the Form.carmake, but the page does not work. What Miss me and where should I put in the entry below page.
The main objective is to have checked checkboxes to insert some values into the database field carmake based on what is checked.
If the Honda checkbox is checked then
It inserts into the carmake field value Honda.
If the Toyota checkbox is checked then
It inserts into the carmake field the value of Toyota.
If both are true then 2 rows are inserted two values
Honda and Toyota.
Ditto for the last option.
Thanks for your help
Here's the error again
error:
Error occurred while processing request
CARMAKE element is not defined in the FORM.
12:21:50.050 - term Exception - in C:\CFusionMX7\wwwroot\Author\CarAddAction.cfm: line 16
CARMAKE element is not defined in the FORM.
line 16 is:
"#Trim (Form.carmake), #
Join the Code
<! - Here is the form - >
< html >
< head >
< / head >
< body >
< h1 > < / h1 >
< table >
< action = "CarAddAction.cfm cfform" method = "POST" > "
< b >
< td > Honda: < table >
< td > < Center > < input type = "checkbox" name = "HONDA_MODEL" value = "HONDA" checked > < / center > < table >
< /tr >
< b >
< td > Toyota: < table >
< td > < Center > < input type = "checkbox" name = "Toyota_MODEL" value = "Toyota" Unchecked > < / center > < table >
< /tr >
< b >
< td > SUBARU: < table >
< td > < Center > < input type = "checkbox" name = "SUBARU_MODEL" value = "SUBARU" unchecked > < / center > < table >
< /tr >
< Tr > < td > < table > Honda model
< td >
< input type = "Text".
name = "Honda_Model".
Value =""
size = "22".
MaxLength = "20" >
< table >
< tr > < /tr >
< Tr > < td > < table > Toyota model
< td >
< input type = "Text".
name = "Toyota_Model".
Value =""
size = "22" >
< table >
< tr > < /tr >
< Tr > < td > < table > Subaru model
< td >
< input type = "Text".
name = "Subaru_Model".
Value =""
size = "22" >
< table >
< tr > < /tr >
< td > < table >
< td >
< input type is 'submit' value is "Take Add to database" >
< table >
< /tr >
< / cfform >
< /table >
< / body >
< / html >
<!-action page
--------->
< cfdump var = "#form #" >
< name cfquery = "InsertCarInfo."
DataSource = "#request. MainDSN #">"
INSERT INTO Car_tab)
car_Make,
Honda_Model,
Toyota_Model,
Subaru_Model
)
VALUES)
"#Trim (Form.carmake), #
"#Trim (Form.Honda_Model), #
"#Trim (Form.Toyota_Model), #
"#Trim (Form.Subaru_Model) #
)
< / cfquery >
You check in one or more of the boxes before continuing? Remember what I said about the form field box existing only on the page of treatment at least 1 or more checkboxes are checked on your form. Make sure you use
to avoid this problem. What happens when you take a look at the output of your dump of form? Your fields are present?
-
Please how can I insert a value of richinputtext in the database string attribute
Please how can I insert a value of richinputtext in the database string attribute
If you can get its value at the bean and then call your insert statement to put it in the DB table
and if you want to know about the execution of SQL query
then check - Ashish Awasthi (Jdev/ADF) Blog: SQL to run in an ADF Application using DataSource DBTransaction & JDBC query
Ashish
-
Insert several values in file in database table
Hello
I have a requirement where I need the list of files (list operation) using the FTP adapter and insert all the values listed in the database file.
How to insert all the values of the file listed in the database. There are several file values listed so how insert all these values in the database?
Thank you
VivekIt is always a good practice to mark answers as correct/good
-
How to insert the value from the FORM to another database table?
Hi all
I have the following problem.
I have a form that has a tabular layout for the MATURED_FD_DTLtable. (all about 20 line items)
CREATE TABLE MATURED_FD_DTL
(
ACCT_FD_NO VARCHAR2 (17 BYTE) NOT NULL,
CUST_CODE NUMBER (9),
FD_AMT NUMBER (15),
FD_INT_BAL NUMBER (15),
TDS NUMBER (15),
CHQ_NO NUMBER (10),
CREATED_DATE DATE,
CREATED_BY VARCHAR2 (15 BYTE),
PREV_YR_TDS NUMBER (15),
ADD_FD_AMT NUMBER (15),
DESCRIPTION VARCHAR2 (100 BYTE),
P_SAP_CODE NUMBER (10),
P_TYPE VARCHAR2 (1 BYTE)
)
By clicking on 'SAVE' button, all values will be automatically is stored in the MATURED_FD_DTLdatabase table.
But I want to insert these values in another table called TEMP.
I want to insert values of form only, no table select.
How can I do this?
Help me.
Is Oracle Designer 6i.
Answer:
BEGIN
Commit_form;
PREMIER_ENREGISTREMENT;
LOOP
insert into TEMP_MATURED_FD_DTL
SELECT * FROM MATURED_FD_DTL WHERE ACCT_FD_NO =: acct_fd_NO;
WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
NEXT_RECORD;
END LOOP;
PREMIER_ENREGISTREMENT;
COMMIT;
MESSAGE ("RECORD UPDATED AS PAID '");
MESSAGE (' ', no_acknowledge);
END;
-
Insert some values into multiple tables. One of the tables has a complex primary key.
Hello, I am using Jdeveloper version 11.1.2.3.0
I have a FORM_TYPE table and another table Str. The table of Str is used to translate the strings from the name of the table which are read from another program from the database and used to generate forms...
The FORM_TYPE table has a relationship with the table of STR via formtype.title_str_id = str.str_id.
STR. table has a primary key which is based on the mf_language and str_id. columns I generated the entity for the table of STR, but impossible to insert new values of add-on application for some reason any... It is said that recording invalidates its own entity...
I am trying to create a table that will be editable and will have the column Description, name, cdes in English, Str in French etc...
To create a Form_Type and at the same time insert new values for each language. But can not do the inserts of the new work of STR...
Also the FormType.TITLE_STR_ID already has a lot of null values in the database.
SELECT FormType.DESCRIPTION,
FormType.FORM_TYPE_ID,
FormType.NAME,
FormType.PAPER_REPORT_FORMAT,
FormType.PAPER_REPORT_NAME,
FormType.TITLE_STR_ID,
in. En_str str,
in. STR_ID,
en.object_name en_object_name,
Fr. Str,
Fr. STR_ID,
Fr.object_name,
of the. Str,
of the. STR_ID,
du.object_name,
BG.Str,
BG. STR_ID,
BG.object_name
OF FORM_TYPE FormType.
(select str.str_id, str.mf_language_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'fr') en
(select str.str_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'fr') en,.
(select str.str_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'from'),
(select str.str_id, str.str, str.object_name
of mf_language ml, str
where ml.mf_language_id = str.mf_language_id
and ml.code = 'bg') bg
WHERE
FormType.title_str_id = en.str_id and
FormType.title_str_id = fr.str_id and
FormType.title_str_id = du.str_id and
FormType.title_str_id = bg.str_id
Each table that you want to update must have its own entity object. You need to connect it to an another VO/OS using the associations/view links
-
Insert the values of multiple selection
Hello
I have a list of multiple selection on my page and I want to insert this list in my database. Now, I want to create a new line for each of the selected values. My table has three rows. ID, GET_ID, PAR_ID. In my page, you can select the GET_ID. Then you have a list of multiple selection for PAR_ID (here, you choose more options). Now the script should put in the table so the format looks like this:
When I use the automated process of line it will insert the data as PAR_ID 1:2:3 and this isn't what I want. I think I must create a PL/SQL procedure with a loop, but my knowledge of pl/sql is not very good. If anyone can put me in the right direction?ID GET_ID PAR_ID 1 1 1 2 1 2 3 1 3 4 2 1 5 2 2 etc..
Kind regards
WijnandHello Wijnand,
I did sort of like this:
DECLARE
l_selected APEX_APPLICATION_GLOBAL. VC_ARR2;
whole i_exists;
BEGIN
--
-Convert the string two points separated values in
-a table of PL/SQL
l_selected: = APEX_UTIL. STRING_TO_TABLE(:P1_MULTISELECTLIST);--
-Loop through the array to insert
--
BECAUSE me IN 1.l_selected.count
LOOP
SELECT count (*) in i_exists
TABLE
WHERE TABLE_PK = l_selected (i);IF i_exists > 0 THEN
null; -DO NOTHING
ON THE OTHER
INSERT INTO TABLE (...) values (...);
END IF;END LOOP;
END;BR, Paul
-
When inserted null value should not
Hello:
I installed my application on apex.oracle.com. I hope someone can help me with a problem. I'm having is with an agenda: P17_APPLICATION_KEY. When I click on my "submit" button, the insert statement is insert a null value into this field when it should not. When you select an organization, you will see the application key in the column of the report.
The application number is 48367.
The page number is 17.
The username is TestUser.
The password is test.
Tables and data are also configured. If you need to look at the charts, the schema is HCB.
Can someone take a look at my application and help me understand why the value of application_key which is in the report is not displayed in my table, HISA_AGREEMENTS_DOC?
Thank you very much for the help.Hello
I had a glance through your application, and even if you are referring to P17_application_key in your insert statement, if you look at your state of session on page 17, you will see that p17_application_key is infact null.
In your code, the page element is set to the value of the database, but it is not really filled from anywhere.
You can change the report "APPLICATION_KEY" of "Standard report column" column to "Display text (saved state)" and who then reference it in your insert instead of your page statement, article P17_application_key.
-L' Roamer.
-
Insert Varray values in a cluster where the table is
Hei,
I use the openG libraries. I have a HAND in cluster that has 2 groups A, B that contains the different controllers (bool, strings, integers, enum) and a C array which has a cluster that contains also various controllers. What I want to do, is to read an INI file and save it in cluster A, B & C table. I managed to write the values for A, B clusters, but with table C, I have a few problems.
How or which is the best way to access the values in the INI file and save it in table C that belongs to a MAIN cluster. The code below is how I do for the cluster A and B.
Thanks for the help.
Hello
I apologize for the poor explanation. I need to work on that. Let's see if I can do better...
I have some sections that I want to represent as clusters AND some sections of an array of clusters where the key values match grapes controls in the INI file. In addition, the VI has a core that has clusters with some elements (int, string, enum) and an array of cluster that also has some elements. I hope that is not confusing. To simplify, I want to write the values for 'children' of the main groups. As you may have noticed that I prepare this code as an object-oriented approach.
Here is the solution I got on LAVA: https://lavag.org/topic/18951-insert-varray-values-into-a-cluster-where-the-array-is/
Thank you for contributing
-
Question about real store type value in the database on Z10
Hi all
I'm trying to store a value in the database (datatype is defined as REAL), but the result on Simulator and Z10 is totally different, the two of them, the SDK version is the same (10.0.10.672)
on the simulation, the value in the database is correct, like this
Z10, the valve can become bad like this.
Define a type of incorrect data or someone has an idea?
Thank you.
I think I have sloved... the problem before you record a double or real value in the database, convert QString
fenceValue["latitude1"] = QString::number(m_FenceFromJson->m_PointFs.at(0).x(), 'f', 6);
-
Insert the value from the date of the operation, max
Hello
We use oracle 10g R2 on windows.
I want to insert values from one table to the other. Suppose I have a table emp (empcode, salary, dt_update) and have another table emp_live (empcode, salary).
data into the emp table are as
My requirement is to insert only those records where the maximum date of DT_UPDATE.EMPCODE SALARY DT_UPDATE 281G 10611230.319 10/9/2010 6:38:30 PM 281G 37819399.457 10/8/2010 6:38:30 PM 291G 16500012.429 10/10/2010 6:38:30 PM 291G 108145595.738 10/9/2010 6:38:30 PM 292G 79449005.406 10/11/2010 6:38:30 PM 292G 198819948.865 10/10/2010 6:38:30 PM 293E 4532332.618 10/12/2010 6:38:30 PM 293E 142572824.216 10/11/2010 6:38:30 PM 294D 116505728.748 10/13/2010 6:38:30 PM 294D 90087585.925 10/12/2010 6:38:30 PM
In the above senario only records below need to obtain insert
I am trying to insert it asEMPCODE SALARY DT_UPDATE 281G 10611230.319 10/9/2010 6:38:30 PM 291G 16500012.429 10/10/2010 6:38:30 PM 292G 79449005.406 10/11/2010 6:38:30 PM 293E 4532332.618 10/12/2010 6:38:30 PM 294D 116505728.748 10/13/2010 6:38:30 PM
But above not giving not correct results beacase when I select the records asinsert into emp_live select empcode,salary from emp where dt_update=(select max(dt_update) from emp)
Above shows 1665 records, but when I am inserting only insert 16 records.select empcode,max(dt_update) from emp group by empcode
Help, please.Something like this:
create table test (empcode varchar2 (4), salary number, date of dt_update);
Insert test values (' ' 281 G ", 10611230.319, to_date (October 9, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
Insert test values (' ' 281 G ", 37819399.457, to_date (October 8, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
Insert test values (' ' 291 G ", 16500012.429, to_date (October 10, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
Insert test values (' ' 291 G ", 108145595.738, to_date (October 9, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
Insert test values (' ' 292 G ", 79449005.406, to_date (October 11, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
Insert test values (' ' 292 G ", 198819948.865, to_date (October 10, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
insert into test values ('293E', 4532332.618, to_date (October 12, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
insert into test values ('293E', 142572824.216, to_date (October 11, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
Insert test values ('294, 116505728.748, to_date (October 13, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))
Insert test values ('294, 90087585.925, to_date (October 12, 2010 06:38:30 ',' mm/dd/yyyy HH24:MI:SS));))SQL> column salary for 99999999999.9999; SQL> select * from test; EMPC SALARY DT_UPDATE ---- ----------------- --------- 281G 10611230.3190 09-OCT-10 281G 37819399.4570 08-OCT-10 291G 16500012.4290 10-OCT-10 291G 108145595.7380 09-OCT-10 292G 79449005.4060 11-OCT-10 292G 198819948.8650 10-OCT-10 293E 4532332.6180 12-OCT-10 293E 142572824.2160 11-OCT-10 294D 116505728.7480 13-OCT-10 294D 90087585.9250 12-OCT-10 10 rows selected.
SQL> ed Wrote file afiedt.buf 1 select min(empcode),max(salary),max(dt_update) 2 from test 3 group by empcode 4* order by 1 SQL> / MIN( MAX(SALARY) MAX(DT_UP ---- ----------- --------- 281G 37819399.5 09-OCT-10 291G 108145596 10-OCT-10 292G 198819949 11-OCT-10 293E 142572824 12-OCT-10 294D 116505729 13-OCT-10
SQL> insert into test 2 ( 3 select min(empcode) empcode,max(salary) salary,max(dt_update) dt_update 4 from test 5 group by empcode 6 ) 7 / 5 rows created. SQL> select * from test; EMPC SALARY DT_UPDATE ---- ----------------- --------- 281G 10611230.3190 09-OCT-10 281G 37819399.4570 08-OCT-10 291G 16500012.4290 10-OCT-10 291G 108145595.7380 09-OCT-10 292G 79449005.4060 11-OCT-10 292G 198819948.8650 10-OCT-10 293E 4532332.6180 12-OCT-10 293E 142572824.2160 11-OCT-10 294D 116505728.7480 13-OCT-10 294D 90087585.9250 12-OCT-10 281G 37819399.4570 09-OCT-10 EMPC SALARY DT_UPDATE ---- ----------------- --------- 293E 142572824.2160 12-OCT-10 294D 116505728.7480 13-OCT-10 291G 108145595.7380 10-OCT-10 292G 198819948.8650 11-OCT-10 15 rows selected. SQL>
Concerning
Girish Sharma -
Adding values to the database.
Hi guys,.
I have a simple form consisting of first name and family name.
I want to add the text box values in the database.
I have to write a custom form handler. Can any body tell me how can I do. ??
I created my mapping Xml file.
I am facing difficulties to get the form Manager custom... I don't know how how dynamically call my point descriptor name to correspond with the repository.
There is no coe good for adding value OTS database and I do not know the syntax. Help, please.In the code above we have:
The student class
StudentFormHandler
StudentManager
StudentTools
Formhandler ranks Manager user and class manager will use class to add in the database tools. -
Using the cursor to insert a value
Hello
I created a procedure mentioned below, using the slider that I want to insert a value in the table its not to insert any value. You can one to find the solution. I have compiled the procedure there is no errors...
I have a lot of value in the employee... then after table do not perform the procedures no value in employee_lkp
My structure from the Employee table is
CREATE TABLE 'VIDHYA '. "' EMPLOYEE '.
(
VARCHAR2 (15 BYTE) "PNOM."
'MINIT' VARCHAR2 (2 BYTE),
VARCHAR2 (15 BYTE) "LNAME",.
ACTIVATE THE "SSN" NUMBER (12.0) NOT NULL,
"BDATE" DATE,
'ADDRESS' VARCHAR2 (35 BYTE),
'SEX' VARCHAR2 (1 BYTE),
ACTIVATE THE "WAGES" NUMBER (7,0) NOT NULL,
NUMBER (12.0) "SUPERSSN."
ACTIVATE THE 'DNO' NUMBER (2.0) NOT NULL,
ACTIVATE THE STATISTICS STORAGE CALCULATION (INITIAL 65536 THEN 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 USER_TABLES DEFAULT TABLESPACE) 'USERS' CONSTRAINT 'PK_EMPLOYEE' KEY PRIMARY ("SSN") WITH THE HELP OF INDEX PCTFREE 10 INITRANS MAXTRANS 255 2.
CONSTRAINT 'FK_DEPARTMENT' FOREIGN KEY ('DNO') REFERENCES 'VIDHYA '. "" DEPARTMENT "("DNUMBER") ALLOW
)
employee_lkp structure is
CREATE TABLE 'VIDHYA '. "" EMPLOYEE_LKP ".
(
VARCHAR2 (250 BYTE) "PNOM."
VARCHAR2 (250 BYTE) "LNAME",.
'ID '.
)
create or replace
procedure employeelkp is
number of add_val;
i the number;
number num.
add_name cursor is select * from employee;
name_cur add_name % rowtype;
Start
Open add_name;
Select count (*) in the number of the employee;
because me in 1.num
loop
extract the add_name in name_cur;
insert into employee_lkp (id, fname, lname)
values (i,
name_cur. Lname,
name_cur.fname);
When the output add_name % notfound;
end loop;
close add_name;
end employeelkp;Try this...
Addcommit;
After
close add_name;
at the bottom.
I hope this helps...
Hamid
-
Calculations using to insert a value into an existing item?
Hello.
I'm experimenting with calculations. I am quite new to APEX, but I really need to make sure that it works.
So this calculation, it is supposed to take the value of an element (in which a user has entered a number) and then make a calculation with this value. You will see in the code below.
Some additional information: when a user enters a certain weight value (say only 80 grams), and then press enter in the text field, this calculation runs. Now, it does not work because I saw it by checking the session. But I did not get out on how to display the results. So I thought to put the results in the elements, which appear here again in a region.
What I'm wondering is, how can I change my source code, in such a way that the return values will be inserted into existing already the elements on the page?
It's my source code of calculation:
DECLARE
a_unit varchar2 (20);
float a_old_kcal;
float a_new_kcal;
float a_old_carbs;
float a_new_carbs;
float a_old_weight;
float a_new_weight;
BEGIN
SELECT standardamount INTO a_old_weight,
kcal IN a_old_kcal,
carbohydrates IN a_old_carbs,
name IN a_unit
OF foodunit
WHERE foodunit.foodunitid =: P17_SET_UNIT;
IF a_unit: = "gram" THEN
a_new_kcal: a_old_kcal/100 = *: P17_SET_WEIGHT; *
a_new_carbs: a_old_carbs/100 = *: P17_SET_WEIGHT; *
a_new_weight: =: P17_SET_WEIGHT;
ON THE OTHER
a_new_kcal: = a_old_kcal;
a_new_carbs: = a_old_carbs;
a_new_weight: = a_old_weight;
END IF;
RETURN a_new_weight;
RETURN a_new_carbs;
RETURN a_new_kcal;
END;
I want it back a_new_weight, a_new_carbs, and a_new_kcal as elements. I made the items named P17_NEW_WEIGHT, P17_NEW_CARBS, and P17_NEW_KCAL already, and my plan is to insert a_new_weight values in P17_NEW_WEIGHT and so on.
How can I change the source code of my calculation so that it will insert these values in the above?
Thank you very much for your help!
PS: Please leave a response, even if this isn't a complete answer. Any help is welcome and much appreciated. ;)
Best regards
MagaliMagali wrote:
Hello.I'm experimenting with calculations. I am quite new to APEX, but I really need to make sure that it works.
You will get a faster, more effective response to your questions including information as much information as possible from the outset. This should include:
- Full version of APEX
- Complete operating system DB, version, edition, host
- Architecture of Web server (EPG, SST or APEX listener/host operating system)
- Browser (s) and version (s) used
- Theme
- Model (s)
- Region/item (s)
So this calculation, it is supposed to take the value of an element (in which a user has entered a number) and then make a calculation with this value. You will see in the code below.
So did you read the documentation on Computattions?
Some additional information: when a user enters a certain weight value (say only 80 grams), and then press enter in the text field, this calculation runs. Now, it does not work because I saw it by checking the session.
'Check' the session how? Cannot run the code below because it contains syntax errors:
SQL> var p17_set_unit varchar2(10) SQL> var p17_set_weight number SQL> DECLARE 2 a_unit varchar2(20); 3 a_old_kcal float; 4 a_new_kcal float; 5 a_old_carbs float; 6 a_new_carbs float; 7 a_old_weight float; 8 a_new_weight float; 9 10 BEGIN 11 SELECT standardamount INTO a_old_weight, 12 kcal INTO a_old_kcal, 13 carbs INTO a_old_carbs, 14 name INTO a_unit 15 FROM foodunit 16 WHERE foodunit.foodunitid = :P17_SET_UNIT; 17 IF a_unit := 'gram' THEN 18 a_new_kcal := a_old_kcal/100 * :P17_SET_WEIGHT; 19 a_new_carbs := a_old_carbs/100 * :P17_SET_WEIGHT; 20 a_new_weight := :P17_SET_WEIGHT; 21 ELSE 22 a_new_kcal := a_old_kcal; 23 a_new_carbs := a_old_carbs; 24 a_new_weight := a_old_weight; 25 END IF; 26 27 RETURN a_new_weight; 28 RETURN a_new_carbs; 29 return a_new_kcal; 30* end; SQL> / kcal INTO a_old_kcal, * ERROR at line 12: ORA-06550: line 12, column 6: PL/SQL: ORA-00923: FROM keyword not found where expected ORA-06550: line 11, column 1: PL/SQL: SQL Statement ignored ORA-06550: line 17, column 11: PLS-00103: Encountered the symbol "=" when expecting one of the following: . ( * @ % & = - + < / > at in is mod remainder not rem then
<> or != or ~= >= <= <> and or like like2 like4 likec between || multi set But I did not get out on how to display the results. So I thought to put the results in the elements, which appear here again in a region.
What I'm wondering is, how can I change my source code, in such a way that the return values will be inserted into existing already the elements on the page?
That's what calculations are used to, but the docs say: + page calculations allows to assign a value to one point identified when a page is presented or displayed. + which is a unique value to a single page or a part of the application.
It's my source code of calculation:
Always zip code wrapped in the tags\
...\
Tags to preserve formatting and special characters.
DECLARE
a_unit varchar2 (20);
float a_old_kcal;
float a_new_kcal;
float a_old_carbs;
float a_new_carbs;
float a_old_weight;
float a_new_weight;BEGIN
SELECT standardamount INTO a_old_weight,
kcal IN a_old_kcal,
carbohydrates IN a_old_carbs,
name IN a_unit
INTO appears only once in the SELECT... IN State.
OF foodunit
WHERE foodunit.foodunitid =: P17_SET_UNIT;
IF a_unit: = "gram" THEN
a_new_kcal: a_old_kcal/100 = *: P17_SET_WEIGHT; *
a_new_carbs: a_old_carbs/100 = *: P17_SET_WEIGHT; *
a_new_weight: =: P17_SET_WEIGHT;
ON THE OTHER
a_new_kcal: = a_old_kcal;
a_new_carbs: = a_old_carbs;
a_new_weight: = a_old_weight;
END IF;RETURN a_new_weight;
RETURN a_new_carbs;
RETURN a_new_kcal;
END;
Several RETURN statements like that just won't work. Such code compiles but should generate a warning about an unreachable code.
I want it back a_new_weight, a_new_carbs, and a_new_kcal as elements. I made the items named P17_NEW_WEIGHT, P17_NEW_CARBS, and P17_NEW_KCAL already, and my plan is to insert a_new_weight values in P17_NEW_WEIGHT and so on.
How can I change the source code of my calculation so that it will insert these values in the above?
You try to calculate values for the 3 elements, so you can use 3 calculations, but as the calculations are related and based on the results of a query that you do not want to repeat, doing this using a process is a better idea.
You must delete the calculation and create a process page, using good SELECT... IN the syntax, which assigns values to page elements by using the standard bind variables syntax, for example
:P17_NEW_KCAL := a_old_kcal/100 * :P17_SET_WEIGHT;
You insert a value use to_timestamp()?
Hi allI encountered a problem:
I used the chain as ' INSERT INTO VALUES TABLE_A (TO_TIMESTAMP ('2012-02-15 12:21:23.23 ',' YYYY-MM-DD HH24:MI:SS.)). FF')); COMMIT; ».
TimesTen reported: TT0805: TO_TIMESTAMP has not been implemented.
How can I use the to_timestamp() or any other function?
Hi Raul,
TimesTen doesn't have function TO_TIMESTEN.
The datetime functions are as follows:
ADD_MONTHS
EXTRACT
MONTHS_BETWEEN
NUMTODSINTERVAL
NUMTOYMINTERVAL
ROUND (Date)
SYSDATE and GETDATE
TIMESTAMPADD
TIMESTAMPDIFF
TO_DATE
(http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21642/function.htm#CACHGGIC)
Kind regards
Gennady
Maybe you are looking for
-
How can I get my email to work again after that the recent Windows Update has been installed?
I am running Windows XP and yesterday it has downloaded an automatic update, it turned off and today I can't in Outlook Express for some reason, any help will be appreciated?
-
Recently changed the ink cartridges and feel ok. Now it says error 3-paper is stuck, but I don't see anything.
-
BlackBerry Z10 where my Z10 stored backups?
Hello: With my "BOLD", I used to include my BB backups when I backed up my PC to an external drive. You could call it belt and braces, but there you have it. With my Z10 I don't see where my backups are stored so that I'm not able to include them in
-
PowerEdge 2950: Disco con Volume Raid 5 [MS] offline
Su winds del supporto tecnico vi sewn by take UN preventivo per sostituzione di UN difettoso disco. VI allégo i dati del disco del e Server Dati server: Chassis model PowerEdge 2950 Revision III system Service of chassis number Dati dell open manage
-
Networking Windows XP Pro and Windows 7 in a small business peer to peer.
How can I access Windows XP Pro sp3 computer on the network peer-to-peer Windows 7 64 when it doesn't accept my password?