Get bind variables of a dynamic view object
I seem unable to retrieve the bind variables for a dynamically created view object, even though I can do the same thing for a regular view object.
Here is the code:
newVO = repServ.createViewObjectFromQueryStmt("newQry",strSql);
VariableValueManager vvm = newVO.ensureVariableManager();
if (vvm != null)
Variable vars[] = vvm.getVariables();
vars will be empty, even though the sql statement in strSql has bind variables in it.
Is there any way to determine the bind variables of a dynamic view object?
Thanks!
I got the same problem as yours and still could not find any way out.
However, as I can see, you wanted to get VariableValueManager of newly created ViewObject that may be not available at this moment.
If you find way to solve the problem, please help.
Cheer,
MinhTran
Similar Messages
-
BC4J: Question on bind variables and DML in view objects
Hello,
I have a view object with a bind variable in the WHERE clause of the underlying query. I'm curious about how the state of this bind variable affects the use of the view object for inserting, updating, etc., at various stages of the commit cycle (before posting changes, after posting changes, after commit).
Specifically, what happens in the following scenarios?
1. The bind variable is not bound (and the query has not been executed) and a row is inserted into the VO
2. The bind variable is set to some value and an inserted or updated row in the VO does not meet the criteria specified by the bind variable; the transaction is then committed
If there is a weblog entry, help file, or HOWTO somewhere, I'd welcome a link to it.
Thanks,
AlanThe variable would only come into play when the VO's query is executed. It can be executed implicitly -- for example, accessing the first() row if the query hasn't been executed yet -- or explicitly by a call to executeQuery().
By setting setMaxFetchSize(0) on your VO, no rows will be fetched and you can use the VO for insert only. -
Dynamic view object loses bind variables after passivation
I am creating a view object definition/view object programmatically in Jdev 11.1.1.2.0. The query requires a named bind parameter. All was working fine but now I am testing with app module pooling disabled and the bind variable is not being restored after passivation -- it's like the definition has disappeared or something.
Here is my VO creation code:
ViewObject vo = findViewObject("FinalistsWithEvalDataVO");
if (vo != null){
vo.remove();
ViewDefImpl voDef = new ViewDefImpl("FinalistsWithEvalDataVODef");
// I add a bunch of viewAttrs here...
voDef.setQuery(fullQuery);
voDef.setFullSql(true);
voDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
voDef.resolveDefObject();
voDef.registerDefObject();
vo = createViewObject("FinalistsWithEvalDataVO", voDef);
vo.defineNamedWhereClauseParam("Bind_SchlrAyId", null, new int[] {0});
vo.setNamedWhereClauseParam("Bind_SchlrAyId", new Number(1)); //For testing
vo.executeQuery();
The query executes fine right there and then the VO seems to passivate fine. I even see the bind var in passivation:
<exArgs count="1">
<arg name="Bind_SchlrAyId" type="oracle.jbo.domain.Number">
<![CDATA[1]]>
</arg>
</exArgs>
But then when it reactivates prior to rendering the page, it invariably throws a missing parameter exception and this in the log:
<ViewUsageHelper><createViewAttributeDefImpls> [7409] *** createViewAttributeDefImpls: oracle.jdbc.driver.OraclePreparedStatementWrapper@1af78e1
<ViewUsageHelper><createViewAttributeDefImpls> [7410] Bind params for ViewObject: [FinalistsWithEvalDataVO]AwardViewingServiceAM.FinalistsWithEvalDataVO
<ViewUsageHelper><createViewAttributeDefImpls> [7411] ViewUsageHelper.createViewAttributeDefImpls failed...
<ViewUsageHelper><createViewAttributeDefImpls> [7412] java.sql.SQLException: Missing IN or OUT parameter at index:: 1
I have worked on this for hours and can't see anything wrong. Like I said, it works fine when not forcing passivation...
Any help would be appreciated.
Thanks.
-Ed@Jobinesh - Thanks for the suggestions. I have read all the documentation I can find. Everything works fine without passivation. Everything still breaks with passivation. I have given up on trying to get the bind variable to restore after passivation and am currently just building the query with all values embedded in the query rather than bind variables. This is bad practice but avoids the problem. However, now that I avoided that obstacle, I'm on to the next issue with passivation of this dynamic view object, which is that the current row primary key apparently cannot be reset after activation. I get the following error:
<Key><parseBytes> [7244] Key(String, AttributeDef[]): Invalid Key String found. AttributeCount:1 does not match Key attributes
<DCBindingContainer><reportException> [7254] oracle.jbo.InvalidParamException: JBO-25006: Value 00010000000A30303033383133343734 passed as parameter String to method Constructor:Key is invalid: {3}.
at oracle.jbo.Key.parseBytes(Key.java:537)
at oracle.jbo.Key.<init>(Key.java:179)
at oracle.jbo.server.IteratorStateHolder.getCurrentRowKey(IteratorStateHolder.java:34)
at oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3877)
I've been trying various workarounds for over a day now with no luck. Very frustrating.
Thanks for trying to help.
-Ed -
Creating and Accessing a Dynamic View Object
Hi,
I'm needing to create a Dynamic View Object so to have the ability to modify the FROM and WHERE clauses in an SQL statement.
I then need to view all the columns and rows in an adf table or something similar.
I've read up a fair bit on similar situations, however I'm struggling with the basic framework of building the View Object.
I know I'm wanting to use ..createViewObjectFromQueryStmt..but just unsure of the syntax in using it, especially connecting the VO to an Application Module.
This is similar to what I've got now, located in AppModuleImpl.java
public void createDynVO(ApplicationModule appMod, String FROMclause, String WHEREclause){
String SQL = "SELECT JOURNAL_NAME, PERIOD_NAME FROM " + FROMclause + " " + WHEREclause;
ViewObject vo = appMod.createViewObjectFromQueryStmt("DynamicView", SQL);
vo.executeQuery();But how does it know what the application module is?
Any help would be greatly appreciated!
-ChrisOk, I've actually modified my approach to this.
I've created a View Object in the design view, added it to the App Module, and then created an iterator and bound an adf table to that iterator.
The View Object which I created has the same column names as what I am going to be getting later down the track.
Everything is working perfectly, except that I can't seem to bind variables to the WHERE clause.
Below is what I have got running:
public void recreateDynView(String FromClause, String whereCompany, String whereDepartment) {
String sql_PAGE_ITEM1 = " AND PAGE_ITEM1 LIKE :P_PAGE_ITEM1";
String sql_PAGE_ITEM2 = " AND PAGE_ITEM2 LIKE :P_PAGE_ITEM2";
findViewObject("DynamicView1").remove();
String SQLStmt = "SELECT PAGE_ITEM1, PAGE_ITEM2, PAGE_ITEM3, LINE_ITEM FROM " + FromClause;
ViewObject vo = createViewObjectFromQueryStmt("DynamicView1",SQLStmt);
vo.setWhereClause("1=1");
if (whereCompany != null && whereCompany.length()>0){
vo.setWhereClause(vo.getWhereClause() + sql_PAGE_ITEM1);
vo.defineNamedWhereClauseParam("P_PAGE_ITEM1",null,null);
vo.setNamedWhereClauseParam("P_PAGE_ITEM1",whereCompany);
if (whereDepartment != null && whereDepartment.length()>0){
vo.setWhereClause(vo.getWhereClause() + sql_PAGE_ITEM2);
vo.defineNamedWhereClauseParam("P_PAGE_ITEM2",null,null);
vo.setNamedWhereClauseParam("P_PAGE_ITEM2",whereDepartment);
vo.executeQuery();
}However whenever I input a value into one of the bound variables, I get the following error on the page.
1. JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-25070: Where-clause param variable P_PAGE_ITEM1 needs ordinal index array.
2. JBO-25070: Where-clause param variable P_PAGE_ITEM1 needs ordinal index array.In the view object which i created at design stage, I've set the binding style to Oracle Named, so it should be alright. But obviously since I'm removing the view object and creating another version of it, it doesn't have the same binding style attached by default?
Is there a work around for this? I'm so close!
-Chris -
How to create dynamic View Object and Dynamic Table
Dear ll
I want to create a dynamic view object and display the output in a dynamic table on the page.
I am using Jdeveloper 12c "Studio Edition Version 12.1.2.0.0"
This what I did:
1- I created a read only view object with this query "Select sysdate from dual"
2- I added this View object to the application module
3- I created a new method that change the query of this View object at runtime
public void changeVoQuery(String dbViewName) {
String sqlstm = "Select * From " + dbViewName;
ViewObject dynamicVo = this.findViewObject("DynamicVo");
if (dynamicVo != null) {
dynamicVo.remove();
dynamicVo = this.createViewObjectFromQueryStmt("DynamicVo", sqlstm);
dynamicVo.executeQuery();
4- I run the application module for testing the method and I passed "Scott.Emp" as a parameter and the result was Success
5- Now I want to show the result of the view on the page, so I draged and dropped the method from the data control as a parameter form
6- I dragged and dropped the view Object "DynamicVo" as a table and I choose "generate Column Dynamically at runtime". This is the page source
<af:panelHeader text="#{viewcontrollerBundle.SELECT_DOCUMTN_TYPE}" id="ph1">
<af:panelFormLayout id="pfl1">
<af:inputText value="#{bindings.dbViewName.inputValue}" label="#{bindings.dbViewName.hints.label}"
required="#{bindings.dbViewName.hints.mandatory}"
columns="#{bindings.dbViewName.hints.displayWidth}"
maximumLength="#{bindings.dbViewName.hints.precision}"
shortDesc="#{bindings.dbViewName.hints.tooltip}" id="it1">
<f:validator binding="#{bindings.dbViewName.validator}"/>
</af:inputText>
<af:button actionListener="#{bindings.changeVoQuery.execute}" text="changeVoQuery"
disabled="#{!bindings.changeVoQuery.enabled}" id="b1"/>
</af:panelFormLayout>
</af:panelHeader>
<af:table value="#{bindings.DynamicVo.collectionModel}" var="row" rows="#{bindings.DynamicVo.rangeSize}"
emptyText="#{bindings.DynamicVo.viewable ? 'No data to display.' : 'Access Denied.'}"
rowBandingInterval="0" selectedRowKeys="#{bindings.DynamicVo.collectionModel.selectedRow}"
selectionListener="#{bindings.DynamicVo.collectionModel.makeCurrent}" rowSelection="single"
fetchSize="#{bindings.DynamicVo.rangeSize}" filterModel="#{bindings.DynamicVoQuery.queryDescriptor}"
queryListener="#{bindings.DynamicVoQuery.processQuery}" filterVisible="true" varStatus="vs" id="t1"
partialTriggers="::b1">
<af:iterator id="i1" value="#{bindings.DynamicVo.attributesModel.attributes}" var="column">
<af:column headerText="#{column.label}" sortProperty="#{column.name}" sortable="true" filterable="true"
id="c1">
<af:dynamicComponent id="d1" attributeModel="#{column}"
value="#{row.bindings[column.name].inputValue}"/>
</af:column>
</af:iterator>
</af:table>
when I run the page this error is occured
<Nov 13, 2013 2:51:58 PM AST> <Error> <oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #1
javax.el.ELException: java.lang.NullPointerException
Caused By: java.lang.NullPointerException
Can any body help me please
thanksHave you seen Shay's video https://blogs.oracle.com/shay/entry/adf_faces_dynamic_tags_-_for_a
All you have to do is to use the dynamic table to get your result.
Timo -
Master-detail with dynamic view object
How can you create a view link with a view object that is dynamic? I have created a master-detail relationship on a UIX page. I change the master view object at runtime using a view definition and SQL and then I bind the view object to an iterator on a UIX page. I need the new dynamic view object to maintain the link between the detail view object. Is this possible?
The reason why I have to change the view object at runtime is because I am implementing a search module and the tables in the from clause can be modified at runtime so I need to have a dynamic view object.
Thanks,
SanjayAfter playing around with ViewObjectImpl's setQuery() method some more I found out that this solution might not work for me due to the following reason: when the user tries to sort a column in the result table, the original contents of the view object get executed instead of the run time query.
<p>
I would like to go back to my original solution that included creating a view definition based on the runtime query and then creating a view object from that which I bind to the RowSetIterator. The missing piece to the master-detail functionality is with the detail Iterator being in sync with the master. I have tried the following but I get a ClassCastException <p>
DCIteratorBinding detailBinding = ctx.getBindingContainer().findIteratorBinding("DetailIterator");
detailBinding.getViewObject().<b>setMasterRowSetIterator</b>(masterBinding.getRowSetIterator());
<p>
here is the relevant stack trace:
java.lang.ClassCastException
at oracle.jbo.client.remote.ViewUsageImpl.getImplObject(ViewUsageImpl.java:1829)
at oracle.jbo.client.remote.RowSetImpl.setMasterRowSetIterator(RowSetImpl.java:512)
at oracle.jbo.client.remote.ViewUsageImpl.setMasterRowSetIterator(ViewUsageImpl.java:1147)
at oracle.jbo.common.ws.WSViewObjectImpl.setMasterRowSetIterator(WSViewObjectImpl.java:1005) -
Paging issues using a dynamic view object...
I am working on an application that uses JAG to generate JSP pages, i had the requirement to use dynamic view objects where the view object query is generated at runtime. The rest of the application is more or less the same... I used the defult functionality provided by TableScrollButtons.jsp file for paging. Now the problem im facing is that while the '>' and '<' buttons are working fine, i cant seem to navigate to the pages using the drop down...
With the default handler, whenever i select the range the range displayed remains the same ie 1-10, 10 being the rangesize, but the rows are refreshed with values from the next page. Also, if the next page is the last and is incomplete, then the rows are pushed in from the bottom, so that the last page is always full...I tried the tuning panel in the view object edit dialogue and all settings are fine (i think)...could anyone please tell me what i am doing wrong??could it be because i am using a dynamic view object with dynamic bindings? i am using the preparemodel() method in the action as follows...
protected void prepareModel(DataActionContext ctx) throws Exception {
inferRangeBindingIfUnset(ctx);
ctx.getBindingContainer().setEnableTokenValidation(false);
String sql = ctx.getHttpServletRequest().getParameter("sql");
String cost=ctx.getHttpServletRequest().getParameter("CostCostCent");
String event=ctx.getHttpServletRequest().getParameter("event");
if (sql != null && event == null) {
setupDynamicQueryAndDynamicBindings(ctx,sql.substring(1),cost);
if (retrieveOnlyCurrentPageFromDatabase()) {
ViewObject vo = getIterForPaging(ctx).getViewObject();
if (vo.getAccessMode() != ViewObject.RANGE_PAGING) {
vo.setAccessMode(ViewObject.RANGE_PAGING);
// if(event==null)
super.prepareModel(ctx);
ctx.getBindingContainer().setEnableTokenValidation(true);
if (ctx.getEvents() == null || ctx.getEvents().size() ==0) {
setPage(ctx,1);
setLastPage(ctx,getIterForPaging(ctx).getRowSetIterator().getEstimatedRangePageCount());
else if(event.equals("setRangeStart")) {
setPageFromRequest(ctx);
} -
Lov based on a dynamic view object
Build JDEVADF_11.1.2.0.0_GENERIC_110531.1615.6017
Hi,
I have a database table containing a column with the Name of a Table as content.
I created a dynamic view and overwrite this with a method in Appmodule.
Then I add to the element in the main view the Lov. I execute the method in JSP page.
But the SelectOnechoice list is empty!
Where is the problem? How can I create a Lov based on a dynamic view object?
Thanks in advance and best regards
Edited by: NewBB on 12.08.2011 00:53Hi Neliel,
thank you for your reply.
My problem is not the same. I can also see my dynamic view objects as selectonechoice. I have a table T1 has a column t1c1 (Number),
another table T2 (dynamic view object) with two columns t2c1 (Number) and t2c2 (varchar2).
In my application I want to represent the values of t1c1 as selectonechoice with the values of t2c2.
and that does not work. My list is empty. Any idea??? -
Error in using Dynamic View Object
Hi
I am doing a experiment to create dynamic VO and using it.
Experiment details:
I want to create dynamic VO and dynamic message choice and associate the dynamic VO to dynamicaly cretaed message choice.
code scriplet
In AM
public void dynamicVO()
OADBTransactionImpl txn =(OADBTransactionImpl) this.getTransaction();
OAViewDef viewDef = txn.createViewDef();
// viewDef.addEntityDerivedAttrDef();
viewDef.setSql("select EmpEO.EMPNO, EmpEO.ENAME, EmpEO.JOB, EmpEO.DEPTNO from EMP EmpEO");
viewDef.setExpertMode(true);
viewDef.addEntityUsage("EmpEO","va.oracle.apps.fnd.experiment.server.EmpEO",false);
viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
viewDef.addPersistentAttrDef("Empno", "EmpEO", "Empno", true, AttributeDef.UPDATEABLE);
viewDef.addPersistentAttrDef("Ename", "EmpEO", "Ename", true, AttributeDef.UPDATEABLE);
viewDef.addPersistentAttrDef("Job", "EmpEO", "Job", true, AttributeDef.UPDATEABLE);
viewDef.addPersistentAttrDef("Deptno", "EmpEO", "Deptno", true, AttributeDef.UPDATEABLE);
// OAViewObject
// ViewObject
ViewObject vo = createViewObject("MyEmpVO", viewDef);
In Controller
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("dynamicVO");
System.out.println("am.invokeMethod dynamicVO");
OAMessageChoiceBean popList = (OAMessageChoiceBean)this.createWebBean(pageContext,OAMessageChoiceBean.MESSAGE_CHOICE_BEAN);
//popList.setListViewObject(pageContext,MyEmpVO);
popList.setPickListViewUsageName("MyEmpVO");
popList.setListDisplayAttribute("Job");
popList.setListValueAttribute("Job");
webBean.addIndexedChild(popList);// when i comment out this a blank page runs otherwise following error appears
Error stack
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select EmpEO.EMPNO, EmpEO.ENAME, EmpEO.JOB, EmpEO.DEPTNO from EMP EmpEO
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2898)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01003: no statement parsed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.executeFetch(TTC7Protocol.java:1002)
at oracle.jdbc.dbaccess.DBAccess.executeFetchNeedDefines(DBAccess.java:283)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2604)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(OAWebBeanPickListHelper.java:973)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(OAWebBeanPickListHelper.java:818)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:446)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:403)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(OAMessageChoiceBean.java:762)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(OADataBoundValuePickListData.java:86)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(OADataBoundValuePickListSelectionIndex.java:61)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01003: no statement parsed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
at oracle.jdbc.ttc7.TTC7Protocol.executeFetch(TTC7Protocol.java:1002)
at oracle.jdbc.dbaccess.DBAccess.executeFetchNeedDefines(DBAccess.java:283)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2604)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(OAWebBeanPickListHelper.java:973)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(OAWebBeanPickListHelper.java:818)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:446)
at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:403)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(OAMessageChoiceBean.java:762)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(OADataBoundValuePickListData.java:86)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(OADataBoundValuePickListSelectionIndex.java:61)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.BaseUINode.render(Unknown Source)
at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
at OA.jspService(OA.jsp:48)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
MithunMithun,
Don't repost the issues. Follow the original on Re: Error in using Dynamic view object
--Shiv -
ADF BC: range paging on dynamic view object
hi!
i have a dynamically generated sql query and i want to get the results one page at a time. for this to work i create at runtime a view object and try to use range paging:
String sql = "SELECT ...";
ViewObject vo = appModule.createViewObjectFromQueryStmt("tmpVO"+System.currentTimeMillis(), sql);
vo.setRangeSize(pageSize);
vo.setAccessMode(RowSet.RANGE_PAGING);
vo.scrollToRangePage(pageNo);
vo.getEstimatedRowCount();
Row[] rows = vo.getAllRowsInRange();
vo.remove();
but when i run this it was pretty slow. so i traced the database session and saw that the executed query was the sql string, not the range paging select (SELECT * FROM (SELECT /*+ FIRST_ROWS */ IQ.*, ROWNUM AS Z_R_N FROM (...).
i use range paging on other view objects that are not dynamically generated and it works fine. please tell me what can i do to get only the specified page from the data base.
thank you
Edited:
here is the select i run:
SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
UnitTypeEO.USER_UNIT_TYPE,
UnitEO.UNIT_NR UNIT_NUMBER,
UnitEO.NUMBER_PLATE_ID,
AreaEO.AREA_NAME,
UnitEO.SERIAL_NR
FROM NW_UNIT UnitEO,
NW_UNIT_DETAILS NwUnitDetailsEO,
NW_UNIT_TYPE UnitTypeEO,
NW_AREA AreaEO,
NW_COMMUNICATION_COMPUTER ComputerEO
WHERE
UnitEO.deleted IS NULL
AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
here is the jbo.debugoutput that was generated; it includes the creation of the app module, the execution of SearchEntityPkVO (a predefined vo, not paged), then the execution of the code above:
08/07/22 13:56:52 [436] Connected to Oracle JBO Server - Version: 10.1.3.36.73
08/07/22 13:56:52 [437] mPCollUsePMgr is false
08/07/22 13:56:52 [438] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
08/07/22 13:56:52 [439] ViewObjectImpl.mDefaultMaxActiveNodes is 30
08/07/22 13:56:52 [440] Created root application module: 'enermet.aim.search.model.SearchAppModule'
08/07/22 13:56:52 [441] Locale is: 'en_US'
08/07/22 13:56:52 [442] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
08/07/22 13:56:52 [443] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
08/07/22 13:56:52 [444] Creating a new pool resource
08/07/22 13:56:52 [445] Trying connection/2: url='jdbc:oracle:thin:@AIMTEST:1521:AIM' ...
08/07/22 13:56:53 [446] Successfully logged in
08/07/22 13:56:53 [447] JDBCDriverVersion: 10.1.0.5.0
08/07/22 13:56:53 [448] DatabaseProductName: Oracle
08/07/22 13:56:53 [449] DatabaseProductVersion: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options
08/07/22 13:56:53 [450] <AM MomVer="0">
<cd/>
<CONN/>
</AM>
08/07/22 14:00:21 [985] SearchEntityPkVO>#q old SQLStmtBufLen: 234, actual=163, storing=223
08/07/22 14:00:21 [986] select sep.pk_name, sep.position
from MD_SEARCH_ENTITY_PK sep
inner join MD_SEARCH_ENTITIES se
on se.entity_id = sep.entity_id
where se.name = :VarEntityName
08/07/22 14:00:21 [987] ViewObject: SearchEntityPkVO Estimated Row Count Query Statement:
08/07/22 14:00:21 [988] "SELECT count(1) FROM (select sep.pk_name, sep.position
from MD_SEARCH_ENTITY_PK sep
inner join MD_SEARCH_ENTITIES se
on se.entity_id = sep.entity_id
where se.name = :VarEntityName) "
08/07/22 14:00:21 [989] Bind params for ViewObject.getQueryHitCount: SearchEntityPkVO
08/07/22 14:00:21 [990] Binding param "VarEntityName": Unit
08/07/22 14:00:21 [991] ViewObject: SearchEntityPkVO Estimated Row Count: 2
08/07/22 14:00:21 [992] Clear QueryCollection in cache for VO tmpVO1216724421562
08/07/22 14:00:21 [993] ViewObject: tmpVO1216724421562 close prepared statements...
08/07/22 14:00:21 [994] tmpVO1216724421562>#q computed SQLStmtBufLen: 641, actual=601, storing=631
08/07/22 14:00:21 [995] SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
UnitTypeEO.USER_UNIT_TYPE,
UnitEO.UNIT_NR UNIT_NUMBER,
UnitEO.NUMBER_PLATE_ID,
AreaEO.AREA_NAME,
UnitEO.SERIAL_NR
FROM NW_UNIT UnitEO,
NW_UNIT_DETAILS NwUnitDetailsEO,
NW_UNIT_TYPE UnitTypeEO,
NW_AREA AreaEO,
NW_COMMUNICATION_COMPUTER ComputerEO
WHERE
UnitEO.deleted IS NULL
AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
08/07/22 14:00:21 [996] *** createViewAttributeDefImpls: oracle.jdbc.driver.T4CPreparedStatement@4e6
08/07/22 14:00:21 [997] Bind params for ViewObject: tmpVO1216724421562
08/07/22 14:00:21 [998] Clear QueryCollection in cache for VO tmpVO1216724421562
08/07/22 14:00:21 [999] ViewObject: tmpVO1216724421562 close prepared statements...
08/07/22 14:00:21 [1000] Column count: 7
08/07/22 14:00:21 [1001] tmpVO1216724421562>#q computed SQLStmtBufLen: 641, actual=601, storing=661
08/07/22 14:00:21 [1002] SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
UnitTypeEO.USER_UNIT_TYPE,
UnitEO.UNIT_NR UNIT_NUMBER,
UnitEO.NUMBER_PLATE_ID,
AreaEO.AREA_NAME,
UnitEO.SERIAL_NR
FROM NW_UNIT UnitEO,
NW_UNIT_DETAILS NwUnitDetailsEO,
NW_UNIT_TYPE UnitTypeEO,
NW_AREA AreaEO,
NW_COMMUNICATION_COMPUTER ComputerEO
WHERE
UnitEO.deleted IS NULL
AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
08/07/22 14:00:21 [1003] ViewObject: tmpVO1216724421562 Estimated Row Count Query Statement:
08/07/22 14:00:21 [1004] "SELECT count(1) FROM (SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
UnitTypeEO.USER_UNIT_TYPE,
UnitEO.UNIT_NR UNIT_NUMBER,
UnitEO.NUMBER_PLATE_ID,
AreaEO.AREA_NAME,
UnitEO.SERIAL_NR
FROM NW_UNIT UnitEO,
NW_UNIT_DETAILS NwUnitDetailsEO,
NW_UNIT_TYPE UnitTypeEO,
NW_AREA AreaEO,
NW_COMMUNICATION_COMPUTER ComputerEO
WHERE
UnitEO.deleted IS NULL
AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
08/07/22 14:00:21 [1005] Bind params for ViewObject.getQueryHitCount: tmpVO1216724421562
08/07/22 14:00:26 [1006] ViewObject: tmpVO1216724421562 Estimated Row Count: 32732
08/07/22 14:00:26 [1007] Column count: 7
08/07/22 14:00:26 [1008] ViewObject: tmpVO1216724421562 Created new QUERY statement
08/07/22 14:00:26 [1009] tmpVO1216724421562>#q old SQLStmtBufLen: 661, actual=601, storing=631
08/07/22 14:00:26 [1010] SELECT * FROM (SELECT /*+ FIRST_ROWS */ IQ.*, ROWNUM AS Z_R_N FROM (SELECT UnitEO.UNIT_TYPE, UnitEO.UNIT_NR,
UnitTypeEO.USER_UNIT_TYPE,
UnitEO.UNIT_NR UNIT_NUMBER,
UnitEO.NUMBER_PLATE_ID,
AreaEO.AREA_NAME,
UnitEO.SERIAL_NR
FROM NW_UNIT UnitEO,
NW_UNIT_DETAILS NwUnitDetailsEO,
NW_UNIT_TYPE UnitTypeEO,
NW_AREA AreaEO,
NW_COMMUNICATION_COMPUTER ComputerEO
WHERE
UnitEO.deleted IS NULL
AND UnitEO.UNIT_NR = NwUnitDetailsEO.UNIT_NR (+)
AND UnitEO.UNIT_TYPE = NwUnitDetailsEO.UNIT_TYPE (+)
AND UnitEO.UNIT_TYPE = UnitTypeEO.UNIT_TYPE
AND UnitEO.AREA_ID = AreaEO.AREA_ID (+)
AND UnitEO.COMPUTER_ID = ComputerEO.COMPUTER_ID (+)
) IQ WHERE ROWNUM < :0) WHERE Z_R_N > :1
08/07/22 14:00:26 [1011] Bind params for ViewObject: tmpVO1216724421562
08/07/22 14:00:26 [1012] setting rownum query between (0, 23)
08/07/22 14:00:26 [1013] ViewObject: tmpVO1216724421562 close prepared statements...
PS: I am using JDev 10.1.3.36.73You have a couple of choices. You could create one view object with a bind variable parameter(s) and in the application module you have 10 instances of that VO with appropriate values set for the bind variable in each instance.
Or if you are using the LOV feature of a VO then you can set an attribute to point to one VO and then using a view cirteria applied to that specific LOV you can then "filter" the data that would appear in that LOV.
Does that help?
Grant Ronald -
Using bind variables in the model view for master detail
Hi all,
I have a master-detail views setup on the following two queries.
In the first query below - I use two bind variables to collect the start and end date.
you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
The bind variables are displayed in the search panel and the data is entered correctly.
The query executes and all is happy.
VIEWOBJECT1
SELECT DepositAccounts.COA_ID,
... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
and ChartOfAccounts.id = DepositAccountDetails.COA_ID
and :startDate = :startDate and :endDate = :endDate
Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
and everything works - the value is shown in the transient attribute formatted and looking nice.
VIEWOBJECT2
SELECT PostingBatchAccounts.AMOUNT,
FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
where PostingBatchAccounts.PB_ID = PostingBatches.ID
and PostingBatches.SOURCE_DATE between :startDate and :endDate
Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
I need the child records and the summation to work with the date restrictions.
I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this?Hi all,
I have a master-detail views setup on the following two queries.
In the first query below - I use two bind variables to collect the start and end date.
you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
The bind variables are displayed in the search panel and the data is entered correctly.
The query executes and all is happy.
VIEWOBJECT1
SELECT DepositAccounts.COA_ID,
... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
and ChartOfAccounts.id = DepositAccountDetails.COA_ID
and :startDate = :startDate and :endDate = :endDate
Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
and everything works - the value is shown in the transient attribute formatted and looking nice.
VIEWOBJECT2
SELECT PostingBatchAccounts.AMOUNT,
FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
where PostingBatchAccounts.PB_ID = PostingBatches.ID
and PostingBatches.SOURCE_DATE between :startDate and :endDate
Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
I need the child records and the summation to work with the date restrictions.
I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this? -
A dynamic View object at runtime
Say there is an inputtext component and one LOV. User will enter a number, say 7, and then press a Submit button. And then in the LOV, user will be able to see the numbers from 1 to 7.
Is it possible to achieve the same?Hi,
am not sure what exactly you are trying to achieve here,
but from your description, it looks like a query dependency to me..
So in your VO that will be used as the List of Values for the attribute you want, create a View Criteria that meets the requirement you want (seems like 'Less than or Equal To' is what you need).
So eventually, you will end up with a ViewCriteria and one bindVarialble in that LOV View Object.
Since you havent described your BC model, I can only assume that you have one main VO and both UI component are binded to attributes of that VO.
Now go back to your main VO and update the LOV View AcCessor to use the ViewCriteria specifying the proper value on the Bind Variable.
Hope this helps,
Regards,
Dimitrios. -
[SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table
Hi all,
I've got a method that creates 3 dynamic viewobjects using this:
ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");
Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);
Level1ViewDef.addViewAttribute("SetOfBooksId","SET_OF_BOOKS_ID",Number.class);
Level1ViewDef.addViewAttribute("CodeCombinationId","CODE_COMBINATION_ID",Number.class);
Level1ViewDef.addViewAttribute("Level1","LEVEL1",String.class);
Level1ViewDef.addViewAttribute("AccountType","ACCOUNT_TYPE",String.class);
Level1ViewDef.addViewAttribute("PeriodYear","PERIOD_YEAR",Number.class);
Level1ViewDef.addViewAttribute("PeriodNum","PERIOD_NUM",Number.class);
Level1ViewDef.addViewAttribute("PeriodName","PERIOD_NAME",String.class);
Level1ViewDef.addViewAttribute("PtdActual","PTD_ACTUAL",Number.class);
Level1ViewDef.addViewAttribute("YtdActual","YTD_ACTUAL",Number.class);
Level1ViewDef.addViewAttribute("LtdActual","LTD_ACTUAL",Number.class);
Level1ViewDef.addViewAttribute("BudgetName","BUDGET_NAME",String.class);
Level1ViewDef.addViewAttribute("BudgetVersionId","BUDGET_VERSION_ID",Number.class);
Level1ViewDef.addViewAttribute("PtdBudget","PTD_BUDGET",Number.class);
Level1ViewDef.addViewAttribute("YtdBudget","YTD_BUDGET",Number.class);
Level1ViewDef.addViewAttribute("LtdBudget","LTD_BUDGET",Number.class);
Level1ViewDef.addViewAttribute("EncumbranceType","ENCUMBRANCE_TYPE",String.class);
Level1ViewDef.addViewAttribute("EncumbranceTypeId","ENCUMBRANCE_TYPE_ID",Number.class);
Level1ViewDef.addViewAttribute("PtdCommitment","PTD_COMMITMENT",Number.class);
Level1ViewDef.addViewAttribute("YtdCommitment","YTD_COMMITMENT",Number.class);
Level1ViewDef.addViewAttribute("LtdCommitment","LTD_COMMITMENT",Number.class);
Level1ViewDef.setQuery(sql_level1);
Level1ViewDef.setFullSql(true);
Level1ViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
Level1ViewDef.resolveDefObject();
Level1ViewDef.registerDefObject();
ViewObject vo1 = createViewObject("Level1View",Level1ViewDef);I can create the view objects fine and create a single viewlink between two of them, however i'm getting problems with 2 view links.
This is how I'm creating a view link:
ViewLink Level2Level1FKLink = createViewLinkBetweenViewObjects("Level2Level1FKLink1",
"Level2View",
vo1,
new AttributeDef[]{
vo1.findAttributeDef("Level1")
vo2,
new AttributeDef[]{
vo2.findAttributeDef("Level1")
"LEVEL1 = :Bind_Level1");
ViewLink Level3Level2FKLink = createViewLinkBetweenViewObjects("Level3Level2FKLink1",
"Level3View",
vo2,
new AttributeDef[]{
vo2.findAttributeDef("Level2")
vo3,
new AttributeDef[]{
vo3.findAttributeDef("Level2")
"LEVEL2 = :Bind_Level2");I can get the data to display on an adf tree table if i'm only using a single view link, but when i try and implement 2 view link (for 3 levels on the adf tree table) i'm getting problems displaying the data.
I'm getting the following error:
Aug 10, 2007 2:44:39 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
SEVERE: Error during partial-page rendering
oracle.jbo.NoDefException: JBO-25058: Definition Level3View of type Attribute not found in Level2View_Level2Level1FKLink1_Level2ViewThe thing is, Level3View isn't in the Level2Level1FKLink viewlink.
I've been reading about something similar here
BC4J Master-Detail-Detail
but I am still unsure of what the problem is.
Thanks in advance.I found the answer here:
http://radio.weblogs.com/0118231/stories/2004/06/10/correctlyImplementingMultilevelDynamicMasterDetail.html -
Dynamic View Object Creation and Scope Question
I'm trying to come up with a way to load up an SQL statement into a view object, execute it, process the results, then keep looping, populating the view object with a new statement, etc. I also need to handle any bad SQL statement and just keep going. I'm running into a problem that is split between the way java scopes objects and the available methods of a view object. Here's some psuedo code:
while (more queries)
ViewObject myView = am.createViewObjectFromQueryStmt("myView",query); //fails if previous query was bad
myView.executeQuery();
Row myRow = myView.first();
int rc = myView.getRowCount();
int x = 1;
myView.first();
outStr = "";
int cc = 0;
while (x <= rc) //get query output
Object[] result = myRow.getAttributeValues();
while (cc < result.length)
outStr = outStr+result[cc].toString();
cc = cc+1;
x = x+1;
myView.remove();
catch (Exception sql)
sql.printStackTrace(); myView.remove(); //won't compile, out of scope
finally
myView.remove(); //won't compile, out of scope
//do something with query output
Basically, if the queries are all perfect, everything works fine, but if a query fails, I can't execute a myView.remove in an exception handler. Nor can I clean it up in a finally block. The only other way I can think of to handle this would be to re-use the same view object and just change the SQL being passed to it, but there's no methods to set the SQL directly on the view object, only at creation time as a method call from the application module.
Can anyone offer any suggestions as to how to deal with this?I figured this out. You can pass a null name to the createViewObjectFromQueryStmt method, which apparently creates a unqiue name for you. I got around my variable scoping issue by re-thinking my loop logic.
-
How to use SPEL for Dynamic View Objects?
Hi Gurus,
In Benefits Self Service particularly in the Designate Beneficiaries page, we have a requirement to set the row for Self designation as Read Only. What this means for any plan that you're eligible and that requires beneficiary designation, you are not allowed to designate yourself. Unfortunately this is an intended functionality and the only way to achieve our requirement is thru Personalization. I was able to accomplish this successfuly thru the SPEL functionality. However the view object corresponding to each plan that requires beneficiary designation is somewhat dynamic. For example, Plan A corresponds to BeneficiaryPeopleVO1, Plan B corresponds to BeneficiaryPeopleVO2, Plan C corresponds to BeneficiaryPeopleVO3, etc. The Personalization Page only allows me to use the SPEL for only one view object at a time. So if an employee is eligible for 3 plans that require beneficiary designation and my SPEL points to BeneficiaryPeopleVO1, it will only set the Read Only in Plan A. Plan B and Plan C would still allow self designation. Is there a way I could use the SPEL to work for all View Objects?
Thanks,
Ronaldojeanluca wrote:
I've seen things like this in scripting languages, so I was wondering if things like this are possible in java. Here is an not working example:
Is something like this possible ?AFAIK, it is only possible in a very limited way as noted above and is nearly always not recommended and definitely not necessary. The variable name has little importance, but OTOH the object reference has great importance. Instead learn about arrays, Lists, and Maps.
Maybe you are looking for
-
Function not available to this responsibility. -- Error
Hello everyone, it will be nice if someone can give any tips/tricks to fix this error. We have two web tiers (load balanced). This error showes up only on one of the web tiers (we can name is node-B). When we keep node-A down and try with node-b up t
-
Canon MX310 Printing two copies when I only want one
Hello- Whenever I print a document to the Canon printer, via printer sharing on my network, it prints two copies. Number of copies is always set to 1, but it prints two. It's crazy! Any ideas? Thank you
-
HT1338 In my e mails, I cannot get to a web page that is mentioned in the body of the e mail
In my e mails, I cannot get to a web page that is mentioned in the body of the e mail.
-
Hi, I'm new to portlets and i'm trying to understand how they work. I'd like to know how to build a web-app. I know how to build an app with servlets/JSPs but not with portlets. Are the views implemented by JSPs or by portlets. And what about servlet
-
hi, how to set the field length in internal table . i have created on report to download loadfile program. the field length is 50 but field input is 20 i want 2o ch and 30 sapece after next field was prit. how to do this.