Using Groovy Functions in ADF

I am using jdeveloper 11.1.2.0.0
according to previous thread I can use groovy function "sum" to calculate the number of rows in my iterator which contains the attribute "Status" equal to 20 just like that
bindings.MyIterator.viewObject.sum['Status == 20 ? 1 : 0'] != 0
then I can use that to display link if there is at least on row contains he attribute "Status" equal to 20
so I modified the attribute "Rendered" to be
rendered="#{bindings.MyIterator.viewObject.sum['Status == 20 ? 1 : 0'] != 0} "
now I have new requirement
I need to display the link if there are at least on row contains he attribute "Status" equal to 20 or equal to 21
I tried to modify the render link to be
rendered="#{bindings.MyIterator.viewObject.sum['Status == 20 or status == 21 ? 1 : 0'] != 0} " but it doesn't work :(
and tried
rendered="#{bindings.MyIterator.viewObject.sum['Status == 20 ? 1 : 0'] != 0 or bindings.MyIterator.viewObject.sum['Status == 21 ? 1 : 0'] != 0} "
but doesn't work too :(
how can I implement this requirement ?

You can create function in your managed bean, iterate through rows in your VO, and bind this function to rendered(or visible) property, for example:
public boolean isLinkVisible(){
   boolean visible = false;
   RowSetIterator iterator = yourViewObject.createRowSetIterator(null);
   iterator.reset();
   while (iterator.hasNext()) {
     Row row = iterator.next();
     if(row.getAttribute("Status").equals(20)){
        visible = true;
        break;
   iterator.closeRowSetIterator();
   return visible;
}Dario

Similar Messages

  • How to create depedent lov using groovy functionality

    Hi,
    My requirement is need to create dependent LOV on form like, when ever user selects merchant_number, remaining merchant details should default, till now i am doing with valuechange listener. now i wanted to do on vo itself using groovy functionality. i have created merchant VO which is returning 4 values, merchant_number,name,phone,address. i have created view criteria with a bind variable.
    In my main vo i have created LOV for merchant_number. added the merchant vo as view accessor and set the bind variable value as merchant number. and with the merchant_name i am trying to setting as XxwfsMerchantDetailsLOV1.getMerchantName(). i am getting error like
    Exception in thread "AWT-EventQueue-0" oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingMethodException, msg=No signature of method: oracle.jbo.server.ViewRowSetImpl.getMerchantName() is applicable for argument types: () values: []

    hi,
    for creating LOV i don't have any issue, problem with defaulting the remaining fields. i am getting error like
    Exception in thread "AWT-EventQueue-0" oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingMethodException, msg=No signature of method: oracle.jbo.server.ViewRowSetImpl.getAttribute() is applicable for argument types: (java.lang.String) values: [MerchantName]
    at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:833)
    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:868)
    at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:762)
    at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2029)
    at oracle.jbo.server.ViewRowStorage.initDefaultExpressionAttributes(ViewRowStorage.java:930)
    at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1154)
    at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:428)
    at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:445)
    at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:4915)
    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1843)
    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2368)
    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2409)
    at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2374)
    at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:9684)
    at oracle.jbo.jbotester.NavigationBar.doInsertAction(NavigationBar.java:136)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:109)
    at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:117)
    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:6263)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    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:2475)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    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)

  • New paper published on using Groovy in JDeveloper 11g.

    If you are looking to use Groovy expressions in ADF Business Components but finding the current developer guides less than helpful, I've pulled together some typical use cases into a new white paper
    http://www.oracle.com/technology/products/jdev/11/how-tos/groovy/introduction_to_groovy.pdf
    Please let me know if you have any corrections/questions/feedback/
    Thanks
    Grant

    Thanks Grant for this paper.
    I was wondering what could be the next level of integration of groovy besides ADF BC inside ADF apps.
    As I have no real experience with Groovy at this time, would it be realistic to write groovy classes either in the model or the view/controller layer ?
    The idea is to benefit from Groovy powerful aspects as a dynamic and very concise language. Such groovy classes would be used to extend ADF framework classes for example.
    Does that makes sense to you and do you see any oppurtunities of such an integration ?
    Thanks,
    Seb.

  • How to use Groovy sum function in JDev11g

    In Fusion developer guide: 3.6 Overview of Groovy Support
    Says you can use the following built-in aggregate functions on ADF RowSet objects:
    ■ rowSetAttr.sum(GroovyExpr)
    ■ rowSetAttr.count(GroovyExpr)
    ■ rowSetAttr.avg(GroovyExpr)
    ■ rowSetAttr.min(GroovyExpr)
    ■ rowSetAttr.max(GroovyExpr)
    Have see a couple of threads that deal with this topic but neither say how to explicitly do this.
    I created a VO (EmpView1) and added a transient variable empSum, and set it to the expression EmpView1.sum("Sal") also rowSetAttr.sum("Sal") and get the following error.
    (oracle.jbo.expr.JIEvalException) JBO-25077: Name EmpView1 not found in the given object: ViewRow [oracle.jbo.Key[7839 ]].
    Really do need to find out how to use these functions.
    Thanks - Casey

    Hi,
    here's a little tutorial
    - create a master/detail relation between Departments and Employees using the HR schema
    - For the Departments VO, create a RowImpl class from the Java section
    - create an attribute SumFromEO in the Departments EO
    - in the DepartmentsVO, create a new attribute from EO pointing to SumFromEO
    - Also, in the VO, create a new attribute SumFromVO
    - make sure the attribue is transiesnt
    - set the created attribute on the VO "SumFromVO" and "SumFromEO" to use an Expression
    - Add the following Groovy expression to the SumFromEO transient attribute on the EO
    adf.object.Employees1.sum("Salary");
    - Add the following Groovy expression to the SumFromVO transient attribute on the VO
    adf.object.EmployeesView.sum("Salary");
    When you run this then both, the EO based VO attribute and the VO attribute should show the same value
    Frank

  • Use of Procedure and Functions in ADF BC

    Hi,
    In ADF 11g
    1. can I use oracle function and procedures ( having in and OUT parameters) to expose as service interface
    2. if yes , How can this be done. and what are the allowed data types as input to procedure/function and can be returned by procedure/function
    3. How the transaction control will be achieved using ADF BC service interface.
    E.g. one ADF BC creates orders in order details and second creates Order lines in Order lines table. Now if order is created successfully but line creation fails then I want order to be rolled back also.
    Thanks.

    google it out.
    How to get two out param which is used in Procedure
    http://sameh-nassar.blogspot.in/2010/01/create-plsql-function-and-call-it-from.html
    http://adf-tools.blogspot.in/2010/09/adf-function-call-from-el-statement-in.html
    http://adf-tools.blogspot.in/2010/03/adf-plsql-procedure-or-function-call.html
    http://adfhowto.blogspot.in/2010/11/call-db-procedure-or-function-from-adf.html
    Re: use of Procedure and Functions in ADF BC

  • How to use sum analytic function in adf

    Hi
    jdev 11.1.1.5
    oracle 11g r2
    I want to use analytic function (sum,count,avg and ...) .
    I see [url http://andrejusb.blogspot.co.uk/2013/02/oracle-analytic-functions-for-total-and.html]Oracle Analytic Functions for Total and Average Calculation in ADF BC
    and use it in my vo and jsf page,my vo have too much record and I want to have sum in table footer on demand (because of performance) and if user do not want to see the sum in footer of table it do not calculate sum,
    what is your idea?

    Before I read that blog I use another vo for sum but after that blog decide to use analytic fuction becuase we have some page that have to many dvt graph and table and know we use seperate vo for them and it has not good performance and too many query must run in database ,I want to have 1 vo with some analytic function for graph and tables

  • How to close a popup using a function key in adf + Jquery

    Hello All,
    I want to display some error message using function key so I have used javascript function
    *function showText(event) {*
    var k = event.getKeyCode();
    *if (k == 115) {*
    ------------------------------------------CODE-------------------------------------------
    This is working fine on click of F4 it is invoking a popup and inside that popup in dialog it is showing some error messages. The property modal of dialog is true. So that user should not be able to navigate to main form until error message is closed.
    Now on click of F6 I want that error message to be closed. When I added af:clientListener on popup or dialog type="keyDown" is not available.
    So I thought using jquery for this. I have created a form.js file inside that I have written:
    *$(function first()*
    *               jQuery('*').bind('keydown', 'F6', function (evt){closePopup();evt.stopPropagation();return false;});*
    *function closePopup(){*
    *     alert("Do you want to close the error message");*
    I have also added jquery.hotkeys.js and jquery-latest.js file.
    My question here is How can i find that popup or dialog inside that jquery function and close it?
    On click of F6 I am getting that alert Do you want to close the error message but after that how can I find the popup or dialog and close it?
    I am new to jquery still I tried using some code:
    var dialog = event.getSource();
    var popup = dialog.findComponent("p1");
    popup.close();
    and
    var output1 = AdfUIComponent.findComponent("p1");
    output1.close();
    and
    curElm = document.activeElement;
    var frm = curElm.close();
    But none of them worked.
    Please help
    Thanks

    Hi,
    this whitepaper: http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf has an example of registering keyboard keys on a global level (see page 36). So you would define a key to close dialogs in general. The paper also explains how to search and find components. Note that you should always work with the ADF Faces client side API and never against the generated markup or DOM (which in fact your code does)
    Frank

  • Error while using groovy

    hi experts
    am using jdev 11.1.1..5.0 - adfbc- oracledb10g
    see here what i did,
    GlAccountClassesVO - it' ah vo
    GaclAcctType - it ' an attribute of this vo.
    this vo has two primary key bu,id
    GlLvlAccountsVO  - it another vo
    GlalGlasType  - it ' an attribute of this vo.
    this vo has 6 primary keys bu,lvl1,lvl2,lvl3,lvl4,acct and i have the asscoiation between two of the Eo's
    GlAccountsClassesEO.GaclBu
    GlLvlAccountsEo.GlalBuin this GlLvlAccountsVO go edit attribute in edit attibute wizard, choose value type as expersion
    here i pasted this : adf.object.getGlalGlasType(GlAccountClasses.GaclAcctType)
    make a test. it's say valid suntax no error raising
    main thing is
    i want to access the attribute of another vo .
    while am running bc component browser.
    shows some error.
    and am going wrong. pls any one point me in right direction.
    [168] SELECT GlLvlAccountsEO.GLAL_BU,         GlLvlAccountsEO.GLAL_LVL1,         GlLvlAccountsEO.GLAL_LVL2,         GlLvlAccountsEO.GLAL_LVL3,         GlLvlAccountsEO.GLAL_LVL4,         GlLvlAccountsEO.GLAL_ACCT,         GlLvlAccountsEO.GLAL_OPT_TYPE,         GlLvlAccountsEO.GLAL_CRE_BY,         GlLvlAccountsEO.GLAL_CRE_DATE,         GlLvlAccountsEO.GLAL_UPD_BY,         GlLvlAccountsEO.GLAL_UPD_DATE,         GlLvlAccountsEO.GLAL_DESC1,         GlLvlAccountsEO.GLAL_DESC2,         GlLvlAccountsEO.GLAL_STATUS,         GlLvlAccountsEO.GLAL_SENT_FLAG,         GlLvlAccountsEO.GLAL_TITLE_ID,         GlLvlAccountsEO.GLAL_FBT_PCT,         GlLvlAccountsEO.GLAL_FBT_CAT,         GlLvlAccountsEO.GLAL_BUD_FLAG,         GlLvlAccountsEO.GLAL_PLANT,         GlLvlAccountsEO.GLAL_CL_ID FROM GL_LVL_ACCOUNTS GlLvlAccountsEO
    [169] ViewObject: [com.rits.glm.model.views.GlLvlAccountsVO]generalledgerAM.GlLvlAccounts1 Created new QUERY statement
    [170] Bind params for ViewObject: [com.rits.glm.model.views.GlLvlAccountsVO]generalledgerAM.GlLvlAccounts1
    [171] DBTransactionImpl.mDefaultSparseArrayThreshold is 20
    [172] DCBindingContainer.reportException :oracle.jbo.expr.JIEvalException
    [*173] oracle.jbo.expr.JIEvalException:
    JBO-25077: Name GlAccountClasses not found in the given object:
    ViewRow [oracle.jbo.Key[MEL MY1 MY2 MY3 MY4 0000000004 ]].*
         at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:85)
         at oracle.jbo.common.JboBeanUtils.getPropertyInMapOrBean(JboBeanUtils.java:235)
         at oracle.jbo.ExprEval.getRowVal(ExprEval.java:1375)
         at oracle.jbo.server.RowImpl.getExprVarVal(RowImpl.java:1953)
         at oracle.jbo.server.ViewRowImpl.getExprVarVal(ViewRowImpl.java:2895)
         at oracle.jbo.ExprEval$ExprValueSupplierOverrideMap.internalGet(ExprEval.java:164)
         at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)
         at oracle.jbo.ExprEval$ExprEvalGroovyWrapper.getProperty(ExprEval.java:315)
         at oracle.jbo.ExprEval$ExprValueSupplierGroovyBinding.getVariable(ExprEval.java:610)
         at groovy.lang.Script.getProperty(Script.java:54)
         at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241)
         at bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.run(bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.groovy:1)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1208)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1261)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1083)
         at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2141)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1835)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1897)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:840)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl.getGlalGlasType(GlLvlAccountsVORowImpl.java:984)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl$AttributesEnum$30.get(GlLvlAccountsVORowImpl.java:315)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl.getAttrInvokeAccessor(GlLvlAccountsVORowImpl.java:1083)
         at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:870)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
         at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
         at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.refreshControl(JUCtrlAttrsBinding.java:245)
         at oracle.jbo.jbotester.FieldFactory.createField(FieldFactory.java:230)
         at oracle.jbo.jbotester.FieldFactory.createField(FieldFactory.java:153)
         at oracle.jbo.jbotester.panel.BindingPanel.createField(BindingPanel.java:141)
         at oracle.jbo.jbotester.panel.CardPanel.showAttributeDefs(CardPanel.java:210)
         at oracle.jbo.jbotester.panel.CardPanel.showAttributeDefs(CardPanel.java:175)
         at oracle.jbo.jbotester.panel.CardPanel.<init>(CardPanel.java:104)
         at oracle.jbo.jbotester.panel.CardPanel.<init>(CardPanel.java:93)
         at oracle.jbo.jbotester.panel.RowSetPanel.showCard(RowSetPanel.java:234)
         at oracle.jbo.jbotester.panel.RowSetPanel.setIterator(RowSetPanel.java:105)
         at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:118)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
         at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
         at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
         at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
         at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
         at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
         at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
         at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
         at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:728)
         at oracle.jbo.jbotester.tree.Tree.access$100(Tree.java:96)
         at oracle.jbo.jbotester.tree.Tree$TreeMouseListener.mouseClicked(Tree.java:141)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
         at java.awt.Component.processMouseEvent(Component.java:6292)
         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:4247)
         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)
    [174] JUErrorHandlerDlg.reportException(oracle.jbo.expr.JIEvalException)
    [175] DCBindingContainer.reportException :oracle.jbo.expr.JIEvalException
    *[176] oracle.jbo.expr.JIEvalException: JBO-25077: Name GlAccountClasses not found in the given object: ViewRow [oracle.jbo.Key[MEL MY1 MY2 MY3 MY4 0000000004 ]].*
         at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:85)
         at oracle.jbo.common.JboBeanUtils.getPropertyInMapOrBean(JboBeanUtils.java:235)
         at oracle.jbo.ExprEval.getRowVal(ExprEval.java:1375)
         at oracle.jbo.server.RowImpl.getExprVarVal(RowImpl.java:1953)
         at oracle.jbo.server.ViewRowImpl.getExprVarVal(ViewRowImpl.java:2895)
         at oracle.jbo.ExprEval$ExprValueSupplierOverrideMap.internalGet(ExprEval.java:164)
         at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)
         at oracle.jbo.ExprEval$ExprEvalGroovyWrapper.getProperty(ExprEval.java:315)
         at oracle.jbo.ExprEval$ExprValueSupplierGroovyBinding.getVariable(ExprEval.java:610)
         at groovy.lang.Script.getProperty(Script.java:54)
         at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241)
         at bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.run(bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.groovy:1)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1208)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1261)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1083)
         at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2141)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1835)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1897)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:840)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl.getGlalGlasType(GlLvlAccountsVORowImpl.java:984)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl$AttributesEnum$30.get(GlLvlAccountsVORowImpl.java:315)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl.getAttrInvokeAccessor(GlLvlAccountsVORowImpl.java:1083)
         at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:870)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
         at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
         at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.refreshControl(JUCtrlAttrsBinding.java:245)
         at oracle.jbo.jbotester.BindingAdapter.refresh(BindingAdapter.java:69)
         at oracle.jbo.jbotester.panel.CardPanel.refreshAll(CardPanel.java:128)
         at oracle.jbo.jbotester.panel.RowSetPanel.refreshAll(RowSetPanel.java:206)
         at oracle.jbo.jbotester.panel.RowSetPanel.showCard(RowSetPanel.java:236)
         at oracle.jbo.jbotester.panel.RowSetPanel.setIterator(RowSetPanel.java:105)
         at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:118)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
         at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
         at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
         at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
         at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
         at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
         at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
         at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
         at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:728)
         at oracle.jbo.jbotester.tree.Tree.access$100(Tree.java:96)
         at oracle.jbo.jbotester.tree.Tree$TreeMouseListener.mouseClicked(Tree.java:141)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
         at java.awt.Component.processMouseEvent(Component.java:6292)
         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:4247)
         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)
    [177] JUErrorHandlerDlg.reportException(oracle.jbo.expr.JIEvalException)
    [178] **** refreshControl() for BindingContainer :generalledgerAM_GlLvlAccounts1_0PageDef
    [179] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    *[180] DCBindingContainer.reportException :oracle.jbo.expr.JIEvalException*
    *[181] oracle.jbo.expr.JIEvalException: JBO-25077: Name GlAccountClasses not found in the given object: ViewRow [oracle.jbo.Key[MEL MY1 MY2 MY3 MY4 0000000004 ]].*
         at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:85)
         at oracle.jbo.common.JboBeanUtils.getPropertyInMapOrBean(JboBeanUtils.java:235)
         at oracle.jbo.ExprEval.getRowVal(ExprEval.java:1375)
         at oracle.jbo.server.RowImpl.getExprVarVal(RowImpl.java:1953)
         at oracle.jbo.server.ViewRowImpl.getExprVarVal(ViewRowImpl.java:2895)
         at oracle.jbo.ExprEval$ExprValueSupplierOverrideMap.internalGet(ExprEval.java:164)
         at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)
         at oracle.jbo.ExprEval$ExprEvalGroovyWrapper.getProperty(ExprEval.java:315)
         at oracle.jbo.ExprEval$ExprValueSupplierGroovyBinding.getVariable(ExprEval.java:610)
         at groovy.lang.Script.getProperty(Script.java:54)
         at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241)
         at bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.run(bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.groovy:1)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1208)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1261)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1083)
         at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2141)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1835)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1897)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:840)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl.getGlalGlasType(GlLvlAccountsVORowImpl.java:984)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl$AttributesEnum$30.get(GlLvlAccountsVORowImpl.java:315)
         at com.rits.glm.model.views.GlLvlAccountsVORowImpl.getAttrInvokeAccessor(GlLvlAccountsVORowImpl.java:1083)
         at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:870)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
         at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
         at oracle.jbo.uicli.binding.JUIteratorBinding.updateValuesFromRows(JUIteratorBinding.java:338)
         at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:838)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
         at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
         at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4437)
         at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3507)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3340)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:2906)
         at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:120)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
         at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
         at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
         at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
         at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
         at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
         at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
         at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
         at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:728)
         at oracle.jbo.jbotester.tree.Tree.access$100(Tree.java:96)
         at oracle.jbo.jbotester.tree.Tree$TreeMouseListener.mouseClicked(Tree.java:141)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
         at java.awt.Component.processMouseEvent(Component.java:6292)
         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:4247)
         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)
    *[182] JUErrorHandlerDlg.reportException(oracle.jbo.expr.JIEvalException)*
    *[183] DCBindingContainer.reportException :oracle.jbo.expr.JIEvalException*
    *[184] oracle.jbo.expr.JIEvalException: JBO-25077: Name GlAccountClasses not found in the given object: ViewRow [oracle.jbo.Key[MEL MY1 MY2 MY3 MY4 0000000004 ]].*
         at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:85)
         at oracle.jbo.common.JboBeanUtils.getPropertyInMapOrBean(JboBeanUtils.java:235)
         at oracle.jbo.ExprEval.getRowVal(ExprEval.java:1375)
         at oracle.jbo.server.RowImpl.getExprVarVal(RowImpl.java:1953)
         at oracle.jbo.server.ViewRowImpl.getExprVarVal(ViewRowImpl.java:2895)
         at oracle.jbo.ExprEval$ExprValueSupplierOverrideMap.internalGet(ExprEval.java:164)
         at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)
         at oracle.jbo.ExprEval$ExprEvalGroovyWrapper.getProperty(ExprEval.java:315)
         at oracle.jbo.ExprEval$ExprValueSupplierGroovyBinding.getVariable(ExprEval.java:610)
         at groovy.lang.Script.getProperty(Script.java:54)
         at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47)
         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241)
         at bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.run(bc4j.com_rits_glm_model_views_GlLvlAccountsVO_GlalGlasType_null.gs.groovy:1)
         at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1208)
         at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1261)
         at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1083)
         at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2141)
         at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1835)
         at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1897)
         at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:840)

    Hi,
    is this a static class with an inner class you created: GlAccountClasses.GaclAcctType ? If not then this cannot be found. If you want to pass the reference to another View Object, use
    a) a method exposed on the other VO Impl class
    b) The ViewLink accessor
    If you are using Groovy on a VO level then it doesn't help if you have accessors defined on the EO level
    This may help too: http://blogs.oracle.com/raghuyadav/entry/groovy_samples
    Frank

  • File download and Upload using SOAP in Oracle ADF

    Hi Gurus,
    I have a requirement of Uploading and downloading a file on a location. It is for uploading and downloading an Attachments for a user. I have a table in my jspx page for showing the current attachments and an option to upload a new attachment. When I click on attachment name, the file should be downloaded.
    The current implementation does this using SOAP web service. Now, i need to do it with ADF now.
    For Uploading and downloading, i have used FileDownloadActionListner on my page. I am not able to figure out how to use SOAP service in ADF to download or upload a file. what i have done is
    1. Create WebService Data Control with the exposed wsdl.
    2. Created .jspx page and binded the fuctions to the button.
    3. In managed bean class, i have written code to get reference to that web service and invoke it. I am assuming of making the currect call as the response object is not coming as null.
    Now i need to know:
    1. How to verify for the success response from a SOAP web service in the managed bean code.
    2. how to go ahead with the implementation.
    For Upload: I have filename, content and mimetype in the managed bean code function. but how to use those to make a soap call and upload a file at the location.
    For Download: I have DocumentId in the managed bean code function, and how to use it to download a file. How to get the SOAP response in managed bean code and how to handle it.
    Thanks in Advance,
    regards,
    Rajan

    Hi,
    don't have an example, but I suggest to use a JAX-WS proxy client and access it from the POJO DC (instead the WS DC) so you have access to the service responses
    Frank

  • Procedure and Functions from ADF View Layer

    Hi,
    Before i ask my question ,I would like to mention that I have done lot of googling on this topic before asking this question.
    http://adfhowto.blogspot.in/2010/11/call-db-procedure-or-function-from-adf.html
    http://adf-tools.blogspot.ca/2010/03/adf-plsql-procedure-or-function-call.html
    Lot of threads on otn forum too on this topic.
    I m pretty new to ADf too.
    Now most of our logic is in procedures and functions ,so on various events on form(view layer) I need to call procedure and function and then return values back to value layer too.
    Now the approach mentioned in the link above is good whats best approach to return out parameters to view layer considering i will be using either the DbCall class for all calls to procedures and functions
    I am thinking of this approach to Create a view with static fields,and in Model layer set values for these fields and access them in view layer or binding view controls to these fields.
    From View layer i will call the methods in AppmodImpl which will be calling procedure( methods will be exposed as Client Interface)
    Also in few articles i came across generic CallStoredProcedure and CallStoredFunctions.
    But my main concern is how to share out parameters with view layer....can anyone give link of showing application of it on view layer.
    Regards,

    From your subject. am stating that, dont do all those stuff in backing bean. backing bean is 1:1 mapping with your .jpsx or .jsff .
    best approach would be call those things your Application Module(model layer) exposed it. access the method over your pagedef. well said by ram.

  • Using Application Module outside ADF Application context

    I am trying to run application module using a standalone java class. Trying to use Application Module outside ADF Application context.
    I have created a jar file on my standalone java class, and added my ADF application jar files to the classpath while running my standalone java file as a Jar file.
    I could connect to the application module and I am able to get the response from my application module.
    Below is the code I used to invoke my application module method from my standalone java class.
         public static void main(String[] args) {
              System.out.println("Testing .....");
             String jdbcURL = "jdbc:oracle:thin:@localhost:1521:XE";
             Hashtable env = new Hashtable();
             env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
             env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
             try {
                 Context ic = new InitialContext(env);
                 String defName = "com.org.model.BatchJobAppModule";
                 ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(defName);
                 ApplicationModule mbApplicationModule= (ApplicationModule)home.create();
                 mbApplicationModule.getTransaction().connect(jdbcURL, "HR", "HR");
                    ((BatchJobAppModuleImpl)mbApplicationModule).connectToDatabase();
             } catch (NamingException ne) {
                 // TODO: Add catch code
                 ne.printStackTrace();
    {code}
    I am getting following messages.
    {code: warning}
    oracle.adf.share.ADFContext getCurrent
    WARNING: Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
    Dec 14, 2012 10:16:37 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
    SEVERE: java.io.FileNotFoundException: D:\satya\testPackage\.\config\jps-config.xml (The system cannot find the path specified)
    {code}
    I have another question regarding connecting to database.
    How to get connection from a datasource, to avoid supplying database credentials which will vary from one environment to another.
    Please let me know if any one has pointers.
    Thanks in advance.
    Regards,
    Satya
    Edited by: 921138 on Dec 14, 2012 9:20 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Thanks Shay for your response.
    When I run the standalone java class from jDeveloper 11.1.1.5.0, I am able to get application module and also able to get the out put from application module method. While running the java class jdev is exectung the class with javaw command. I tried to execute the same from commnd prompt, it didn't print anything on the command prompt. So I tried to execute java command with "java followed by class path" as below.
    set JAVA_HOME=C:\Oracle\Middleware\jdk160_24\jre
    set PATH=%JAVA_HOME%\bin;%PATH%
    java -classpath E:\poc\TestBatchJobClient\Project1\deploy\First.jar;E:\poc\BatchJobApp\Model\deploy\adf-share-base.jar;E:\poc\BatchJobApp\Model\deploy\adfm.jar;E:\poc\BatchJobApp\Model\deploy\BatchJobApp_Model.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\adfsharembean.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.idm_11.1.1\identitystore.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\bc4j-mbeans.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\bc4jwizard.jar;C:\Oracle\Middleware\oracle_common\modules\groovy-all-1.6.3.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\db-ca.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.model_11.1.1\jdev-cm.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ldap_11.1.1\ojmisc.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.share_11.1.1\oracle-el.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.javatools_11.1.1\resourcebundle.jar;C:\Oracle\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;C:\Oracle\Middleware\modules\javax.mail_1.1.0.0_1-4-1.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\oramds.jar;C:\Oracle\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;C:\Oracle\Middleware\modules\javax.jsp_1.2.0.0_2-1.jar;C:\Oracle\Middleware\jdeveloper\ide\macros\..\..\..\wlserver_10.3\server\lib\ojdbc6.jar;C:\Oracle\Middleware\oracle_common\jlib\commons-cli-1.0.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.bali.share_11.1.1\share.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.javacache_11.1.1\cache.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ucp_11.1.0.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;C:\Oracle\Middleware\modules\javax.management_1.2.1.jar;C:\Oracle\Middleware\modules\javax.management.j2ee_1.0.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-api.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-common.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-ee.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-internal.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-manifest.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.pki_11.1.1\oraclepki.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_core.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_cert.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.osdt_11.1.1\osdt_ws_sx.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.iau_11.1.1\fmw_audit.jar;C:\Oracle\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.adf.security_11.1.1\adf-share-security.jar -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks com.org.TestMyClass
    {code}
    I got the same old error.
    Regards,
    Satya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Tool Tip for VO attribute using Groovy

    Hi All,
    I was wondering how to use groovy for Tool Tip of a view object attribute.
    What I am basically looking for is return the String from a RowImpl class method and set it as a Tool Tip text.
    my method:
    public String applyToolTip(){
    return "This is my Tool Tip";
    Groovy used for Tool Tip Attribute
    adf.object.applyToolTip()
    also tried with,
    adf.object.viewObject.applyToolTip()
    None of them work. Also I tried writing the same method in VOImpl class. No luck.. Please help with explanation.
    Thanks.

    Hi,
    Groovy is not used throughout ADF BC. It can be used in validation and to define default values to an attribute but not for UI hints. For tool tips you would use message bundles (assuming your question is towards internationalization). Tool tips are defined on the AttributeDef of a View Object attribute and thus not defined per VO instance.
    Frank

  • Can not use TOUCH function on Nokia 6600 slide

    Can not use TOUCH function on Nokia 6600 slide-
    turned on sensor in phone settings, but when i touch the PHONE it does not work.
    Please, tell me how use this function or maybe my phone is out of order

    As long as your Sensor Settings are On within Menu, Settings, Phone, Sensor Settings then you just need to do the following -
    Tapping
    The tap function allows you to quickly
    mute and reject calls and alarm tones, and
    to display a clock just by double-tapping
    the back or front of the phone when the
    slide is closed.
    Select Menu > Settings > Phone >
    Sensor settings to activate the tap
    function and vibration feedback.
    Mute calls or alarms
    Double-tap the phone.
    Reject a call or snooze an alarm after
    muting it
    Double-tap the phone again.
    Display the clock
    Double-tap the phone.
    (If you have missed calls or received new
    messages, you must view them before you
    can see the clock.)
    Simply, if you double tap the screen when the slide is closed and you can see the clock appear then it is working.
    I hope this makes it clearer for you.
    Full Manual here - http://nds1.nokia.com/phones/files/guides/Nokia_6600_slide_UG_en.pdf

  • Can we use replace function in bursting control file?

    Hi All,
    Greetings!!!!!!!!!!
    Have a doubt can we use sql functions like replace,nvl,decode.. in xml bursting control file.
    Please let me know if there is a option.
    awaiting reply...
    Thanks
    Rajesh

    In Expression operator or in Filter, etc. you can type function name by hand.
    Oleg

  • Can we use Evaluate function in Prompt

    Hi all
    Can we use Evaluate Function in Dashboard Prompt?
    I need some exposure on how to use it.
    I am working on a HRMS-OLTP Source where I need to work with Oracle Functions from OBIEE.
    IF somebody can tell me that, It will be a favour for me....
    ThanQ
    Anand V

    Hi All,
    Here's an example of how to use evaluate. This use calls the Oracle TO_DATE function: EVALUATE('TO_DATE(%1,%2)' as DATE, '03/03/2009', 'MM/DD/YYYY')
    Here's how it works: EVALUATE( '<FUNC>' AS <DATATYPE>, VALUE1,VALUE2,etc)
    FUNC) Is the syntax for the function you are calling. Any parameters have to be replaced by %<number>, where number refers to the order in which you specify your parameters.
    DATATYPE) The datatype that the function will evaluate to. In this case, DATE.
    VALUE1) The latter part of the formula is a comma separated list of all the parameters used in the function. In this case, it's the date I want to cast
    VALUE2) This is the second parameter. You need as many as you referenced in your function. In this case, it's the date format.
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

Maybe you are looking for