Redirect pages using plsql procedures
Hi,
I've a page with some portlets ( Forms and reports). One of the reports calls a procedure using a URL reference based on a DAD Gateway.
This is working fine.
The problem is: i want that the procedure call back the page that contains the report, doing Reload to the page, because the procedure change the information present in the page.
Is any way, that i could use to, after execute the procedure, call another page, using plsql Code.
Here is the scenario
-> my page has two portlets
-> One is a Form - do inserts in a table
-> the other is a report. This report contains the objects that has been inserted by the form.
-> The report also contains a link for every element of the report
--> This link is a procedure that deletes the element from table.
-> That works fine.
-> Now i want to do the refresh of the page, but using plsql code in a procedure in a Database.
i could write a new page
Ex
Htp.print('Delete successful');
and Portal show me another page where i can read 'Delete successful.
I want to get back to the same page without any action of the user?
How could i do it. This must be done using PLSQL code.
Here is the url of the page
http://ptdos96.pt.oracle.com/servlet/page?_pageid=80&_dad=portal30&_schema=PORTAL30&_mode=3
Thanks for your cooperation
Pedro Ribeiro
You can use
owa_util.redirect_url( <url> );
to redirect to any url.
Similar Messages
-
Help Required :Excel Upload Into Oracle Table Using PLSQL Procedure/Package
Please Help , Urgent Help Needed.
Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
Case's are :
1. Excel File is On Users/ Client PC.
2. Application is on Remote Server(Oracle Forms D2k).
3. User Is Using Application Using Terminal Server LogIn.
4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
6. we are Using Oracle 8.7
So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
Jus help to Sort This Issue ........
you can also write me on :
[email protected], [email protected]I also Tried to Use This
But How can i Use SQLLDR Command In Stored Procedure.
Well IN SQL*PlUS it is successfull but in Stored Procedure /Package ,PL/SQL does not recognise the OS commands.
So now my Question How can I recognise the SQLLDR Commnad in Stored Procedure. -
Help Required:How Upload Excel file Into Oracle Table Using PLSQL Procedure
Please Help , Urgent Help Needed.
Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package.
Case's are :
1. Excel File is On Users/ Client PC.
2. Application is on Remote Server(Oracle Forms D2k).
3. User Is Using Application Using Terminal Server LogIn.
4. So If User Will Use to GET_FILE_NAME() function of D2K to Get Excel File , D2k Will Try to pick File from That Remote Server(Bcs User Logind from Terminal Server Option).
5. Cannot Use Util_File Package Or Oracle Directory to Place That File on Server.
6. we are Using Oracle 8.7
So Need Some PL/SQL Package or Fuction/ Procedure to Upload Excel file on User's Pc to Oracle Table.
Please Guide me wd some Code. or with Some Pl/SQL Package, or With SOme Hint. Or any Link ....
Jus help to Sort This Issue ........
you can also write me on :
[email protected], [email protected]TEXT_IO is a PL/SQL package available only in Forms (you'll want to post in the Forms forum for more information). It is not available in a stored procedure in the database (where the equivalent package is UTL_FILE).
If the Terminal Server machine and the database machine do not have access to the file system on the client machine, no application running on either machine will have access to the file. Barring exceptional setups (like the FTP server on the client machine), your applications are not going to have more access to the client machine than the operating system does.
If you map the client drives from the Terminal Server box, there is the potential for your Forms application to access those files. If you want the files to be accessible to a stored procedure in the database, you'll need to move the files somewhere the database can access them.
Justin -
Using PLSQL procedure with parameter in AQ
hi,
we need to run a PLSQL procedure(asynchronously) with in parameters using oracle AQ.
can someone give me simple example/hint?
Many thanksSince you mention dbms_job, can you use dbms_scheduler since you can pass in parms? You can schedule the job to run "now" and while it may have a slight delay starting up due to available processes for the scheduler and system load, it will run as soon as it can.
What are you trying to accomplish in your environment? I'm not following why you want to allow a user to schedule any DB procedure. A certain set yes, all, no.
You could create a generic AQ structure where it is passed some information regarding what procedure needs to run and what/where the parms are. This driver procedure would then be responsible for calling a random procedure via dynamic SQL. I've never tried passing parms to a procedure via dynamic SQL but recall reading you could do it. I wouldn't recommend this approach unless you have no better options though. -
Update a table using plsql procedure
Can any one help me to write a plsql procedure to update a table with new records and changes;
Table rtest1 contains following records:
deptno(number) deptname(varchar2(10)
10 EWP
20 PWD
30 EPF
Table rtest2 contains follwing records:
deptno(number) deptname(varchar2(10)
10 prod
40 ops
how to write a plsql procedure to to update table rtest2 using rtest1 data .use a merge statement, like this:
SQL> create table rtest1
2 as
3 select 10 deptno, 'EWP' deptname from dual union all
4 select 20, 'PWD' from dual union all
5 select 30, 'EPF' from dual
6 /
Tabel is aangemaakt.
SQL> create table rtest2
2 as
3 select 10 deptno, 'prod' deptname from dual union all
4 select 40, 'ops' from dual
5 /
Tabel is aangemaakt.
SQL> create procedure my_merge
2 is
3 begin
4 merge into rtest2 r2
5 using (select deptno, deptname from rtest1) r1
6 on (r2.deptno = r1.deptno)
7 when matched then
8 update set deptname = r1.deptname
9 when not matched then
10 insert (deptno,deptname) values (r1.deptno,r1.deptname)
11 ;
12 end;
13 /
Procedure is aangemaakt.
SQL> exec my_merge
PL/SQL-procedure is geslaagd.
SQL> select * from rtest2 order by deptno
2 /
DEPTNO DEPT
10 EWP
20 PWD
30 EPF
40 ops
4 rijen zijn geselecteerd.Regards,
Rob. -
Help with truncating a table using plsql procedure in different schema
I have a plsql procedure in schema A that truncates a table that is given in as parameter.
create or replace procedure truncate_table(schema, table_name)
EXECUTE IMMEDIATE 'TRUNCATE TABLE '||schema||'.'||table_name;
end;
The above procedure has public execute grant.
I need to truncate a table in schema B. I have a plsql procedure in schema B that calls the truncate_table procedure and passes in the schema B table name.
Since the table is in schema B, should the delete grant on the table be given to user A or user B to truncate the table in schema B?
Thanks in advance.Procedure created in schema A
create or replace
procedure truncate_table(l_schema varchar2, table_name varchar2) authid current_user
as
begin
EXECUTE IMMEDIATE 'TRUNCATE TABLE '||l_schema||'.'||table_name;
end;from schema B
grant delete on table1 to Schema_A
from schema A
exec truncate_table('Schema_B','Table1');
Hope this helps.
Alvinder -
Saving the source of html file generated using PLSQL into a client folder
Hi All,
I have generated html pages using htp procedure calls. On a button click, these html pages need to be stored as html files on a local client drive folder. My requirement says okay with resulting security issues.
I have a couple of queries.
1.Any client side javascript can fetch the source of a html file and can be saved as another file in a client drive?
2.Using PLSQL, i generated the html pages using htp procedure calls. Is there any way to save contents of the output to a specific folder. (using owa_util or utl_http packages or any other means)
Is there any way that i could do this.. Any help is appreciated.
Thanks in Advance.> 1.Any client side javascript can fetch the source of a html file and can be saved as another file in a client drive?
No.
> 2.Using PLSQL, i generated the html pages using htp procedure calls. Is there any way to save contents of the output to a specific folder. (using owa_util or utl_http packages or any other means)
No, you cannot from PL/SQL simply write to that client's folder - unless a very complex and very insecure and very non-scalable method of dynamically mapping client folders are implemented.
This whole approach is also extremely insecure. If you can from the server push a page to a folder on a client, you can also push a binary "page" to a client folder - where this "page" is in fact a worm/virus/trojan that you simply write into the StartUp desktop folder to have it autostarted to install itself on that client.
Also - web browser automatically save the contents from a web server in their local cache. Thus the pages received are automatically saved locally. For the security reasons already mentioned, operating system and web browser treats this cache with suspicion as it could contain cached virus/worms/trojans - so the cache operates under extreme security conditions.
The correct way to handle this requirement is to state next to the URL for that HTML page that the user wants downloaded to right-click on it and to select the "SAVE URL AS" option to save it to a local folder.
Saving that page on the client is the client's responsibility and ownership - from security to simply deciding where that file must be placed on the client system. -
The simplest way for plsql procedure to return multiple rows
Hi,
What is the simplest way for plsql procedure to return multiple rows (records). There are many combination of ways to do it but I am looking for a solution that is appropriate for plsql beginners. Many solutions use cursors, cursor variables, collections and more that kind of things that are complex on the face of it. Is it somehow possible to achieve the same with less effort?
Sample query would be: SELECT * FROM EMPLOYEES;
I want to use returned rows in APEX to compose APEX SQL(in that context plsql) report.
It is enough to use just SELECT * FROM EMPLOYEES query in APEX but I want to use plsql procedure for that.
Thank you!Hi,
It depends :-).
With +...that is appropriate for plsql beginners...+ in mind... it still depends!
The list of techniques (ref cursors, cursor variables, collections, arrays, using explict SQL) you have referenced in your post can be made to work. but...
+Is it somehow possible to achieve the same with less effort?+ Less effort : That needs to be defined (measured). Especially in the context of pl/sql beginners (who is a beginner?) .
What is the level of "programming experience" ?
What is the level of understanding of "Relational Result set" as processible in Oracle?
If you are looking for
Process_the_set_of rows_in APEX () kind of capabilitywhich "abstracts/hides" relation database from developers when working on relation database, it may not be the best approach (at least strategically). Because I believe it already is abstracted enough.
I find REF CUROSOR most effective for such use, when the "begginer" has basic understanding of processing SQL result set .
So in a nut shell, the techniques (that you already are familiar with) are the tools available. I am not aware of any alternative tools (in pure Oracle) that will simplify / hide basics from develpers.
vr,
Sudhakar B. -
How Can i get PLSQL Procedure out values in Shell Script?
Hi,
I need to use PLSQL Procedure out values in shell script by using that parameter i need to check and call the other procedure. Please can you guide me how can i?
#!/bin/ksh
# Function to call validation program
SQL_PKG_CALL()
echo "Inside SQL_PKG_CALL for $file"
sqlplus -s /nolog << EOF
whenever sqlerror exit failure
connect ${APPS_LOGIN}
variable exit_value NUMBER
set serveroutput on size 100000
DECLARE
l_errbuf VARCHAR2(10000) := NULL; l_retcode NUMBER := NULL;lv_test VARCHAR2(4000) := NULL;
BEGIN
fnd_global.apps_initialize ( USER_ID => ${USER_ID}, RESP_ID => ${RESP_ID}, RESP_APPL_ID => ${RESP_APPL_ID}
, SECURITY_GROUP_ID => ${SECURITY_GROUP_ID}
#Calling PLSQL procedure for create and attache document
XXAFPEEP_SO_DOC_ATTACH_INT.DOCUMENT_ATTACH (p_errbuf => l_errbuf, p_retcode => :RETMSG, p_fileName => $file
, p_debug => 'Y', p_rettest => lv_test);
# to print the procedure return values
DBMS_OUT.PUT_LINE('Return Message: '|| lv_test);
#${RETCODE}=l_retcode;
print :RETMSG;
END;
EXIT 0
EOF
# Program starts here
echo "+---------------------------------------------------------------------------+"
echo "Program Start"
APPS_LOGIN=${1} # Apps Login
USER_ID=${2} # User ID
RESP_ID=${5} # Responsiblity ID
RESP_APPL_ID=${6} # Responsiblity Application ID
SECURITY_GROUP_ID=${7} # Security Group ID
DIRECTORY_PATH=${8} # Directory --Attached file locations
DIRECTORY_NAME=${9} # Directory Name for plsql
echo "User ID : $USER_ID"
echo "Responsibility ID : $RESP_ID"
echo "Responsibilith Application ID : $RESP_APPL_ID"
echo "Security Goup ID : $SECURITY_GROUP_ID"
echo "Directory Path : $DIRECTORY_PATH"
echo "Direcotry Name : $DIRECTORY_NAME"
echo
#files direcotry
cd $DIRECTORY_PATH
echo Present Working Directory: `pwd`
echo
#for all file names
ALL_FILES=`ls *.pdf`
for file in $ALL_FILES
do
if [ -f $file ]
then
#log "Processing $file" # future
echo Processing: $file
# Calling the PL/SQL Program
SQL_PKG_CALL;
#echo "Retcode : $RETCODE"
echo "RetMessage : $RETMSG"
else
log "Skipped $file: invalid file"
echo "Skipping current file $file: not a valid file."
fi
done
Thanks
SudheerSaubhik's provided the solution, but just for fun:
Test procedure:
create or replace procedure get_ename
( p_empno in emp.empno%type
, p_ename_out out emp.ename%type )
is
begin
select ename into p_ename_out
from emp
where empno = p_empno;
end get_ename;Test data:
SQL> select empno, ename from emp order by 1;
EMPNO ENAME
7369 SMITH
7499 ALLEN
7521 WARD
7566 JONES
7654 MARTIN
7698 BLAKE
7782 CLARK
7788 SCOTT
7839 KING
7844 TURNER
7876 ADAMS
7900 JAMES
7902 FORD
7934 MILLER
14 rows selectedTest call from SQL*Plus to show it working:
SQL> declare
2 v_ename emp.ename%type;
3 begin
4 get_ename(7844,v_ename);
5 dbms_output.put_line(v_ename);
6 end;
7 /
TURNER
PL/SQL procedure successfully completed.Demo shellscript (borrowing the function idea from Saubhik):
#!/bin/ksh
empno=${1:-NULL}
exec_sql() {
sqlplus -s william/w@//vm.starbase.local:1521/eleven <<END_SQL
spool get_out_value.sh.log
set serverout on size 2000 feedback off
declare
v_name emp.ename%type;
begin
get_ename(${empno},v_name);
dbms_output.put_line('# ' || v_name);
end;
spool off
exit
END_SQL
ename=$(exec_sql ${empno} | awk '/^# / {print $2}')
print Employee ${empno} = ${ename}Demo:
/Users/williamr: get_out_value.sh 7844
Employee 7844 = TURNER
/Users/williamr: get_out_value.sh
Employee NULL =Note this substitutes the word NULL if no empno is passed, and it ignores error output or anything else by only looking for lines beginning '# ' and then taking the following word. Error messages will appear in the logfile. (In this example it probably doesn't need the NULL substitution because a missing parameter would cause a syntax error which the script will handle anyway, but it could be useful in more complex examples.)
For a production script you should probably use an OS authenticated account so you don't have to deal with password strings. -
How to create a folder using plsql
hi all
i want create a folder using plsql procedures .I am not sure weather you can create a folder on database server file system using pl/sql code but you certainly can create/read/write file system files using UTL_FILE package.
'The Oracle supplied package UTL_FILE can be used to read and write files that are located on the server. It cannot be used to access files locally, that is on the computer where the client is running.' -
Hi,
I want to protect the pdf by password while sending email with attachment using plsql procedure.
Please provide the solution.
Regards,
Elamaran MohanHi;
For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Database » SQL and PL/SQL which you can get more quick response
Regard
Helios -
PLSQL Procedure to invoke WebService
Hi,
We have a requirement to invoke a webservice(ESB\BPEL) using PLSQL Procedure.
we are trying to invoke service by getting details of service from a table like WSDL path, SOA Envelope and operation type.
If anybody has worked on the same requirements, please let us know ASAP.
With Regards,
Thanks
Message was edited by:
SOA Teamwe did some tests last week and we came up with this (I hope it helps) we are 10g so utl_dbws was already installed
function our_calculator(p_operator in varchar2,p_operand_1 in number,p_operand_2 in number)
return number as
the_service sys.utl_dbws.service;
the_call sys.utl_dbws.call;
the_url constant varchar2(256) := 'http://.../demo/soap/calculator_server.wsdl';
service_name constant sys.utl_dbws.qname := sys.utl_dbws.to_qname(null,'calculator_serverService');
operation_name constant sys.utl_dbws.qname := sys.utl_dbws.to_qname(null,'calculator_server');
input_params sys.xmltype;
the_result sys.xmltype;
begin
the_service := sys.utl_dbws.create_service(urifactory.geturi(the_url),service_name);
the_call := sys.utl_dbws.create_call(the_service,null,operation_name);
sys.utl_dbws.set_property(the_call,'OPERATION_STYLE','document');
input_params := sys.xmltype('<calculator xmlns="' || the_url || '">
<op>'||p_operator||'</op>
<p1>'||to_char(p_operand_1,'999999999.99')||'</p1>
<p2>'||to_char(p_operand_2,'999999999.99')||'</p2>
</calculator>');
the_result := sys.utl_dbws.invoke(the_call,input_params);
the_result := the_result.extract('//n:ret/text()','xmlns:n="' || the_url || '"');
sys.utl_dbws.release_call(the_call);
sys.utl_dbws.release_service(the_service);
return to_number(the_result.getstringval(),'999999999.99');
end;
[pre]
Regards
Etbin -
Attaching documents using plsql package FND_WEBATTACH
I'm trying to attach a file from standard package FND_WEBATTCH to the Customer screen,
can any one help me how to attach a file using plsql procedure??
I could able to do the same from application but when I'm trying to attach a file using Add_Attachment procedure in FND_WEBATTCH package it displays my record in applications but when I click on view document button . I'm getting error
Its very urgent
I'll appreciate if someone will get back to me as soon as possible
Thanks in advanceHi
Please verify with the BASIS Person in your team to Verify whether the authorization object is correctly defined in the system.
<b>The authorization object to check here is ->
S_SRMGS_DC</b> This refers to Records Management: Authorization for Documents.
Here is the documentation of the this authorization object.
Definition
This authorization object refers to documents (as collections of versions and variants). The term document covers documents, records, record models, file plans, and notes.
Defined fields
ACTVT
Entries in this field restrict the authorization to particular activities. Enter the activity numbers of the activities that are to be allowed.
Notes:
Authorization for the activity Create is only effective if you assign the same authorization for versions, variants, and attribute values.
Authorization for the activity Delete is only effective if you assign the same authorization for versions and variants (do not assign delete authorization for attribute values).
Authorizations for the activities Search and Transport refer to the document with all its associated versions and variants.
Authorizations for the activities Close Consolid. Unit Processing and Open Consolid. Grp Processing refer to the document with all its associated versions and variants.
SPS_ID
Entries in this field restrict authorization to a particular element type. Enter an element type ID.
SRM_MODEL
Entries in this field restrict the authorization to records of a particular record model. Enter the unique ID of a record model.
DOCUMENTID
Entries in this field restrict the authorization to a particular element. Enter the unique document ID.
Hope this will help.
Please reward suitable points.
Regards
- Atul -
Attaching documents using plsql package FND_WEBATTCH
I'm trying to attach a file from standard package FND_WEBATTCH to the Customer screen,
can any one help me how to attach a file using plsql procedure??
I could able to do the same from application but when I'm trying to attach a file using Add_Attachment procedure in FND_WEBATTCH package it displays my record in applications but when I click on view document button . I'm getting error
Its very urgent
I'll appreciate if someone will get back to me as soon as possible
Thanks in advancePl post details of OS, database and EBS versions. Pl enable trace before running the FND_WEBATTACH process to determine why it takes so long
HTH
Srini -
Passing values to between Pages from a PLSQL Procedure in third Page
Hello,
I have a form divided into 3 pages. The first Page is used to select Template which is used to call a screen Page 54 and Page 55 (Wizard Based screen).
From Page 55 (third page) of my application, When I click on Finish Button (Submit Button), a PLSQL Procedure is called which inserts values in 5 to 6 tables on a schema. The Success message include Article &DOCID. successfully Added.
When I return to the first Page which is Page 24, it displays no value for DOCID.
Sample Example =
DECLARE
DOCID VARCHAR2(30);
BEGIN
INSERT INTO SURE_DOCUMENT
DOCUMENT_ID
, DOCUMENT_TYPE
, TITLE
, STATUS
, DISTRIBUTION
, ARCHIVE_REVIEW_DATE
, CONTENT_TYPE
, IMPACT
, SKILL_LEVEL
, SOURCE
, SERVER_MIN_VERSION
, SERVER_MAX_VERSION
, REFRESH_INTERVAL
, LAST_REFRESH
, FOLDER_ID
, TOPIC_ID
, NOTE_POSITION
, OWNING_SITE
, MODIFY_NUMBER
, VERSION_STRING
, ALIAS
, EXTKEY
, FORMAT_MODIFIER
, DELETED
, CREATED_BY
, CREATED_DATE
, CREATED_SITE
, UPDATED_BY
, UPDATED_DATE
, UPDATED_SITE
VALUES
( SURE_DOCUMENT_SEQ.NEXTVAL || '.1'
, :ARTICLE_TYPE
, :TITLE
, :STATUS
, :DISTRIBUTION
, SYSDATE
, 'TEXT/PLAIN'
, 'LOW'
, 'NOVICE'
, 'ADHOC'
, :RDBMS_MIN_VERSION
, :RDBMS_MAX_VERSION
, NULL
, NULL
, :FOLDER
, :TOPIC
, NULL
, 1
, 1
, NULL
, NULL
, NULL
, NULL
, 'N'
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
COMMIT;
SELECT SURE_DOCUMENT_SEQ.CURRVAL INTO DOCID FROM DUAL;
INSERT INTO SURE_DOCUMENT_CONTRIBUTORS
DOCUMENT_ID
, SURE_SEQUENCE
, USER_ID
, CONTRIBUTION_DATE
, CONTRIBUTION_ROLE
, MODIFY_NUMBER
, REASON
, DELETED
, CREATED_BY
, CREATED_DATE
, CREATED_SITE
, UPDATED_BY
, UPDATED_DATE
, UPDATED_SITE
VALUES
( DOCID
, 1
, 'SKOPPALK.UK'
, SYSDATE
, 'Contributing Author'
, 1
, 'Contributing Author'
, 'N'
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
INSERT INTO SURE_DOCUMENT_LANGUAGES
DOCUMENT_ID
, SURE_SEQUENCE
, LANGUAGE
, DELETED
, CREATED_BY
, CREATED_DATE
, CREATED_SITE
, UPDATED_BY
, UPDATED_DATE
, UPDATED_SITE
VALUES
( DOCID
, 1
, 'USAENG'
, 'N'
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
INSERT INTO KREW_WORKFLOW
DOCUMENT_ID
, PRIORITY
, OWNER
, REVIEWER
, MODERATOR
, ASSIGNED_DATE
, DUE_DATE
, CHECKED_OUT_BY
, CHECKED_OUT_DATE
, VERSION_STRING
, DESCRIPTION
, AUTHORS
, COMMENTS
, UPD_DATE
, COPYSTATUS
, COPYDISTRIBUTION
, COPYFOLDERID
VALUES
DOCID
, 3
, DECODE(:OWNERS, NULL, 'UNASSIGNED',:OWNERS)
, DECODE(:REVIEWER, NULL, 'UNASSIGNED',:REVIEWER)
, DECODE(:MODERATOR, NULL, 'UNASSIGNED',:MODERATOR)
, SYSDATE
, SYSDATE + 7
, NULL
, NULL
, 'SKOPPALK.UK'
, :TITLE
, :AUTHORS
, :COMMENTS
, SYSDATE
, :STATUS
, :DISTRIBUTION
, :FOLDER
INSERT INTO SURE_DOCUMENT_KEYWORDS
DOCUMENT_ID
, SURE_SEQUENCE
, KEYWORD_TYPE
, KEYWORD
, DELETED
, CREATED_BY
, CREATED_DATE
, CREATED_SITE
, UPDATED_BY
, UPDATED_DATE
, UPDATED_SITE
VALUES
( DOCID
, 1
, 'NOTE'
, :KEYWORDS
, 'N'
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
INSERT INTO SURE_DOCUMENT_REFERENCES
DOCUMENT_ID
, SURE_SEQUENCE
, REFERENCE_SOURCE
, REFERENCE_DOCUMENT_ID
, REFERENCE_TYPE
, REFERENCE_DESCRIPTION
, DELETED
, CREATED_BY
, CREATED_DATE
, CREATED_SITE
, UPDATED_BY
, UPDATED_DATE
, UPDATED_SITE
VALUES
( DOCID
, 1
, 'NOTE'
, DOCID || '.1'
, 'NOTE'
, :REFERENCES
, 'N'
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
INSERT INTO SURE_DOCUMENT_PLATFORMS
DOCUMENT_ID
, SURE_SEQUENCE
, PLATFORM_ID
, MIN_VERSION
, MAX_VERSION
, DELETED
, CREATED_BY
, CREATED_DATE
, CREATED_SITE
, UPDATED_BY
, UPDATED_DATE
, UPDATED_SITE
VALUES
( DOCID
, 1
, :PLATFORMS
, NULL
, NULL
, 'N'
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
INSERT INTO SURE_DOCUMENT_PRODUCTS
DOCUMENT_ID
, SURE_SEQUENCE
, PRODUCT_ID
, COMPONENT_ID
, MIN_VERSION
, MAX_VERSION
, DELETED
, CREATED_BY
, CREATED_DATE
, CREATED_SITE
, UPDATED_BY
, UPDATED_DATE
, UPDATED_SITE
VALUES
( DOCID
, 1
, :PRODUCTS
, NULL
, NULL
, NULL
, 'N'
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
, HTMLDB_CUSTOM_AUTH.GET_USER
, SYSDATE
, 1
COMMIT;
END;
The Success message is as follows:
Article &DOCID. Created/Updated SuccessfullyShivanand,
There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
Scott
Maybe you are looking for
-
Apple mail doesn't read imported mbox emails
Hi I had a massive crash on my HD MacBook Pro. Technical support were not able to recover my data. Somehow with a friend's help I managed to copy apple mail's archive mbox file onto my Desktop. I was really happy with the possibility of having all my
-
I connect video camera to mac mini, but not detected firewire
i have mac mini. I connect a video camera to my computer via firewire. i try capture video in fcp and imovi, but firewire not detected. when i open imovy and import video, then show the massage "camera not connected". please help me.
-
URGENT:- Regarding Purchase Requsition
Hi, i am making report in which i want to display that these are the requsitions whic are approved by these people at these dates... plzzz help me out as it is most urgent to me.. regards, ric.s
-
My system seems to be running a little slow. I bought a macbook pro almost 3 years ago and it has a 2.4GHz duo core processor and 4 GB of RAM. As I begin to work more with my photos in LR and photoshop I have noticed my machine works a bit slower t
-
Including java script in struts
Hii All, I wanted to use some java script function on onclick of button. like on click on calendar image i should invoke the cal control writtern in java script. Its a pure struts application. can any1 tell me how to include java script in struts ?