Strange question, while calling the DeviceInfo.getBatteryStatus () function
I don't know when and how I can post pictures on this forum...
OK, I guess that this must be a bug in the system, because when I call getBatteryStatus function without USB connection I receive a normal status, however, when connecting to a USB device (include AC, external and computer) I received only a State, 5, an odd number value!
I need your help, so! ~
See the API:
Returns:
Combination of masks BSTAT_xxx of this class.
The returned value is a binary indicator pattern. 5 would mean "4 is true, also applies to 1.
If you need more information about this mechanism, you can google binary indicator.
Tags: BlackBerry Developers
Similar Questions
-
How to call the pl/sql function in application of the ADF
Hi Experts,
I need to call the pl/sql function in application of ADF, I have logic written in my AM
Method:
public String reportStoredProcedure (locationID customerID, number,
String tailNum) {}
CallableStatement st = null;
String v_sanctioned = null;
If (locationID! = null & & customerID! = null & & tailNum! = null) {}
System.out.println (locationID + "" + customerID + "" + tailNum);
Tail string = "TAIL";
String result = "N";
try {}
String stmt =
"start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
St = getDBTransaction () .createCallableStatement (stmt, 0);
st.setNull (1, Types.VARCHAR);
st.setNull (2, Types.NUMERIC);
st.setObject (3, customerID);
st.setNull (4, Types.NUMERIC);
st.setNull (5, Types.NUMERIC);
st.setObject (6, locationID);
st.setNull (7, Types.NUMERIC);
st.setNull (8, Types.NUMERIC);
st.setObject (9, tail);
st.setObject (10, tailNum);
st.setObject (11, result);
St.Execute ();
System.out.println ("v_sanctioned in AM:" + v_sanctioned);
} catch (Exception e) {}
e.printStackTrace ();
return "N";
} {Finally
If (st! = null)
try {}
St.Close ();
} catch (Exception e1) {}
E1. PrintStackTrace();
return "N";
}
}
} else {}
System.out.println ("v_sanctioned is null");
v_sanctioned = "N";
}
Return v_sanctioned;
}
Error:
java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Can someone help me how to call...Call it in function, not as a procedure you do
try { String stmt = "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;"; st = getDBTransaction().createCallableStatement(stmt, 0); st.registerOutParameter(1, Types.VARCHAR); st.setNull(2, Types.VARCHAR); st.setNull(3, Types.NUMERIC); st.setObject(4, customerID); st.setNull(5, Types.NUMERIC); st.setNull(6, Types.NUMERIC); st.setObject(7, locationID); st.setNull(8, Types.NUMERIC); st.setNull(9, Types.NUMERIC); st.setObject(10, tail); st.setObject(11, tailNum); st.setObject(12, result); st.execute();
= st.getString(1); -
Transfer while calling the function of a trigger
Hello
I would appreciate if someone can point me in the right direction. So I have a trigger (TableAR_BU) on a table table. This trigger, I have a logic to call the function, and inside this function, I'm just a select statement of a few other tables that the table table.
Function is supposed to return me 'Y' and it done correctly returns me 'Y' if I select the double feature. -Select the Function1 (100) twice;
But when I call the trigger function, it returns me 'n'. So after investigation, I found that the select statement (selection of table) inside the function returns NULL when called from trigger.
Suggestions or comments appreciated.DROP TRIGGER TableAR_BU; CREATE OR REPLACE TRIGGER TableAR_BU BEFORE UPDATE ON TableAR_BU REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW declare localcontext varchar2(32000) := '; Context : '; sqlstmt varchar2 (2000); Status varchar2(1); Status := Function1(:new.Id); End; / function Function1(al_Id in TableAR.Id%type) RETURN varchar2 is lsItemId TableAR.itemId%type; Begin Select itemId into lsItemId from TableAR where id = al_Id; Exception End Function1;
Edited by: Eclipse01 may 1, 2012 11:29The problem is that a level trigger line on table cannot query table or whatever it is that questions table call. In the middle of a SQL statement, the table is potentially in an invalid intermediate state if Oracle cannot guarantee that queries on the table return consistent or reasonable results so it does not allow queries of this type.
99 + % of the time, it's a good thing because it means that you are trying to use triggers for something they are not designed for (in addition to creating applications that are terribly difficult to manage because an action like update a line will eventually create a huge cascade of effects). Most of the time, you are much better to reconsider the architecture and the displacement of the function call out of the trigger and in a sort of API that wraps the UPDATE statement (that is a stored procedure that made the UPDATE and calls the procedure).
In the <1% of="" the="" cases="" where="" you="">1%> really want to do in a trigger, you would need a combination of objects (or a trigger composed containing several sections in 11 g). You would need
-A package with a collection of table primary keys
-A before the declaration that clears this collection
-A level trigger line which inserts the: new. ID in the collection
-A trigger statement that iterates over the collection and calls the function after.That, however, is a lot of moving parts to deal with, so it dramatically increases the complexity. If you only want to consider if you are really convinced that you must use triggers in the first place.
Justin
-
ORA-900 sql not valid reporting error while calling the optimize_index pl/sql procedure
Hi Experts,I'm on Oracle 11.2.0.3 on Linux and I have installed in my database Oracle text. I want to configure annex dbms_job to optimize my oracle text index. So first, I created a pl/sql procedure to optimize indexes. It gives me error ORA-900, but the sql even if I run in sqlplus works very well! Can you please help me the question is to find:
Here is the procedure:
(Either incidentally CTXAPP role has been granted in the schema where these Oracle text indexes are created and where the below procedure to optimize the index is running.)
CREATE OR REPLACE PROCEDURE optimize_ora_txt_indexes_debug IS CURSOR cur_context_indexes IS SELECT index_name FROM user_indexes WHERE index_type = 'DOMAIN' AND ROWNUM<2 ORDER BY INDEX_NAME; v_user VARCHAR2 (30); v_pod VARCHAR2 (30); v_start_time TIMESTAMP; v_end_time TIMESTAMP; v_elapsed VARCHAR2 (40); v_msg VARCHAR2 (1000); v_error_code NUMBER; v_error_msg VARCHAR2 (1000); v_sql VARCHAR2 (1000); BEGIN FOR c IN cur_context_indexes LOOP BEGIN v_sql:= 'ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||')'; dbms_output.put_line(v_sql); execute immediate v_sql; EXCEPTION WHEN OTHERS THEN v_error_code := SQLCODE; v_error_msg := SQLERRM; v_msg := 'Error while optimizing the index ' || c.index_name || ' ' || TO_CHAR (v_error_code) || ' ' || v_error_msg; DBMS_OUTPUT.put_line (v_msg); END; END LOOP; EXCEPTION WHEN OTHERS THEN v_error_code := SQLCODE; v_error_msg := SQLERRM; v_msg := 'Error while in the optimize index procedure' || ' ' || TO_CHAR (v_error_code) || ' ' || v_error_msg; DBMS_OUTPUT.put_line (v_msg); END optimize_ora_txt_indexes_debug; / --the procedure compiles successfully. Now when I run it , I get the error: SQL>exec optimize_ora_txt_indexes_debug; ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL') Error while optimizing the index ACCESS_CLNT_IDX04 -900 ORA-00900: invalid SQL statement --When I run the same command from sqlplus as execute statement , it works fine: SQL>exec ctx_ddl.optimize_index (idx_name =>'ACCESS_CLNT_IDX04', optlevel => 'FULL'); PL/SQL procedure successfully completed.
If everything runs from sqlplus, but fails in plsql... I'll be very grateful for pointers solve the problem.
Thanks,
OrauserN
Hello
It is a problem of pl/sql syntax. A call with EXEC is the same using BEGIN... Code of... END of block;
SO, you need to include a beginning and an end to your call:
v_sql:= 'BEGIN ctx_ddl.optimize_index (idx_name =>'||chr(39)|| c.index_name||chr(39)||', optlevel => '||chr(39)||'FULL'||chr(39)||'); END;';
That's all.
Herald tiomela
-
Satellite A200 - strange question after updating the graphics driver
The problem is with the driver Mobile Intel (r) 965 Express Chipset Family. System: Grand VISTA 32 bit Home Premium Service Pack 1. Laptop: Satellite A200.
I have installed the new driver of this (suggestion by Toshiba TEMPO) source:
http://CE.computers.Toshiba-Europe.com/innovation/download_driver_details.jsp?id=65340&OSID=26&drive rLanguage = 42 & SOURCE = TEMPO & LNG = 20
After switching on the computer, the system is constantly asking me ("warning on securities"), whether to execute (open) 3 files: C:\Windows\System32\igfxtray.exe /... hkcmd.exe /... igfxpers.exe. Disabling the option "Always ask before opening the file" does not help. I have to choose the option "Open / cancel / close" to continue the implementation of the windows (an option to switch). Please don't forget that I translated above mentioned communications of poles.
Answer to the question, I received the support of Intel (r):
++ This is not really a problem with our drivers. This is related to the rights of the user/administrator and security functions defined by Windows * Vista. ++
Yours faithfully,
Maciej Kochan
When you install the drivers, you must right click on the EXE file and choose "Run as Administrator".
You should also temporarily disable your security software or reconfigure it to allow the file system.
Tools such as AdAware and Spybot spyware removal (or spyware in your Internet Security package tool) may block the file system. -
Error 7 only during the executable to call the library node function
Hello
I'm having some trouble with LabVIEW, creating an executable work of my application. The program communicates with a sensor of moving laser Keyence LK-G5000 series with drivers provided by Keyence. When you run the program in the development environment, the program runs without any problem. However, when the construction program and run the program with an executable file, the program generates error 7 as shown below:
After looking through the previous posts on error 7 and executable environment on the forums AND I found that a lot of people mentioned that the development environment and runtime environment use different path structures. I also found a guide of NOR to solve this problem here:
http://digital.NI.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363
However, after following these instructions, I always get error 7 only when executing the program in an executable environment.
I've never used any .lvlib library in the past before, so I don't know if this may have been the issue (it was provided by Keyence.) The library includes 2 private screws that can only be called within the library, so I don't think I can go without using the library. There are screws in the library that use the DLL files (which are also included in this same library) through the node library function call in LabVIEW that appear not to be included when I create an executable file. Adding even manually the DLL files to the folder where the executable generates the same error 7.
Is this what I remember in my code to allow the program to function within the executable?
Fasteners are drivers for Keyence, my top level VI (GeoREF-Keyence controller.vi) and all my sub live
Best regards
Victor
Executables are taking a different path, as a start to debug the path as an indicator and see which path is being planned in executable mode?
-
strange question by inserting the data...
Hi everone,
I have a strange question. I'm not looking I do something wrong or is this a bug?
I do a simple ' insert into table (select statement). Everything is ok... It's inclusion. But when I run the
"select statement" separately (actual data I need to insert), I get different data inserted in the table.
-> I have observed something else where there is a "case statement" in the selection m than the data in the table are spoil...
EX:
SELECT TRIM (member_span.member_nbr) member_nbr-> this one I see the correct data
(
CASE
WHEN SUBSTR (member.member_nbr, 10, 2) = '00' THEN TRIM (member.member_nbr)
Of OTHER SUBSTR (member.member_nbr, 1, 9). '00'
END Subsciber_nbr),-> This data are spoil seeing incorrect data in the table...
Database version:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
PL/SQL Release 10.2.0.2.0 - Production
"CORE 10.2.0.2.0 Production."
AMT for HP - UX: release 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
< b > "" "did exactly the same thing in a different database. I don't have any problems out there"" "I'm getting problem only with this database < /b >"
Anyone know a bug related to this problem?
Please help me with this question...INSERT INTO member_load(member_nbr, subscriber, ymdbirth, security_group, group_nbr, network_id, cob_date) (SELECT TRIM(member_span.member_nbr) member_nbr, ( CASE WHEN SUBSTR(member.member_nbr, 10, 2) = '00' THEN TRIM(member.member_nbr) ELSE SUBSTR(member.member_nbr, 1, 9) || '00' END) subsciber_nbr, ( CASE WHEN LENGTH(member.ymdbirth) = 8 THEN member.ymdbirth ELSE NULL END) dob, ( CASE WHEN TRIM(member_span.group_nbr) IN('108076', '108077', '108078', '108079', '108080', '108081') THEN 'E' WHEN TRIM(member_span.group_nbr) IN('107001') THEN 'M' WHEN TRIM(member_span.group_nbr) IN('107005') THEN 'J' ELSE 'A' END) security_grp, TRIM(member_span.group_nbr), ( CASE WHEN TRIM(member_span.business_unit) = '01' THEN 'N' || TRIM(member_span.business_unit) || '-' || TRIM(member_span.prog_nbr) WHEN TRIM(member_span.business_unit) = '03' THEN 'N' || TRIM(member_span.business_unit) || '-' || TRIM(member_span.prog_nbr) || '-' || TRIM(member_span.carrier) ELSE NULL END) network_id, ( CASE WHEN LENGTH(member.ymdverify) = 8 THEN member.ymdverify ELSE NULL END) cob_date FROM member_span @dblink, member @dblink WHERE member_span.ymdeff > 20090908 AND member.member_nbr = member_span.member_nbr AND TRIM(void) IS NULL AND member_span.member_nbr NOT IN (SELECT member_nbr FROM member_span @dblink WHERE(20090908 BETWEEN ymdeff AND ymdend) AND TRIM(void) IS NULL) ) ;
Marella Phani wrote:
sven different NLS settings.... How can i find the NLS setting on both the databases.. can i query some metadata table to find that..
Please let me know how to proceed
Anurag...
It is not the problem with my SQL (that I know of). It gives a correct output that I need when I simply run the SQL query.
I just give a few examples of data (no real data).But when I run Insert in staging_table (select statement). I do not see the correct data in staging_table...
Thanks for all the replies...
You can check your NLS settings with
select name, value, isdefault from v$parameter where name like 'nls%';
or in sql * plus with
SQL> show parameter nls NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ nls_calendar string nls_comp string nls_currency string nls_date_format string nls_date_language string nls_dual_currency string nls_iso_currency string nls_language string AMERICAN nls_length_semantics string BYTE nls_nchar_conv_excp string FALSE nls_numeric_characters string nls_sort string nls_territory string AMERICA nls_time_format string nls_time_tz_format string nls_timestamp_format string nls_timestamp_tz_format string SQL>
Please be careful, that my comment about to_char was that under the assumption that you have a column for the number. If the column is VARCHAR2, do not add an extra TO_CHAR around this column. He could not give problems, but is not necessary (I think it can give problems in 9i, but impossible to find a small example yet).
An idea to find the source of your problem would be to change the NOT IN subquery. At least in a NOT EXISTS a subquery. Or even better find a way to access the remote tables only once instead of twice.
not exist
INSERT INTO member_load (member_nbr, subscriber ) ( SELECT TRIM(ms.member_nbr) member_nbr, ( CASE WHEN SUBSTR(ms.member_nbr, 10, 2) = '00' THEN TRIM(to_char(m.member_nbr)) ELSE SUBSTR(to_char(ms.member_nbr), 1, 9) || '00' END) subsciber_nbr FROM member_span@dblink ms, member@dblink m WHERE ms.ymdeff > 20090908 AND m.member_nbr = ms.member_nbr AND TRIM(ms.void) IS NULL AND NOT EXISTS (SELECT null FROM member_span@dblink ms1 WHERE (20090908 BETWEEN ms1.ymdeff AND ms1.ymdend) AND TRIM(ms1.void) IS NULL AND ms.member_nbr = ms1.member_nbr) ) ;
Is ymdeff a number or a string? If it is a string, then change 20090908 in '20090908'. If it is a number then keep as it is.
-
Error in what concerns while calling the simultaneous OFA program
Hi all
I call the concurrent program in the OPS page. So I wrote the code and I imported packages also correctly. But still, am getting error in the following code.
OADBTransaction tx = (OADBTransaction) getDBTransaction ();
java.sql.Connection pConncection = tx.getJdbcConnection ();
ConcurrentRequest cr = new ConcurrentRequest (pConncection);
String applnName = "CBRSE"; Application that contains the concurrent program
String cpName = "Open regulations report by user; The simultaneous program name
String cpDesc = "open case State by user (Seagate); simultaneous description of the program
Vector cpArgs = new Vector();
cpArgs.addElement (headerID);
cr.addLayout(applnName,cpName,"en","US","PDF"); XML Layout Editor.
requestId = cr.submitRequest (applnName, cpName, cpDesc, null, false, cpArgs); -JDev appears error in this line.
TX.Commit ();
return requestId;I imported the package as:
import com.sun.java.util.collections.Vector;
Import oracle.apps.fnd.cp.request.ConcurrentRequest;
Import oracle.apps.fnd.cp.request.RequestSubmissionException;Kindly help me in this.
Thank you and best regards,
Myvizhi
Hello
You pass bad parameter of class vector in the call.
Correct call should be sub type:
submitRequest (java.lang.String p1, p2, p3, p4, p5 Boolean java.lang.String, java.lang.String, java.lang.String, java.util.Vector p6)
cpArgs must be of type java.util.Vector
Kind regards
Sandeep M.
-
Zoom in &; out while using the pointer - this function can be disabled?
Hello all - I need help please. Most of the time when I use my new HP laptop, while I use the mouse Touchpad Square that moves the pointer on the screen, often, sometimes the screen zoom in or out. I found a function of zoom on the laptop, but I can't find anything that says "turn off the zoom feature. Do you know how or if the zoom feature can be disabled touch pad / mouse? It is very annoying to all means must adapt to my zoom, thanks-Tim
Hi Tim,.
Try the following.
Open windows control panel and on the top right, next to the display by: select "large icons". The new layout, select the mouse option, then the tab setting ClickPad (or device settings), and then click the settings button.
The option you're looking for is called "Pinch Zoom" (see image below) - remove the check mark next to this entry, and then click apply and then click Ok to save the setting.
Kind regards
DP - K
-
How to call the pl/sql function of the ofa
Dear friends,
I am trying to call a function of OPS page .but iam getting error as
java.sql.SQLException: ORA-01861: literal does not match the format string
ORA-06512: at line 1
It is my function, callable statement
FUNCTION CAR_LOAN_VALIDATION (P_PERSON_ID IN NUMBER
P_DEDUCTION_START_DATE AS
P_DEDUCTION_END_DATE AS
P_LOAN_VALUE NUMBER
)
RETURN VARCHAR2
IS
l_message VARCHAR2 (100);
l_contract_type VARCHAR2 (50);
l_loan_eligible_date DATE;
l_grade VARCHAR2 (15);
l_old_loan_end_date DATE;
l_max_loan_end_date DATE;
l_remaining_amount NUMBER;
l_eligible_amt NUMBER;
BEGIN
BEGIN
SELECT - papf.person_id,.
(SELECT the sense
OF hr_lookups
WHERE lookup_type = 'ADTC_CONTRACT_TYPE. '
AND lookup_code = attribut3) contract_type;
ADD_MONTHS (papf.original_date_of_hire, 11) loan_eligible_date,.
DECODE (paaf.ass_attribute2,
'President', '' President. ''
SUBSTR (ass_attribute2, INSTR (ass_attribute2, '.', 1, 1) + 1,)
3)
) grade.
(SELECT nvl (MAX (deduction_end_date), null)
OF xxadtc_car_loan_request
WHERE person_id = p_person_id) old_loan_end_date;
TO_DATE (ADD_MONTHS (p_deduction_start_date, 47)) max_loan_end_date
-to_date (ADD_MONTHS (sysdate, 47)) max_loan_end_date
IN l_contract_type
l_loan_eligible_date
l_grade
l_old_loan_end_date
l_max_loan_end_date
OF per_all_people_f women's wear, per_all_assignments_f ADP
WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND papf.business_group_id = 81
AND papf.person_id = paaf.person_id
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND papf.person_id = P_PERSON_ID;
EXCEPTION
WHILE others THEN
DBMS_OUTPUT. Put_line ('error');
END;
-to obtain the amount of the previous car loan-
BEGIN
SELECT to_number (prrv.result_value)
IN l_remaining_amount
OF per_all_people_f women's wear.
per_all_assignments_f ADP,
pay_assignment_actions CIP,
pay_run_results prr,
prrv pay_run_result_values,
petf pay_element_types_f,
pay_input_values_f pivf,
pay_element_classifications pec,
pay_payroll_actions App,
TPP per_time_periods
WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND papf.person_id = paaf.person_id
AND papf.business_group_id = 81
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND paaf.assignment_id = pac.assignment_id
AND pac.assignment_action_id = prr.assignment_action_id
AND prr.run_result_id = prrv.run_result_id
AND prr.element_type_id = petf.element_type_id
AND SYSDATE BETWEEN petf.effective_start_date AND petf.effective_end_date
AND prrv.input_value_id = pivf.input_value_id
AND SYSDATE BETWEEN pivf.effective_start_date AND pivf.effective_end_date
AND pivf.NAME = 'balance '.
AND petf.classification_id = pec.classification_id
AND pac.payroll_action_id = ppa.payroll_action_id
AND ppa.time_period_id = ptp.time_period_id
AND TO_CHAR (ptp.pay_advice_date, 'Mon-YYYY') =
To_char (SYSDATE, "Mon-YYYY")
AND petf.element_name = "Fashions ready Ahlami"
- and employee_number = '10185'
AND papf.person_id = p_person_id;
EXCEPTION
WHEN no_data_found THEN
-DBMS_OUTPUT. Put_line (' ERROR: no data!');
l_remaining_amount: = 0;
WHILE others THEN
DBMS_OUTPUT. Put_line ('error');
END;
Select GET_CAR_LOAN_ELIGI_AMT (P_PERSON_ID)
in l_eligible_amt
Double;
IF L_contract_type NOT IN ("Permanent") THEN
l_message: = 'contract Type is invalid. "
END IF;
IF l_loan_eligible_date < SYSDATE THEN
l_message: = 'Date to join is less then a year. "
END IF;
IF l_grade IN ('US', '00', 'AUS', ') THEN
"l_message: = ' your are not eligible Grade."
END IF;
IF l_old_loan_end_date < SYSDATE THEN
l_message: = 'previous loan period is not completed. "
END IF;
IF l_max_loan_end_date > P_DEDUCTION_END_DATE THEN
l_message: = 'Maxinum number of monthly payment for 48 months;
END IF;
IF l_remaining_amount > 0 THEN
l_message: = "amount of the previous car loan is waiting until";
END IF;
IF l_eligible_amt < p_loan_value THEN
l_message: = 'Please check eligible amount ";
END IF;
RETURN nvl(l_message,'S');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN "error";
END CAR_LOAN_VALIDATION;
END XX_CAR_LOAN_REQUEST_PKG;
CODE THAT CAN BE CALLED BY CODE - CO STATEMENT
{if (PageContext.GetParameter ("Submit")! = null)}
OAViewObject vo2 = (OAViewObject) am.findViewObject ("XxadtcCarLoanRequestEOVO1");
{if(VO1!=null)}
VO1. GetCurrentRow () .setAttribute ("LoanStatus", "pending approval");
int xxpersonId = pageContext.getEmployeeId ();
String xxDeductionStartDate = vo2.getCurrentRow ().getAttribute("DeductionStartDate").toString ();//pageContext.getParameter("DeductionStartDate").toString();
SimpleDateFormat dateFormat1 = new SimpleDateFormat("yyyy/mm/dd");
ConvertedDate1 date = dateFormat1.parse ("xxDeductionStartDate");
String xxDeductionEndDate = vo2.getCurrentRow ().getAttribute("DeductionEndDate").toString ();//pageContext.getParameter("DeductionEndDate").toString();
SimpleDateFormat dateFormat2 = new SimpleDateFormat("yyyy/mm/dd");
ConvertedDate2 date = dateFormat2.parse ("xxDeductionEndDate");
String xxLoanValue = vo2.getCurrentRow ().getAttribute("LoanValue").toString ();//pageContext.getParameter("LoanValue").toString();
int iLoanValue = Integer.parseInt (xxLoanValue);
System.out.println ("loop submit input");
System.out.println ("xxpersonId id is:" + xxpersonId);
System.out.println ("xxDeductionStartDate id is:" + xxDeductionStartDate);
System.out.println ("xxDeductionEndDate id is:" + xxDeductionEndDate);
System.out.println ("xxLoanValue id is:" + xxLoanValue);
TXN OADBTransaction = am.getOADBTransaction ();
String sql = "START: 1: = XXADTC_CAR_LOAN_REQUEST_PKG." CAR_LOAN_VALIDATION(:2,:3,:4,:5); END; « ;
CallableStatement cs = txn.createCallableStatement(sql,1);
String outputval = null; / / int outputval = 0;
try {}
System.out.println ("entry into loop try funtion callable validation");
cs.setInt(2,xxpersonId);
System.out.println ("cs setInt (2, xxpersonId);") is executed");
cs.setString(3,xxDeductionStartDate);
System.out.println ("cs.setString (3, xxDeductionStartDate is executed);'");
cs.setString(4,xxDeductionEndDate);
System.out.println ("cs.setString (4, xxDeductionEndDate is executed);'");
cs.setDate(3,xxDeductionStartDate);
cs.setDate(4,xxDeductionEndDate);
cs.setInt(5,iLoanValue);
cs.registerOutParameter(1,Types.VARCHAR); / / cs.registerOutParameter(1,Types.NUMERIC);
DSI Execute();
outputval = cs.getString (1); / / txn.commit ();
System.out.println (outputval);
TXN.Commit ();
If (outputval. Equals ("S"))
{
am.invokeMethod ("apply");
}
on the other
{
throw new OAException ("is:" + outputval, OAException.INFORMATION name of the Organization);
}
TXN.Commit ();
}
{} catch (Exception sqle)
try {}
DSI Close();
}
catch (System.Exception e)
{
throw OAException.wrapperException (e);
}
throw OAException.wrapperException (sqle);
}
}
Please help where is the error.
Help, please
Let me know for any clarification.
Thank you
Aravinda.
Ford Hi,
See below the code.
In the controller
java.sql.Date DeductionSDate; declare the variable
In LICS
String xxDeductionStartDate = vo2.getCurrentRow () .getAttribute ("DeductionStartDate");
TXN OADBTransaction = am.getOADBTransaction ();
if(xxDeductionStartDate!=null)
{
java.sql.Date startDate = txn.getOANLSServices () .stringToDate (xxDeductionStartDate);
DeductionSDate = startDate;
}
Assign to this cs.setDate(3,DeductionSDate);
Thank you
Dilip
-
error by calling the pl/sql function in column target
Hi guys,.
I get this error when my function in ODI:
Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "mySchema". "" GET_ODI_DEFAULT_VALUE (1) ": ongeldige ID-> 1 is a parameter
While in sql developer, I get a good result with the following query:
Select mySchema.get_odi_default_value (1) double;
In my target for the primary key table, I call a sequence of mySchema, and it works fine.
I tried the synxtax following in my target column mapping:
-< % = odiRef.getObjectName ("" "," GET_ODI_DEFAULT_VALUE (1) "", "D") % >
-< % = odiRef.getObjectName ("L", "GET_ODI_DEFAULT_VALUE", "D") 1% >
Thanks for you adviceYou use in the interface? If that's when you come to write the name of the function and make its contribution. It should return the value. As
GET_ODI_DEFAULT_VALUE (1) -
jsx files call the suddenly stopped functioning JSON functions - puzz. ING
I've been using JSON script functions downloaded from:
http://www.tonton-pixel.com/blog/JSON-Photoshop-scripting/
to fetch a layer and then passed style reset settings in this layer style, in a program javascript.
Everything worked fine, but suddenly when I run these scripts they are interrupted by an error during one of the JSON functions. It's very strange that I'm running an old jsx programs that were very well a few days ago, but now they do not. I'm wondering if I might inadvertently have edited one of the .jsxinc files, but the dates on all the .jsxinc files are 2 or 3 months ago if this doesn't seem to be the reason.
I am under Photoshop CS6.
Can anyone suggest what is happening here? This is very confusing - works fine one day and not the other...
It already happened to me in the past when I was running a script in the ExtendScript Toolkit and had the menu item ' Do not break on guarded Exceptions "* not * in the menu 'Debug '...
HTH,
Domestic-
-
How to call the quote istore functionality
Hello
We need call model of print quote istore functionality, like print model quote oracle quoting.
Thank you
LSP.Hello
Please check this path, for the simultaneous program pdf files.
* $LOG_HOME/appl/conc/out *.
Thank you
OS3 -
Strange Exception while moving the mouse over the node Java8
Hello
I did a customAnchorPane (extends AnchorPane) who plays the adding and removing of other nodes an animation. I get a strange exception when I move the mouse on some! nodes (not all). The source of the exception seems to be internal.
I have no idea how to solve this problem.
Someone at - it an idea?
I use the Java8
Exception in thread "Thread of Application JavaFX" java.lang.NullPointerException
at com.sun.javafx.scene.input.PickResultChooser.processOffer(PickResultChooser.java:183)
at com.sun.javafx.scene.input.PickResultChooser.offer(PickResultChooser.java:142)
at javafx.scene.Node.impl_computeIntersects(Node.java:4763)
at javafx.scene.Node.impl_intersects(Node.java:4730)
at javafx.scene.Node.impl_pickNodeLocal(Node.java:4660)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
at javafx.scene.layout.Region.impl_pickNodeLocal(Region.java:2699)
at javafx.scene.Node.impl_pickNode(Node.java:4695)
to javafx.scene.Scene$ MouseHandler.pickNode (Scene.java:3798)
to javafx.scene.Scene$ MouseHandler.access$ 1900 (Scene.java:3384)
at javafx.scene.Scene.pick(Scene.java:1832)
to javafx.scene.Scene.access$ 6700 (Scene.java:193)
to javafx.scene.Scene$ MouseHandler.process (Scene.java:3610)
to javafx.scene.Scene$ MouseHandler.access$ 1800 (Scene.java:3384)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1652)
to javafx.scene.Scene$ ScenePeerListener.mouseEvent (Scene.java:2443)
to com.sun.javafx.tk.quantum.GlassViewEventHandler$ MouseEventNotification.run (GlassViewEventHandler.java:314)
to com.sun.javafx.tk.quantum.GlassViewEventHandler$ MouseEventNotification.run (GlassViewEventHandler.java:243)
at java.security.AccessController.doPrivileged (Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
at com.sun.glass.ui.View.notifyMouse(View.java:898)
at com.sun.glass.ui.win.WinApplication._runLoop (Native Method)
to com.sun.glass.ui.win.WinApplication.access$ 300 (WinApplication.java:39)
to com.sun.glass.ui.win.WinApplication$ $4 1.run(WinApplication.java:112)
at java.lang.Thread.run(Thread.java:744)
Can you post a NBS that illustrates the problem?
If you have a version of Java 8 corresponding to the current source code, it seems that the system attempts to select a node that is not attached to the graphic scene. This could happen in theory (I guess) If you change the chart of scene on the FX Application thread; but it's a blind guess.
-
Strange behavior while making the table operation DOUBLE... !
Hello
Can we do DML/DDL operation on table DOUBLE?
To know the answer, I have done below the operation and found a strange behavior...
-run 5 times...
INSERT INTO DOUBLE
VALUES ('P');
commit;
Select * twice;
o/p-
MODEL
1 P
2 P
3 P
4 P
5 P
---------------------------------
updated double
MODEL of value = "K";
commit;
Select * twice;
o/p-
MODEL
2 h
2 P
3 P
4 P
5 P
Odd: 1 single line update... Why? I was updating all the lines.
If I run new update of command like below...
updated double
set MODEL = 'K', where dummy = "P";
commit;
Select * twice;
o/p-
MODEL
2 h
1 h
3 P
4 P
5 P
STRANGE: Now next updated record with 'K'... like that, if I run 5 times this o/p is as below...
MODEL
2 h
1 h
6.
4 K
6: 00
-------------------------------------
REMOVE double; -This also has data of delting 1 by 1 row... Why?
Can anyone tell me about this operation of behaivor?
Please provide any information about the DML/DDl operation on DUAl
Rgds,
PChttp://asktom.Oracle.com/pls/asktom/f?p=100:11:7955478831730544:P11_QUESTION_ID:1562813956388
Tom says:
Let me start by saying:-DOUBLE is owned by SYS. SYS is the owner of the data dictionary,
so DOUBLE fits in the data dictionary. You must not modify the data dictionary
through SQL ever - weird things can and will happen - you are just a few of
them. We can do a lot of strange things happen in Oracle by updating the data dictionary.
It is recommended, supported or a very good idea.Double is just a convienence table. You do not need to use it, you can use anything you
Here you are. The advantage to double is the optimizer includes double is a special line, a
column table - when it is used in queries, it uses this knowledge during the development of the
plan.
...
the optimizer includes double is a special, magical table 1 row... It's just the way it works. If all goes well
you reset double back to 1 row after your tests, or you've just totally broken your database!
.. .dual = magic. Dual is a table of a line but with more than 1 or less is
dangerous. You update the data dictionary. You should expect naturally very bad
things are happening.
Maybe you are looking for
-
Pages is not displayed correctly
It's terrible. I used Firefox and it predecessors since I started to use a computer in 1994. Now I am now forced to use IE because I can't solve my problem that began a couple of Firefox versions there. I tried the police thing hardware acceleration,
-
Satellite A210-19 screen goes black all of a sudden
Hi all. I'm new to this forum.I bought my new Satellite A210-19 has a week ago and I have read many things on computers laptops tohiba and saw that there are models with this problem: the SCREEN SUDDENLY GOES BLACK and all you can do is push the butt
-
Strange screen with acer Liquid Z220 shutdown problem
This has happened with my new phone smart acer Liquid Z220. Turning on the acer screen "android-powered" rises. The three logo (my provider). But then the screen turns white. However, the phone doesn't work and responds to the touch (without seeing m
-
utility vmnetcfg with VMware Player 4
Is it possible and how to get, please?
-
When I move large amounts of images in Lightroom and the new folders is always left
When I move a selection of files from one folder to another in lightroom, there is always an error with at least an image and it does not have the shot and ends up. I can then reselect this image and then move it again but just curious as to why this