How can I access another class in a MembershipRule's Expression
Hello,
I want to create an InstanceGroup using Module Microsoft.SystemCenter.GroupPopulator.
I need to collect all Logical Disks which contain an MS SQL DB Log File.
I would start as follows:
<DataSource ID="DS" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.LogicalDisk"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
<Expression>
<And>
<!--
First Expression
-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="Windows!Microsoft.Windows.LogicalDevice"]/Name$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<!--
How can I access another class's properties ?
-->
<GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<HostProperty>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]</MonitoringClass>
<Property>PrincipalName</Property>
</HostProperty>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<GenericProperty>$MPElement[Name="SQL!Microsoft.SQLServer.2008.DBLogFile"]/Drive$</GenericProperty>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</MembershipRule>
</MembershipRules>
</DataSource>
In the first expression you "see" my question:
I want to compare the LogicalDisk's Name Property with the DB Log File's Drive property.
But how can I access the DB Log File's Drive property in this MembershipRule ?
Furthermore LogicalDisk and DB Log File must be hosted on the same Windows Computer.
Would be great if somebody could help.
Thanks
Sebastian
Hi Niki,
thanks for the idea, but that will not work. $Target/Id$ refers always to the group to be discovered.
On last week end I was given following idea, hope it will work:
Step 1
Collect all the DB SQL Logfile Objects and write computername (PrincipalName?) and Driveletter into a textfile, line by line. Shouldn't be a problem, PowerShell is your friend.
Step 2
Read the file from Step 1, build discovery data for each disk drive as object of class "Logical Disk (Server)",
and then discover the containment-relationships from those Logical Drive(Server) Objects to the InstanceGroup.
Perhaps I must do it for the OS-Version related Disks, because I need the target classes of the Logical Disk Freespace monitors. Some more work. "Risks": I donot know the discovery algorithm for the Logical Disk(Server) Objects, but a "deep
dive" into the MPs should help.
Thanks to all, who have read.
I will inform you about progress and success
sebastian
Similar Messages
-
How can i access the stepname within a steps post-expression?
How can i access the stepname within a steps post-expression?
i only saw the step-id of the step: Step.TS.Id
is there a pssibility to get the stepname from the id?
thank you!Hi Fischer,
use the expression NameOf(Step).
Regards
Ray Farmer
Regards
Ray Farmer -
How can I access an iPhoto library from another account?
We have 2 user accounts on my iMac. How can I access another user's iPhoto library when I am logged in?
move the iPhoto library to a shared folder on your Mac.
-
My ipod touch has a huge collection of music that I don't want to lose or replace but my computer has now crashed beyond recovery. How can I access my itunes account from another computer or transfer my playlists to another computer from my ipod?
You can transfer iTunes purchases to your "new" computer by
iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
You can transfer other stuff by:
Best iPod to PC
How to transfer or sync files from iPod to PC - Windows mac iPhone iPod software reviews - Software Wiki -
How can i access all the objects of one schema from another schema
Dear All,
How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
Thanks in advance,
MahiFirst of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
As long as you have proper privilege on target object. You can access it with or without synonyms.
Assuming you have proper privilege of objects, you can use following command to assume schema owner.
ALTER SESSION SET CURRENT_SCHEMA = Schema_owner -
How can we call a class file of one package for class file of another
How can we call a class file of one package from class file of another package and both packages exist in a same folder
How can we call a class file of one package from
class file of another package and both packages exist
in a same folder
Luckily they don't so it's really not a problem after all. -
When I run a system utilities check and select HD. i always get a prompt the the SUID System/Library/CoreS has been modified and will not be repaired. How can I access this file so that I may repair it? Left unrepaired . There are a lot of files that do not have the correct code. They are one thing but should be another
Hello there, toestothenose.
It seems that you may not have gotten the entire message into your thread here, but the following Knowledge Base article offers a good resource on which messages from Disk Utility's Repair Disk Permissions can be safely ignored:
Mac OS X: Disk Utility's Repair Disk Permissions messages that you can safely ignore
http://support.apple.com/kb/ts1448
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
How can i call another view variables in another view
how can i call another view variables in another view and pass that variables to the function
my situation is i have a view FAC which i need to pass par_id_fac TO THE VIEW AGR.AFTER THAT i what to take start_dt in agr view and par_id_fac from Fac and pass this variables to the function i have check the documentation but does not do what i what,the doc simply talk about creating variables and pass then to function.i what to pass variables from the views and return value to my contractno Variables value
something like if :agr.contract_no is null
and :agr.agr_start_dt is not null then
:agr.contract_no := sms_fapp.get_contract_no(:fac.par_id_fac,:agr.agr_start_dt);
end if;
y view is
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="AGR"
Version="11.1.2.60.81"
BindingStyle="OracleName"
CustomQuery="true"
PageIterMode="Full"
UseGlueCode="false"
RowClass="sms1405.AGRRowImpl"
ComponentClass="sms1405.AGRImpl"
DefClass="sms1405.AGRDefImpl">
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
<Attr Name="_codeGenFlag2" Value="Access|Def|Coll|Prog|VarAccess"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<SQLQuery><![CDATA[SELECT SmsAgreements.ID,
SmsAgreements.FAPP_ID,
SmsAgreements.PAR_ID,
SmsAgreements.SSCH_ID,
SmsAgreements.COSERV_ID,
SmsAgreements.IREA_ID_TERMINATED,
SmsAgreements.IREA_ID_SUSPENDED,
SmsAgreements.SPTYP_ID,
SmsAgreements.CLAIM_BASED_YN,
SmsAgreements.NOTES,
SmsAgreements.SUSPENSION_DT,
SmsAgreements.TERMINATION_DT,
SmsAgreements.SPECIAL_PROJECT_END_DT,
SmsAgreements.CAPITAL_FUNDING_APPROVED,
SmsAgreements.PERIODICAL_PAYMENT_AMOUNT,
SmsAgreements.DATE_CREATED,
SmsAgreements.DATE_MODIFIED,
SmsAgreements.MODIFIED_BY,
SmsAgreements.CREATED_BY,
SmsAgreements.CONTRACT_NO,
SmsAgreements.OFF_ID,
SmsAgreements.DATE_APPROVED,
SmsAgreements.AGR_START_DT,
SmsAgreements.AGR_END_DT,
SmsAgreements.MONTHS_FUNDED,
SmsAgreements.PFRE_ANNUAL_FREQUENCY,
SmsAgreements.FUNDED_NO,
SmsAgreements.REGISTERED_NO,
SmsAgreements.CONTRACT_NAME,
SmsAgreements.OPEX_ALLOCATION,
SmsAgreements.EMERG_ORG_YN,
SmsAgreements.SCHEDULE,
SmsAgreements.PERIODICAL_PAYMENT_AVERAGE,
SmsAgreements.NO_OF_PAYMENTS,
SmsAgreements.ADVANCE_PAYMENT_PERCENT,
SmsAgreements.QUALIFY_NO,
SmsAgreements.ENROLLED_NO,
SmsAgreements.MULTI_YEAR_ALLOCATION,
SmsAgreements.AGR_ID_SOURCE,
SmsAgreements.FYEA_YEAR_ACTIVE,
SmsAgreements.PTYPE_CODE,
SmsAgreements.CONTRACT_VALUE,
SmsAgreements.MAGR_ID,
SmsAgreements.PROG_ID,
SmsAgreements.EMERGENCY_BED_#,
SmsAgreements.drep_id,
SmsAgreements.srep_id,
(select name from sms_offices off where off.id = SmsAgreements.off_id)officeName,
(SELECT PROG.NAME FROM sms_programmes prog where PROG.ID = SMSAGREEMENTS.PROG_ID)programe,
(select prog.code || '.' || bvspro.code || ' ' || bvspro.NAME budget_vote from sms_subsidy_schemes ssch,
sms_budget_vote_sub_programs bvspro,
sms_programmes prog
WHERE bvspro_id = bvspro.ID AND prog.ID = prog_id
and prog.id = SMSAGREEMENTS.PROG_ID)Sub_programme,
(select ssch.NAME from sms_subsidy_schemes ssch where SSCH.ID = SMSAGREEMENTS.SSCH_ID)subsidy,
(SELECT master_contract FROM sms_master_agreements magr WHERE MAGR.ID = SmsAgreements.magr_id)masterContract
FROM SMS_AGREEMENTS SmsAgreements]]></SQLQuery>
<ViewAttribute
Name="ContractNo"
IsPersistent="false"
IsNotNull="true"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="CONTRACT_NO"
SQLType="VARCHAR">
<TransientExpression><![CDATA[CONTRACT_NO]]></TransientExpression>
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AgrStartDt"
IsPersistent="false"
PrecisionRule="true"
Type="java.sql.Timestamp"
ColumnType="DATE"
AliasName="AGR_START_DT"
SQLType="DATE">
<RecalcCondition><![CDATA[true]]></RecalcCondition>
<TransientExpression><![CDATA[adf.currentDate]]></TransientExpression>
</ViewAttribute>
</ViewObject>and my FAC view is
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="FAC"
Version="11.1.2.60.81"
BindingStyle="OracleName"
CustomQuery="true"
PageIterMode="Full"
UseGlueCode="false">
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
</DesignTime>
<SQLQuery><![CDATA[SELECT SmsFacilityVw.PAR_ID_ORG,
SmsFacilityVw.ORGANISATION,
SmsFacilityVw.ORG_KEY,
SmsFacilityVw.C_CODE,
SmsFacilityVw.FACILITY,
SmsFacilityVw.PAR_ID_FAC,
SmsFacilityVw.NPO_REGISTRATION_NO,
SmsFacilityVw.ADDRESS,
SmsFacilityVw.TELNR_WORK,
SmsFacilityVw.ADDRESSLINE,
SmsFacilityVw.Town,
SmsFacilityVw.Suburb,
SmsFacilityVw.PostalCode,
SmsFacilityVw.DSD_REGION,
SmsFacilityVw.SERVICE_DELIVERY_AREA,
SmsFacilityVw.FAXNR,
SmsFacilityVw.EMAIL,
SmsFacilityVw.PAR_TYPE_DEF
FROM SMS_FACILITY_VW SmsFacilityVw]]></SQLQuery>
<ViewAttribute
Name="ParIdOrg"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="PAR_ID_ORG"
Expression="PAR_ID_ORG"
SQLType="NUMERIC"/>
<ViewAttribute
Name="Organisation"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ORGANISATION"
Expression="ORGANISATION"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="OrgKey"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="10"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ORG_KEY"
Expression="ORG_KEY"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="10"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="CCode"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="30"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="C_CODE"
Expression="C_CODE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="30"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Facility"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="FACILITY"
Expression="FACILITY"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="ParIdFac"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="PAR_ID_FAC"
Expression="PAR_ID_FAC"
SQLType="NUMERIC"/>
<ViewAttribute
Name="NpoRegistrationNo"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="30"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="NPO_REGISTRATION_NO"
Expression="NPO_REGISTRATION_NO"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="30"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Address"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="227"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS"
Expression="ADDRESS"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="227"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="TelnrWork"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="150"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="TELNR_WORK"
Expression="TELNR_WORK"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="150"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Addressline"
IsPersistent="false"
PrecisionRule="true"
Precision="120"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESSLINE"
Expression="ADDRESSLINE"
SQLType="VARCHAR"
IsUpdateable="false">
<DesignTime>
<Attr Name="_DisplaySize" Value="120"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Town"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="TOWN"
Expression="TOWN"
SQLType="VARCHAR"
IsUpdateable="false">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Suburb"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SUBURB"
Expression="SUBURB"
SQLType="VARCHAR"
IsUpdateable="false">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Postalcode"
IsPersistent="false"
PrecisionRule="true"
Precision="4"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="POSTALCODE"
Expression="POSTALCODE"
SQLType="VARCHAR"
IsUpdateable="false">
<DesignTime>
<Attr Name="_DisplaySize" Value="4"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="DsdRegion"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="40"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="DSD_REGION"
Expression="DSD_REGION"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="40"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="ServiceDeliveryArea"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SERVICE_DELIVERY_AREA"
Expression="SERVICE_DELIVERY_AREA"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Faxnr"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="FAXNR"
Expression="FAXNR"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Email"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="80"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="EMAIL"
Expression="EMAIL"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="80"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="ParTypeDef"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="12"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="PAR_TYPE_DEF"
Expression="PAR_TYPE_DEF"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="12"/>
</DesignTime>
</ViewAttribute>
<ViewLinkAccessor
Name="AGR"
ViewLink="sms1405.par_facfkViewLink"
Type="oracle.jbo.RowIterator"
IsUpdateable="false"/>
<ViewLinkAccessor
Name="SmsParAddrVwView"
ViewLink="sms1405.parLink"
Type="oracle.jbo.RowIterator"
IsUpdateable="false"/>
<ViewLinkAccessor
Name="DOC"
ViewLink="sms1405.FAC_DOC"
Type="oracle.jbo.RowIterator"
IsUpdateable="false"/>
</ViewObject>Edited by: ADF007 on 2012/08/23 6:10 PMi try this
public class SMS_AGREEMENTSImpl extends EntityImpl {
RowSet newContractNoBeforePost = null;
public static int NUMBER = Types.NUMERIC;
public static int DATE = Types.DATE;
public static int VARCHAR2 = Types.VARCHAR;
protected Object callStoredFunction(int sqlReturnType, String stmt,
Object[] bindVars) {
CallableStatement st = null;
try {
// 1. Create a JDBC CallabledStatement
st = getDBTransaction().createCallableStatement(
"begin ? := "+stmt+";end;",0);
// 2. Register the first bind variable for the return value
st.registerOutParameter(1, sqlReturnType);
if (bindVars != null) {
// 3. Loop over values for the bind variables passed in, if any
for (int z = 0; z < bindVars.length; z++) {
// 4. Set the value of user-supplied bind vars in the stmt
st.setObject(z + 2, bindVars[z]);
// 5. Set the value of user-supplied bind vars in the stmt
st.executeUpdate();
// 6. Return the value of the first bind variable
return st.getObject(1);
catch (SQLException e) {
throw new JboException(e);
finally {
if (st != null) {
try {
// 7. Close the statement
st.close();
catch (SQLException e) {}
protected void doDML(int operation, TransactionEvent e) {
String amDef = "sms1405.sms1405Module";
String config = "sms1405ModuleShared";
String NewContract = null;
ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
ViewObjectImpl vo = (ViewObjectImpl) am.findViewObject("AGR1");
vo.executeQuery();
Row row = vo.first();
// NewContract = (String)vo
NewContract = (String)row.getAttribute("ContractNo");
SMS_AGREEMENTSImpl newcont = new SMS_AGREEMENTSImpl();
//AGRRowImpl res = new AGRRowImpl();
// NewContract = NewContractNo();
if (operation == 1) {
newcont.setContractNo(NewContractNo());
//res.setContractNo( NewContractNo());
//NewContractNo();
super.doDML(operation, e);
public void postChanges(TransactionEvent TransactionEvent) {
/* Only bother to update references if contractno is a NEW one */
if (getPostState() == STATUS_NEW) {
* Get a rowset of contract related
* to this new partyaddress before calling super
newContractNoBeforePost = (RowSet)getSMS_AGREEMENTS();
super.postChanges(TransactionEvent);
public Date getAgrStartDt() {
return (Date)getAttributeInternal(AGRSTARTDT);
* Sets <code>value</code> as the attribute value for AgrStartDt.
* @param value value to set the AgrStartDt
public void setAgrStartDt(Date value) {
setAttributeInternal(AGRSTARTDT, value);
public String NewContractNo() {
String amDef = "sms1405.sms1405Module";
String config = "sms1405ModuleShared";
String NewContract = null;
ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
ViewObjectImpl vo = (ViewObjectImpl) am.findViewObject("FAC1");
// vo.setWhereClause("ParIdFac = 38844");
vo.executeQuery();
Row row = vo.first();
Integer par_id = null;
//oracle.jbo.domain.Date today = new oracle.jbo.domain.Date(oracle.jbo.domain.Date.getCurrentDate());
oracle.jbo.domain.Date today = new oracle.jbo.domain.Date();
//FACRowImpl res = new FACRowImpl();
//res.setParIdFac(par_id);
par_id = (Integer)row.getAttribute("ParIdFac");
today = this.getAgrStartDt();
return (String)callStoredFunction(VARCHAR2,
"sms_fapp.get_contract_no(?,?)",
new Object[]{par_id,today});
}at the moment am geting this error
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:415)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:477)
at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.reportException(JUCtrlActionBinding.java:2007)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1659)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NullPointerException
at oracle.jbo.server.EntityImpl.getEntityCache(EntityImpl.java:4665)
at oracle.jbo.server.EntityImpl.saveEventOrigTransAttrVals(EntityImpl.java:729)
at oracle.jbo.server.EntityImpl.saveEventOrigAttrVals(EntityImpl.java:719)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1935)
at sms1405.SMS_AGREEMENTSImpl.setContractNo(SMS_AGREEMENTSImpl.java:998)
at sms1405.SMS_AGREEMENTSImpl.doDML(SMS_AGREEMENTSImpl.java:1628)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6751)
at sms1405.SMS_AGREEMENTSImpl.postChanges(SMS_AGREEMENTSImpl.java:1645)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
... 43 more
## Detail 0 ##
java.lang.NullPointerException
at oracle.jbo.server.EntityImpl.getEntityCache(EntityImpl.java:4665)
at oracle.jbo.server.EntityImpl.saveEventOrigTransAttrVals(EntityImpl.java:729)
at oracle.jbo.server.EntityImpl.saveEventOrigAttrVals(EntityImpl.java:719)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1935)
at sms1405.SMS_AGREEMENTSImpl.setContractNo(SMS_AGREEMENTSImpl.java:998)
at sms1405.SMS_AGREEMENTSImpl.doDML(SMS_AGREEMENTSImpl.java:1628)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6751)
at sms1405.SMS_AGREEMENTSImpl.postChanges(SMS_AGREEMENTSImpl.java:1645)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6289)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) -
How can I access the Attribute Values from the Search Region
Hi all,
I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
I don't know how can I access the data from the Search Region.
Please Help.
Regards,
Ranjithyou could access the parameters entered in search region by the user as follows:
You can get handle to the value entered by the user using queryListener method in af:query.
You can intercept the values entered as described
public void onQueryList(QueryEvent queryEvent) {
// The generated QueryListener replaced by this method
//#{bindings.ImplicitViewCriteriaQuery.processQuery}
QueryDescriptor qdes = queryEvent.getDescriptor();
//get the name of the QueryCriteria
System.out.println("NAME "+qdes.getName());
List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
for ( Criterion c : searchList) {
if (c instanceof AttributeCriterion ) {
AttributeCriterion a = (AttributeCriterion) c;
a.getValues();
for ( Object o : a.getValues()){
System.out.println(o.toString());
//call default Query Event
invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
public void onQueryTable(QueryEvent queryEvent) {
// The generated QueryListener replaced by this method
//#{bindings.ImplicitViewCriteriaQuery.processQuery}
QueryDescriptor qdes = queryEvent.getDescriptor();
//get the name of the QueryCriteria
System.out.println("NAME "+qdes.getName());
invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
FacesContext fctx = FacesContext.getCurrentInstance();
ELContext elctx = fctx.getELContext();
ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
me.invoke(elctx, new Object[]{queryEvent});
Thanks,
Navaneeth -
I installed a hard drive from one PowerPC Dual 1.25 GHz MDD into another one with an older version of the OS X. all my Address Book data are on the older hard drive, from which I now boot the computer. When I launch Address Book as an app on the hard drive with the newer version of the OS, I get an error message that says I cannot run the version of Address Book from the older hard drive on the newer OS. How can I access the data on the older hard drive version of the Address Book app so that I can transfer it to the newer version of the app on the boot drive? The "Import" functionality will not work. I will be grateful for any help I can get. I would also like to uninstall the older version of OS X from the older hard drive.
Boot from the older version of OSX, then in AB use the File>Export>Export vCard after selecting all in AB.
Then boot from the new OSx & use the new AB to import that VCF file. -
(261936172) Q general How can I access an EJB hosted on a remote server?
Q<general> How can I access an EJB hosted on a remote server?
A<general> The ability to add EJB control files enables you to access an EJB that
is deployed to the server on which your web service is running. When you select
"add EJB control" you need to supply the home and remote interfaces for the EJB
as well as the JNDI name. This does not provide you with the capability for creating
a control for a remotely hosted EJB. To use a EJB hosted on another server you
will have to provide the appropriate code within your web service itself. You
will have to programmatically gain to access the JNDI for the remote server, lookup
up the home stub and use it to create the remote stub for the EJB. Of course,
to make this work you must have the necessary client interfaces in you classpath
(home and remote interfaces) which can easliy be achieved by adding the EJB client.jar
file to the lib directory in the webservice WEB-INF folder.just define the different server path in the description xml file
<jndi-name>jnp://serverA(B)/....</jndi-name> -
How can I access my iPhone 5 videos that I record?
I took a couple of videos, including one long video (about 30 minutes) to test the quality and it was wonderful! The problem is that I can't do anything with them. They are (obviously) too large to send to people via things like email. I tried connecting it to my computer via usb to put the files onto my computer (my preferred method of dealing with files) but the video files were not there at all.
From my computer, there was really only one available path of folders and it took me to my camera roll where I could transfer/copy/save all my photos to my pc (which is great because I have taken many nice pictures). The videos, which were also stored on my phones camera roll were not visible in the folder at all (though the folder properties indicated it was 5GB large as if to say it did have the videos).
So my question is basically: how can I access my videos (and ideally get them onto my computer)?
Other details: I do not own a Mac and my iPhone is my only Apple Product.I Figured it out!!!!
My solution was to download the new iTunes and here is why I think it worked:
I tried to download the old iPhone explorer thing to search for the file and it required iTunes, which I didn't have. I was running Vista because I had to reset my pc to factory defaults (poor old PC haha. if only I had money for a new one). I don't like iTunes at all so I never bothered with it. Anyway, I started downloading the new version of iTunes (10.something) and about 1/8th of the way through the install, my pc started installing driver software on its own. It turned out it was installing drivers for my iPhone 5 (this occurred 1/8th of the way through right after iTunes installed some Apple components stuff for PCs) and this time, when I looked in the phone's folder for its data, my 30 minute video was there !!! So I think what was needed was a driver on my PC for my phone which for some reason didn't install until I got some Apple components (which was the first part of the iTunes install).
Thank goodness I don't need to touch iTunes and thank goodness it works! It is truly a wonderful phone and hopefully this will offer another solution to finding those pesky large video files (or large video file) that won't open up in the explorer. -
How can I access my App Store now I have changed my apple ID
How can I access my App Store now I have changed to a new apple ID?
That wasn't a very good idea. Apple does not transfer content from one Apple ID to another or merge Apple IDs. Not for anyone. All of the content that you got free or bought with the old ID is forever associated with that ID. You cannot redownload or update any of it without the old Apple ID.
-
How can I access my iCloud account from my computer, when I'm running OSX Leopard?
I have a Mac Book running Leopard and I don't have the iCloud icon in my settings.. How can I access my iCloud account/back up my computer to the cloud?
Your signature says you have 10.6.8 which is Snow Leopard, but that is still not compatible with iCloud. You cannot back up your computer to iCloud in any case - it doesn't provide for that, only for iOS backups.
The minimum requirement for iCloud is Lion 10.7.5 (Mountain Lion preferred): the iCloud Preference Pane does not appear on earlier systems - the MobileMe pane appears on Lion and earlier but is non non-functional - you cannot now open or access a MobileMe account.
If you have already set up an iCloud account on another Mac or device you can make limited use of it with Snow Leopard - details here.
To make full use of iCloud you will have to upgrade your Mac to Lion or Mountain Lion, provided it meets the requirements.
The requirements for Lion are:
Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
2GB of memory
OS X v10.6.6 or later (v10.6.8 recommended)
7GB of available space
To purchase it you will have to ring Apple at the number given at the bottom left of this page.
The requirements for Mountain Lion are:
OS X v10.6.8 or later
2GB of memory
8GB of available space
and the supported models are:
iMac (Mid 2007 or newer)
MacBook (Late 2008 Aluminum, or Early 2009 or newer)
MacBook Pro (Mid/Late 2007 or newer)
Xserve (Early 2009)
MacBook Air (Late 2008 or newer)
Mac mini (Early 2009 or newer)
Mac Pro (Early 2008 or newer)
It is available from the Mac App Store (in Applications).
You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table
(If in fact you are running Leopard and it is an Intel Mac you will have to upgrade to Snow Leopard to access the Mac App Store - it's available in the online Apple Store. However if you have a PPC Mac you cannot run Snow Leopard and cannot proceed further.) -
How can I access global variables in a loaded Applescript?
How can I access global variables in a loaded script, in Xcode, ApplescriptObjC? Basically, I have a global variable defined in my parent script using "property", and I need to modify objects connected to those variables inside of a loaded script.
Example:
Parent script:
script AppDelegate
property myTextField : missing value
//linked to a text field object
tell myScript to myAwesomeHandler_()
end script
Loaded script:
on myAwesomeHandler_()
myTextField's setStringValue_("The new Xcode is so glitchy ugh")
//changes value of linked text field of parent script
end myAwesomeHandler_
The problem is, the variable is undefined in the Loaded script, and I need it to have the same value as the parent script, and I don't want to pass the variable through the Handler. Any ideas?I think want you are looking to do will need to be done in two steps. Because myTextField needs to be a property for the ObjectiveC part of the code you cannot turn it into a global.
However if you make a temporary variable global assign the string to it in the handler then set myTextField off of it.
global myTextFieldGlobal
script AppDelegate
property myTextField : missing value
//linked to a text field object
tell myScript to myAwesomeHandler_()
myTextField's setStringValue_(myTextFieldGlobal)
end script
on myAwesomeHandler_()
set myTextFieldGlobal to "The new Xcode is so glitchy ugh"
//changes value of linked text field of parent script
end myAwesomeHandler_
I know you stated you did not want the handler to return a value but I have to ask why? Global's, imo, are not a good idea and really should be used as a last resort.
One other possibility is to pass a reference to the property to the handler. Not sure if that works in AS of if that would satisfy our requirement of not passing the variable through the handler
<edit>
Another though have you tried to define the property outside the script? That is
property myTextField : missing value
script AppDelegate
Not sure if that will work.
You might also want to have a look at Scope of Properties and Variables Declared in a Script Object
Maybe you are looking for
-
Windows XP in bootcamp won't recognise more than 2GB of RAM?
Hello. I use a Mac Pro (2008) with Mac OS X (10.5.8) and I run Windows XP using bootcamp for games. I recently installed an extra 4GB of memory which Mac OS recognizes fine, but XP can only recognize 2GB. Is this normal or does anyone know a fix/reas
-
ITunes 10.5 64-bit resetting preferences and library
I have been reading the discussions here, but have not found anyone with the problem I am experiencing with iTunes 10.5 64-bit. The problem is as follows: Each time I start/restart Windows 7, iTunes reverts all settings and the library to the defau
-
Always the same tag. This was happening late in Version 12 and I thought it would not reappear in Version 13, but it has from the time of upgrade. I have tried clearing Preferences and do not see anything in 'File Info' that would be supplying the ta
-
Can't add Drafts to Mailbox view
Hi Guys, Had my iPhone 5S a few days and I've come up with an issue in the Mail app, if I try to add "Drafts" to the Mailbox view at the top the app crashes, any other mailbox works, Trash, Junk, Sent etc but just not Drafts. Anyone else experienced
-
Unable to e-mail pictures with PSE 3.0.1.
I am using PSE 3.0.1. I am unable to e-mail pictures and keep getting an error message that says that some add-in program could not be installed. What is the problem? I have windows Vista. shealex