How to avoid exception when setting a date in an Edit control?
I'm have made a Coded UI Test with VS 2012 for a web application of a colleague.
In that web application is a table with some entry fields of type Edit.
In one of these fields (called "DatumAb") i can enter a date in format "dd.mm.yyyy" (day, month and year).
Coded UI Test identifies the control by the name "von (tt.mm.jjjj)", which is in fact just a placeholder.
When i replay my recording i get an exception which says, that either the control is not ready or not valid.
Next i have called the DrawHighlight method for that control.
While the replay i can see the blue frame, so the control is accessible.
Can anybody tell me, what's going wrong?
Here an excerpt from the HTML-Code of the web application with the date field:
<table class="table table-hover table-bordered table-condensed table-well table-responsive">
<thead>
<tr>
<th class="ng-scope" translate="global.datum.Von">von</th>
</tr>
</thead>
<tbody>
<!-- ngRepeat: vb in vm.formData.Vorbeschaeftigungen -->
<tr class="ng-scope" ng-repeat="vb in vm.formData.Vorbeschaeftigungen">
<td>
<input value="11.02.2015" rm-date-input="" ng-model="vb.DatumAb" class="form-control ng-pristine ng-untouched ng-valid ng-valid-rm-date-input ng-valid-rm-date-input-format
ng-valid-rm-date-input-day ng-valid-rm-date-input-month ng-valid-rm-date-input-year" placeholder="von (tt.mm.jjjj)" type="text">
</td>
And at last the exception message.
Sorry - only in german.
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException wurde nicht von Benutzercode behandelt.
HResult=-268111872
Message=Das Steuerelement ist nicht verfügbar oder nicht gültig. Weitere Details:
TechnologyName: "MSAA"
Name: "von (tt.mm.jjjj)"
ControlType: "Edit"
Source=Microsoft.VisualStudio.TestTools.UITesting
BasicMessage=Das Steuerelement ist nicht verfügbar oder nicht gültig.
StackTrace:
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.AddUITestControlDescriptionToException(SystemException exception, IPlaybackContext context)
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl)
bei Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, Object parameterValue, UITestControl uiControl)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyPrivate(String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass14.<SetProperty>b__13()
bei Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinEdit.set_Text(String value)
bei TestMitVorbeschaeftigungen.UIMap.DatumVon() in c:\CodedUiTests\Tests mit Webanwendung\TestMitVorbeschaeftigungen\TestMitVorbeschaeftigungen\UIMap.Designer.cs:Zeile 92.
bei TestMitVorbeschaeftigungen.CodedUITest1.CodedUITestMethod1() in c:\CodedUiTests\Tests mit Webanwendung\TestMitVorbeschaeftigungen\TestMitVorbeschaeftigungen\CodedUITest1.cs:Zeile 37.
InnerException: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException
HResult=-268111872
Message=Das Steuerelement ist nicht verfügbar oder nicht gültig.
Source=Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa
BasicMessage=Das Steuerelement ist nicht verfügbar oder nicht gültig.
StackTrace:
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.MsaaUtility.MapAndThrowException(SystemException e, Boolean throwNotSupported)
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.AccWrapper.set_Value(String value)
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.MsaaElement.set_Value(String value)
bei Microsoft.VisualStudio.TestTools.UITesting.WinPropertyProvider.SetValueInEditableControl(UITestControl editControl, String propertyValue)
bei Microsoft.VisualStudio.TestTools.UITesting.WinPropertyProvider.SetEditProperty(String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.WinPropertyProvider.SetPropertyValue(UITestControl uiControl, String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.SetPropertyValueWrapper(UITestControl uiControl, String propertyName, Object value)
bei Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
InnerException: System.NotImplementedException
HResult=-2147467263
Message=Die Methode oder der Vorgang ist nicht implementiert.
Source=Accessibility
StackTrace:
bei Accessibility.IAccessible.set_accValue(Object varChild, String pszValue)
bei Microsoft.VisualStudio.TestTools.UITest.Extension.Msaa.AccWrapper.set_Value(String value)
InnerException:
Hi Patrick Pirzer,
>>That either the control is not ready or not valid.
Next i have called the DrawHighlight method for that control.
My suggestion is that you would check whether this control is really existing when playback actions run on this control. Or add a wait event would be better.
http://blogs.msdn.com/b/gautamg/archive/2010/02/12/how-to-make-playback-wait-for-certain-event.aspx
Reference:
http://stackoverflow.com/questions/11737254/codedui-test-not-waiting-for-control-to-exist
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
How to avoid Flickaring When Adding data in Addon User Matrix
Experts,
I am Adding Query Result in User Matrix one by one. but there is lots of Flicker.
how to Avoid this Flickering.
Bomiitems = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
If Bomtyp = "U" And BomNo = "0" Then
BOMItem = "SELECT Distinct T0.[Code], T1.[ItemName] , ( 1 / Isnull(T2.[Qauntity],0))* Isnull((T0.[Quantity]),0),('" & Quanti & "'/ Isnull(T2.[Qauntity],0))* Isnull((T0.[Quantity]),0) as "
BOMItem = BOMItem + " 'Quanti',T1.[Excisable],'N' as U_Rec , T1.[InvntryUom],T0.[Warehouse] 'Warehouse',T0.[IssueMthd]'IssMthd' FROM ITT1 T0 INNER JOIN OITM T1 "
BOMItem = BOMItem + " ON T0.Code = T1.ItemCode INNER JOIN OITT T2 ON T0.Father = T2.Code "
BOMItem = BOMItem + " WHERE T0.[Father] ='" & Icode & "'"
Bomiitems.DoQuery(BOMItem)
ElseIf Bomtyp = "U" And BomNo <> "0" Then
'BOMItem = "SELECT T0.[Code], T1.[ItemName] , ((T0.[Quantity]/ T2.[Qauntity])*'" & Quanti & "') as 'Quanti',T1.[Excisable],'N' as U_Rec FROM ITT1 T0 INNER JOIN OITM T1 ON T0.Code = T1.ItemCode INNER JOIN OITT T2 ON T0.Father = T2.Code WHERE T0.[Father] ='" & Icode & "'"
BOMItem = "SELECT T1.[U_Icode], T1.[U_IName],(1 / Isnull(Cast( T0.[U_Bqty] as Float) ,0)) * Isnull(Cast(T1.[U_Quanti] As Float),0) ,('" & Quanti & "' / Isnull(Cast( T0.[U_Bqty] as Float) ,0)) * Isnull(Cast(T1.[U_Quanti] As Float),0) as 'Quanti',T2.[Excisable], T0.[U_Rec],T2.[InvntryUom] ,T1.[U_Whs] 'Warehouse','B' AS 'IssMthd' "
BOMItem = BOMItem + "FROM [dbo].[@OITTA] T0 inner join [dbo].[@ITTA1] "
BOMItem = BOMItem + "T1 on t0.cODE = t1.Code INNER JOIN OITM T2 ON T1.[U_Icode] = T2.[ItemCode]"
BOMItem = BOMItem + " WHERE T0.[U_Icode] = '" & Icode & "' AND T0.[U_AltBom] ='" & BomNo & "' AND T0.U_Btyp = 'U' "
Bomiitems.DoQuery(BOMItem)
ElseIf Bomtyp = "P" Then
BOMItem = "SELECT T1.[U_Icode], T1.[U_IName],(1 / Isnull(Cast( T0.[U_Bqty] as Float) ,0)) * Isnull(Cast(T1.[U_Quanti] As Float),0),('" & Quanti & "' / Isnull(Cast( T0.[U_Bqty] as Float) ,0)) * Isnull(Cast(T1.[U_Quanti] As Float),0) as 'Quanti',T2.[Excisable], T0.[U_Rec] ,T2.[InvntryUom],T1.[U_Whs] 'Warehouse','B' AS 'IssMthd' "
BOMItem = BOMItem + "FROM [dbo].[@OITTA] T0 inner join [dbo].[@ITTA1] "
BOMItem = BOMItem + "T1 on t0.cODE = t1.Code INNER JOIN OITM T2 ON T1.[U_Icode] = T2.[ItemCode]"
BOMItem = BOMItem + " WHERE T0.[U_Icode] = '" & Icode & "' AND T0.[U_AltBom] ='" & BomNo & "' AND T0.U_Btyp = 'P' "
Bomiitems.DoQuery(BOMItem)
End If
Bomiitems.DoQuery(BOMItem)
If Bomiitems.RecordCount > 0 Then
'RecCount1 = RecSet1.RecordCount
Bomiitems.MoveFirst()
i = 0
'osubForm .Freeze(True)
oMatrix = oForm.Items.Item("1000001").Specific
oMatrix.FlushToDataSource()
While Not (Bomiitems.EoF)
If i = 0 Then
oMatrix.AddRow()
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("LineId", 0, i + 1)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_ItemCode", 0, Bomiitems.Fields.Item(0).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_ItemName", 0, Bomiitems.Fields.Item(1).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_BaseQty", 0, Bomiitems.Fields.Item(2).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_PlanQty", 0, Bomiitems.Fields.Item(3).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_IssueQty", 0, Bomiitems.Fields.Item(3).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_Whs", 0, Bomiitems.Fields.Item("Warehouse").Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_IsueType", 0, Bomiitems.Fields.Item("IssMthd").Value)
Dim orsWhsDetails As SAPbobsCOM.Recordset
Dim strWhsDetails As String
orsWhsDetails = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
strWhsDetails = "SELECT T0.[OnHand], T0.[IsCommited], T0.[OnOrder],T1.[OnHand] FROM OITW T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode WHERE T0.[ItemCode] ='" & Bomiitems.Fields.Item(0).Value & "' AND T0.[WhsCode] ='" & Bomiitems.Fields.Item("Warehouse").Value & "' "
orsWhsDetails.DoQuery(strWhsDetails)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_Whsestk", 0, orsWhsDetails.Fields.Item(0).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_AVILSTK", 0, (orsWhsDetails.Fields.Item(0).Value - Bomiitems.Fields.Item(3).Value))
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_PLANTSTK", 0, orsWhsDetails.Fields.Item(3).Value)
oMatrix.LoadFromDataSource()
Else
oMatrix.FlushToDataSource()
oForm.DataSources.DBDataSources.Item("@TPROD1").InsertRecord(i)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("LineId", i, i + 1)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_ItemCode", i, Bomiitems.Fields.Item(0).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_ItemName", i, Bomiitems.Fields.Item(1).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_BaseQty", i, Bomiitems.Fields.Item(2).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_PlanQty", i, Bomiitems.Fields.Item(3).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_IssueQty", i, Bomiitems.Fields.Item(3).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_Whs", i, Bomiitems.Fields.Item("Warehouse").Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_IsueType", i, Bomiitems.Fields.Item("IssMthd").Value)
Dim orsWhsDetails As SAPbobsCOM.Recordset
Dim strWhsDetails As String
orsWhsDetails = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
strWhsDetails = "SELECT T0.[OnHand], T0.[IsCommited], T0.[OnOrder],T1.[OnHand] FROM OITW T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode WHERE T0.[ItemCode] ='" & Bomiitems.Fields.Item(0).Value & "' AND T0.[WhsCode] ='" & Bomiitems.Fields.Item("Warehouse").Value & "' "
orsWhsDetails.DoQuery(strWhsDetails)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_Whsestk", i, orsWhsDetails.Fields.Item(0).Value)
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_AVILSTK", i, (orsWhsDetails.Fields.Item(0).Value - Bomiitems.Fields.Item(3).Value))
oForm.DataSources.DBDataSources.Item("@TPROD1").SetValue("U_PLANTSTK", i, orsWhsDetails.Fields.Item(3).Value)
oMatrix.LoadFromDataSource()
End If
i = i + 1
Bomiitems.MoveNext()
oMatrix.LoadFromDataSource()
End While
oMatrix.LoadFromDataSource()
End If
Regards,
Pravin Bajifollow steps
1) Execute query so we can get data set
2) Clear matrix and data source (omatrix.clear(), oDBS.Clear())
3) Open loop
4) Insert record to oDBS using oDBS.InsertRecords(oDBS.Offset)
5) Then set value using oDBS.Setvalue(u2026u2026
6) Move next record
7) Finally close the loop
8) Matrix load from record set using oMatrix.LoadfromData()
it will be work -
How to catch exception when have max connection pool
hi,
i have define in oracle user that i could have max 10 sessions at the same time.
I have jdbc datasource & connection pool defined at glassfish server(JSF application).
now, if in application is too many queries to the database then i have error: nullpointer exception - becouse when i try to do:
con = Database.createConnection(); - it generates nullpointer exception becouse there isn't free connection pool
i try to catch exception like this:
public List getrep_dws_wnioski_wstrzymane_graph() { int i = 0; try { con = Database.createConnection(); ps = (Statement) con.createStatement(); rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow"); while(rs.next()){ rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4))); i++; } } catch (NamingException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } catch (NullPointerException e) { e.printStackTrace(); throw new NoConnectionException(); // catch null 1 } finally { try { con.close(); } catch (SQLException e) { e.printStackTrace(); } catch (NullPointerException e) { e.printStackTrace(); throw new NoConnectionException(); // catch null 2 } } return rep_dws_wnioski_wstrzymane_graph; }
but at line:
con.close();
i have nullpointerexception
and
at line
throw new NoConnectionException(); // catch null 2
i have: caused by exception.NoConnectionException
what's wrong with my exception class? how to resolve it?
public class NoConnectionException extends RuntimeException{ public NoConnectionException(String msg, Throwable cause){ super(msg, cause); } public NoConnectionException(){ super(); } }
at web.xml i have defined:
<error-page> <exception-type>exception.NoConnectionException</exception-type> <location>/NoConnectionExceptionPage.jsp</location> </error-page>thanks,
i did it and i have error:
java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
at logic.Database.createConnection(Database.java:37): conn = ds.getConnection();
public class Database {
public static Connection createConnection() throws NamingException,
SQLException {
Connection conn = null;
try{
Context ctx = new InitialContext();
if (ctx == null) {
throw new NamingException("No initial context");
DataSource ds = (DataSource) ctx.lookup("jdbc/OracleReports");
if (ds == null) {
throw new NamingException("No data source");
conn = ds.getConnection(); // here's exception when max connections to database
if (conn == null) {
throw new SQLException("No database connection");
} catch (NamingException e) {
e.printStackTrace();
throw new NoConnectionException();
} catch (SQLException e) {
e.printStackTrace();
throw new NoConnectionException();
catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException(); // obsluga bledy na wypadek jesli braknie wolnych polaczen do bazy
return conn;
}and at my ealier code i have error:
at logic.GetDataOracle.getrep_dws_wnioski_wstrzymane_graph(GetDataOracle.java:192)
at line: con = Database.createConnection();
in code:
public List getrep_dws_wnioski_wstrzymane_graph() {
int i = 0;
try {
con = Database.createConnection();
ps = (Statement) con.createStatement();
rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow");
while(rs.next()){
rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4)));
i++;
} catch (NamingException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException();
} finally {
try {
if(con != null)
con.close();
} catch (SQLException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException();
return rep_dws_wnioski_wstrzymane_graph;
}so what's wrong?
i have limit max sessions 10 at oracle so i set at my connection pool 5 connections as max. But when i get max 5 sesssins and try to execute next query then i can't catch exception.. -
HOw to avoid DeadLocks when you schedule a Sql Server Agent Job and calling SSIS packages
Hi All,
I have scheduled 2 packages in in Sql Server Agent jobs .
First job which is having Package 1 executing at 11 AM and where I am inserting the data in the table.
Second job which is having Package 2 executing at 12 AM and where I am updating the data in the table based on the first job inserted records.
When I am executing my first job it taking more time and executing till 12 AM and from 12 AM my job 2 also starting ,so getting deadlocks conflicts because inserting happening from job1 and updating happening from Job 2.
How to avoid deadlocks and fix the issue.
Please Suggest .
Thanks & Regards,
AnandHi Anand,
Here is another solution, you can set the Job 2 not to run based on a schedule, and create another SQL Server Agent Job which starts at 12 AM and run with a specified time interval to execute a SQL statement in which you do the following steps:
1. Get the status information of Job 1 using the statement:
DECLARE @i int;
EXEC @i = msdb.dbo.sp_help_job @job_name = ‘Job Name'
2. If the value of @i is 1 which means the status of job 1 is success and current time is, then start the job 2. So, the statement is as follows:
IF @I = 1
EXEC msdb.dbo.sp_start_job @job_name= ‘Job Name’
Regards,
Mike Yin
TechNet Community Support -
How can I plot two sets of data points in 3d graph?
I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?
What is your LabVIEW version? (things are a bit different in 8.6).
Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.
You define all the plots (color, style) via the properties dialog.
Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get.
Message Edited by altenbach on 04-23-2009 01:11 PM
LabVIEW Champion . Do more with less code and in less time . -
How do I summarise a set of data
Hi All,
I am trying to group a set of data but am struggling to return what I need.
The following is a snippet of the data:
SEGMENT1
SEGMENT2
SEGMENT3
SEGMENT4
SEGMENT5
PERIOD_NAME
PERIOD_NET_DR
PERIOD_NET_CR
103600
2256
00
1
000
APR-13
4,157
0
103600
2256
00
1
000
AUG-13
4,157
1
103600
2256
00
1
000
DEC-13
4,157
1
103600
2256
00
1
000
FEB-14
4,157
1
103600
2256
00
1
000
JAN-14
4,157
1
103600
2256
00
1
000
JUL-13
4,157
1
103600
2256
00
1
000
JUN-13
4,157
1
103600
2256
00
1
000
MAR-14
4,188
14
103600
2256
00
1
000
MAY-13
4,157
2
103600
2256
00
1
000
NOV-13
4,157
1
103600
2256
00
1
000
OCT-13
4,157
1
103600
2256
00
1
000
SEP-13
4,157
1
I need to produce a report as follows:
SEGMENT1
SEGMENT2
SEGMENT3
SEGMENT4
SEGMENT5
YEAR_TO_DATE_BUDGET
APRIL-13
May-13
Jun-13
Jul-13
Aug-13
Sep-13
Oct-13
Nov-13
Dec-13
Jan-14
Feb-14
Mar-14
103600
2256
00
1
000
49890
4,157
4,174
4156
4156
4156
4156
4156
4156
4156
4156
4156
4174
Year_to_date_budget = SUM(Period_Net_DR) - SUM(Period_Net_CR)
Monthly budget = Period_net_dr) - Period_Net_CR
I have managed to produce the report up to the year_to_date_budget column. However I struggling with getting the monthly_budget on the same line.
select GCC.segment1, GCC.segment2, GCC.segment3, GCC.segment4, GCC.segment5,
(sum(GB.PERIOD_NET_DR) - sum(GB.PERIOD_NET_CR)) Year_to_date_Budget
from gl_balances GB
,gl_code_combinations GCC
where GB.period_name in ('APR-13','MAY-13','JUN-13','JUL-13','AUG-13','SEP-13','OCT-13','NOV-13','DEC-13','JAN-14','FEB-14','MAR-14')
and GCC.code_combination_id = GB.code_combination_id
and GB.actual_flag = 'B'
and GB.currency_code = 'GBP'
group by GCC.segment1, GCC.segment2, GCC.segment3, GCC.segment4, GCC.segment5
Any help would be greatly appreciated.Hi,
That's called a Pivot. The forum FAQ, https://forums.oracle.com/message/9362005 , has several good links on pivots.
Even more than most things, pivoting depends on your Oracle version. In Oracle 8.1 (and up) you can do something like
SUM (CASE WHEN period_name = 'APR-13' THEN (period_net_dr - period_net_cr END) AS april_13
for each of the pivoted column. Starting in Oracle 11.1, you can also use the SELECT ... PIVOT feature.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Simplify the problem as much as possible. for example, instead of pivoting 12 months, just do 2 or 3 months. Once you know how to do 2 or 3 months, you'll know how to do 12 or any number. Likewise, instead of GROUPing BY 5 segment columns, just post a problem with 1 or 2.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
LVOOP challenge question: How is Memory managed when objects are data members?
Background:
I am working on a compact field point and am sensitive to memory usage.
I would like to know hoe the labview Realtime compiler treats my code (It is a bit of a Black Box.
My Class contains other objects:
and then later in my code I use what I call Run Loops: Multiple Parallel loops executing various threads: Below.
It also calls some of the classes Ancestor objects:
My question is: does this approach make a second copy of the embedded(Included) objects.
If so does anyone have any clever ideas about how to avoid this?
Thanks in advance.
iTm
iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RTtst,
Thanks for the Link, And the response.
In the spirit of sharing ideas, if my application wasn't a pyramid of classes, it would be an easier solution:
Use in-place structures, that way they won't be copied
The hearteache is that when you do that, you lose access to the parent data and functions.
Plan "b" is to convert the embedded objects to Refnums, That way only the Pointer is retained by the parent class.
The Drawback is that they can be painful to code as a Data value reference read is required for each thread and may only be used from within the object. Refnums don't polymorph easily
I have also unearthed some very odd compiler behavior.
iTm L
Plan "C" is to "Check out" the Object replacing it with a default. and hope the compiler doesn't allocate memory for it.
iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT -
How to split out a set of data????
package mitsim_converter;
import java.io.*; // For input & output classes
import java.util.*; // For the Date class
public class testgod {
public static void ReadCoFile(String Co_inputFile, String Co_dirName, String Co_outputName)
throws IOException {
File aFile = new File(Co_dirName, Co_outputName); // Output Directory location and name
aFile.createNewFile(); // Now create a new file if necessary
if(!aFile.isFile()) // Verify we have a file
System.out.println("Creating " + aFile.getPath() + " failed.");
return;
BufferedReader in = new BufferedReader(new FileReader(Co_inputFile));
BufferedWriter out = new BufferedWriter(new FileWriter(aFile.getPath(), true));
//Variable declarations
int a = 0;
int b = 0;
int c = 0;
String text;
while ((text = in.readLine()) != null) //multiple line reading
for(int i = 0; i < text.length(); i++)
char word = text.charAt(i);
if ( word == '{') //search for the ' { ' charecter
a++; //counting ' { ' unit
for(int i = 0; i < text.length(); i++)
char word = text.charAt(i);
if ( word == '}') //search for the ' } ' charecter
b++; //counting ' } ' unit
if(a == 1) //print out the 1st line of a set of data
String[] sentance = text.split(" ");
System.out.println(sentance[1]+sentance[3]);
if(a == b) // 1 set of data is counted
a = 0; //count the next set of data
b = 0;
out.write(System.getProperty("line.separator")); //separate a new set of data
public testgod() {
public static void main(String[] args)
throws IOException
// Coordinate Table
String tra_inputFile = "C:/Documents and Settings/seng/Desktop/testfile/trajectory.txt";
String tra_dirName = "C:/Documents and Settings/seng/Desktop/testfile";
String tra_outputName = "trajectory_output.txt";
ReadCoFile(tra_inputFile, tra_dirName, tra_outputName);
} currently i have a set of data as below:
1 {
6 0 2 1037.9 24.4187 -5.4961e-05 1
2 {
1 0 2 1013.5 24.4187 4.99431e-05 1
4 0 1 1057.5 24.4187 -2.63508e-05 0
3 130 264 115.7 14.2425 1.48289e-05 0
2 136 276 464.7 11.6186 -3.46263e-06 1
3 {
1 0 2 989.1 24.4187 -5.4961e-05 1
4 0 1 1033.1 24.4187 2.13329e-05 0
5 126 256 1241.4 22.7881 0 0
3 130 264 101.5 14.2426 5.23758e-07 0
2 136 276 453.1 11.6186 -3.46263e-06 1
}i wish to split them and take out the 1st column and 3rd column data, but the my coding fail to do it. may i know how do i can solve for this problem?
PS: the expected output
6 2
1 2
4 1
3 264
2 276
1 2
4 1
5 256
3 264
2 276import java.util.regex.*;
public class TestParse {
public static void main(String[] argv) {
String testInput = "1 {\n" +
" 6 0 2 1037.9 24.4187 -5.4961e-05 1\n" +
"}\n" +
"2 {\n" +
" 1 0 2 1013.5 24.4187 4.99431e-05 1\n" +
" 4 0 1 1057.5 24.4187 -2.63508e-05 0\n" +
" 3 130 264 115.7 14.2425 1.48289e-05 0\n" +
" 2 136 276 464.7 11.6186 -3.46263e-06 1\n" +
"}\n" +
"3 {\n" +
" 1 0 2 989.1 24.4187 -5.4961e-05 1\n" +
" 4 0 1 1033.1 24.4187 2.13329e-05 0\n" +
" 5 126 256 1241.4 22.7881 0 0\n" +
" 3 130 264 101.5 14.2426 5.23758e-07 0\n" +
" 2 136 276 453.1 11.6186 -3.46263e-06 1\n" +
"}\n";
Pattern outer =
Pattern.compile("\\s*(\\d+)\\s*\\{([\\s\\d\\.\\-\\+e]+)\\}");
Pattern inner = Pattern.compile("LEFT AS EXERCISE");
Matcher m = outer.matcher(testInput);
while(m.find()) {
if (m.groupCount() != 2) {
System.err.println("Error: found wrong number of groups: " + m.groupCount());
} else {
System.out.print("Time: " + m.group(1) + " " + m.group(2));
Matcher m2 = inner.matcher(m.group(2));
while(m2.find()) {
if (m2.groupCount() != 7) {
System.err.println("Error: found wrong number of groups: " + m2.groupCount());
} else {
int i = 0;
String iDString = m2.group(++i);
String segmentString = m2.group(++i);
String laneString = m2.group(++i);
String positionString = m2.group(++i);
String speedString = m2.group(++i);
String accelerationString = m2.group(++i);
String vehicleTypeString = m2.group(++i);
System.out.println(
"ID: " + iDString + "\n" +
"Segment: " + segmentString + "\n" +
"Lane: " + laneString + "\n" +
"Position: " + positionString + "\n" +
"Speed: " + speedString + "\n" +
"Acceleration: " + accelerationString + "\n" +
"VehicleType: " + vehicleTypeString);
} -
How to disable ATP when changing pricing date
When header pricing date in a sales order is changed, system triggers ATP. How can this be disabled?
Edited by: Jennifer Lua on Feb 22, 2010 10:10 AMin material master Sales:general/plant data Availability check field enter no check and at the same time in VOV8 flag the availability check field.
-
JDEV 11G TP3: exception when setting preferences for java code style
I got this exception when calling the panel in the preferences settings for java code style.
How to restore it ?
java.lang.NullPointerException
at oracle.jdevimpl.style.profile.ProfileModel$ProfileComparator.compare(ProfileModel.java:409)
at java.util.Arrays.mergeSort(Arrays.java:1284)
at java.util.Arrays.sort(Arrays.java:1223)
at java.util.Collections.sort(Collections.java:159)
at oracle.jdevimpl.style.profile.ProfileModel.<init>(ProfileModel.java:72)
at oracle.jdevimpl.style.preferences.CodingStylePreferencesPanel.<init>(CodingStylePreferencesPanel.java:144)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:315)
at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:219)
at oracle.ide.panels.MDDPanel.getTraversable(MDDPanel.java:1243)
at oracle.ide.panels.MDDPanel.mav$getTraversable(MDDPanel.java:116)
at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1506)
at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1414)
at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1408)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:525)
at java.awt.Dialog$2.run(Dialog.java:553)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:551)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:593)
at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
at oracle.jdevimpl.vcs.cvs.CVSPreferencesCommand.doit(CVSPreferencesCommand.java:46)
at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:531)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:784)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:481)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)I got this exception for menu tools\preference\extensions.
I erased folder C:\JDeveloper\myDirectory\system11.1.1.0.22.49.49 and the error appeared.
Jun 12, 2008 11:20:55 PM oracle.ide.panels.MDDPanel exitTraversable
SEVERE: Exception exiting traversable oracle.ideimpl.extension.preference.ExtensionOptionsPanel[,0,0,485x391,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
java.lang.NullPointerException
at oracle.ideimpl.extension.preference.ExtensionOptionsPanel.disabledIdsHaveChanged(ExtensionOptionsPanel.java:191)
at oracle.ideimpl.extension.preference.ExtensionOptionsPanel.onExit(ExtensionOptionsPanel.java:182)
at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:1160)
at oracle.ide.panels.MDDPanel.mav$exitTraversable(MDDPanel.java:116)
at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1470)
at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1414)
at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1408)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:525)
at java.awt.Dialog$2.run(Dialog.java:553)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:551)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:593)
at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
at oracle.jdevimpl.vcs.cvs.CVSPreferencesCommand.doit(CVSPreferencesCommand.java:46)
at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:536)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Message was edited by:
ericardezp -
Propery Binding exception when bound to data received from the web socket
Hi,
I am getting the following exception when I try to bind my properties to the data received from the MessageWebSocket. Works fine when the data is received from the normal StreamSocket.
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.dll
at System.StubHelpers.EventArgsMarshaler.CreateNativePCEventArgsInstance(String name)
at System.Runtime.InteropServices.WindowsRuntime.PropertyChangedEventArgsMarshaler.ConvertToNative(PropertyChangedEventArgs managedArgs)
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at WinStoreApp.Common.BindableBase.OnPropertyChanged(String propertyName)
at WinStoreApp.Common.BindableBase.SetProperty[T](T& storage, T value, String propertyName)
at WinStoreApp.DataModel.Model.StockItem.set_BidVol(String value)
at WinStoreApp.Core.FIDValueMapper.PopulateFIDValue(Int32 fid, String value, StockItem stockItem)
at WinStoreApp.Core.StockFeedReceiver.<ProcessData>d__20.MoveNext()
Code snippet of message received:
static async void _websocket_MessageReceived(MessageWebSocket sender, MessageWebSocketMessageReceivedEventArgs args)
try
using (var reader = args.GetDataReader())
reader.UnicodeEncoding = Windows.Storage.Streams.UnicodeEncoding.Utf8;
string message = reader.ReadString(reader.UnconsumedBufferLength);
await myObj.Message = message; // Exception here
catch (Exception ex)
Please let me know what may the problem.Hi,
According to your description, I think you can received message from server by using
MessageWebSocket class, but the data you received may not be right. I see the document in the link below:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.networking.sockets.aspx
In the document above indicates:
StreamSocket class is a stream socket to use for incoming or outgoing network communication over TCP
MessageWebSocket is a message-based WebSocket.
If the server send the data based on stream format, the
MessageWebSocket class may not received the right data.
You can use StreamWebSocket
to see whether the problem occur. And you should give us more information and upload a test project to OneDrive so that we can test it.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey. -
Getting Exception when setting the LOV whereclause Dynamically
Hi all,
I have created the LOV in which the whereClause is set dynamically.
The LOV is fetching proper value when I query it first two times but after that it goes to the exception page-
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (Select pvsa.vendor_site_code SITE_NAME,
hou.NAME Operating_unit,
pvco.vendor_site_id vendor_site_id,
pvco.vendor_contact_id vendor_contact_id,
hzr.subject_id subject_id
from PO_VENDOR_CONTACTS pvco,
hz_party_sites hps,
hz_parties hp,
hz_relationships hzr,
PO_VENDOR_SITES_ALL pvsa,
hr_operating_units hou
Where pvco.PARTY_SITE_ID = hps.PARTY_SITE_ID
AND hps.PARTY_ID = hzr.PARTY_ID
and hou.organization_id = pvsa.org_id
/*AND hzr.subject_id = :1*/
and hp.party_id = hzr.subject_id
and hzr.relationship_type = 'CONTACT'
and hzr.relationship_code = 'CONTACT_OF'
and hzr.subject_type = 'PERSON'
and hzr.object_type = 'ORGANIZATION'
AND pvsa.vendor_site_id = pvco.vendor_site_id
AND pvsa.pay_site_flag = 'Y') QRSLT WHERE (subject_id = :1 AND ( UPPER(SITE_NAME) like :2 AND (SITE_NAME like :3 OR SITE_NAME like :4 OR SITE_NAME like :5 OR SITE_NAME like :6)))
- INVALID COLUMN TYPE.
Below is the Code for my LOV CO-
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
OADBTransaction oadbtransaction = (OADBTransaction)am.getOADBTransaction();
String ContactPartyIdStr=null;
ContactPartyIdStr = (String)oadbtransaction.getValue("ContactPartyId");
System.out.println("In PR of LOV CO - ContactPartyIdStr is - " + ContactPartyIdStr);
if (ContactPartyIdStr != null )
Serializable[] parameters1 = { ContactPartyIdStr};
am.invokeMethod("SiteLovInit",parameters1);
Code for LOV AM-
public void SiteLovInit(String ContactPartyIdStr)
SitesLovVOImpl vo = (SitesLovVOImpl)getSitesLovVO1();
if(vo == null)
MessageToken[] errTokens = { new MessageToken("OBJECT_NAME", "SitesLovVO1")};
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
vo.initVOQuery(ContactPartyIdStr);
Code for LOV VOImpl-
public void initVOQuery(String ContactPartyIdStr)
if ((ContactPartyIdStr != null) && (!("".equals(ContactPartyIdStr))))
Integer ContactPartyId = Integer.parseInt(ContactPartyIdStr);
this.clearCache();
StringBuffer whereClause = new StringBuffer("subject_id = :1");
setWhereClause(null);
setWhereClause(whereClause.toString());
setWhereClauseParams(null);
setWhereClauseParam(0,ContactPartyId);
if(isLoggingEnabled(1))
writeDiagnostics(this, "Query in SitesLovVOImpl "+this.getQuery(), 1);
try
executeQuery();
catch(Exception e)
e.printStackTrace();
String sQuery = new String(this.getQuery());
System.out.println(" The Site VO query is - "+ sQuery); *// This query prints the same query all the time*
I also tried running the query in the back end. It fetches teh required rows.
I am unable to debug this.
Plz help... :)Hi Anand,
Thanks for ur help. But the link shows how to use a filed from the page as criteria item.
But my reqirement is that I need to set the whereClause using a ID which is passed from previous page.
So how do I go about it using the criteria item in this case. -
When setting Time & Date Laptop Freeze
Hi
When I set my correct date & time with
date 041118002006
my laptop freez, and i only can reset.
What is this?init wrote:
is your current time behind or in the future?
In the Bios the time is normaly, In X 2 houers in future
this may because a wrong timezone/bios time combination was set in rc.conf. if you have a m$-linux dual-boot, set
HARDWARECLOCK="UTC"
in any other case use localtime. pay attention with timezone as it is case sensitive and might confuse linux if set incorrectly.
setting time into the past normally is not a problem for linux, except that application timers may be confused. for example flashplugin seriously doesn't like it when you set the time before it was started. -
JSF: how to avoid validation but still submit data to the "business layer"
Greetings
The scenario is common and sounds like this:
1) We have 2 forms, each with some fields marked with required = "true"
2) Navigation between these two should be unlimited and data should be submitted to the (stateful) business layer every time we move from one to another, without validation,
thus all of my h:commandButton tags are marked with type="submit"
3) On final "save" command data should be validated and sent to DB
Now,
- if i avoid required attributes on fields, everything works fine except validation ofcourse
- if i add immediate="true" where needed, data gets lost when i navigate from one page to another
thanks a lot in advanceUse an EL expression for the value of the required attribute. Note that the important thing is its value during the subsequent request. If you have other types of validations you may have to use custom validators.
-
Patch Policies not applying when set to Date Specific
I have been trying to use patch policies for a while but can't seem to get
them working very well. In 'Patch Policy Enforcement Settings' I have set
a schedule using 'Date Specific' and 'Process immediately'. If I check the
patch status policy I see 100 targeted/ 12 Effective/ 0 Not Effective/ 88
Pending. The 88 never move from pending even though almost all of them need
the required patches. If I set the schedule to Recurring and 'When a device
is refreshed' it basically tries to install the patches on every refresh
cycle even though the device no longer requires the patches. This happens
on every device targeted by the policy.
Digging into the actually bundle that gets created I can see in the install
actions the Install Frequency is set to 'Install always' which may explain
why it runs through each patch every refresh when it is set to install on
refresh.
The documentation on this new feature doesn't go into much detail on how
everything actually works. I would guess the correct functionality would be
once a policy is enforced on a machine it would no longer try to keep
installing the same patches from the policy since they are not needed.
Using the Enforcement by 'Date Specific' seems to be broke also.
Jim Koerner
Server - ZCM 11.3.1FTF1 and Internal Database on Win2008R2x64
Clients - ZCM 11.3.1FTF1 on Win7SP1x64Originally Posted by Jim Koerner
Sounds just like it. Missed when I was browsing the knowledge base. doing
some more detailed searching I fount this in readme for 11.3.1 "Defects
addressed 848442 Process immediately if device unable to execute on
schedule" option doesn't work of Patch Policy Enforcement Settings. In my
case this is not fixed and I am at 11.3.1FTF1
I will have to put in a SR and see if anything has been done with it since.
Jim
"thsundel" wrote in message news:[email protected]...
Jim Koerner;2337983 Wrote:
> I have been trying to use patch policies for a while but can't seem to
> get
> them working very well. In 'Patch Policy Enforcement Settings' I have
> set
> a schedule using 'Date Specific' and 'Process immediately'. If I check
> the
> patch status policy I see 100 targeted/ 12 Effective/ 0 Not Effective/
> 88
> Pending. The 88 never move from pending even though almost all of them
> need
> the required patches. If I set the schedule to Recurring and 'When a
> device
> is refreshed' it basically tries to install the patches on every refresh
> cycle even though the device no longer requires the patches. This
> happens
> on every device targeted by the policy.
>
> Digging into the actually bundle that gets created I can see in the
> install
> actions the Install Frequency is set to 'Install always' which may
> explain
> why it runs through each patch every refresh when it is set to install
> on
> refresh.
>
> The documentation on this new feature doesn't go into much detail on how
> everything actually works. I would guess the correct functionality
> would be
> once a policy is enforced on a machine it would no longer try to keep
> installing the same patches from the policy since they are not needed.
> Using the Enforcement by 'Date Specific' seems to be broke also.
>
> Jim Koerner
> Server - ZCM 11.3.1FTF1 and Internal Database on Win2008R2x64
> Clients - ZCM 11.3.1FTF1 on Win7SP1x64
Could be this: http://www.novell.com/support/kb/doc.php?id=7015217
Thomas
thsundel
thsundel's Profile: https://forums.novell.com/member.php?userid=128
View this thread: https://forums.novell.com/showthread.php?t=480214
Yes, please do open a SR if you can..
Thomas
Maybe you are looking for
-
Please Help! I can't get Itunes or Quicktime to install properly
Ok, I'm about fed up. I'm trying to get itunes installed along with quicktime, and everytime it goes through the installation & says everything is ok, but then when I try to run Itunes, it comes up an error. The problem seems to be with quicktime, b/
-
Non-server pool master in VM Manager
So I have two vm hosts that are not HA. The first is the Server Pool Master and everything is working well there. On the second host machine (the non-master) I put my template in the seed_pool folder and I can use xm to start the template and everyth
-
What's the latest/higest OS for G5/G4?
Hi, Someone just gave me my first Macs in 11 years. A G4 and a G5. They have Os 10.4 installed. Whats the highest I can upgrade their OSs? Thanks!
-
Filter view for combined request
Hello! We have 12 requests combined to the single Answer's request using UNION. Each of these 12 requests has a filter. But when we try to display the filter view for the combined request, it says "Request contains no filters". Any ideas how to displ
-
Can not add printer as non root user
First I would like to congratulate the archlinux community and founders for such a great distribution and more importantly a well documented distribution. I am amazed by how quickly I have I have been able to get my system up and running exactly how