Checkbox-APEX 'forms'
Hello,
there is a checkbox in a 'form'. After a pl_sql process is successed, the process must check this checkbox. Do you know the syntax?
Thank you
Jean-louis
Jean,
there is a checkbox in a 'form'. After a pl_sql process is successed, the process must check this checkbox. Do you know the syntax?You can post it here in Apex Oracle Application Express (APEX)
-Anantha
Similar Messages
-
Passing variable from a APEX form to PL/SQL Open link in a new borwserwin
Hello Everyone,
I got a apex form based on a query like :
"INTERFACE_NAME",
"INTERFACE_NAME" INTERFACE_NAME_DISPLAY,
"PRIORITY",
"HAS_STARTED",
"EMAIL_TO",
"STATE",
from "#OWNER#"."INTERFACES"
where "INTERFACE_NAME" = :P2_INTERFACE
only the field state is updateble.
It's just allowd to update the data in the DB-table with a PL/SQL Procedure:
begin
set_interface_vals@DB (p_interface_name => :INTERFACE_NAME, p_state => :STATE);
end;
I did put the prodzedure in a Page Process which act with a submit button.
Now to my problem: how do I get the values of my fields INTERFACE_NAME and STATE. the way I done it here does not work.
Thanks for you help.
regards sia
Edited by: sia on Mar 14, 2011 5:46 PMwell then , you should be looping over the record invoking that package for each row. Your package handles only one row, isn't it ?
The first thing your should do is find the names of the column fields interface name and state. Open the page source or check it in firebug by looking inside the appropriate columns. The html code will be something like <input type="text" name="f01" value="" />
<input type="text" name="f01" value="" /> with the name attributes in the format fXX (01 to 50)
I am assuming that the interface name has it as f01 (XX=01) and state is f02 (XX=2), each of which corresponds to an application array(having as many elements as there on the page) by the name "APEX_APPLICATION.G_FXX"
BEGIN
FOR i IN 1..APEX_APPLICATION.G_F01
LOOP
set_interface_vals@DB ( p_interface_name => APEX_APPLICATION.G_F01(i) --ith row's interface column value
,p_state => APEX_APPLICATION.G_F02(i) --ith row's state column value
END LOOP;
END; -
How to insert data from APEX form into two tables
Hi,
I'm running APEX 4.1 with Oracle XE 11g, having two tables CERTIFICATES and USER_FILES. Some of the (useless) fields are cut to reduce information:
CREATE TABLE CERTIFICATES
CERT_ID NUMBER NOT NULL ,
CERT_OWNER NUMBER NOT NULL ,
CERT_VENDOR NUMBER NOT NULL ,
CERT_NAME VARCHAR2 (128) ,
CERT_FILE NUMBER NOT NULL ,
) TABLESPACE CP_DATA
LOGGING;
ALTER TABLE CERTIFICATES
ADD CONSTRAINT CERTIFICATES_PK PRIMARY KEY ( CERT_ID ) ;
CREATE TABLE USER_FILES
FILE_ID NUMBER NOT NULL ,
FILENAME VARCHAR2 (128) ,
BLOB_CONTENT BLOB ,
MIMETYPE VARCHAR2 (32) ,
LAST_UPDATE_DATE DATE
) TABLESPACE CP_FILES
LOGGING
LOB ( BLOB_CONTENT ) STORE AS SECUREFILE
TABLESPACE CP_FILES
STORAGE (
PCTINCREASE 0
MINEXTENTS 1
MAXEXTENTS UNLIMITED
FREELISTS 1
BUFFER_POOL DEFAULT
RETENTION
ENABLE STORAGE IN ROW
NOCACHE
ALTER TABLE USER_FILES
ADD CONSTRAINT CERT_FILES_PK PRIMARY KEY ( FILE_ID ) ;
ALTER TABLE CERTIFICATES
ADD CONSTRAINT CERTIFICATES_USER_FILES_FK FOREIGN KEY
CERT_FILE
REFERENCES USER_FILES
FILE_ID
NOT DEFERRABLE
What I'm trying to do is to allow users to fill out all the certificate data and upload a file in an APEX form. Once submitted the file should be uploaded in the USER_FILES table and all the fields along with CERT_ID, which is the foreign key pointing to the file in the USER_FILES table to be populated to the CERTIFICATES table. APEX wizard forms are based on one table and I'm unable to build form on both tables.
That's why I've created a view (V_CERT_FILES) on both tables and using INSTEAD OF trigger to insert/update both tables. I've done this before and updating this kind of views works perfect. Here is where the problem comes, if I'm updating the view all the data is updated correctly, but if I'm inserting into the view all the fields are populated at CERTIFICATES table, but for USER_FILES only the fields FILE_ID and LAST_UPDATE_DATE are populated. The rest three regarding the LOB are missing: BLOB_CONTENT, FILENAME, MIMETYPE. There are no errors when running this from APEX, but If I try to insert into the view from SQLDeveloper, I got this error:
ORA-22816: unsupported feature with RETURNING clause
ORA-06512: at line 1
As far as I know RETURNING clause in not supported in INSTEAD of triggers, although I didn't have any RETURNING clauses in my trigger (body is below).
Now the interesting stuff, after long tracing I found why this is happening:
First, insert is executed and the BLOB along with all its properties are uploaded to wwv_flow_file_objects$.
Then the following insert is executed to populate all the fields except the BLOB and it's properties, rowid is RETURNED, but as we know RETURNING clause is not supported in INSTEAD OF triggers, that's why I got error:
PARSE ERROR #1918608720:len=266 dep=3 uid=48 oct=2 lid=48 tim=1324569863593494 err=22816
INSERT INTO "SVE". "V_CERT_FILES" ( "CERT_ID", "CERT_OWNER", "CERT_VENDOR", "CERT_NAME", "BLOB_CONTENT") VALUES (:B1 ,:B2 ,:B3 ,:B4, ,EMPTY_BLOB()) RETURNING ROWID INTO :O0
CLOSE #1918608720:c=0,e=11,dep=3,type=0,tim=1324569863593909
EXEC #1820672032:c=3000,e=3168,p=0,cr=2,cu=4,mis=0,r=0,dep=2,og=1,plh=0,tim=1324569863593969
ERROR #43:err=22816 tim=1324569863593993
CLOSE #1820672032:c=0,e=43,dep=2,type=1,tim=1324569863594167
Next my trigger gets in action, sequences are generated, CERTIFICATES table is populated and then USER_FILES, but only the FILE_ID and LAST_UPDATE_DATE.
Finally update is fired against my view (V_CERT_FILES), reading data from wwv_flow_files it populates BLOB_CONTENT, MIMETYPE and FILENAME fields at the specific rowid in V_CERT_FILES, the one returned from the insert at the beginning. Last, file is deleted from wwv_flow_files.
I'm using sequences for the primary keys, this is only the body of the INSTEAD OF trigger:
select user_files_seq.nextval into l_file_id from dual;
select certificates_seq.nextval into l_cert_id from dual;
insert into user_files (file_id, filename, blob_content, mimetype, last_update_date) values (l_file_id, :n.filename, :n.blob_content, :n.mimetype, sysdate);
insert into certificates (cert_id, cert_owner, cert_vendor, cert_name, cert_file) values (l_cert_id, :n.cert_owner, :n.cert_vendor, :n.cert_name, l_file_id);
I'm surprised that I wasn't able to find a valuable source of information regarding this problem, only MOS note about running SQLoader against view with CLOB column and INSTEAD OF trigger. The solution would be to ran it against base table, MOS ID 795956.1.
Maybe I'm missing something and that's why I decided to share my problem here. So my question is how do you create this kind of architecture, insert into two tables with a relation between them in APEX ? I read a lot in the Internet, some advices were for creating custom form with APEX API, create a custom ARP, create two ARP or create a PL/SQL procedure for handing the DML?
Thanks in advance.
Regards,
SveThank you however I was wondering if there was an example available which uses EJB and persistence.
-
How to implement enter-query , execute-query in Apex Forms
Hi,
I am new to Oracle Application Express. I want to know what is the equivalent of ENTER-QUERY and EXECUTE-QUERY features of Oracle Forms in Oracle APEX? I saw a lot of documentation, but everywhere I found that APEX forms only have 3 database actions, (1) INSERT (2) UPDATE & (3) DELETE.
Does anybody know how we can do QUERY in APEX Forms? (like we do in Oracle Developer Forms).
Thanks in advance.Oracle APEX is a web/ stateless environment. So you do not have the same functionality/ features as in a Oracle Forms environment which is session/state oriented.
You can however achieve functionality similar to Enter Query / Execute Query through other means.
The easiest is to use the Forms with Report wizard. It creates 2 pages, the first one is a report and the other a Form. Clicking on the Report rows takes you to the Form page in Edit mode where as the the Create button takes you to the Form in Insert mode.
If you want to have the enter-query / execute query on a single page it will require significant effort and skills. Try it when you have acquired some more skills in Apex.
In APEX , like any other web application, you have to think in the web paradigm and not client-server. Even Forms 11g is essentially client-server like and is session oriented through the forms applet.
Regards, -
Calling APEX form with dynamic parameters from Oracle Apps 11.5.8
I have successfully managed to setup access to APEX forms from Oracle Apps 11.5.8 menus utilising Form Functions passing a number of hardcoded parameter values as outlined in the document, http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf.
I am now trying to ZOOM from an Oracle Form passing values of form items (dynamic parameters) to an APEX form. I have so far not been able to do this.
I've also tried using;
web.show_document('http://derep.obup.co.uk:4657/pls/apex/f?p=100:1::::::p1_cust_account_id:'||name_in('ast_cu_act.account_id')||':', '_TOP');
but this prompts for a username/password again as this bypasses the APEX Launch process that is defined in my Form Function.
Is this possible in the parameters section of Form Functions? or elsewhere.
Regards,
NaeemHi Daan
We do havea couple of customers doing this, they have taken two approaches:
1. Install XMLP on a separate server entirely - kick off conc request to extract data and then use Java Messaging Service (JMS) to push the resulting XML to the external server where they are using AQ to set up jobs for the XMLP server to work through, generating and delivering the final documents.
2. Set XMLP up as a virtual printer - here the conc request again generates XML but this time the result is directed to a virtual printer namely XMLP. There is a perl or similar wrapper that gets called as the printer and accepts the data, template, output format and delivery destination as parameters.
Apologies for the 10,000 feet overview, hope it helps. Tim -
How to call APEX form from OAF
Hi
WE upgraded from 11i to R12. In 11i we have Apex Forms hanging off Customer forms. The customer forms in R12 became self service/OAF.
We now need to figure out how to call the old APEX form from new selfservice Customer form
Can some one help me with this?
thank youPlease review https://blogs.oracle.com/stevenChan/entry/new_whitepaper_extending_e_business which will hopefully answer your questions
regards
Mike -
Passing values to another field in APEX form
Hi,
How do I pass a value in 1 field to another field in APEX form ?
I have a hidden field and I need to populate this field by another field.
thanksI found the solution to my problem.
[1] Create a "After Submit" under Computations.
[2] Select 'Item Value' under Type in Item Name
[3] Select "After Submit" under Computation Point
[3] Enterer Item Name, which value needs to be passed in 'Source'
thanks -
APEX - passing values from LOV's or multi-select LOV's to another APEX form
I am new APEX development and I need to take the values from LOV's and multi-select LOV's and pass them to another APEX form. I want to take those passed values and use them in the where clause of the base-table in the called form. Any assistance would be greately appreciated.
Hi,
Refer this example
http://www.talkapex.com/2009/07/apex-how-to-pass-multiselect-list.html
Example: http://apex.oracle.com/pls/otn/f?p=20195:2100
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
Integrating apex form with oracle portal
Afternoon friends,
I have got a senario like integrating apex form with oracle portal.I dont have any idea on oracle portals.so please let me know the basic steps on how to go ahead to integrate apex forms with oracle portal and for that what i need to have apart with my database and apex.Hello
Couldn't see my previous post... so here it is again
We have integrated Apex into Oracle Portal
Here's how we did it.
In the portal page, we have created an Element region with the following code:
<script language="Javascript">
<!--
function changeIframeHeight(){
var ifrmObj = document.getElementById('apexIframe');
if(ifrmObj) {
if(navigator.appName=='Microsoft Internet Explorer') { //IE
ifrmObj.height = ifrmObj.contentWindow.document.body.scrollHeight+20;
else {
ifrmObj.style.height = ifrmObj.contentWindow.document.body.offsetHeight+50;
//-->
</script>
<p><iframe width="100%" height="500" frameborder="0" onload="javascript: changeIframeHeight();" src="/pls/apex/f?p=115:10" marginheight="0" marginwidth="0" name="apexIframe" id="apexIframe"></iframe></p>You just have to make sure that the name and id of the iFrame and the elementId in the javascript are the same.
And change the SRC so that it point you application.
Hope that helped you.
Max -
Apex Form - how to enter primary key value manually?
Hi
Whenever I am creating Apex form using wizard, it asks me to specify trigger/sequence/pl/sql function for populating primary key value.
However, if I want to specify primary key myself (ie. not auto generated number), how I can specify that?
ThanxHello,
By Yourself you mean : by hand or by a pl/sql?
If you say by trigger, the system doesn't care about what number is send. So you can give it "manually"
May I ask what is the reason of that?
Cheers,
Arnaud -
Catch No Data Found error on APEX form
I have an apex form which I am populating based on two fields passed over from another report.
In some instances, there is no data in the database for the information passed over. In that case I want the users to be able to add a row to the database through the form.
However, the form does not return at all as it says No Data Found.
Is there a way to catch the No Data Found exception and display the form blank so the users can enter the correct info?
Please advise.
Thank you.Hi,
One thing you could try:
Create a page process that runs Before Header (that is, before the "Fetch Row..." process) that is a process Category of "Session State" and a process type of "Clear Cache for all Items on Pages (PageID,PageID,PageID)". This could be conditional on a NOT EXISTS SQL query based on selecting 1 from your table where the field1 = parameter1 and field2 = parameter2. That way, if there is no record, the page cache should be cleared, your parameters are set to null and a new record can be created. You could also do a similar thing using PL/SQL by setting :P2_PK1 and :P2_PK2 (or whatever your fields are) to NULL.
Andy -
Database Trigger gives error in APEX form
Hi
I have a table that has an on insert and on update trigger on the database table that is in the apex form. when applying changes or creating a new row fields are populated in the table for who and date. This works as expected but not in APEX.
in apex when trying to create or apply changes the following error is given
ORA-20505: Error in DML: p_rowid=hello, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at "AIT_MSTR.UPDATE_ACCOUNT_ROW", line 9 ORA-04088: error during execution of trigger 'AIT_MSTR.UPDATE_ACCOUNT_ROW'
Error Unable to process row of table ACCOUNT.
I am not sure, but I think this error is around the DATE field in the row. How can APEX be modified to not error out on the execution of the trigger?
the trigger is very simple
CREATE OR REPLACE TRIGGER AIT_MSTR.UPDATE_ACCOUNT_ROW
BEFORE UPDATE
OF ID
,DESCRIPTION
,CONNECT_ONLY
ON AIT_MSTR.ACCOUNT
REFERENCING NEW AS New OLD AS Old
FOR EACH ROW
NAME: UPDATE_ACCOUNT_ROW
PURPOSE:
REVISIONS:
Ver Date Author Description
1.0 6/9/2011 1. Created this trigger.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: UPDATE_ACCOUNT_ROW
Sysdate: 6/9/2011
Date and Time: 6/9/2011, 11:39:59 AM, and 6/9/2011 11:39:59 AM
Username: (set in TOAD Options, Proc Templates)
Table Name: ACCOUNT (set in the "New PL/SQL Object" dialog)
Trigger Options: (set in the "New PL/SQL Object" dialog)
BEGIN
:NEW.Update_Date := SYSDATE;
:NEW.Updated_By := USER;
EXCEPTION
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;
END UPDATE_ACCOUNT_ROW;
Any help is greatly appreciatedHi
Yes you are correct it was the length of the Created_by and Updated_by column. i had to increase the size of those columns in the table
Now it works.
HOWEVER, it is not capturing the user name of the person logging into APEX that is creating or updating the record. The entry I see in the created_by or updated_by is ANONYMOUS. Which is not want is needed to be captured and recorded. Where is this anonymous value coming from and how can i get it to be the id of the APEX user instead?
Any help is greatly appreciated on this new issue -
Has anyone incorporated Digital Signature into apex Form
Adobe has the capability to use CAC PKI certificate to digitally sign elements of a PDF form. I am trying to build a apex form that resembles a PDF form and have a field that will request the users Cert and then populate the apex form with that cert. Has anyone done this before?
Did you have any update information about this issue? Can you share with me?
-
Hi,
I have a few newbie questions (basic) and will appreciate if someone can answer them..
1) How to find in which schemas is the APEX forms and reports PL/SQL stored?
2) How to find in which schemas is the APEX forms/reports data stored?
2) What schemas are the normal Oracle forms, reports (not apex) associated with?
Thanks!The PL/SQL code that forms part of an apex 'form' is held within the database but not as a procedure in it's own right, it is a bit of code within a field in an apex table.
However that code could be held in various different tables within the apex flows schema (indeed as part of your form you may has js functions that are held on the file system, as well as images that contribute to it... and on and on and on...) .
When you say you are now familiar with apex database schematics I fear that you may not quite understand the application. Again, what are you really wanting to know?
Cheers
Ben -
I currently have a simple database that allows users to input information and makes it searchable.
I put in a printer friendly link in the form input page to allow them to print out that ay.
My current issue is that once a user inputs this data via the Apex form, they need to email that same info to an account used to monitor and disseminate this information.
Is there a simple way that I can either A: Put the form data into an email with a single mouse click for the users, or B: Take tat same data and export it to a pre-formated RTF or Word doc with the proper form fields.
I appreciate any help seeing that I'm not a DBA or developer, I've been learning as I go with Apex, but I can't find any way to do this (googled 50 different variations of the question).What I would suggest is, mocking the look up you want in an HTML editor (I use Dreamweaver) and just layout the page you want, with the data elements names in place (:PX_ITEM).
Next build a page process that gets called AFTER the submit.. Heck I will send you a link that shows how to send this type of e-mail from APEX.. It is a survey based app page..
What you do is build the page process, and in it you define a local variable to hold the html code that you built earlier to format your e-mail.. In building the string (at least what I did ) is build the string using the quote operator function in Oracle PL/SQL so you don't have to do the string concatenation..
Here is the link: http://apex.oracle.com/pls/otn/f?p=9487:28:306320661622784::NO:28:: Click the Page Process (to send email) arrow to see the code in the process..
Let me know if I can help further..
Thank you,
Tony Miller
Webster, TX
Maybe you are looking for
-
Hi I need help please I have these 2 errors: Statement not reached Variable tv may not have been initialized Here my code: switch(index) TreeView test; case 0: test = treeView1; break; case 1: test = treeView2; break; case 2: test = treeView3; break;
-
Discussions Application Portlet Size Configuration
I've installed oracle disucussions succesfully and currently i´m using the Portlet into a JSF page in my web center application. Problem is, it is too small, how can i change the sizes of the portlet ?? I searched in diferent config files but i can´t
-
How to create and share notes in icalendar
how to create and share notes in icalendar i have created a reoccuring all day event for monday thru friday throughout the month. Each day I write notes in the event. I do not want the notes to duplicate each day. Now do I set up so notes for that da
-
How to install Logic Studio on a G5?
I had problems to install logic studio on my G5. In fact it tells me i don't have enough "coulors", i'd need 32 millions. And i need a Quartz extreme card : is it possible to install all this to install logic studio then?
-
I need to install the Adobe Suite CS5 a 3rd time, can I?
I already installed my Adobe Suite CS5 twice, once on my laptop and once on my desktop. I want to purchase a new laptop, but it just hit me that I had already downloaded the Adobe Suite CS5 software twice, so it propably won't let me download it agai