Using download_print_document with dynamic procedure
I am using the version of download_print_document that calls a function (returning clob) for my reports (see below). I need to dynamicaly change the procedure being called in p_report_data line based on what report they run. Is it possible to store that in a DB column and pass that to the API or possibly use dynamic SQL etc?
apex_util.download_print_document(
p_file_name => l_form,
p_content_disposition => 'attachment',
p_report_data => sis_express_nj02.transcript (:P1,:P2,:P3),
p_report_layout => l_layout,
p_report_layout_type => 'rtf',
p_document_format => 'pdf',
p_print_server => null);*/
Hi,
Try something like:
FUNCTION transcript (l_user in varchar2,
l_owner in varchar2,
l_report_order1 in varchar2,
l_report_order2 in varchar2,
l_report_order3 in varchar2,
l_report_order4 in varchar2,
l_start_yy in varchar2,
l_resides_only in varchar2) return CLOB IS
declare v_clob CLOB;
l_p_report_data varchar2(30000) := 'sis_express_va23b.transcrip(
v(''P507_APP_USER''),
v(''P507_OWNER''),
v(''P507_REPORT_ORDER''),
v(''P507_REPORT_ORDER2''),
v(''P507_REPORT_ORDER3''),
v(''P507_REPORT_ORDER4''),
v(''P507_YEAR''),
v(''P507_RESIDES_ONLY'')
begin
execute immediate 'begin '|| ':1 := ' || l_p_report_data ||'; end;' using out v_clob;
apex_util.download_print_document(
p_file_name => l_form,
p_content_disposition => 'attachment',
p_report_data => v_clob,
p_report_layout => l_layout,
p_report_layout_type => 'rtf',
p_document_format => 'pdf',
p_print_server => null);
end;The previous suggestion should work too but I think you don't you don't need *'* around l_p_report_data
and you need OUT before v_clob parameter
execute immediate l_p_report_data
using OUT v_clob,l_user,lowner,l_report_order1,l_report_order2, ...Regards,
Lev
Edited by: le on Jan 12, 2011 1:09 PM
Edited by: le on Jan 12, 2011 1:14 PM
Edited by: le on Jan 12, 2011 1:17 PM
Similar Messages
-
ADOBE Form Using Table with dynamic number of rows
Hi All
First some information about our infrastructure:
- AdobeDesigner 7.1 in the Developerstudio
- SAP-Portal 7.0 SP15
I have a View with tabstrips and behind the tabs i have defined an event. On one Tab I included a ADOBE-Form with Table. The Data for the PDF sould only filled in the context for the Form when i jump to this Tab. I created the Form by using this documentation [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669].
To fill the tablecontext I use the following Code:
IPrivateAnlegenBANFView.IPositionenElement position = null;
IPrivateAnlegenBANFView.IPositionenNode posNode = wdContext.nodePositionen();
int NUM_5_TIMES = 5;
for (int i = 0; i < NUM_5_TIMES; i) {
IPrivateAnlegenBANFView.IPositionenElement posElement = wdContext.createPositionenElement();
+posElement.setMaterial("" + i);+
+posElement.setKurztext("Test" + i);+
+posElement.setWarengruppe("Warengr" + i);+
posNode.addElement(posElement);
If i put this code in the wdDoInit method it works fine and shows me 5 Rows. But if I put the code in the Action of the tabstrip it shows me only one row. I checked the entries of the context and there are 5 entries (showed them in a WD-Table).
Can someone tell me what im doing wrong?
Thanks for a answer and kind regards
PascalHi All
finally i found the solution for the problem.
When you define the interactive Form in the view do not define the property "dataSource" of UI-Element Interactive Form it seems, that the binding is static and not dynamic.
Add the following source to the viewCotroller
Global Part of the Source:
private static IWDInteractiveForm form = null;
Method wdDoModify:
if (firstTime) {
form = (IWDInteractiveForm) view.getElement("InteractiveForm");
When you have an Event where you fill your Contextnode which you want to display in the table of an Adobe Form Use this code:
Action:
public void onActionFillTab(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ){
//@@begin onActionFillTab(ServerEvent)
* Code to fill the Node for AdobeForm Table
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
//@@end
If you want to clear your table and show it directly use in the action the following code:
wdContext.nodeTabelle().invalidate();
form.bindDataSource(wdContext.nodeTabelle().getNodeInfo());
Kind regards
pascal -
Unable to use ExecuteXMLReader with Stored Procedure
I have been trying to use the ExecuteXMLReader with a CommandType = StoredProcedure and I keep getting the following error:
"Operation is not valid due to the current state of the object."
Below is my code:
Dim cmd as oraclecommand
Dim conn as oracleconnection
Dim xmlreader as xml.xmlreader
conn = new oracleconnection(connectionstring)
conn.open
cmd = new oraclecommand()
cmd.connection = conn
cmd.commandtext = "sp_get_users"
cmd.commandtype = commandtype.storedprocedure
cmd.XmlCommandType = OracleXmlCommandType.Query
cmd.parameters.add("parm1", OracleDbType.RefCursor, ParameterDirection.Output)
xmlreader = cmd.executexmlreader() <-- Error Here
The stored procedure is defined as follows:
procedure sp_get_users (usercursor out ref cursor)
is
begin
open usercursor for
select * from arc_users;
end sp_test;
The same code works if I make the following changes:
cmd.commandtext = "select * from arc_users"
cmd.commandtype = commandtype.text
Any help is greatly appreciated. I have looked everywhere for a solution.
Thanks
Sandra M. VegaRich provided the answer to your immediate problem.
If you are going to be working with an SQL Server BE, I strongly suggest you take some time to learn more about it to save yourself a lot of headaches.
Here is a good place to start
https://msdn.microsoft.com/en-us/library/bb188204.aspx -
Using DelayQueue with dynamically changing delay times?
Greetings all:
First-time poster, so please be gentle. :-)
I am implementing a cache timer task whose job is to removes idle elements from a cache after x time, and was considering a DelayQueue as potentially more efficient than iterating through the entire cache each time. Important point is that the delay time of elements in the queue will be dynamically changing while they're in the queue, until the point when they become idle, i.e., each time an element's content changes, its expiration time moves further out.
I went looking in the DelayQueue source (and from there to PriorityQueue) as I was interested to see how it implements its sorting mechanism, and it appears to me that it may not handle this properly. Specifically, it appears that the queue is sorted when elements are added or removed but not otherwise, so that you could end up with the head of the queue being an element that has not really expired.
Question: Has anyone used a DelayQueue for this kind of scenario, and if so, did it work as expected?
Thanks,
BrianIf you want this behaviour I suggest you look at
overriding LinkedHashMap as it has a means to
maintain sorted from most recently accessed to last
accessed.
Thus to clear it all you need to do is remove the
oldest elements.Interesting. Currently I'm using a HashMap so changing to a LinkedHashMap would require virtually no changes to existing code. It still won't quite work as-is, though, because access only gets updated on put's and remove's, whereas I would need access updated on any modification to a contained object as well. I'll think about it a bit more - thanks for the suggestion. -
Using analytical functions in procedure
I try to use the Corr Function with an Insert Into Command.
insert into corr_result (CorrVal) select corr(Val1,Val2) from risk_Corr;
when I use it in SQLPlus directly it works.
When I use it in a procedure I got the error message :
PLS-00201: identifier 'CORR' must be declared
ThanksIn order to user Analytical Functions in Pl/Sql you must use them with Dynamic Sql
e.g.,
EXECUTE IMMEDIATE 'insert into corr_result (CorrVal) select corr(Val1,Val2) from risk_Corr ';
I try to use the Corr Function with an Insert Into Command.
insert into corr_result (CorrVal) select corr(Val1,Val2) from risk_Corr;
when I use it in SQLPlus directly it works.
When I use it in a procedure I got the error message :
PLS-00201: identifier 'CORR' must be declared
Thanks -
Best approach -Tabs based ADF Tree left side navigation with Dynamic Regions with out UI Shell
Hi,
Somebody can help for the best approach to implement the following requirement.
Req: When the user select the ADF Tree left side navigation menu, each menu will open as multiple tabs(Dynamic Tabs) in right side content area with out UI Shell Template.
I completed the
Step-1: From the Model project, I can able to render ADF Tree in the using view and view links. I can get the adf tree which is having 3 menu items. Each menu item having 2 sub menu's.
I took each menu item as one(1) taskflow, each taskflow will have two(2) fragments.
Total I have 3 task flows as Menu Items and 6 fragments for sub menu's.
Step-2: My question is How do I implement Tab based the ADF tree navigation (left side area to dynamic regions in content area) through dynamic regions? Please provide the steps in view layers.Than ks for your response.
This is working fine for ADF Tree navigation with dynamic regions if the taskflow having only one fragment. if the taskflow having more than one fragments, this will not work. The following conditions are always satisfies one page fragment of either "employees" or "departments" task flow. If the "employees" task flow have 2 page fragments, it's not work even you pass parameters through routers.
public TaskFlowId getDynamicTaskFlowId() {
if (currentTaskFlowID == null ||
currentTaskFlowID.equalsIgnoreCase(“employees”)) {
return TaskFlowId.parse(employeetaskFlowId);
if (currentTaskFlowID != null &&
currentTaskFlowID.equalsIgnoreCase(“departments”)) {
return TaskFlowId.parse(departmetaskFlowId);
return TaskFlowId.parse(employeetaskFlowId);
My question is "Same use case with Dynamic Tabs" when the user click on any adf tree node. -
FBL1N with dynamic selection WITHHOLDING TAX CODE is dropping rows
Using FBL1N with dynamic selection field: WITHHOLDING TAX CODE and noticed that several vendors dropped off the report. Appears FBL1N's filter logic uses LFB1-QSSKZ and not LFBW-WT_WITHCD. Upon examination, I determined that the missing vendors didn't have a WTC assignment (column is BLANK) in table LFB1. Problem is I'm using transaction FK02's WITHHOLDING TAX ACCT tab to assign the WT codes but these rows are written to table LFBW (not LFB1). How is the LFB1-QSSKZ field populated? And why do some of the entries in LFB1-QSSKZ have values while others do not? Would ultimately like to populate the blank assignments with the correct WT code.
Hi Steve,
This is due to the limitation due to standard design.
You can see that a vendor can be assigned to multiple WHT codes and can also have multiple WHT code for a single line item. Hence in FBL1N output it would not be possible to show the WHT code as there is no one to one relationship.
You can click on the line item and can then see the WHT information in WHT button. Or alternatively get the data in withholding tax information reports.
Regards,
SDNer -
SprySuggest fails in IE with dynamic server data
When using SprySuggest with dynamic server xml suggestions,
the suggestions are never displayed in IE, if the XML response does
not have the correct content-type. Code in SpryData.js attempts to
handle this situation, but it did not work in my configuration,
until I made the change shown below in bold.
Spry.Data.XMLDataSet.prototype.xhRequestProcessor =
function(xhRequest)
// XMLDataSet uses the responseXML from the xhRequest
var resp = xhRequest.responseXML;
var manualParseRequired = false;
if (xhRequest.status != 200)
if (xhRequest.status == 0)
// The page that is attempting to load data was probably
loaded with
// a file:// url. Mozilla based browsers will actually
provide the complete DOM
// tree for the data, but IE provides an empty document node
so try to parse
// the xml text manually to create a dom tree we can use.
if (xhRequest.responseText && (!resp ||
!resp.firstChild))
manualParseRequired = true;
else if ( (!resp) || (!resp.getElementById))
// The server said it sent us data, but for some reason we
don't have
// an XML DOM document. Some browsers won't auto-create an
XML DOM
// unless the server used a content-type of "text/xml" or
"application/xml".
// Try to manually parse the XML string, just in case the
server
// gave us an unexpected Content-Type.
manualParseRequired = true;
if (manualParseRequired)
resp = Spry.Utils.stringToXMLDoc(xhRequest.responseText);
if (!resp || !resp.firstChild || resp.firstChild.nodeName ==
"parsererror")
return null;
return resp;
};Hi John,
it is a known IE browser behavior for the files that don't
have the content-type set on xml, that will not get be interpreted
as text. So if you want to have your page working ok, you must
assure that the server response contained an xml and not other
content-type.
Diana -
SSRS 05 snapshot with dynamic date parameter
I want to use snapshot for a SSRS 05 report due to high volume of report data. This report uses 2 date parameter which will keep changing every month ( mmyyyy) format. I read many blogs but it seems I can not have snapshot report in dynamic date situation.
Can someone please suggest if there is any workaround to use snapshot with dynamic date parameter . The report server version is 2005.
GaurHi Gaur,
In Reporting Services, the snapshot is a report that contains layout information and data that is retrieved at a specific point in time. There’s a couple of requirements in order to use a snapshot:
Stored credentials for the data source.
Defaults for all Parameters.
Based on my research, we can use snapshot with dynamic date parameter. When we select 'Render this report from a report execution snapshot’ with a schedule and Apply in Execution tab, a snapshot is created and subsequently refreshed on a schedule. When we
render the report at a time, the report would be rendered with the latest snapshot layout information and data, then use the current parameter value to filter the snapshot report data. In this way, the current data would be different from the snapshot report
based on the current parameter values, but we can still use snapshot with dynamic date parameter.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Here is an example to use cookie with static web service call:
http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/j2sewsclient.htm#DAFDHCFA
could some one give an example using cookie with dynamic invocation interdace to inva=oke web service?
ThanksDear net pas,
Hope you are doing good.
You have raised a very valid issue.
Please do have a look at the SAP NOTE: 1144722-Global configuration of session cookies and attributes
Also:
Protecting Sessions Security
http://help.sap.com/saphelp_nw70/helpdata/en/44/691ccdce2a3675e10000000a114a6b/frameset.htm
Here pay special attention at:
cookies named JSESSIONID (in accordance with the JavaÔ Servlet 2.3 specification) for tracking Web browser sessions.
For this purpose, make sure that the value of SystemCookiesDataProtection and SystemCookieHTTPProtection properties of the HTTP Provider Service on the server nodes is set to true:
More info at:
http://help.sap.com/saphelp_nw70ehp2/Helpdata/EN/44/691ccdce2a3675e10000000a114a6b/content.htm
Thank you and have a nice day :).
Kind Regards,
Hemanth
SAP AGS -
About creating an AJAX page with DML procedures using dynamic actions
About creating an AJAX page with DML procedures in APEX using dynamic actions. Help with limitations.
I want to share my experience, creating AJAX procedures in APEX 4.0.
LIMITATIONS
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ??
Here are the steps to create an AJAX Updatable Form using the sample table DEPTS. You can see the demo here: [http://apex.oracle.com/pls/apex/f?p=15488:1]
1) Create a blank page
2) Add a Report Region for departments (It shows the columns deptno, dname and loc).
3) Add an HTML Region and create the elements to edit a Department.
a. P1_DEPTNO (Hidden to store PK)
b. P1_DNAME (Text Field)
c. P1_LOC (Text Field)
4) You also have to create a hidden element called P1_ACTION. This will help to trigger dynamic actions to perform DMLs.
5) Open Page Attributes and in the HTML Header Section include the following code.
<script>
function doSelect(pId){
$x_Value(‘P1_DEPTNO’,pId);
$x_Value(‘P1_ACTION’,’SELECT’);
</script>
6) Modify the column DEPTNO in the report, to add column link. In the link text you can use #DEPTNO# , in target you must select ‘URL ‘ and in the URL field write javascript:doSelect(#DEPTNO#);
7) Create the following Buttons in the Form Region.
CANCEL Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CANCEL’);
NEW Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’NEW’);
SAVE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’UPDATE’);
CREATE Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CREATE’);
8) Create the following Dynamic Action to Select a Department
Name: Select Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: SELECT
Action: Execute PL/SQL Code
PL/SQL Code:
SELECT dname, loc
INTO :P1_DNAME, :P1_LOC
FROM dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
The first limitation, the value of page elements don’t do refresh so I added the following true actions to the dynamic action AFTER Execute PL/SQL Code.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: (none) (leave it blank)
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
9) Create the following Dynamic Action to Update a Department
Name: Update Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
UPDATE dept SET
dname = :P1_DNAME,
loc = :P1_LOC
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
10) Create the following Dynamic Action to Create a Department
Name: Create Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: CREATE
Action: Execute PL/SQL Code
PL/SQL Code:
INSERT INTO dept(deptno,dname,loc)
VALUES (:P1_DEPTNO,:P1_DNAME,:P1_LOC);
Page Items to Submit: P1_DEPTNO, P1_DNAME, P1_LOC
Don’t include any false action and create the Dynamic Action.
Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Function Body
PL/SQL Function Body:
DECLARE
v_pk NUMBER;
BEGIN
SELECT DEPT_SEQ.nextval INTO v_pk FROM DUAL;; -- or any other existing sequence
RETURN v_pk;
END;
Page Items to submit: P1_DEPTNO
Affected Elements: Item P1_DEPTNO
Action: Set Value
Unmark *‘Fire on page load’* and *‘Stop execution on error’*
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_DNAME
Page Items to submit: P1_DNAME
Affected Elements: Item P1_DNAME
Action: Set Value
Unmark ‘Fire on page load’ and ‘Stop execution on error’
Set Type: PL/SQL Expression
PL/SQL Expression: :P1_LOC
Page Items to submit: P1_LOC
Affected Elements: Item P1_LOC
These actions allow refresh the items display value.
Finally to refresh the Departments report, add the following true action at the end
Action: Refresh
Affected Elements: Region Departments
11) Create the following Dynamic Action to delete a department
Name: Delete Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: DELETE
Action: Execute PL/SQL Code
PL/SQL Code:
DELETE dept
WHERE deptno = :P1_DEPTNO;
Page Items to Submit: P1_DEPTNO
Don’t include any false action and create the Dynamic Action.
Include the following True Actions AFTER the Execute PL/SQL Code true Action.
Action: Refresh
Affected Elements: Region Departments
Action: Clear
Unmark ‘Fire on page load’
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC
12) Finally Create the following Dynamic Action for the NEW event
Name: New Dept
Event: Change
Selection Type: Item(s)
Item(s): P1_ACTION
Condition: equal to
Value: NEW
Action: Clear
Unmark *‘Fire on page load’*
Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOCI need some help to solve this issues
• How Can I Hide UPDATE button while I press NEW button. ??
• How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
• How can I avoid multiple Inserts or Updates. ?? -
Writing to a temp table in a stored procedure with dynamic sql
Hi
I am writing into a temp table with dynamic sql:
select coloum_name into #temp_table from
+
@DestinationDBName+'.information_schema.tables
and then I am trying to use #temp_table in the procedure:
select coloum_name into #anotherTable from #temp_table
but I am getting an error that #temp_table is not recognized.
Can a temp table not be used in dynamic sql ?
How can I overcome this problem ?Temp Table Can used easily in Dynamic Query in SQL Server and here is small Exmaple you can check it and do like it
CREATE PROC test
AS
BEGIN
CREATE TABLE #T1
(ID int , NAME Nvarchar(50))
CREATE TABLE #T2
(ID int , NAME Nvarchar(50))
DECLARE @SQL NVARCHAR(MAX)='Insert into #T1
SELECT database_id , Name FROM Sys.Databases
Insert into #T2 Select ID , Name from #T1 '
EXEC SP_ExecuteSQL @SQL
SELECT * FROM #T2
DROP TABLE #T1
DROP TABLE #T2
END
Exec Test
If you found My reply is helpful for you please vote me
thanks
Mustafa EL-Masry
Principle Database Administrator & DB Analyst
SQL Server MCTS-MCITP
M| +966 54 399 0968
MostafaElmasry.Wordpress.Com -
Cannot find procedures with dynamic pages
Hi all,
I have a problem with dynamic pages. cannot find procedures.
This is the content of a a dynamic page (example):
<HTML>
<ORACLE>
begin
htp.print(htf.bold(‘Fill in field values and use the push button to buy ticket’));
htp.br;
htp.formOpen(‘NETU.BUY_TICKETS’);
htp.teletype(‘Student Id___:’);
htp.formText(‘p_id’,5,5);
htp.br;
htp.teletype(‘Event Id_____:’);
htp.formText(‘p_eventid’,5,5);
htp.br;
htp.teletype(‘# of Tickets_:’);
htp.formText(‘p_no_of_tickets’,5,5);
htp.br;
htp.teletype(‘Credit Card’);
htp.br;
htp.teletype(‘AMEX,MC,VISA_:’);
htp.formText(‘p_cc_type’,5,5);
htp.br;
htp.teletype(‘Card #_______:’);
htp.formText(‘p_cc_number’,10,10);
htp.br;
htp.formSubmit(NULL,’Buy Ticket’);
htp.formClose;
end;
</ORACLE>
<HTML>
and try to call to this procedure ‘NETU.BUY_TICKETS’ for save form data in BD:
begin
insert into tickets (id, eventid, no_of_tickets,cc_type,cc_number, trans_date) values (p_id, p_eventid, p_no_of_tickets, p_cc_type, p_cc_number, sysdate);
exception when others then htp.print(‘SQL Error Message:’||substr(SQLERRM,1, 200));
end;
All compiled fine.
The problem exact is when i submit the form, cannot find procedure.
In browser address show this -> http://portal:7778/pls/portal/NETU.BUY_TICKETS
and in the body...
404 Not Found
Unable to process request. Please check the log file for more details.
The dev is on OracleAS 10g, on a Solaris 5.10 dual Sparc machine.
With:
HTTP_Server
Internet Directory
OC4J_SECURITY
Single Sign-On:orasso
Gestión
on infra tier and
Discoverer
Forms
home
HTTP_Server
OC4J_BI_Forms
OC4J_Portal
OC4J_Wireless
Portal:portal
Reports Server: rep_portal_oracleas2
Web Cache
Wireless
Gestión
on middle tier, all running without problem...
mmm ... what's wrong? where is the log? i find a lot...I have tried your code and it works for me . Here are the steps and codes I have used to stimulate your process
1. Created the procedure
CREATE OR REPLACE PROCEDURE p_buy_tickets (p_id in number, p_eventid in number, p_no_of_tickets in number, p_cc_type in varchar2, p_cc_number in number) IS
BEGIN
htp.print('Processed Successfully');
EXCEPTION
WHEN OTHERS THEN
htp.print('SQL Error Message:'||substr(SQLERRM,1, 200));
END p_buy_tickets;
2. Granted 'Execute' privilge on this procedure to Public.
3. Created a dynamic page with the following code (same as yours except the schema):
<HTML>
<ORACLE>begin
htp.print(htf.bold('Fill in field values and use the push button to buy ticket'));
htp.br;
htp.formOpen('MY_SCHEMA.P_BUY_TICKETS');
htp.teletype('Student Id___:');
htp.formText('p_id',5,5);
htp.br;
htp.teletype('Event Id_____:');
htp.formText('p_eventid',5,5);
htp.br;
htp.teletype('# of Tickets_:');
htp.formText('p_no_of_tickets',5,5);
htp.br;
htp.teletype('Credit Card');
htp.br;
htp.teletype('AMEX,MC,VISA_:');
htp.formText('p_cc_type',5,5);
htp.br;
htp.teletype('Card #_______:');
htp.formText('p_cc_number',10,10);
htp.br;
htp.formSubmit(NULL,'Buy Ticket');
htp.formClose;
end;
</ORACLE>
<HTML>
4. I got the message 'Processed Successfully' when I ran the dynamic page and submitted the form.
You may need to check how you declared parameters in the procedure and how you supplied values when you run the procedure. In this case, I created the procedure with "No Default" value for all parameters , so I have to supply value for all parameters in the form otherwise I will encounter the 'Page Not Found' error.
Hope this helps!.
Thanks
Krishnamurthy -
Creating Report using EPM Functions with Dynamic Filters
Hi All,
I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
Would you please specify in detail step by step.
Thanks in Advance.
Siva NagarajuSiva,
These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
You can protect your report to not allow users to have that Edit Report enabled for them.
As Vadim rightly pointed out, start building some reports and then ask specific questions.
Hope it clears your doubts. -
Running a SQL Stored Procedure from Power Query with Dynamic Parameters
Hi,
I want to execute a stored procedure from Power Query with dynamic parameters.
In normal process, query will look like below in Power Query. Here the value 'Dileep' is passed as a parameter value to SP.
Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData 'Dileep'"]
Now I want to pass the value dynamically taking from excel sheet. I can get the required excel cell value in a variable but unable to pass it to query.
Name_Parameter = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
Name_Value = Name_Parameter{0}[Value],
I have tried like below but it is not working.
Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData Name_Value"]
Can anyone please help me with this issue.
Thanks
DileepHi,
I got it. Below is the correct syntax.
Source = Sql.Database("ABC-PC", "SAMPLEDB", [Query="EXEC DBO.spGetData '" & Name_Value & "'"]
Thanks
Dileep
Maybe you are looking for
-
Any help?
-
Remote producer exception while adding in consumer.
I have producer portlet and trying to add the "Remote Producer Handle" in Consumer Portal Admin console.while adding this,I am gettign the following error. com.bea.wsrp.consumer.management.producer.ProducerManagerException: edu/emory/mathcs/backport/
-
How to connect fax in Hp laser jet m 1005
I have a HP Laser Jet M 1005, How can i connect fax in Hp laser jet m 1005
-
Use of Font Sets in CHM Navigation Pane
Hi everyone. One of our product suites is going to be published for the first time using WebHelp Pro as its primary output but with a CHM file as a backup in case the client's internet connection fails or isn't present. To cut a long story short we h
-
I am trying to install Eclipse EE IDE on my Windows XP. After I download and extract Eclpse and click on the install icon it shows a long pop up message: jvm terminated. Exit code = -1 -Dosgi.requiredJavaVersion = 1.5 -Xms40m -Xmx512m ...I have jdk 1