Urgent Help - Getting Org_id for where clause
HI All,
I am trying to customise "Out of office rule" - Delegate LOV sql, it works fine from responsibility e.g. iProcurment etc. but not from HomePage worklist. The problem is getting the Org_id of the user logged-in I have tried following different methods:
From VO:
(1) FND_GLOBAL.ORG_ID
(2) fnd_profile.value('ORG_ID')
From CO: by setting the where clause
(1) oadbtransaction.getOrgId()
(2) oapagecontext.getOrgId()
But every time same problem some how it's not working from Application HomePage but it will work fine if user will click on any responsibility and then come back to homepage.
Please help it's an urgent issue.
Thanks!
Anoop,
That what are the options to get the Org id on the home page for the user logged-in as user can set "Out of Office Rules" with out clicking on any responsibility ...directly from the home page.
Thanks
Similar Messages
-
Help with Get-EventLog and where clause
I am trying to display a list of event IDs 1123 for the past 24 hours from Server1 using Get-EvenLog.
Using the script below I get a list of all events 1123, can someone assist with incorporating $date = Get-Date $date = AddDays(-1) to where clause ?
Get-EventLog -LogName $logName -ComputerName Server1 | where {$_.eventID -eq 1123} | fl -Property timegenerated, replacementstrings, message
ThanksI also want to get the events emailed to me so I added the following, but the script seems to be getting stuck at the $msgbody line. Is this not the right way to send email?
$date = (Get-Date).AddDays(-1)
$msgbody = Get-EventLog
-LogName $logname -ComputerName hqdbsp18
| where {$_.eventID
-eq 1123 -and $_.timegenerated
-gt $date} | fl
-Property timegenerated, replacementstrings, message
send-MailMessage -To "[email protected]" -from "[email protected]" -Subject "events from the past 24 hours" -body $msgbody -SmtpServer
mysmtpserver -
I'm implementing a query page as described in the HowTo ADF_ComplexMasterDetail.zip
When running the query page, I'm receiving the error:
javax.servlet.jsp.JspException: No getter method for property searchText of bean org.apache.struts.taglib.html.BEAN
I have my searchEmployees writen and 'exposed' (at least I can see it in the Data palette). But seems like something is missing, and can't find this searchText beam property specified in the html:text tag.
Can someone help in this one?
Here is the Help description inside the HowTo example:
Section 3
queryEmployees
queryEmployeesInDept provides an interface for entering a simple search criteria for querying a list of
employees. This does not use the Find mode Query By Example functionality that the other query screens
use, but rather presents a much simpler search interface. The actual search is carried out using a
function
searchEmployees that the underlying view object exposes. (See the EmployeesView view object in the
model project)
1. Drop a new Data Page onto the page flow diagram call it queryEmployees
2. In the page flow diagram, drag the searchEmployees operation from the AllEmployeesView
collection in the Data Control Palette and drop it on top of the new Data Page. This will cause the
framework to run a search whenever the page is called.
3. In the Structure pane, locate the queryEmployees node and expand it, select the child node
paramNames[0], and change it's value attribute to ${param.searchText}. This will pass the URL
parameter searchText on to the business method to qualify the query.
4. Drill down into the page and expand the Data Control Palette to select the AllEmployeesView
collection. Set the Drag and Drop as: list to Read-OnlyTable. Then drag the collection onto the page.
This will create a tabular containing the query results.
5. Select the Struts HTML component palette and drag a Form onto the page above the output table. Set
the handling action to this Data Page (queryEmployees.do)
6. Drag a text field from the component palette inside of this new form. Set the property attribute of
the
<html:text> tag to searchText (the same value you used in the paramNames[0] for the Data Page)
7. Create a new submit button in the form to submit the search. Set the property attribute of the button
to
event_search.
8. Finally we need to subclass the data page to prevent the search action from being fired when it is not
appropriate for the page ( for instance when we first display it). To do this we need to Go to Code on
the Data Page's context menu, and override the invokeCustomMethod() method:
* We only want to invoke the custom method i.e. the call to change
* the Where clause on the collection, if the Action has been called with
* a search event on the page with a search term supplied.
* If the user got here via a link or another event, we bypass the model call
* unless a URL parameter event=search is supplied, in which
* case the method will also be called.
protected void invokeCustomMethod(DataActionContext actionContext)
List events = actionContext.getEvents();
// If the event is "search" do the custom event call
if ((events != null) && (events.contains("search")))
String searchTerm = (String)((DynaActionForm)actionContext.getActionForm())
Get("searchText");
if (searchTerm != null)
super.invokeCustomMethod(actionContext);
}Solved with Oracle JDeveloper HowTo:
Creating Search Pages with Both Fixed and Dynamic Criteria
Author: Steve Muench, Oracle ADF Development Team
Date: September 16, 2004
http://www.oracle.com/technology/products/jdev/howtos/10g/dynamiccrit/index.html -
Can you help me with the WHERE clause? Any issue with this code block?
Hi,
I am looking for blogs or any document on how to implement a Lookup during data loads in BW.
The problem is that all those that I find on this site are mostly about u201CLookup in XIu201D
I have read bits and hints on different postings on this site and this is the best I could do for the scenario shown below:
I need to add the Chars: Char1, Char2, Char3 to CubeX
so that I can display the data for these 3 Chars in a report.
Char1 and Char2 are filled in ODS12 and Char3 is filled in Cube3.
Can you help me write a routine so that while loading data to CubeX, it will read Char1, Char2, Char3 from ODS12 and Cube3; and make them available in CubeX?
This is my attempt so far: continue:
u201C----
select /bic/Char1 from /bic/ODS12
select /bic/Char2 from /bic/ODS12
select /bic/Char3 from /bic/Cube3
into result
WHERE u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
and objvers = 'A' .
end select.
u201C----
1. What should be my WHERE clause?
2. In the select statement, by studying samples on this where should there be an u201CMu201D in front of the ODS? e.g. select /bic/Char1 from /bic/MODS12
If so, what is the significance and the other options?
3. Should this code be in the Start routing of CubeX? Or any other possible location? Also, in the start routine does it matter where within the start routine this code needs to be placed?
4. Can you please fix this code and add any lines I may be missing?
Is what I am looking to do refer to as u201Cdoing a lookupu201D?
Thanksok
-
How to change access path for 'where' clause by using HINTS?
I searched a loooot of posts and haven't found a solution for my case. I don't even know whether it is possible or not. Is it possible to change the sequence of Oracle "Predicate Information"?
Here is my SQL and Oracle's execution plan.
SELECT Max(logId) AS logId FROM online_users_t
WHERE online_users_date >= to_date('2011-09-19 10:00:00') - 3.2 AND online_users_date <= to_date('2011-09-19 10:00:00') AND online_users_result in (1, -1)
GROUP BY online_users_user
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 24800 | 629K| 1336 (1)| 00:00:17 |
| 1 | HASH GROUP BY | | 24800 | 629K| 1336 (1)| 00:00:17 |
|* 2 | TABLE ACCESS BY INDEX ROWID| ONLINE_USERS_T | 38833 | 985K| 1334 (1)| 00:00:17 |
|* 3 | INDEX RANGE SCAN | ONLINE_USERS_T_IDX | 116K| | 313 (1)| 00:00:04 |
Predicate Information (identified by operation id):
2 - filter("ONLINE_USERS_RESULT"=(-1) OR "ONLINE_USERS_RESULT"=1)
3 - access("ONLINE_USERS_DATE">=TO_DATE(' 2011-09-16 05:12:00', 'syyyy-mm-dd
hh24:mi:ss') AND "ONLINE_USERS_DATE"<=TO_DATE(' 2011-09-19 10:00:00', 'syyyy-mm-dd
hh24:mi:ss'))I have 2 conditions in my 'where' clause, one is date range and the other is 'online_users_result in (1, -1)'. It seems that Oracle filter the table by using 'online_users_result in (1, -1)' first, then access it through date range.
What I want to do is firstly filtering the table by using date range followed by other things. How can I do it?
Any clue or help would be highly appreciated.
Thanks in advance.It seems that Oracle filter the table by using 'online_users_result in (1, -1)' first, then access it through date range. No it's not.
What I want to do is firstly filtering the table by using date range followed by other things. How can I do it?That's precisely what it's doing now.
It is using the T_IDX index to quickly find all rows that satisfy the range predicate on the date column.
And then filter those rows to only retrieve the ones that satisfy the other predicate (... in (1,-1)). -
How to validate a user input for where clause?
I have a situation to validate a where clause which is input by the user.
Because the query will be run against huge tables and we need to notify the user if they input the clause is not valid.
I use the below query to try:
Select 'A' from blablabla where user_input_where_clause and 1=0;
however, it can not capture the error when the user input:
'name=123' while the right condition should be name='123'.
Can you pls advise ?In this particular case, Oracle will not even try to run the SQL statement because of the syntax error. IF the WHERE condition supplied does not make sense, Oracle will not execute the statement, so it does not matter if the query accesses huge tables.
SQL> Select 'A' from blablabla where 'name=123' and 1=0 ;
Select 'A' from blablabla where 'name=123' and 1=0
ERROR at line 1:
ORA-00920: invalid relational operator
SQL>IF you have a restriction as to what type/value can user specify for the where condition (asuming it would make sense to SQL engine), you would have to do it before submitting to the database.
Note, however, that user could specify any condition they like, having potentially damaging effects. -
Urgent help in needed for StorProc
Hi All,
How are you today?
We have a package in which we have a SP called SERVICE_TO_PRNTMNGR.
Database Version 11.2.0.2
The issue now is-
The store procedure checks if all print jobs which have the same Fulfillment id (which is kept in PrintJobQueueDI.sessionID) have finished or not;
If not, it will throw exception. The error code is 20004.
What we want as a fix is-
The store procedure should check if all print jobs which have the same Fulfillment id (which is kept in PrintJobQueueDI.sessionID)
and Service Request ID (it is ketp in PrintJobDataDI.docId) have finished or not;
If not, it will throw exception. The error code is 20004.
Here is the package which has sp(SERVICE_TO_PRNTMNGR):
Create or Replace PACKAGE XSP_POPULATE_PRNTMNGR
IS
FUNCTION FULFILLMENT_TO_PRNTMNGR
(P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2)
RETURN SYS_REFCURSOR;
FUNCTION SERVICE_TO_PRNTMNGR
(P_SERVICE_ID IN SERVICE_REQUEST.SERVICE_ID%TYPE)
RETURN SYS_REFCURSOR;
END;
Create or Replace PACKAGE BODY XSP_POPULATE_PRNTMNGR
IS
l_package_name VARCHAR2(50) := 'XSP_POPULATE_PRNTMNGR';
l_PrintJobQueueDI_REC PrintJobQueueDI%ROWTYPE;
l_PrintJobDataDI_REC PrintJobDataDI%ROWTYPE;
e_NOT_S_F_STATUS_IND_REQ EXCEPTION;
e_NO_SERVICES_FOR_THE_PRINTMGR EXCEPTION;
e_NOT_ALL_PREV_REQ_COMPLETED EXCEPTION;
e_ALREADY_INITIALLY_PRINTED EXCEPTION;
e_NOT_PRINTED_INITIALLY EXCEPTION;
l_NUM_REC_CREATED NUMBER :=0;
PROCEDURE *SERVICE_TO_PRNTMNGR*
(P_SERVICE_ID IN SERVICE_REQUEST.SERVICE_ID%TYPE,
P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2);
PROCEDURE INSERT_PrintJobQueueDI
(P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2);
FUNCTION FULFILLMENT_TO_PRNTMNGR
FUNCTION FULFILLMENT_TO_PRNTMNGR
(P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2)
RETURN SYS_REFCURSOR
Name: FULFILLMENT_TO_PRNTMNGR
Params: P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2
Desc: The procedure loops through FULFILLMENT_SERVICE table
and calls xsp_service_to_printmanager for each serviceId.
MGS - legal aid liens not printing or e-mail Do not insert RECEIPT
record into PrintJobDataDI if the RECEIPT is NULL
IS
l_errmsg VARCHAR2(1000):= '';
l_module_name VARCHAR2(200) := l_package_name || '.' || 'FULFILLMENT_TO_PRNTMNGR';
l_selcnt INTEGER;
l_error INTEGER;
l_rowcnt INTEGER;
l_sqlstatus INTEGER;
l_wrong_parameter VARCHAR2(50);
l_TABLE_NAME VARCHAR2(30);
l_EXISTS NUMBER(1);
l_FULFILLMENT_ID FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE;
l_PrintJobQueueDI_populated BOOLEAN:=FALSE;
CURSOR_out SYS_REFCURSOR;
BEGIN
IF P_FULFILLMENT_ID IS NULL OR
P_MODE IS NULL
THEN
RAISE appl_error.e_missing_parameter;
END IF;
IF P_MODE NOT IN ('I','R')
THEN
l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
RAISE appl_error.e_wrong_parameter;
END IF;
-- Check if the Fulfillment Request
-- completed successfully or failed
l_NUM_REC_CREATED :=0;
BEGIN
SELECT 1 INTO l_EXISTS
FROM FULFILLMENT_REQUEST
WHERE FULFILLMENT_ID = P_FULFILLMENT_ID
AND STATUS_IND IN ('S', 'F'); -- Successfull
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE e_NOT_S_F_STATUS_IND_REQ;
END;
IF P_MODE = 'I'
THEN
FOR l_SERVICE_REQ IN (SELECT sr.SERVICE_ID
FROM FULFILLMENT_SERVICE fs,
SERVICE_REQUEST sr,
REQUEST_DESTINATION rd
WHERE rd.SERVICE_ID = fs.SERVICE_ID
AND sr.SERVICE_ID = fs.SERVICE_ID
AND fs.FULFILLMENT_ID = P_FULFILLMENT_ID
AND DELIVERY_METHOD_ID = 'P' -- Print
AND sr.STATUS_IND = 'S')
LOOP
IF NOT l_PrintJobQueueDI_populated
THEN
INSERT_PrintJobQueueDI (P_FULFILLMENT_ID,P_MODE);
l_PrintJobQueueDI_populated := TRUE;
-- The data in the l_PrintJobDataDI_REC is populated by INSERT_PrintJobQueueDI
IF l_PrintJobDataDI_REC.CONTENT IS NOT NULL THEN -- The Condition added on 01-APR-2011
INSERT INTO PrintJobDataDI VALUES l_PrintJobDataDI_REC; -- Receipt
END IF;
l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
END IF;
*SERVICE_TO_PRNTMNGR*(l_SERVICE_REQ.SERVICE_ID,P_FULFILLMENT_ID,P_MODE);
END LOOP;
IF NOT l_PrintJobQueueDI_populated
THEN
RAISE e_NO_SERVICES_FOR_THE_PRINTMGR;
END IF;
ELSE -- P_MODE = 'R'
INSERT_PrintJobQueueDI (P_FULFILLMENT_ID,'RF');
l_PrintJobQueueDI_populated := TRUE;
END IF;
OPEN CURSOR_out FOR
select l_NUM_REC_CREATED from dual;
RETURN CURSOR_out;
EXCEPTION
WHEN appl_error.e_missing_parameter THEN
l_error := 20001;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN appl_error.e_wrong_parameter THEN
l_error := 20003;
l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN appl_error.e_no_records_retrieved THEN
l_error := 20122;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN e_NOT_S_F_STATUS_IND_REQ THEN
l_error := 20004;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
'The Status_Ind of the Fulfillment_Id=' || P_FULFILLMENT_ID ||
' is not S or F',null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN e_NO_SERVICES_FOR_THE_PRINTMGR THEN
l_error := 20004;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
'No Successfully completed services w/Delivery Method=P for the Fulfillment_Id=' ||
P_FULFILLMENT_ID,null);
raise_application_error(l_error*(-1), l_errmsg);
END FULFILLMENT_TO_PRNTMNGR;
FUNCTION SERVICE_TO_PRNTMNGR
FUNCTION SERVICE_TO_PRNTMNGR
(P_SERVICE_ID IN SERVICE_REQUEST.SERVICE_ID%TYPE)
RETURN SYS_REFCURSOR
Name: SERVICE_TO_PRNTMNGR
Params: P_SERVICE_ID IN SERVICE_REQUEST.SERVICE_ID%TYPE
Desc: To be called from Application for the single Service_Id reprint.
IS
CURSOR_out SYS_REFCURSOR;
BEGIN
SERVICE_TO_PRNTMNGR(P_SERVICE_ID,NULL,'R');
OPEN CURSOR_out FOR
select l_NUM_REC_CREATED from dual;
RETURN CURSOR_out;
END SERVICE_TO_PRNTMNGR;
*PROCEDURE SERVICE_TO_PRNTMNGR*
PROCEDURE *SERVICE_TO_PRNTMNGR*
(P_SERVICE_ID IN SERVICE_REQUEST.SERVICE_ID%TYPE,
P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2)
Name: SERVICE_TO_PRNTMNGR
Params: P_SERVICE_ID IN SERVICE_REQUEST.SERVICE_ID%TYPE,
P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2
Desc: The procedure populates the PrintJobQueueDI and PrintJobDataDI
PrintManager tables.
It works in two modes (P_MODE parameter)
-I - Inital print request
-R - reprint
For the initial print request the P_FULFILLMENT_ID parameter
will be passed in.
For the Reprint mode the P_FULFILLMENT_ID will be NULL.
IS
l_errmsg VARCHAR2(1000):= '';
l_module_name VARCHAR2(200) := l_package_name || '.' || 'SERVICE_TO_PRNTMNGR';
l_selcnt INTEGER;
l_error INTEGER;
l_rowcnt INTEGER;
l_sqlstatus INTEGER;
l_wrong_parameter VARCHAR2(50);
l_TABLE_NAME VARCHAR2(30);
l_EXISTS NUMBER(1);
l_FULFILLMENT_ID FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE;
e_NOT_PRINT_DELIVERY_METHOD EXCEPTION;
e_NOT_SUCCESS_COMPL_SRV_REQ EXCEPTION;
BEGIN
IF P_SERVICE_ID IS NULL OR
P_MODE IS NULL OR
(P_MODE = 'I' AND P_FULFILLMENT_ID IS NULL)
THEN
RAISE appl_error.e_missing_parameter;
END IF;
IF P_MODE NOT IN ('I','R')
THEN
l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
RAISE appl_error.e_wrong_parameter;
END IF;
-- Check if the Service Request
-- successfully completed
BEGIN
SELECT 1
INTO l_EXISTS
FROM SERVICE_REQUEST
WHERE SERVICE_ID = P_SERVICE_ID
AND STATUS_IND = 'S'; -- Successfull
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE e_NOT_SUCCESS_COMPL_SRV_REQ;
END;
-- Check if the Service Request of the
-- REQUEST_DESTINATION.DELIVERY_METHOD_ID=P
BEGIN
SELECT 1
INTO l_EXISTS
FROM REQUEST_DESTINATION
WHERE SERVICE_ID = P_SERVICE_ID
AND DELIVERY_METHOD_ID = 'P'; -- Print
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE e_NOT_PRINT_DELIVERY_METHOD;
END;
IF P_FULFILLMENT_ID IS NULL
THEN
SELECT FULFILLMENT_ID
INTO l_FULFILLMENT_ID
FROM FULFILLMENT_SERVICE
WHERE SERVICE_ID = P_SERVICE_ID;
ELSE
l_FULFILLMENT_ID := P_FULFILLMENT_ID;
END IF;
IF P_MODE = 'R' -- Request to Repring single service
THEN
INSERT_PrintJobQueueDI (l_FULFILLMENT_ID,P_MODE);
END IF;
--dbms_output.put_line(P_FULFILLMENT_ID);
FOR l_PrintJobDataDI_REC1 IN (SELECT l_PrintJobQueueDI_REC.PRINTJOBDIID PRINTJOBDIID,
ri.SERVICE_ID DOCID,
rownum+1 DOCORDER,
l_PrintJobQueueDI_REC.QUEUEDIID,
3,
ri.NAME,
1,
ri.NUMBER_OF_PAGES,
ri.RESPONSE_BLOB
FROM RESPONSE_IMAGE ri
WHERE ri.SERVICE_ID=P_SERVICE_ID)
LOOP
--dbms_output.put_line(l_PrintJobDataDI_REC1.PRINTJOBDIID);
--dbms_output.put_line(l_PrintJobDataDI_REC1.DOCID);
--dbms_output.put_line(l_PrintJobDataDI_REC1.DOCORDER);
INSERT INTO PrintJobDataDI VALUES l_PrintJobDataDI_REC1;
l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
END LOOP;
EXCEPTION
WHEN appl_error.e_missing_parameter THEN
l_error := 20001;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN appl_error.e_wrong_parameter THEN
l_error := 20003;
l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN appl_error.e_no_records_retrieved THEN
l_error := 20122;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN e_NOT_PRINT_DELIVERY_METHOD THEN
l_error := 20004;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
'The Delivery Method for the Service_Id=' || P_SERVICE_ID ||
' is not PRINT',null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN e_NOT_SUCCESS_COMPL_SRV_REQ THEN
l_error := 20004;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
'The Status_Ind of the Service_Id=' || P_SERVICE_ID ||
' is not S',null);
raise_application_error(l_error*(-1), l_errmsg);
END SERVICE_TO_PRNTMNGR;
PROCEDURE INSERT_PrintJobQueueDI
PROCEDURE INSERT_PrintJobQueueDI
(P_FULFILLMENT_ID IN FULFILLMENT_REQUEST.FULFILLMENT_ID%TYPE,
P_MODE IN VARCHAR2)
It works in two modes (P_MODE parameter)
-I - Inital print request
-R - reprint single SERVICE REQUEST
-RF - reprint entire fulfillment
IS
l_errmsg VARCHAR2(1000):= '';
l_module_name VARCHAR2(200) := l_package_name || '.' || 'INSERT_PrintJobQueueDI';
l_selcnt INTEGER;
l_error INTEGER;
l_rowcnt INTEGER;
l_sqlstatus INTEGER;
l_wrong_parameter VARCHAR2(50);
l_TABLE_NAME VARCHAR2(100);
l_EXISTS NUMBER(1);
BEGIN
IF P_FULFILLMENT_ID IS NULL OR
P_MODE IS NULL
THEN
RAISE appl_error.e_missing_parameter;
END IF;
IF P_MODE NOT IN ('I','R','RF')
THEN
l_wrong_parameter := 'P_MODE' || '=' || P_MODE;
RAISE appl_error.e_wrong_parameter;
END IF;
-- For reprint request confirm that
-- all previouse print requests
-- completed successfully.
IF P_MODE IN ('R','RF')
THEN
SELECT count(*)
INTO l_EXISTS
FROM PrintJobQueueDI
WHERE SESSIONID = P_FULFILLMENT_ID
AND PRINTTYPE = 'REGULAR';
IF l_EXISTS = 0
THEN
RAISE e_NOT_PRINTED_INITIALLY;
END IF;
SELECT count(*)
INTO l_EXISTS
FROM PrintJobQueueDI
WHERE SESSIONID = P_FULFILLMENT_ID
AND STATUS != 'STATUS_COMPLETED';
IF l_EXISTS > 0
THEN
RAISE e_NOT_ALL_PREV_REQ_COMPLETED;
END IF;
ELSIF P_MODE = 'I'
THEN
SELECT count(*)
INTO l_EXISTS
FROM PrintJobQueueDI
WHERE SESSIONID = P_FULFILLMENT_ID;
IF l_EXISTS > 0
THEN
RAISE e_ALREADY_INITIALLY_PRINTED;
END IF;
END IF;
IF P_MODE IN ('I','R')
THEN
l_TABLE_NAME := 'FULFILLMENT_REQUEST and more';
SELECT SEQ_PrintJobQueueDI.NEXTVAL,
SEQ_PrintJobDIID.NEXTVAL,
us.KIOSK_ID,p.PRINTER_NAME,
fr.FULFILLMENT_ID,SYSDATE,
TO_DATE('1900/01/01','YYYY/MM/DD'),
DECODE(P_MODE,'I','REGULAR','REPRINT'),
'STATUS_SPOOLED',
DECODE(P_MODE,'I','ALL','COVER_AND_SEARCH'),
NULL,
-- Only for the initial printing
-- for the PrintJobDataDI for the Receipt
fr.FULFILLMENT_ID,
1,3,'RECEIPT',0,0,
fr.RECEIPT_BLOB
INTO l_PrintJobQueueDI_REC.QUEUEDIID,
l_PrintJobQueueDI_REC.PRINTJOBDIID,
l_PrintJobQueueDI_REC.KIOSKID,
l_PrintJobQueueDI_REC.PRINTERNAME,
l_PrintJobQueueDI_REC.SESSIONID,
l_PrintJobQueueDI_REC.SPOOLTIME,
l_PrintJobQueueDI_REC.PRINTTIME,
l_PrintJobQueueDI_REC.PRINTTYPE,
l_PrintJobQueueDI_REC.STATUS,
l_PrintJobQueueDI_REC.PRINTOPTION,
l_PrintJobQueueDI_REC.PROCESSSTATEID,
l_PrintJobDataDI_REC.DOCID,
l_PrintJobDataDI_REC.DOCORDER,
l_PrintJobDataDI_REC.DOCTYPEID,
l_PrintJobDataDI_REC.DOCNAME,
l_PrintJobDataDI_REC.STARTPAGE,
l_PrintJobDataDI_REC.ENDPAGE,
l_PrintJobDataDI_REC.CONTENT
FROM LRO_PRINTER p,
KIOSK k,
USER_SESSION us,
BUSINESS_AUDIT ba,
FULFILLMENT_REQUEST fr
WHERE p.PRINTER_ID = k.PRINTER_ID
AND p.LRO_ID = k.LRO_ID
AND k.KIOSK_ID = us.KIOSK_ID
AND us.USER_SESSION_ID = ba.USER_SESSION_ID
--AND ba.BUSINESS_AUDIT_ID = fr.BUSINESS_AUDIT_ID
AND ba.BUSINESS_AUDIT_ID = (select min(BUSINESS_AUDIT_ID)
from fulfillment_service fs,service_request sr
where fs.FULFILLMENT_ID = fr.FULFILLMENT_ID
and sr.SERVICE_ID = fs.SERVICE_ID)
AND fr.FULFILLMENT_ID = P_FULFILLMENT_ID;
ELSE -- 'RF'
l_TABLE_NAME := 'PrintJobQueueDI, KIOSK, LRO_PRINTER';
SELECT SEQ_PrintJobQueueDI.NEXTVAL,
q.printJobDIID,
q.KIOSKID,
p.PRINTER_NAME,
q.SESSIONID,
SYSDATE,
TO_DATE('1900/01/01','YYYY/MM/DD'),
'REPRINT',
'STATUS_SPOOLED',
'ALL',
NULL
INTO l_PrintJobQueueDI_REC.QUEUEDIID,
l_PrintJobQueueDI_REC.PRINTJOBDIID,
l_PrintJobQueueDI_REC.KIOSKID,
l_PrintJobQueueDI_REC.PRINTERNAME,
l_PrintJobQueueDI_REC.SESSIONID,
l_PrintJobQueueDI_REC.SPOOLTIME,
l_PrintJobQueueDI_REC.PRINTTIME,
l_PrintJobQueueDI_REC.PRINTTYPE,
l_PrintJobQueueDI_REC.STATUS,
l_PrintJobQueueDI_REC.PRINTOPTION,
l_PrintJobQueueDI_REC.PROCESSSTATEID
FROM PrintJobQueueDI q,
KIOSK k,
LRO_PRINTER p
WHERE q.SESSIONID = P_FULFILLMENT_ID
AND printType = 'REGULAR'
AND k.KIOSK_ID = q.KIOSKID
AND p.PRINTER_ID = k.PRINTER_ID
AND p.LRO_ID = k.LRO_ID;
END IF;
INSERT INTO PrintJobQueueDI VALUES l_PrintJobQueueDI_REC;
l_NUM_REC_CREATED := l_NUM_REC_CREATED + SQL%ROWCOUNT;
l_PrintJobDataDI_REC.PRINTJOBDIID := l_PrintJobQueueDI_REC.PRINTJOBDIID;
l_PrintJobDataDI_REC.QUEUEDIID:= l_PrintJobQueueDI_REC.QUEUEDIID;
EXCEPTION
WHEN appl_error.e_missing_parameter THEN
l_error := 20001;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,null,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN appl_error.e_wrong_parameter THEN
l_error := 20003;
l_errmsg:= appl_error.get_error_message(l_error,l_wrong_parameter,l_module_name,null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN e_NOT_ALL_PREV_REQ_COMPLETED THEN
l_error := 20004;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
'Not all print requests for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
' were successfully completed',null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN e_ALREADY_INITIALLY_PRINTED THEN
l_error := 20004;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,'Initial print request for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
' has been already created',null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN e_NOT_PRINTED_INITIALLY THEN
l_error := 20004;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,
'Can''t reprint the print request for the Fulfillment_Id=' || P_FULFILLMENT_ID ||
' because it was not printed intially',null);
raise_application_error(l_error*(-1), l_errmsg);
WHEN NO_DATA_FOUND THEN
l_error := 20122;
l_errmsg:= appl_error.get_error_message(l_error,l_module_name,l_TABLE_NAME,null);
raise_application_error(l_error*(-1), l_errmsg);
END INSERT_PrintJobQueueDI;
END XSP_POPULATE_PRNTMNGR;Please help in writing this piece of code.
Would appreciate your help...
Edited by: BluShadow on 04-Oct-2011 15:39
added {noformat}{noformat} tags for readability. See {message:id=9360002} to learn to do this yourself.
Edited by: user548261 on Oct 4, 2011 7:46 AMrudi wrote:
Hi sb92075,
I'm absolutely newbie in this discussion forum, because I expected that this forum will be helpfull for all. I have found really so much perfect answers and advices.
You have high number of posts, but I can't found any your answer for new programmers which have some issues. If you can't answer, ignore the query posted, I think that this is spamming, I have found your 10 negative posts within 5 minutes.
I know, that all forums have rules, but review number of "posts with not correct subjects like URGENT, ASAP...." and the other, correct with absolutely same queries and requests for advise.
Thanks for understanding
rudisb92075's response was helpful. It was pointing out that we need to have tables and data to work with and not just a piece of unfamiliar code that we are told doesn't work in some way. Without the tables and example data and expected output we could only guess what the problem may be. The OP has also said their issue is urgent, which it isn't as I pointed out to them, but then their response to sb92065's request for tables and data was just to say that they want us to do their work for them and they'll test it. That's not only rude, but also wastes our time as we have to make a guess as to what the problem may be then wait for the OP to test it, to no doubt tell us that it still doesn't work, so we can make another guess.
This is not the way a professional forum works. If the OP wants help with the issue they need to provide relevant information as requested. The fact they seem to keep asking questions and non of them are being marked as answered should be a good indication that they are not asking the questions correctly.
So, before you criticize members as being unhelpful, it is perhaps better if you read what they have requested and understand what they've said.
Therefore, we still await the OP's response providing some useful information to be able to help... -
Urgent HELP! need for my Zen touch (20
Right here we go. I bought my zen touch online last year from a well known supplier. Absolutly brilliant mp3 plaey and happy with the value for money i got. The player did freee alot since i got it at inappropiate times eg. When i was on holiday and had nothing to reset it with. Recently i have been experiancing alot of problems. First one is that it froze so i reseted it, all seemed well until the Welcome screen came on and stayed like that for 0 mins and then it resumed back to normal. This has since continued. 2nd problem is every time i add a song from the computer (same process that i have been using since i got it) all seems well until.... i turn the player on select any song to play and the player results in PLAYBACK ERROR. So i reset , the player then freezes for another 0 mins and then is back to normal. This also has continued. And third and finally everytime i reset now i get the message rebulding libary and it is almost done and yet low and behold freezes again for another 0mins. Also i need urgent and quick help as my warrantty runs out in days. PLEASE HELP!!!! and to add to this i have tonight installed a new firmware and still experiance same problem. And almost forgot the player freezes for 0mins after every chargeMessage Edited by ruane89 on 09-30-2005 07:8 PM
ruane89 wrote:how long does this disk clean up tkae and what does it actually do?
As per the FAQ post:
How long should a Disk Cleanup take?
It should only take a few minutes, and no longer than 30 minutes. Anything longer than this and there is a problem with the player and you need to contact Creative Support.
If this doesn't solve it then you really just need to follow the steps in the "My Zen is not starting properly, or goes into rescue mode, what should I do?" section of the FAQ post.
As igedit says, the player does sound faulty unfortunately, so I would contact Creative Support. -
Urgent help:Ulimit setting for DSEE6.2
Hi
I have installed DSEE6.2 on RHEL4 which has ulimit setting of 1024.However I got the following exception:
ERROR<12293> - Connection - conn=-1 op=-1 msgId=-1 - fd limit exceeded Too many open file descriptors - not listening on new connection
Please advice what should be the ulimit setting?Is it mentioned in any of the dsee6.2 documentation (I could not find any).
I am also getting the following exception:
ERROR<8318> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] Bind failed with response: Failed to bind to remote (900).
Are both of the above issues due to ulimit settings only.
I need this help urgently as we have a production release this weekend.
Thanks
AartiAlso be aware of your file-descriptor-count configuration property:
http://docs.sun.com/app/docs/doc/820-2495/file-descriptor-count-5dsconf
Any ulimit increases might need to be applied to this property.
ran_aarti wrote:
I am also getting the following exception:
ERROR<8318> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] Bind failed with response: Failed to bind to remote (900).
Are both of the above issues due to ulimit settings only.Can't say for sure, but yes, there is a good chance the replication error is due to file descriptor exhaustion. -
Need help getting images for blog aggregator
I need help trying to grab images into a blog aggregator...
Here is the code that gets the image.
<!--- Get thumbnail, if exists --->
<cfset content_to_parse = temp_description_full>
<cfinclude template="module_get_images.cfm">
<cfif IsArray(image_array) AND ArrayLen(image_array)>
<cfloop from=1 to=#ArrayLen(image_array)# index="j">
<cfhttp url="#trim(image_array[j].link_url)#"
method="get" throwonerror="No" timeout="15" getasbinary="Auto"
resolveurl="No" />
<cfif IsBinary(cfhttp.filecontent)>
<cfset tmp_filename = "thumbnail_entry_" & GetID.id
& "." & image_array[j].file_type>
<cffile action="WRITE"
file="#ExpandPath(request.base_relative_url &
'/blog_thumbnails/' & variables.tmp_filename)#"
output="#cfhttp.filecontent#">
<cfset thumb_image = request.img.process_image(image_path
= ExpandPath(request.base_relative_url & '/blog_thumbnails/'
& variables.tmp_filename), max_width = 120, max_height = 120,
crop_area = "center")>
<cfimage source="#thumb_image#" action="write"
destination="#ExpandPath(request.base_relative_url &
'/blog_thumbnails/' & variables.tmp_filename)#"
overwrite="yes">
<cfquery name="UpdateEntry"
datasource="#request.data_source#" username="#request.db_un#"
password="#request.db_pw#">
UPDATE aggregated_blog_entry
SET aggregated_blog_entry_thumbnail_image_tx =
'#left(variables.tmp_filename,255)#'
WHERE aggregated_blog_entry_id = #GetID.id#
</cfquery>
<cfbreak>
</cfif>
</cfloop>
</cfif>
---------This is the module_get_images.cfm
code----------------
<cfset start_pos = 1>
<cfset image_array = ArrayNew(1)>
<cfset regex_image = "<img[^>]*>">
<cfset regex_image_url =
"(((https?:|ftp:|gopher:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/&##!;@:=\+~_]+[\-A-Za-z0- 9\/]">
<cfloop condition="1">
<cfset temp_image_pos = REFindNoCase(regex_image,
variables.content_to_parse, start_pos, true)>
<cfif temp_image_pos.pos[1]>
<cfset temp_link =
mid(variables.content_to_parse,temp_image_pos.pos[1],temp_image_pos.len[1])>
<cfset link =
REFindNoCase(regex_image_url,temp_link,1,1)>
<cfif NOT link.pos[1]>
<cfset temp_link_url = "">
<cfelse>
<cfset temp_link_url =
mid(temp_link,link.pos[1],link.len[1])>
</cfif>
<!--- Don't show links to images --->
<cfif len(trim(temp_link_url)) AND
ListFindNoCase("jpg,jpeg,gif,bmp,png",left(ListLast(temp_link_url,"."),3))>
<cfset image_array[ArrayLen(image_array)+1] =
StructNew()>
<cfset image_array[ArrayLen(image_array)].link =
temp_link>
<cfset image_array[ArrayLen(image_array)].link_url =
temp_link_url>
<cfset image_array[ArrayLen(image_array)].file_type =
left(ListLast(temp_link_url,"."),3)>
</cfif>
<cfset start_pos = temp_image_pos.pos[1] + 1>
<cfelse>
<cfbreak>
</cfif>
</cfloop>
This is the type of code it has a hard time getting the image
becuase it doesn't have a regular IMG tag.
<div style="float: left; width: 82px; height: 59px;
overflow: hidden; background: url(
http://pix.crash.net/motorsport/80/388493.jpg);
background-position: center center; background-repeat: no-repeat;
margin: 1px;" onMouseOver="showTipGallery(Stoner, Australian MotoGP
2007);" onMouseOut="clearTip();">
Is there a way to modify this code to make it be able to look
for the backround: url?? I am thinking that woul help it.. It knows
that an image is there.. It just doesn't know what to do with
it.How difficult is it for you to do a google image search for large images of this subject?
While you appear to be doing this project for an educational endeavour and can get away with mild copyright abuse as "fair use", you probably should not expect the participants in this forum to 1) work for Disney either as a direct employee or as a contractor and 2) offer their copyrighted work for free.
If you really want to impress a teacher and a future employer, you would use your own art. Why dont you create your own movie concept? Suppose you and your classmate are up for the same employment position. Who do you think will get hired if you show work that is not all your own, while your classmate has produced all of his/her own work? -
Urgent Help is Needed for Database Installation Problems
How can we resolve the following database problems in Windows XP? Originally, we had Oracle 10.1.0.4.2, and we wanted to upgrade it to Oracle 10.2.0.1. We uninstalled Oracle Home ORAH1_DEV and then got the following problems while installing Oracle 10.2.0.1. How can we resolve all these errors so database configuration assistants can work successfully? Please help us with these ASAP. Thank you very much for your help and time in advance.
-Oy
These are the popup message we got.
POPUP 1. This appears 3 times, then ignore
Error in writing to file 'C:\OraHomes\ORAH1_DEV\jdk\jre\bin\awt.dll'.[C:\OraHomes\ORAH1_DEV\jdk\jre\bin\awt.dll(The process cannot access the file because it is being used by another process)]
Click 'Help' for more information
Click 'Retry' to try again
Click 'Ignore' to ignore this error and go on.
Click 'Cancel' to stop this installation
buttons Help Retry Ignore Cancel
POPUP 2. Error in writing to file 'C:\OraHomes\ORAH_DEV\jdk\bin\java.exe'. [C:\OraHomes\ORAH1_DEV\jdk\jre\bin\java.exe (The process cannot access the file because it is being used by another process)]
Click 'Help' for more information
Click 'Retry' to try again
Click 'Ignore' to ignore this error and go on.
Click 'Cancel' to stop this installation
buttons Help Retry Ignore Cancel
POPUP 3. Erro in writing to file 'C:\OraHomes\ORAH1_DEV\bin\orancrypt10.dll'. [C:\OraHomes\ORAH1_DEV\bin\orancrypt10.dll (The process cannot access the file because it is being used by another process)]
Click 'Help' for more information
Click 'Retry' to try again
Click 'Ignore' to ignore this error and go on.
Click 'Cancel' to stop this installation
buttons Help Retry Ignore Cancel
POPUP 4. Error in writing to file 'C:\OraHomes\ORAH1_DEV\bin\oravsn10.dll'. [C:\OraHomes\ORAH1_DEV\bin\oravsn10.dll (The process cannot access the file because it is being used by another process)]
Click 'Help' for more information
Click 'Retry' to try again
Click 'Ignore' to ignore this error and go on.
Click 'Cancel' to stop this installation
buttons Help Retry Ignore Cancel
POPUP 5. Error in writing to 'c:\OraHomes\ORAH1_DEV\opmn\mesg\ensus.msb'. [C:\OraHomes\ORAH1_DEV\opmn\mesg\ensus.msb (The process cannot access the file because it is being used by another process)]
Click 'Help' for more information
Click 'Retry' to try again
Click 'Ignore' to ignore this error and go on.
Click 'Cancel' to stop this installation
buttons Help Retry Ignore CancelGrace wrote:
Yes, I have it installed in the same Oracle Home. Is it possible to create it there? Or I must create a new Oracle Home for the new installation? Please reply as soon as possible. Thank you very much for your help.
-OyA specific ORACLE_HOME holds the binaries for a specific version of Oracle. You don't upgrade by simply installing a newer version of Oracle into the ORACLE_HOME of an older version. If you tried to do that you have probably irreversibly corrupted the original installation.
And there is no URGENT or ASAP here. We are all volunteers with regular jobs. If you have "urgent" support issues you need to open a Service Request with Oracle Support. -
Urgent Help in JSP for multiple records update
I have a Order Placement form for the dealers. Here they place their orders online and submit the form. The details they enter are stored in Orders table in a database. This order is sent for processing. This is an external operation for the users of our products.
This table has two extra fields AccptNo and DelDate, which are filled in by the Admin of the Stores Dept of our company. The Admin then logs in and views the new orders. He sees the new orders displayed in the following format. The data shown is from the Orders table.
He is then reqd to just fill in the Accpt No and Del Date against the requisite Order.
Having finished filling up all the details he clicks the Submit button which updates the Orders table. i.e the existing records are updated with the accptno and del dates or rather the records are overwritten.
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>
<body>
<p><b><font size="3" face="Arial Unicode MS" color="#FF0000">Orders - Admin
Page.</font></b></p>
<b><font size="2" face="Verdana" color="#0000FF">
Following are the new pending orders.</font></b>
<form method="POST" action="updtOrd.jsp">
<div align="center">
<center>
<table border="1" cellspacing="0" width="68%" bordercolor="#000080">
<tr>
<td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Dealer
Id</b></font></td>
<td width="11%" align="center"><font size="2" face="Arial Unicode MS"><b>Product</b></font></td>
<td width="13%" align="center"><font size="2" face="Arial Unicode MS"><b>Quantity</b></font></td>
<td width="10%" align="center"><font size="2" face="Arial Unicode MS"><b>Value</b></font></td>
<td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Acceptance
No.</b></font></td>
<td width="53%" align="center"><font size="2" face="Arial Unicode MS"><b>Delivery
Date</b></font></td>
</tr>
<tr>
<td width="13%"><font size="2" face="Verdana">d0116033</font></td>
<td width="11%"><font size="2" face="Verdana">ABC</font></td>
<td width="13%"><font size="2" face="Verdana">100</font></td>
<td width="10%"><font size="2" face="Verdana">100000</font></td>
<td width="53%"><input type="text" name="T1" size="20"></td>
<td width="53%"><input type="text" name="T6" size="20"></td>
</tr>
<tr>
<td width="13%"><font size="2" face="Verdana">d0116065</font></td>
<td width="11%"><font size="2" face="Verdana">XYZ</font></td>
<td width="13%"><font size="2" face="Verdana">160</font></td>
<td width="10%"><font size="2" face="Verdana">16000</font></td>
<td width="53%"><input type="text" name="T2" size="20"></td>
<td width="53%"><input type="text" name="T5" size="20"></td>
</tr>
<tr>
<td width="13%"><font size="2" face="Verdana">d0116058</font></td>
<td width="11%"><font size="2" face="Verdana">PQR</font></td>
<td width="13%"><font size="2" face="Verdana">300</font></td>
<td width="10%"><font size="2" face="Verdana">3000000</font></td>
<td width="53%"><input type="text" name="T3" size="20"></td>
<td width="53%"><input type="text" name="T4" size="20"></td>
</tr>
<tr>
<td width="153%" colspan="6">
<p align="center"><input type="submit" value="Submit" name="B1"></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>
I hope this makes the scene clear still you may eat my head for more clarifications but please help me.
Can mail me at [email protected]
ThanQName your textfields for accetance number and del date as your primary key that must be dealer id in your case.
You can do this by writing <input type=text name=<%=<something>%>>
Then you can get all the parameters in jsp to which you are going to submit your request by using function getParameterNames(). That will return you all the primary keys posted as name of your textfield. Then get the parameter value from parameter name and run the sql. -
**Urgent help on MDS for FileRepositary
Hi,
I got the problem with FileRepositary while creating MDS. i did the same configuration in my local system it's working fine and i tried to deploy the application into server i am getting following error
[12:58:32 PM] Target platform is (Weblogic 10.3).
[12:58:33 PM] Retrieving existing application information
[12:58:33 PM] Running dependency analysis...
[12:58:33 PM] Building...
[12:58:44 PM] Deploying 3 profiles...
[12:58:49 PM] Wrote Web Application Module to C:\mywork\ESPSVarunCode\ESPSApp\ViewController\deploy\ESPSAppv.war
[12:58:50 PM] Info: Namespace '/apps' is mapped to deploy-target metadata-store-usage 'MAR_TargetRepos' in adf-config.xml but no metadata from the namespace is included in the MAR.
[12:58:50 PM] Warning: MAR archive 'metadata1.mar' did not have any metadata content, not added to EAR.
[12:58:50 PM] Wrote Enterprise Application Module to C:\mywork\ESPSVarunCode\ESPSApp\deploy\ESPSAppv.ear
[12:58:50 PM] No metadata repositories found on target server. Using values found in adf-config.xml.
[12:58:50 PM] Entering Oracle Deployment Plan Editor
[12:59:03 PM] #### Deployment incomplete. ####
[12:59:03 PM] Deployment Cancelled
My Config file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<adf-config xmlns="_http://xmlns.oracle.com/adf/config"
xmlns:adf="_http://xmlns.oracle.com/adf/config/properties"
xmlns ec="_http://xmlns.oracle.com/adf/security/config">
<adf:adf-properties-child xmlns="_http://xmlns.oracle.com/adf/config/properties">
<adf-property name="adfAppUID"
value="ESPSQuery"/>
</adf:adf-properties-child>
<sec:adf-security-child xmlns="_http://xmlns.oracle.com/adf/security/config">
<CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
<sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
authenticationRequire="true"/>
</sec:adf-security-child>
<adf-faces-config xmlns="_http://xmlns.oracle.com/adf/faces/config">
<persistent-change-manager>
<persistent-change-manager-class>oracle.adf.view.rich.change.MDSDocumentChangeManager</persistent-change-manager-class>
</persistent-change-manager>
<taglib-config>
<taglib uri="_http://xmlns.oracle.com/adf/faces/rich"/>
</taglib-config>
</adf-faces-config>
<adf-mds-config xmlns="_http://xmlns.oracle.com/adf/mds/config">
<mds-config xmlns="_http://xmlns.oracle.com/mds/config" version="11.1.1.000">
<cust-config>
<match path="/">
<customization-class name="oracle.adf.share.config.UserCC"/>
</match>
</cust-config>
<persistence-config>
<metadata-namespaces>
<namespace path="/persdef" metadata-store-usage="MAR_TargetRepos"/>
</metadata-namespaces>
<metadata-store-usages>
<metadata-store-usage id="MAR_TargetRepos" deploy-target="true"
default-cust-store="true">
<metadata-store
class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
<property value="$ORACLE_HOME/jdeveloper/integration"
name="metadata-path"/>
<property value="seed" name="partition-name"/>
</metadata-store>
</metadata-store-usage>
</metadata-store-usages>
</persistence-config>
</mds-config>
</adf-mds-config>
</adf-config>
Can any one help me .It seems you might be missing a proper MAR profile added in your EAR.
Just check the dev guide for MAR / MDS archive etc.
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/deployment_topics.htm#CHDGGACB -
Urgent help in cursor for loop. PLS HELP HELP HEP
suppose i got table_a, in table_a i've got abc_id and bcd_name. the data as below:
abc_id bcd_name
1 a
1 b
1 c
1 d
in stored procedure as the statement below, i can only select 1 record into a local variable:
select bcd_name
into l_bcd_name
where abc_id = i_abc_id;
how am i going to select all the records? i know it's going to use a cursor for-loop statement but i dont know how to use. any1 can help?
Message was edited by:
babyekcHi,
You can do like this.
Just write the following code in ur Stored Procedure.
CURSOR C1 IS SELECT ABC_ID, BCD_NAME FROM TABLE_A;
BEGIN
OPEN C1;
LOOP
FETCH C1 INTO TEMP_ABCID, TEMP_BCDNAME;
EXIT WHEN C1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE('ABC ID is ' || TEMP_ABCID);
DBMS_OUTPUT.PUT_LINE('BCD NAME is ' || TEMP_BCD_NAME);
END LOOP;
CLOSE C1;
END;
Before declaring the cursor, declare the variables TEMP_ABCID, TEMP_BCDNAME.
Thanks. -
User soliciting adobe forms as "Need Urgent Help" is phishing for phone #'s
Is anyone getting these? Call me silly but I just don't think it's Adobe "Help And Support"
and "And" is never capitalized in a title dumb-dumb
Hi!
We apologize for the inconvenience caused we will help you out to resolve the problem which you are facing for further assistance provide us your Skype ID and Telephone Number so our one of the technician will contact you!
Thanks & Regards
Adobe Help And Supportyou told me to remove the post, but I think you're the same guy embarrassed he got caught.
did I guess right?
Want to know how I know?
Maybe you are looking for
-
Hello everybody, I am developping a workflow application with an external status monitoring, i.e. for each workitem I must write the current status as well as the person or organizational unit who is reponsible for the workitem to an external Z-table
-
Hi Experts How we create target group on the basis of Net value and Product. which tables required for creation of Infoset. Our requirement is who are buy the particular product more than xxxxx amount we need to make a target group and send the mails
-
How to view images in TextEdit documents on Lion, created under an earlier OS
I have a lot of TextEdit documents with pasted pictures ("Pasted Graphic.pict") from my times on Tiger and a PPC Mac. However when viewing these documents on Lion the pictures won't appear. I can very well open "Package Contents" of the .rtfd files a
-
I tried both BlingBall & ColorPearl. I'm using the 8100 Pearl. The phone's version is 4.5.0.18, also using the version 4.5 Desktop Manager. Both of them successfully install, but when I go to options and try to choose a color, it won't change. What d
-
I locked my ipod touch and now diabled what do i do
i locked my ipod touch now it is disabled what do i do