Oracle BAM Switch Function Not working as Expected
I am using following code to create days bucket in VIEW. SCHEDULE_SHIP_DATE data type is datetime.
This code shows me 61 for every test case. Even values are present for other case also like -1, -10.
Please help me in this user case
Switch((Now()-{SCHEDULE_SHIP_DATE})/86400)
Case(-1):(15)
Case(-2):(15)
Case(-3):(15)
Case(-4):(15)
Case(-5):(15)
Case(-6):(15)
Case(-7):(15)
Case(-8):(15)
Case(-9):(15)
Case(-10):(15)
Case(-11):(15)
Case(-12):(15)
Case(-13):(15)
Case(-14):(15)
Case(-15):(15)
Case(-16):(30)
Case(-17):(30)
Case(-18):(30)
Case(-19):(30)
Case(-20):(30)
Case(-21):(30)
Case(-22):(30)
Case(-23):(30)
Case(-24):(30)
Case(-25):(30)
Case(-26):(30)
Case(-27):(30)
Case(-28):(30)
Case(-29):(30)
Case(-30):(30)
Case(-31):(60)
Case(-32):(60)
Case(-33):(60)
Case(-34):(60)
Case(-35):(60)
Case(-36):(60)
Case(-37):(60)
Case(-38):(60)
Case(-39):(60)
Case(-40):(60)
Case(-41):(60)
Case(-42):(60)
Case(-43):(60)
Case(-44):(60)
Case(-45):(60)
Case(-46):(60)
Case(-47):(60)
Case(-48):(60)
Case(-49):(60)
Case(-50):(60)
Case(-51):(60)
Case(-52):(60)
Case(-53):(60)
Case(-54):(60)
Case(-55):(60)
Case(-56):(60)
Case(-57):(60)
Case(-58):(60)
Case(-59):(60)
Case(-60):(60)
default(61)
I am using following code to create days bucket in VIEW. SCHEDULE_SHIP_DATE data type is datetime.
This code shows me 61 for every test case. Even values are present for other case also like -1, -10.
Please help me in this user case
Switch((Now()-{SCHEDULE_SHIP_DATE})/86400)
Case(-1):(15)
Case(-2):(15)
Case(-3):(15)
Case(-4):(15)
Case(-5):(15)
Case(-6):(15)
Case(-7):(15)
Case(-8):(15)
Case(-9):(15)
Case(-10):(15)
Case(-11):(15)
Case(-12):(15)
Case(-13):(15)
Case(-14):(15)
Case(-15):(15)
Case(-16):(30)
Case(-17):(30)
Case(-18):(30)
Case(-19):(30)
Case(-20):(30)
Case(-21):(30)
Case(-22):(30)
Case(-23):(30)
Case(-24):(30)
Case(-25):(30)
Case(-26):(30)
Case(-27):(30)
Case(-28):(30)
Case(-29):(30)
Case(-30):(30)
Case(-31):(60)
Case(-32):(60)
Case(-33):(60)
Case(-34):(60)
Case(-35):(60)
Case(-36):(60)
Case(-37):(60)
Case(-38):(60)
Case(-39):(60)
Case(-40):(60)
Case(-41):(60)
Case(-42):(60)
Case(-43):(60)
Case(-44):(60)
Case(-45):(60)
Case(-46):(60)
Case(-47):(60)
Case(-48):(60)
Case(-49):(60)
Case(-50):(60)
Case(-51):(60)
Case(-52):(60)
Case(-53):(60)
Case(-54):(60)
Case(-55):(60)
Case(-56):(60)
Case(-57):(60)
Case(-58):(60)
Case(-59):(60)
Case(-60):(60)
default(61)
Similar Messages
-
Hello.
This has also been posted in the Community: Adobe Muse Bugs forum.
I've been having some odd/irregular issues though they have now become fairly predictable in nature. The issue is in regards to Adobe Muse (2014.3) and the availability of web fonts provided through the applications "Add Web Fonts" feature. Once added they perform as expected but then become "unavailable." Full details below. I have been a Creative Cloud Complete subscriber for a number of years so am fairly familiar with the way in which the system works minus a few issues that have popped up now and then, this one included.
System Info:
Adobe Creative Cloud (Full Subscription): Version 1.9.1.474
Adobe Muse: Version 2014.3
OS X Yosemite: 10.10.2
Here is a recap of what has been taking place. I'll detail the bug as best I can.
1. Created new Adobe Muse project. Everything normal.
2. Chose to add a new font through the "Add Web Fonts" function within Muse. A note, my Creative Cloud App is running/open at all times (in file synch mode).
3. Chose new fonts using above. All seemed fine (see screenshots below).
4. Fonts also were indicated as being "Synched" within Creative Cloud (screenshot below).
5. As expected the two fonts were added to the list of available Web Fonts within Muse (first screenshot below - left). I added them successfully to my site. Well after a number of hours I went back to this same font selection menu within Muse and the fonts were still visible yet the sub-menu that one would expect showing various forms (i.e. Bold, Italic, etc) was not available. In a sense the font could not be chosen from the list even though the name is clearly visible (second screenshot below - right).
Have no idea what may have been wrong. Saved Muse project, closed and reopened - nothing changed. Created new project - fonts still "shown" in menu but can't be used. Did find a vague description using Google of similar problem (different application) which recommended closing Creative Cloud Desktop App and reopening as one possible solution. This DID WORK initially yet the problem, though corrected for a period of time (few hours at most), would reappear again where one would again see yet not be able to choose from the two Web Fonts. Went so far as to uninstalling the Creative Cloud Desktop application and reinstalling. Still have not solved the problem.
Any thoughts as to what this may be would be welcome. Restarting the CC app each and every time the fonts become unavailable is quite time consuming to my workflow.
Thanks!Abhishek,
Thank you for the reply. Wanted to comment on a few things.
I reviewed the other post that you've referenced. Nothing unusual jumped out at me as something that I was not aware of. I'm running an older iMac that is in good working condition. 2.4 GHz Intel Core 2 Duo, 24" screen. I know this issue is fleeting, as I stated earlier typically can be corrected with a restart of the CC Desktop application (that I am always running at startup). I have not been able to determine that shutting down Muse corrects the issue. I would, at this time say it doesn't.
I did open InDesign and see if the fonts in question, Open Sans and Open Sans Condensed, were present and usable. They were. The fonts are shown as being synched in my CC Desktop app window (even if they are not "installed" in Muse). That is expected but it may be a bug in how Muse brings in a font from those that are already synched to your CC account. I don't know enough about how that works to comment.
And just to complicate matters, Muse seems to be working again, the fonts that is. I brought them back in and they are showing up in all locations (which there are actually three - see screen shots).
First is primary text menu dropdown (to right of orange "Text").
Second is if you click orange Text link. Another drop down menu appears.
And lastly, the Text Panel to right of screen.
I also wanted to add this extra bit of information, for what it is worth. When the issue arises and you do not get the sub-menu dropdown showing various styles of the font (italics, bold, etc.), one can use click on the missing font if you had used it previously and it is present in the "previously used font" list.
Cheers! -
Customer contact functionality not working as expected
Good day, i'm new here, just joined today because of this problem i'm having.
I created a Promise-to-Pay on 18.07.2011 to be paid on 28.07.2011
The problem is that it still appears in the Open Items Worklist when i run udm_supervisor under the specified collection group.
It is not supposed to be there since the PTP (promise-to-pay) was already created.
When you exit a customer as reached (in PTP) it should move to the completed items list.
Can somebody please help me out? thank you very much!Hello thank you for your reply.
How do i regenerate the worklist? you see this problem was assigned to me as a ticket. The user (who created the promise to pay) is baffled because the customer still appears in the worklist after the PTP was created. And so working as support, i was tasked to investigate why this happened.
So it could be that the user regenerated the worklist? and if so, why has valuation not increased in the open items list?
Thank you for your kind reply -
Autowaitlisting functionality not working as expected
Hello everyone - we are attempting to get Auto waitlisting working on our OLM implementation and have so far been unable to do so. We have an SR open with Oracle - but I wanted to check in here to see if anyone has had a similar experience.
We believe we have all the settings in place on our profile to have the autowaitlisting process work - but so far no luck. We have followed all guidelines in the OLM user guide and other references on Metalink - but here's what is happening:
- I set a test offering with maximum number of enrollments at 2
- I then administratively enroll 5 people leaving the class at full and three people waitlisted
- I then manually unenroll one of the enrolled individuals - bringing the class back to normal with one enrollment
- I then run the Cancel Enrollment program
- Going back in - there has been no change (1 active enrollment, 1 cancelled enrollment and 3 waitlisted)
- I can then go into the course in the catalog and enroll from the front end which brings the course back to full
Basically - the waitlisted employees are being ignored by the process.
Any thoughts/ideas?
Edited by: JuliR on Feb 11, 2009 8:30 AMI think you are stuck with it and may have to resort to a manual process. But, I like a challenge...so I haven't given up yet !
I think another problem for the automatic waitlist process is that the online course is probably defined as asynchronous, so it can take place at any time. Therefore, the cancellation program won't really know what to do.
Just so I have it clear in my own mind, if you have defined a maximum number of attendees as 500, are people self erolling and does the system place them into waitlist status after person number 501 tries to enrol?
Did you check the profile I mentioned? I wonder if it would accept a negative value?
Regards
Tim
Edited by: TimW on Feb 12, 2009 4:05 PM -
RIGHT function not working as expected
Hi,
Am trying to run the example given in the documentation for RIGHT function.
When a call is made, the IE is opened but the graph is not displayed, instead an empty web page with a header having copyright and E-mail : [email protected] is shown.
Code used:
library(ggplot2)
set.seed(123456)
subArray <- diamonds[sample(1:nrow(diamonds), 1000, TRUE), ]
fitObj <- loess(price ~ carat, subArray) xRange <- range(subArray$carat) fitArray <- data.frame(carat = seq(xRange[1], xRange[2], length.out = 100))
fitArray$price <- predict(fitObj, newdata = fitArray)
obj <- RIGHT({plot(price ~ carat, subArray, type = "p", color = "color") lines(price ~ carat, fitArray) hist(color, subArray, color = "cut") boxplot(price ~ color, subArray) pie(cut, subArray) search(subArray) table(subArray)})
print(obj)
OS: Windows 7 64 bit, IE8
- A warning is shown saying that the IE has restricted the web page from running scripts, did right click and selected Allow Blocked content.
- Below Java script error are shown,
Message: Object doesn't support this property or method
Line: 1256
Char: 9
Code: 0
URI: file:///C:/Users/swuppala.ORADEV/Documents/R/win-library/3.0/RIGHT/JavaScript/kinetic-v4.7.0.js
Message: Object doesn't support this property or method
Line: 5
Char: 1
Code: 0
URI: file:///C:/Users/swuppala.ORADEV/Documents/R/win-library/3.0/RIGHT/JavaScript/node_event.js
Message: 'Kinetic.Factory' is null or not an object
Line: 487
Char: 5
Code: 0
URI: file:///C:/Users/swuppala.ORADEV/Documents/R/win-library/3.0/RIGHT/JavaScript/box.js
Message: Access is denied.
Line: 32
Char: 2
Code: 0
URI: file:///C:/Users/swuppala.ORADEV/Documents/R/win-library/3.0/RIGHT/JavaScript/structure.js
Please suggest.
Thanks,
Swathi.Looking further at the RIGHT package wiki FAQs, you might try another browser such as Chrome or Firefox and update the local security policy as described.
Sherry -
Oracle Exchange partition feature not working as expected?
I used the Exchange Partition feature to swap segments between 2 tables- one Partitioned, and one Non-Partitioned. The exchange went well. However, all the data in the partitioned table has gone to the partition which stores the maxbound values.
Any ideas if this is the default behavior or have i missed out something?
/** actual table names changed due to client confidentiality issues */
-- Drop the 2 intermediate tables if they already exist
drop table ordered_inv_bkp cascade constraints ;
drop table ordered_inv_t cascade constraints ;
1st create a Non-Partitioned Table from ORDERED_INV and then add the primary key and unique index(s):
create table ordered_inv_bkp as select * from ordered_inv ;
alter table ordered_inv_bkp add constraint ordinvb_pk primary key (ordinv_id) ;
create unique index ordinv_scinv_uix on ordered_inv_bkp(
SCP_ID ASC,
INV_ID ASC,
ANATLOC_ID ASC,
SOI_ID ASC,
CANCEL_TS ASC );
-- Next, we have to create a partitioned table ORDERED_INV_T with a similar
-- structure as ORDERED_INV.
-- This is a bit tricky, and involves a pl/sql code
declare
l_dt_start DATE;
l_ptn VARCHAR2(50);
cnt PLS_INTEGER;
l_cnt_initial PLS_INTEGER;
ts_name VARCHAR2(50);
l_sql VARCHAR2(10000);
ts_indx VARCHAR2(100);
l_num_errors NUMBER ;
l_num_errors_ok NUMBER ;
l_user_name VARCHAR2(50) ;
l_sysdate VARCHAR2(50);
l_cnt_script PLS_INTEGER ;
BEGIN
SELECT COUNT(*) INTO cnt FROM user_TABLES
WHERE TABLE_NAME='ORDERED_INV_T';
IF cnt=0 THEN
l_sql:= 'CREATE TABLE ORDERED_INV_T
PARTITION BY RANGE (ORDINV_TIME)
( PARTITION TP_ORDINV_MAX VALUES LESS THAN (MAXVALUE)
TABLESPACE TEST_TPT_DATA
ENABLE ROW MOVEMENT
AS SELECT * FROM ORDERED_INV WHERE 1=0 ';
EXECUTE IMMEDIATE l_sql;
-- Add section to set default values for the intermediate table OL_ORDERED_INV_T
FOR crec_cols IN (
SELECT u.column_name ,u.nullable, u.data_default,u.table_name
FROM USER_TAB_COLUMNS u WHERE
u.table_name ='ORDERED_INV' AND
u.data_default IS NOT NULL )
LOOP
l_sql:= 'ALTER TABLE ORDERED_INV_T MODIFY '||crec_cols.column_name||' DEFAULT '||crec_cols.data_default;
-- dbms_output.put_line('chk data default => ' || l_sql) ;
EXECUTE IMMEDIATE l_sql;
END LOOP;
END IF;
-- Split partition to create more partitions
select TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS') into l_sysdate from dual;
DBMS_OUTPUT.PUT_LINE ('Finding oldest value at ' || l_sysdate) ;
EXECUTE IMMEDIATE 'SELECT NVL(TRUNC(MIN(OL_ORDINV_TIME),''MONTH''),TRUNC(SYSDATE,''MONTH''))
FROM ORDERED_INV' INTO l_dt_start;
select TO_CHAR(SYSDATE,'YYYY-MM-DD HH24:MI:SS') into l_sysdate from dual;
DBMS_OUTPUT.PUT_LINE ('Started creating partitions at ' || l_sysdate) ;
LOOP
EXIT WHEN l_dt_start > ADD_MONTHS(TRUNC(SYSDATE,'MONTH'),1);
l_ptn:='tp_ordinv_'|| TO_CHAR(l_dt_start,'YYYYMM');
l_sql:= 'ALTER TABLE ORDERED_INV_T
split partition TP_ORDINV_MAX at (TO_DATE('''|| TO_CHAR(ADD_MONTHS(l_dt_start,12),'YYYYMM') ||''',''YYYYMM''))
into ( partition '||l_ptn||' , partition TP_ORDINV_MAX)';
execute immediate l_sql;
l_dt_start:=add_months(l_dt_start,12);
END LOOP;
END;
-- Also, add indexes to this table
alter table ORDERED_INV_T add constraint ordinvt_pk primary key (ordinv_id) ;
create unique index ordinvt_uix on ordered_inv_t(
SCP_ID ASC,
INV_ID ASC,
ANATLOC_ID ASC,
SOI_ID ASC,
CANCEL_TS ASC );
-- Next, use exchange partition for actual swipe
-- Between ordered_inv_t and ordered_inv_bkp
-- Analyze both tables : ordered_inv_t and ordered_inv_bkp
BEGIN
DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'HENRY220', TABNAME => 'ORDERED_INV_T');
DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'HENRY220', TABNAME =>'ORDERED_INV_BKP');
END;
SET TIMING ON;
ALTER TABLE ordered_inv_t
EXCHANGE PARTITION TP_ORDINV_MAX
WITH TABLE ordered_inv_bkp
WITHOUT VALIDATION
UPDATE GLOBAL INDEXES;
-- Check query :
select partition_name, num_rows, high_value from user_tab_partitions where table_name = 'ORDERED_INV_T' ;
These are the results:
TP_ORDINV_199801 0 TO_DATE(' 1999-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_199901 0 TO_DATE(' 2000-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200001 0 TO_DATE(' 2001-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200101 0 TO_DATE(' 2002-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200201 0 TO_DATE(' 2003-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200301 0 TO_DATE(' 2004-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200401 0 TO_DATE(' 2005-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200501 0 TO_DATE(' 2006-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200601 0 TO_DATE(' 2007-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200701 0 TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200801 0 TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_200901 0 TO_DATE(' 2010-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_201001 0 TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_201101 0 TO_DATE(' 2012-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_201201 0 TO_DATE(' 2013-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
TP_ORDINV_MAX 24976 MAXVALUE
Pay attention to the last record>
used the Exchange Partition feature to swap segments between 2 tables- one Partitioned, and one Non-Partitioned. The exchange went well. However, all the data in the partitioned table has gone to the partition which stores the maxbound values.
>
That isn't possible. The data in the partition before the exchange could only have gone to the non-partitioned table.
Please edit you post and add \ tags on the lines before and after your code to preserve formatting. See the FAQ for details. -
Rank function not working as expected
select a.col1 col1,a.col2 col2,sum(B.col3) /sum(B.col4) calc_col3, dense_rank() over(partition by a.col1 ORDER BY a.col2,(sum(B.col3) /sum(B.col3)) rank
FROM table1 b,table2 a group by a.col1,a.col2;
i am firing this query to find the rank based on grouping of col1 and finding the rank based on the highest value of calc_col3
Thankscol1 col2 calc_col3
A A1 102.92
A A2 102.98
A A3 104.01
A A4 104.81
A A5 110.17
A A6 112.2
A A7 114.51
A A8 119.36
A A9 65.39
B B1 113.95
C C1 0
D D1 81.72
col1,col2 are from table1 and calc_col3 is the calculated column of table2
calc_col3 = sum(col4)/sum(col3)
they are joined based on col1 value and results is shown above
I WANT to display the data as
col1 col2 calc_col3 RANK
A A1 102.92 8
A A2 102.98 7
A A3 104.01 6
A A4 104.81 5
A A5 110.17 4
A A6 112.2 3
A A7 114.51 2
A A8 119.36 1
A A9 65.39 9
B B1 113.95 1
C C1 0 1
D D1 81.72 1
i want to display the data based on grouping of col1. and findout the rank based on values in calc_col3 -
Keyboard not working as expected
I woke up this morning and suddenly found a few problems with my keyboard:
The caps lock light is reversed so that the caps is off when the light is on and vice versa
The placement of some of the symbols are moved around. The @ is to the right of the P button and Shift-2 produces a ". Shift-9 is ), shift-8 is ( and many other switched like this.
Resetting PRAM or the computer doesnt fix thisHello there, morris152.
The following Knowlede Base article provides some great information for troubleshooting your issue with the keyboard:
One or more keys on the keyboard do not respond
http://support.apple.com/kb/ts1381
Particularly:
Some keys don't work as expected
From the Apple menu, choose System Preferences.
From the View menu, choose Speech.
Click the Text to Speech tab.
If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
Click the Accessibilty or Universal Access pane in System Preferences, then click the Keyboard tab.
Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
In the Accessibilty or Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
If the issue persists, use Keyboard Viewer to help isolate the issue:
Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
From the Input (flag) menu, choose Show Keyboard Viewer.
If the keyboard is connected and detected by OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working. If the keys work while started from the Install disc, then the keyboard itself is working correctly. Use How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
Not able to sign into Blackberry Protect. Backup and Restore function not working. Message is: "Your device isn't associated with a Blackberry ID." My Blackberry Messenger and Blackberry World is working fine so I am sure its not an ID issue on the phone. I can sign into Link, Blackberry.com and Protect. I see my device in Protect but cannot send messages or view it on a map. Times out with cannot reach device message. BB Protect on Device has a swirling circle beside the on/of switch. Cannot turn off.
I have deleted Link and re-installed.
I have reset phone to default(factory) and signed in.
OS level is 10.2.1.3062
BB Link is 1.2.3.56
Solved!
Go to Solution.I managed to figure this out myself. I had to delete the device from the Blackberry Protect website. protect.blackberry.com. I wiped my device again and signed in with my Blackberry ID. I dont know if the step of wiping was necessary as I did not try my backup with the current configuration on the device following the delete. Restore is in progress for me!
-
Oracle date parameter query not working?
http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
Delete
from CONCURRENCYTESTITEMS
where ITEMID = :xItemId
and ROWVERSION = :xRowVersion_prev
The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
The same code & query works in Sql Server, but not Oracle.
Public Function CreateConnection() As IDbConnection
Dim sl As New SettingsLoader
Dim cs As String = sl.ObtainConnectionString
Dim cn As OracleConnection = New OracleConnection(cs)
cn.Open()
Return cn
End Function
Public Function CreateCommand(connection As IDbConnection) As IDbCommand
Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
cmd.BindByName = True
Return cmd
End Function
<TestMethod()>
<TestCategory("Oracle")> _
Public Sub Test_POC_Delete()
Dim connection As IDbConnection = CreateConnection()
Dim rowver As DateTime = DateTime.Now
Dim id As Decimal
Using cmd As IDbCommand = CreateCommand(connection)
cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.ReturnValue
p.DbType = DbType.Decimal
p.ParameterName = "myOutputParameter"
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion"
v.Value = rowver
cmd.Parameters.Add(v)
cmd.ExecuteNonQuery()
id = CType(p.Value, Decimal)
End Using
Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.Input
p.DbType = DbType.Decimal
p.ParameterName = "xItemId"
p.Value = id
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion_prev"
v.Value = rowver
v.Precision = 6 '????
cmd.Parameters.Add(v)
Dim cnt As Integer = cmd.ExecuteNonQuery()
If cnt = 0 Then Assert.Fail() 'should delete
End Using
connection.Close()
End Sub
Schema:
-- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
CREATE TABLE "CONCURRENCYTESTITEMS" (
"ITEMID" NUMBER(19,0) NOT NULL,
"NOTES" NCHAR(200) NOT NULL,
"ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
STORAGE (
NEXT 1048576 )
Sequence:
-- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
START WITH 1
CACHE 20
MAXVALUE 9999999999999999999999999999still not comming...
i have one table each entry is having only one fromdata and one todate only
i am running below in sql it is showing two rows. ok.
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between '830' and '850' and t1.U_frmdate ='20160801' and t1.u_todate='20160830'
in commond promt
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between {?FromEmid} and {?ToEmid} and t1.U_frmdate ={?FDate} and t1.u_todate={?TDate}
still not showing any results.. -
Notification "Launch the app and go to the library" not working as expected
Hello,
we are sending notification "Launch the app and go to the library" - but it's not working as expected, it's still just launching app with last open folio.
Whats wrong there? Do we need v30 app? We have V29, but this is not mentioned in documentation.
Thanks
MartinAh.
Ok, now it's clear.
Anyway i would appreciate possibility to force viewer to switch to library view after new issue is detected, even without notification. Quite often requested feature - "there is new cover in Newsstand, but customer don't know how to download new publication easily".
Martin -
DB Adapter polling as singleton process is not working as expected
Am using poller DB adapater to control the transaction per seconds to the downstream system and i want this poller process as singleton (One instance should be in running state at a time).
As suggested in oracle documents , below is the parameters configured in composite.xml file.
<service name="polling_Mange_Alert_Events"
ui:wsdlLocation="polling_Mange_Alert_Events.wsdl">
<interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/db/Application1/int_app_manageAlerts/polling_Mange_Alert_Events#wsdl.interface(polling_Mange_Alert_Events_ptt)"/>
<binding.jca config="polling_Mange_Alert_Events_db.jca">
<property name="singleton">true</property>
</binding.jca>
<property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
<property name="jca.retry.interval" type="xs:int" many="false"
override="may">1</property>
<property name="jca.retry.backoff" type="xs:int" many="false"
override="may">2</property>
<property name="jca.retry.maxInterval" type="xs:string" many="false"
override="may">120</property>
</service>
Below is the JCA file parameters configured :
<adapter-config name="polling_Mange_Alert_Events" adapter="Database Adapter" wsdlLocation="polling_Mange_Alert_Events.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/vff-int-fus" UIConnectionName="PT_APPINFRA" adapterRef=""/>
<endpoint-activation portType="polling_Mange_Alert_Events_ptt" operation="receive">
<activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
<property name="DescriptorName" value="polling_Mange_Alert_Events.ManageAlertEvents"/>
<property name="QueryName" value="polling_Mange_Alert_EventsSelect"/>
<property name="MappingsMetaDataURL" value="polling_Mange_Alert_Events-or-mappings.xml"/>
<property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
<property name="MarkReadColumn" value="TRANSACTION_STATUS"/>
<property name="MarkReadValue" value="Processing"/>
<property name="PollingInterval" value="10"/>
<property name="MaxRaiseSize" value="5"/>
<property name="MaxTransactionSize" value="5"/>
<property name="NumberOfThreads" value="1"/>
<property name="ReturnSingleResultSet" value="false"/>
<property name="MarkUnreadValue" value="Pending"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
This poller process is running on clustered environment (2 soa nodes) and it is not working as expected as singleton process.
Please advise to solve this issue ?Hi,
1.Set Singleton property outside <binding.jca> like this:
<binding.jca config="polling_Mange_Alert_Events_db.jca"/>
<property name="singleton">true</property>
<property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
<property name="jca.retry.interval" type="xs:int" many="false"
2.Also you can try setting these values in jca file:
<property name="RowsPerPollingInterval" value="100"/>
<property name="MaxTransactionSize" value="100"/>
3. try to increase the polling interval time.
Regards,
Anshul -
UpsertDocumentAsync not working as expected
I'm using UpsertDocumentAsync to either insert or update a document, but it doesn't seem to work as expected. When I use it either inserts / creates or
replaces the document. I doubt I'm calling it wrong?
await client.UpsertDocumentAsync(documentsLink, this.document);
Working as expected (but with incorrect name) or not working as expected?
Regards,
Joakim
Joakim Rosendahl Consultant at OnTrax AB, Sweden.Found this one (doesn't contain the work PATCH though)
http://feedback.azure.com/forums/263030-documentdb/suggestions/7075256-provide-for-upsert
Voted for that one, but it doesn't seem like the developer community is interested in upsert/patch functionality =/.
Joakim Rosendahl Consultant at OnTrax AB, Sweden. -
My off switch is not working on my iphone 5
Make an appointment at an Apple Store and have them evaluate the device and possibly replace it if still under warranty.
In the meantime, you can enable AssistiveTouch which floats a virtual button on-screen which can mimic all hardware buttons on the device:
Settings>General>Accessibility>AssistiveTouch: turn ON
*Note* If you power off the device using the AssistiveTouch panel (tap the on-screen AssistiveTouch button, Device>Lock Screen (tap and hold to power off)), you will NOT be able to power on the device if your Sleep/Wake (power) button is not functioning. You will need to connect the powered off device either to a PC's USB port or an external charger to power the device back on. -
I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because its a prestiage of Apple Company.
Pls inform me how can i resolve the problem of wifi.You have to go to autherized iPhone agent.
Maybe you are looking for
-
Are there any plans to have a Cisco Jabber client on linux?
-
I have downloaded the "pages" app. Before I downloaded it I looked in the pictures and it shows a microphone and a globe. I have downloaded it and now have no microphone or globe!!! Please help on how I can get this!!!!
-
Newbie Setup - Fail2ban & MSMTP
Hi Guys I've installed arch a couple of days ago and so far so good until today... I installed msmtp instead of ssmtp due to the lack of development now, that's configured and can send mail through my gmail account. I then installed fail2ban and log
-
ITunes library deleted when updating, how do I get my albums back?
I lost over £100 worth of albums and audio books when my iPhone decided it needed to update. During the update process it crashed and I had to restore the factory settings. I was able to reinstate all my photos, contacts etc, but any music etc I had
-
Deleting and placing art on artboards
I'm just learning how to use multiple artboards in Illustrator CS4 and although I've read all the help and chapters on artboards in three different Illustrator books and watched several video tutorials I can't seem to figure out what's happening. If