Query Bind Variables problem

I have a ViewObject with bindvariable GroupnameItemname.
In JHeadstart AppDef this item is not bound to model, but included in Quick Search and Advanced Serach, as in "7.2.5. Using Query Bind Variables in Quick or Advanced Search"
First I get an error saying GroupnameItemname*Var* is not found on ViewObject, so I changed the bindvariables to GroupnameItemnameVar
Is something changed here? We are using JHeadstart 10.1.3.3.75 / JDeveloper 10.1.3.4.0
After changing the bindvariablename I have another problem:
I get an error in JhsApplicationModuleImpl.advancedSearch on these lines:
boolean isBindParam = !viewCriterium.isAttributeBased();
AttributeDef ad = isBindParam ? null : vo.findAttributeDef(attribute);
The first line returns false for my bindvariable, so the second line raises an error like "JBO-25058: Definition <attr> of type Attribute not found in <VO>".
In QueryCondition:
public boolean isAttributeBased()
return def!=null; //but def is not null here, it is an instance of DCVariableImpl
This used to work in previous versions of JHeadstart...
Please help,
Greetings HJH

In my MyApplicationModuleImpl (which extends JhsApplicationModuleImpl) I did override advancedSearch.
Copied the code from JhsApplicationModuleImpl and changed a few lines:
After
sLog.debug("executing advancedSearch for " + viewObjectUsage);
ViewObject vo = getViewObject(viewObjectUsage);
I added:
//clear bindParams:
String[] attrNames =
vo.getNamedWhereClauseParams().getAttributeNames();
for (int i = 0; i < attrNames.length; i++) {
vo.setNamedWhereClauseParam(attrNames\[i\], null);
sLog.debug("bindParam leeggemaakt: " + attrNames\[i\]);
And a bit later in the method I made a changed as follows:
// boolean isBindParam = !viewCriterium.isAttributeBased();
boolean isBindParam = viewCriterium.getName().endsWith("Var");
A bit crude, but worked for me...
Cheerio,
HJH
Edited by: HJHorst on Mar 19, 2009 1:56 PM (had to escape square brackets...)

Similar Messages

  • Functionality loss when 'Using Query Bind Variables in Advanced Search

    Regarding: 'Using Query Bind Variables in Quick or Advanced Search'
    The functionality to do the following is lost when I use bind variables in the Advanced Search:
    "Result matches all conditions"
    "Result matches any condition"
    "Case Sensitive?"
    Is there a way to Search with Detail groups but to keep the above functionality?

    Hi,
    Your application module impl java class extends the JHeadstart class JhsApplicationModuleImpl. THe latter declares a method:
    public void advancedSearch(String viewObjectUsage,java.util.ArrayList arguments,Boolean allConditionsMet).
    In your application module impl java override the advancedSearch method where you can include your own custom code before invoking the super method:
    super.advancedSearch(viewObjectUsage,arguments,allConditionsMet);
    The 'arguments' parameter is an arraylist of QueryCondition objects. You can set several properties for QueryCondition objects such as case-sensitity, operators etc.
    Regards,
    Ibrahim

  • Bad Bind Variable Problem

    Hi
    I am trying to create a trigger and facing Bad Bind Variable problem.
    Plz let me know, what's the problem in this trigger.
    CREATE OR REPLACE TRIGGER Tender_tax_update AFTER
    INSERT
    OR UPDATE
    OR DELETE OF ITEM_QTY,ITEM_RATE,TENDER_ACC_QTY ON TENDER_ENQUIRY_ITEM_D REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW
    Declare
         v_amt TENDER_VENDOR_TAX_D.TAX_AMOUNT%TYPE;
         v_tax_ty TENDER_VENDOR_TAX_D.TAX_TYPE%TYPE;
         v_tax_cd TENDER_VENDOR_TAX_D.TAX_CODE%TYPE;
         v_ven_cd TENDER_VENDOR_TAX_D.VENDOR_CODE%TYPE;     
         v_item_cd TENDER_VENDOR_TAX_D.item_cd%TYPE;     
         v_tenno TENDER_VENDOR_TAX_D.tender_enquiry_no%TYPE;
    Begin
         if inserting then
              v_tax_ty:=:new.TAX_TYPE;
              v_tax_cd:=:new.TAX_CODE;
              v_ven_cd:=:new.vendor_code;
              v_item_cd:=:new.item_cd;
              v_tenno:=:new.tender_enquiry_no;
    select TAX_AMOUNT into v_amt from TENDER_TAX_DETAILS where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
    update TENDER_VENDOR_TAX_D set TAX_AMOUNT=v_amt where tender_enquiry_no=v_tenno and TAX_CODE=v_tax_cd and TAX_TYPE=v_tax_ty and item_cd=v_item_cd and vendor_code=v_ven_cd;
         end if;
    End Tender_tax_update;
    Database deails are as follows:
    TENDER_VENDOR_TAX_D
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE NOT NULL VARCHAR2(4)
    TAX_CODE NOT NULL VARCHAR2(4)
    PERCENTAGE NUMBER(5,2)
    TAX_AMOUNT NUMBER(15,2)
    ITEM_CD NOT NULL VARCHAR2(10)
    TAX_FLAG VARCHAR2(1)
    TAX_TYPE CHAR(3)
    TENDER_TAX_DETAILS
    Name Null? Type
    TENDER_ENQUIRY_NO NOT NULL VARCHAR2(8)
    VENDOR_CODE VARCHAR2(4)
    ITEM_CD VARCHAR2(10)
    TAX_CODE NOT NULL VARCHAR2(4)
    TAX_TYPE CHAR(3)
    TAX_AMOUNT NUMBER
    Message was edited by:
    user648065

    facing Band Bind Variable problem.Doesn't the error message tell you which bind variable is the problem?

  • Report pl/sql function body returning query bind variable

    I really like using report with a function returning sql. I have been using something like this
    declare
    q varchar2(10000);
    begin
    q := 'select col1
    from mytable
    .... add a dynamic where clause ....
    return q;
    end;
    But I thought it would be nice to store the query in a bind variable so that I could show the where clause. I tried to create an item P123_Q and do the following:
    declare
    q varchar2(10000);
    begin
    q := 'select col1
    from mytable
    .... add a dynamic where clause ....
    :P123_Q := q;
    return q;
    end;
    But the parser treats :P123_Q as if it is a bind variable within flow 4000. I found a workaround but I'm wondering if there is a better way.
    My workaround is to set a preference in the query and then use a computation that sets P123_Q to the value of the preference:
    declare
    q varchar2(10000);
    begin
    q := 'select col1
    from mytable
    .... add a dynamic where clause l_q := l_q || ....
    HTMLDB_UTIL.SET_PREFERENCE(
    p_preference => 'Q',
    p_value => q,
    p_user => :APP_USER);;
    return q;
    end;
    Any thoughts on another way?
    thanks,
    Anton

    Anton,if htmldb_application.get_current_flow_sgid(:APP_ID) = htmldb_application.get_sgid then
      :P1_X := l_sql;
    end if;Scott

  • View object query bind variable

    I have a bind variable in my view object query and "Required" is unchecked for it. Due to this JUnits are failing with the Missing IN or OUT parameter error. If I set the bind variable as required, the JUnits run fine.
    But this bind variable is also used in several view criterias where it is set as Optional. So if I set the bind variable in the view object query as Required, will it affect the view criterias as well?

    check https://blogs.oracle.com/jdevotnharvest/entry/the_infamous_missing_in_or

  • Bind variable problem in a procedure

    Hi,
    Is there any way I can pass a parameter in a procedure as we do in sql plus (for example where date = &date).
    I have a procedure that is somewhat similar to this...
    select (field 1, field2...
    from table1, table 2....
    where ....
    and ..
    and v_fiscal_year (here I want the bind variable)
    UNION
    select (field 1, field2...
    from table1, table 2....
    where .....
    and ..
    and ..
    and v_fiscal_year (here I want the bind variable)
    I need to register this procedure in oracle apps as a concurrent program where a user should be able to provide value for fiscal_year and then write the file out in a text file.
    Thanks
    A/A

    What you've shown isn't a procedure, but is a query.
    I assume your "field1", "field2" within the query means that you are expecting to be able to create a dynamic SQL from parameters passed into a procedure.
    For that you will need to use DBMS_SQL package to create and execute a dynamic query or use the EXECUTE IMMEDIATE statemetn to execute a query built up in a string. Note however, that dynamic SQL is inherently bad practice and should only ever be used as a last resort. What exactly are you trying to achieve as there are likely to be better ways of doing it?

  • User Report data bind variable problems

    Hello,
    I am trying to build a simple report in SQLDeveloper, using a DATE bind variable. But it fails with the error message:
    Inconsistent datatype, expected DATE got NUMBER
    SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
    where create_date = trunc(:TARGET_DATE)
    and type = 'D'
    ORDER BY MESSAGE_FLOW_ID
    Running this query in SQLDeveloper worksheet executes properly after a dialog box pops up and I enter: current_date - 1
    SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
    where create_date = trunc(&TARGET_DATE)
    and type = 'D'
    ORDER BY MESSAGE_FLOW_ID
    I've searched but no clear solutions present themselves. If you have one it would be most appreciated.
    Thanks

    You'll have to convert the input to date yourself:
    SELECT * FROM FLOW_COMP_REC_SUMMARY_RU
    where create_date = TO_DATE(:TARGET_DATE, 'DD/MM/YYYY')
    and type = 'D'
    ORDER BY MESSAGE_FLOW_ID
    Have fun,
    K.

  • Bind Variable Problem

    Hi Guys
    PLease i am really stuck
    i have a LOV which has a complex query...
    in that query there are multiple bind variables that are assigned... ie :1 , :2 and so forth
    here is the query for the LOV
    SELECT a.kri_description, a.kri_id
    FROM xx_key_result_indicators a, xx_kri_positions b
    WHERE TO_DATE (:1, 'DD-MON-YYYY') BETWEEN a.effective_from_date
    AND a.effective_to_date
    AND TO_DATE (:2, 'DD-MON-YYYY') BETWEEN b.effective_from_date
    AND b.effective_to_date
    AND a.kra_id = :3
    AND a.kri_id IN (
    SELECT c.kri_id
    FROM xx_kri_positions c
    WHERE TO_DATE (:4, 'DD-MON-YYYY')
    BETWEEN c.effective_from_date
    AND c.effective_to_date
    AND c.position_id = :5
    AND c.enable_flag = 'Y')
    AND b.position_id = :6
    AND a.enable_flag = 'Y'
    AND b.enable_flag = 'Y'
    AND a.kri_id NOT IN (SELECT NVL (g.kri_id, 1)
    FROM xx_perf_kri g
    WHERE g.perf_kra_id = :7)
    UNION
    SELECT f.kri_description, f.kri_id
    FROM xx_key_result_indicators f
    WHERE TO_DATE (:8, 'DD-MON-YYYY') BETWEEN f.effective_from_date
    AND f.effective_to_date
    AND f.kra_id = :9
    AND f.kri_id NOT IN (SELECT e.kri_id
    FROM xx_kri_positions e)
    AND f.enable_flag = 'Y'
    AND f.kri_id NOT IN (SELECT NVL (d.kri_id, 1)
    FROM xx_perf_kri d
    WHERE d.perf_kra_id = :10)
    so in theroy when i push the tourch icon next to my text field i set these bind variables...
    so in theroy that should work,,, but becuase i have a lov the framework will automatically assign extra where clause params for the filter.... and the query will look as follows
    SELECT *
    FROM (SELECT a.kri_description, a.kri_id
    FROM xx_key_result_indicators a, xx_kri_positions b
    WHERE TO_DATE (:1, 'DD-MON-YYYY') BETWEEN a.effective_from_date
    AND a.effective_to_date
    AND TO_DATE (:2, 'DD-MON-YYYY') BETWEEN b.effective_from_date
    AND b.effective_to_date
    AND a.kra_id = :3
    AND a.kri_id IN (
    SELECT c.kri_id
    FROM xx_kri_positions c
    WHERE TO_DATE (:4, 'DD-MON-YYYY')
    BETWEEN c.effective_from_date
    AND c.effective_to_date
    AND c.position_id = :5
    AND c.enable_flag = 'Y')
    AND b.position_id = :6
    AND a.enable_flag = 'Y'
    AND b.enable_flag = 'Y'
    AND a.kri_id NOT IN (SELECT NVL (g.kri_id, 1)
    FROM xx_perf_kri g
    WHERE g.perf_kra_id = :7)
    UNION
    SELECT f.kri_description, f.kri_id
    FROM xx_key_result_indicators f
    WHERE TO_DATE (:8, 'DD-MON-YYYY') BETWEEN f.effective_from_date
    AND f.effective_to_date
    AND f.kra_id = :9
    AND f.kri_id NOT IN (SELECT e.kri_id
    FROM xx_kri_positions e)
    AND f.enable_flag = 'Y'
    AND f.kri_id NOT IN (SELECT NVL (d.kri_id, 1)
    FROM xx_perf_kri d
    WHERE d.perf_kra_id = :10)) qrslt
    WHERE (( UPPER (kri_description) LIKE :1
    AND ( kri_description LIKE :2
    OR kri_description LIKE :3
    OR kri_description LIKE :4
    OR kri_description LIKE :5
    not that now there are bind variable 1 through to 10 and then 1 through to 5...
    the error i am getting is not all variables bound exception..
    please if anyone could help....
    Thanks

    I am new to OA Fwk, but I am Expert of java, J2EE.
    My solution will work fine in pure java.
    I am sure same should work in OA also.
    But I never experimented it. Give it a try
    Lets take a select query:
    select my_col from my_table where clo1 = :1 and col2 = :1
    In this query there is only one bind varible ":1" in the world of PL/SQL.
    But for there are two bind varibales you need to set them two times.
    in java you will do
    stmt.setString(1, myval);
    stmt.setString(2, myval);
    Now coming to your query.
    It has 10 +5 total 15 bind variables and you need to set 15 but not 10.
    For all practicle purposes assume that :1 or :2 or :3 is equivalent to ?
    Thus your select query is equivalent to
    SELECT *
    FROM (SELECT a.kri_description, a.kri_id
    FROM xx_key_result_indicators a, xx_kri_positions b
    WHERE TO_DATE (?, 'DD-MON-YYYY') BETWEEN a.effective_from_date
    AND a.effective_to_date
    AND TO_DATE (?, 'DD-MON-YYYY') BETWEEN b.effective_from_date
    AND b.effective_to_date
    AND a.kra_id = ?
    AND a.kri_id IN (
    SELECT c.kri_id
    FROM xx_kri_positions c
    WHERE TO_DATE (?, 'DD-MON-YYYY')
    BETWEEN c.effective_from_date
    AND c.effective_to_date
    AND c.position_id = ?
    AND c.enable_flag = 'Y')
    AND b.position_id = ?
    AND a.enable_flag = 'Y'
    AND b.enable_flag = 'Y'
    AND a.kri_id NOT IN (SELECT NVL (g.kri_id, 1)
    FROM xx_perf_kri g
    WHERE g.perf_kra_id = ?)
    UNION
    SELECT f.kri_description, f.kri_id
    FROM xx_key_result_indicators f
    WHERE TO_DATE (?, 'DD-MON-YYYY') BETWEEN f.effective_from_date
    AND f.effective_to_date
    AND f.kra_id = ?
    AND f.kri_id NOT IN (SELECT e.kri_id
    FROM xx_kri_positions e)
    AND f.enable_flag = 'Y'
    AND f.kri_id NOT IN (SELECT NVL (d.kri_id, 1)
    FROM xx_perf_kri d
    WHERE d.perf_kra_id = ?)) qrslt
    WHERE (( UPPER (kri_description) LIKE ?
    AND ( kri_description LIKE ?
    OR kri_description LIKE ?
    OR kri_description LIKE ?
    OR kri_description LIKE ?)))
    you need to set the values in the order in which bind varibale appear in select query

  • ADFBC SQLException, large query, bind variables

    Hi,
    I'm getting an SQLException while running a Query with a dynamically built WHERE clause using named bind variables.
    This is the following exception details.
    SQLException: SQLState(null) vendor code(17110)
    java.sql.SQLException: execution completed with warning
    at oracle.jdbc.driver.DatabaseError.newSqlException(DatabaseError.java:93)
    ... etc
    SQLWarning: reason(Warning: execution completed with warning) SQLstate(null) vendor code(17110)I've tried removing the View Object and all the related components on the page, and reinstating them all, but the same Exception keeps occurring.
    The view in the db has alot of records, approximately 126,000.
    The query does execute and rows are returned successfully, but I don't like to look of this exception.
    Any help on this would be appreciated!

    Hi John,
    Below is the stack trace.
    [684] SQLException: SQLState(null) vendor code(17110)
    [685] java.sql.SQLException: execution completed with warning
    [686]      at oracle.jdbc.driver.DatabaseError.newSqlException(DatabaseError.java:93)
    [687]      at oracle.jdbc.driver.DatabaseError.newSqlException(DatabaseError.java:111)
    [688]      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:342)
    [689]      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    [690]      at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    [691]      at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    [692]      at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:633)
    [693]      at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:1048)
    [694]      at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:535)
    [695]      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1126)
    [696]      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3001)
    [697]      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
    [698]      at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:2273)
    [699]      at oracle.jbo.server.ViewObjectImpl.getQueryHitCount(ViewObjectImpl.java:2227)
    [700]      at oracle.jbo.server.QueryCollection.getEstimatedRowCount(QueryCollection.java:2560)
    [701]      at oracle.jbo.server.ViewRowSetImpl.getEstimatedRowCount(ViewRowSetImpl.java:1965)
    [702]      at oracle.jbo.server.ViewObjectImpl.getEstimatedRowCount(ViewObjectImpl.java:5987)
    [703]      at oracle.adf.model.bc4j.DCJboDataControl.getEstimatedRowCount(DCJboDataControl.java:965)
    [704]      at oracle.adf.model.binding.DCIteratorBinding.getEstimatedRowCount(DCIteratorBinding.java:2969)
    [705]      at oracle.jbo.uicli.binding.JUCtrlRangeBinding.getEstimatedRowCount(JUCtrlRangeBinding.java:115)
    [706]      at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel.getRowCount(FacesCtrlRangeBinding.java:395)
    [707]      at oracle.adf.view.faces.component.UIXCollection.getRowCount(UIXCollection.java:271)
    [708]      at oracle.adf.view.faces.model.ModelUtils.findLastIndex(ModelUtils.java:117)
    [709]      at oracle.adf.view.faces.component.TableUtils.getLast(TableUtils.java:65)
    [710]      at oracle.adf.view.faces.component.TableUtils.getLast(TableUtils.java:39)
    [711]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TableUtils.getVisibleRowCount(TableUtils.java:125)
    [712]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.RowData.<init>(RowData.java:22)
    [713]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.table.TableRenderingContext.<init>(TableRenderingContext.java:56)
    [714]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.createRenderingContext(TableRenderer.java:375)
    [715]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.TableRenderer.encodeAll(TableRenderer.java:198)
    [716]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.DesktopTableRenderer.encodeAll(DesktopTableRenderer.java:80)
    [717]      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
    [718]      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    [719]      at oracle.adf.view.faces.component.UIXCollection.encodeEnd(UIXCollection.java:456)
    [720]      at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
    [721]      at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
    [722]      at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
    [723]      at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)
    [724]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    [725]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    [726]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    [727]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    [728]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    [729]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    [730]      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    [731]      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    [732]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    [733]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    [734]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    [735]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    [736]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    [737]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    [738]      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    [739]      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    [740]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    [741]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    [742]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    [743]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    [744]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    [745]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    [746]      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(BorderLayoutRenderer.java:42)
    [747]      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(BorderLayoutRenderer.java:71)
    [748]      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    [749]      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    [750]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    [751]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    [752]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
    [753]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
    [754]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
    [755]      at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
    [756]      at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
    [757]      at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
    [758]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
    [759]      at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
    [760]      at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
    [761]      at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
    [762]      at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.PageLayoutRenderer.render(PageLayoutRenderer.java:76)
    [763]      at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
    [764]      at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
    [765]      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    [766]      at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
    [767]      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
    [768]      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
    [769]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
    [770]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
    [771]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
    [772]      at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
    [773]      at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
    [774]      at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
    [775]      at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
    [776]      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
    [777]      at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
    [778]      at _plus._gl._DynamicViews._jspService(_DynamicViews.java:1245)
    [779]      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    [780]      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    [781]      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
    [782]      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
    [783]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [784]      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    [785]      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    [786]      at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
    [787]      at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    [788]      at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
    [789]      at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    [790]      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
    [791]      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
    [792]      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
    [793]      at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
    [794]      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
    [795]      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    [796]      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    [797]      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    [798]      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    [799]      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
    [800]      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
    [801]      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    [802]      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    [803]      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    [804]      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    [805]      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
    [806]      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    [807]      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    [808]      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    [809]      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    [810]      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    [811]      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    [812]      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    [813]      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    [814]      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    [815]      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    [816]      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    [817]      at java.lang.Thread.run(Thread.java:595)
    [818] SQLWarning: reason(Warning: execution completed with warning) SQLstate(null) vendor code(17110)Thanks for the reply.

  • Bind variable problem in cascading LOVs

    Hi,
    after upgrade from APEX 3.0 to 3.1 all my cascading LOVs stopped working correctly. First level LOV is OK, but the second level LOV, which contains a bind variable in its SQL code, fails. Debugging shows that the bind variable referrencing to the value of the first level LOV is empty. It has worked without problems in 3.0. The bind variable format is traditional :ITEM
    This is an example of the LOV SQL:
    SELECT PSKUP_CZ display_value, ID return_value
    FROM PSKUP
    WHERE sk_id = :P1_SKUP
    ORDER BY 1
    Where :P1_SKUP refers to the vaule of the top level LOV.
    In Oracle® Database Application Express Release Notes Release 3.1 in chapter "3 Open Bugs and Known Issues", I've only found a short remark called "Problems with Queries Containing a Bind Variable and a String with Two Dashes". The recommended solution here was to use v('P18_X') instead of :P18_X
    I tried that but with no effect on my problem.
    Anybody has similar experience? Any workarounds?
    Thanks in advance,
    Zdenek

    Hi Zdenek,
    DV, NV, V are an optional component of the ApexLib framework. Actually they don't have anything to do with the framework itself.
    Because of the nature of this functions they have to have a hard coded reference to the FLOWS_XXX schema, but which causes problems if APEX is upgraded to a new version and the functions are not altered.
    I will probably removed them from the installation instructions or add a big remark that they have to be altered after an upgrade, because this kind of threads are re-occurring after each new released APEX version.
    Thanks
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com/
    The APEX Builder Plugin: http://builderplugin.oracleapex.info/ New
    The ApexLib Framework: http://apexlib.sourceforge.net/

  • Bind variable problem when renaming page items?

    APEX 2.1 on IE6.
    I'm having trouble with bind variables. I cannot reproduce this regularly, but I notice it from time to time. Basically, certain page items will simply refuse to hold their contents, even though the debug output says :
    0.03: Saving g_arg_names=P9_XYLOPHONE_XYLOPHONE and g_arg_values=hello
    0.03: ...Session State: Save "P9_XYLOPHONE_XYLOPHONE" - saving same value: "hello"
    Whenever I reference the variable (using :, V(), NV(), or &.) I get NULL. None of the output indicates that it was changed elsewhere. I've noticed that changing the name of page item influences this. Shorted names tend to cause fewer problems.
    I can't be more specific, as I can't figure out the pattern. Has anyone else noticed this?
    Cheers.

    hi dccase
    couldnt get what the documentation says with APP_SESSION to work.
    http://aae18331:8089/apex/f?p=102:3:$APP_SESSION.::3:MY_ITEM:315
    However the following which i guess assumes the default session worked
    =====================================================
    http://aae18331:8089/apex/f?p=102:3::::3:MY_ITEM:315
    cheers
    shaunak

  • Query selection variable problem

    Hi ,
    We have a material "89-9712" . When running a query in the query designer (on portal) with material as selection variable we are having problems. When we enter "89-9712", we are getting an error "enter single values and not a range"...is the fact that there is a "-" in the material key causing the problem. What can we do?
    Thanks,
    Anita.

    Hi,
    Having a '-' while entering the material value shouldn't pose a problem in case the same fromat is adopted while storing the material , or does two no. i.e. 85-39876 , 85 refers to some " material grooup" or category , and the real material no is 39876 in that case it may pose a problem.
    While making an entry make sre you are not putting any sapce other than '-' sice space is not permitted.
    Hope this will be expedite.
    Thax &  Regards
    Vaibhave Sharma
    Edited by: Vaibhave Sharma on Sep 17, 2008 11:35 PM

  • Bind variables problem, very urgent

    hi,
    Oracle gurus,
    In my current project while executing the following ststement i am getting the run time error"ORA-01008: not all variables bound".
    This statement is used inside of a procedure and some bind arguments have values and some arguments have NULL values.
    EXECUTE IMMEDIATE ' insert into trn_billtask
    (area_id,
    asn_no,
    batch_no,
    cases_per_pallet,
    color_zone,
    comp_id,
    cube,
    currdate,
    eachs_per_case,
    ebiz_sku_no,
    ebiz_user_no,
    footage,
    hazmat_flag,
    home_zone,
    intf_conf_flag,
    line_no,
    location,
    lp,
    merge_flag,
    no_of_cases,
    no_of_units,
    packcode,
    po_line_no,
    po_no,
    putaway_strategy,
    qty
    ,rcv_type,
    site_id,
    sku,
    skudesc1,
    skufam,
    skugroup,
    sku_status,
    status_flag,
    task_date,
    task_desc,
    task_type,
    type_stor_equip,
    uom_id,
    wght)
    select null,
    rh.rec_no,
    p.lot,
    pr.each_qty,
    sl.color_zone,
    ''MR'',
    pr.unit_cube*(nvl(p.qty,0)/nvl(pr.each_qty,1)),
    sysdate,
    pr1.each_qty,
    p.prod_no,
    1,
    nvl(sl.wdth,0) * nvl(sl.dpth,0),
    decode(s.haz_mat_class,null,''N'',''Y''),
    sl.home_zone,
    ''N'',
    r.line_no,
    p.end_loc,
    p.lp,
    nvl(p.access_aisle,''N''),
    round(nvl(p.qty,0)/nvl(pr.each_qty,1)),
    1,
    p.pkg_no,
    r.p_line_no,
    rh.po_no,
    r.putaway_strategy,
    p.qty,
    rh.rec_type,
    ''HW'',
    s.sku,
    s.sku_desc1_35,
    s.prod_fam,
    s.prod_cat,
    p.prod_stat,
    2,
    sysdate,
    ''Handling'',
    bt.task_type,
    nvl(sl.type_stor_equip,''100''),
    p.uom,
    pr.unit_wght*(nvl(p.qty,0)/nvl(pr.each_qty,1))
         from [email protected] s,mast_abbtype bt,mast_company bc,[email protected] pr,[email protected] sl,
         [email protected] r,[email protected] rh,[email protected] p,[email protected] pr1
         where p.end_time is not null
              and decode(bt.comp_id,null,:p_comp_id,bt.comp_id)= :p_comp_id
              and decode(bt.site_id,null,:p_site_id,bt.site_id)=:p_site_id
              and bt.task_type = :p_task_type
              and bc.comp_id = :p_comp_id
              and p.proc_cntrl_no =r.rec_cntrl_no
              and bc.ebiz_appown_no= 40
              and bt.delete_flag=''N''
              and r.rec_cntrl_no = rh.rec_cntrl_no
              and p.proc_cntrl_no = nvl(:p_po_no,p.proc_cntrl_no)
              and p.prod_no = nvl(:p_ebiz_sku_no, p.prod_no)
              and nvl(p.prod_stat, ''~'') =nvl(:p_sku_status, nvl(p.prod_stat, ''~''))
              and p.lp = nvl(:p_lp, p.lp)
              and nvl(p.lot, ''~'') = nvl(:p_batch_no, nvl(p.lot, ''~''))
              and r.lp = p.lp
              and p.prod_no = s.prod_no
              and p.prod_no = pr.prod_no
              and p.pkg_no = pr.pkg_no
              and pr.logical_case_flg = ''Y''
              and p.end_loc = sl.loc
              and nvl(p.sku_key3,''A'') != ''1''
              and decode(''COMP'',''BYID'',s.buyer_id,s.comp_code) = bc.comp_id
              and bc.comp_id =:p_comp_id
              and r.cart_lp is null
              and trunc(p.date_time_created) between trunc(nvl(SYSDATE-10000,p.date_time_created))
              and trunc(nvl(SYSDATE,p.date_time_created))
              and trunc(p.date_time_created) >= trunc(bc.effective_date)
              and pr.prod_no = pr1.prod_no and pr.pkg_no = pr1.pkg_no and pr1.logical_plt_flg = ''Y'' '
         using p_comp_id,p_site_id,p_task_type,p_po_no,p_ebiz_sku_no,p_sku_status,p_lp,p_batch_no;
    ur suggestions r most welcome
    thanks
    RR

    Placeholders (:name) are bound by position in EXECUTE IMMEDIATE SQL statement. Hence Oracle does not consider multiple :p_comp_id in your statement to be the same thing. You would need to repeatedly bind them for each occurrence, or use an approach (DBMS_SQL.BIND_VARIABLE or EXECUTE IMMEDIATE PL/SQL block) which binds by name or position / name.
    In the case of the above example you would have a USING clause similar to the below (Note that I am unable to test this).
    EXECUTE IMMEDIATE sql_statement
       USING p_comp_id, p_comp_id, p_site_id,
          p_site_id, p_task_type, p_comp_id,
          p_po_no, p_ebiz_sku_no, p_sku_status,
          p_lp, p_batch_no, p_comp_id;

  • Need some guidance - SQL Query Bind Variables for VO Object

    Hi,
    I'm trying to customize a custom page and I'm new to this. Can you please guide me or send me an example on how to do this?
    1) VO is having the query as "SELECT INVOICE_NUM, INVOICE_DATE, INVOICE_AMOUNT, ...... from AP_INVOICES_ALL" (no parameters in the where clause)
    2) Added VO to AM
    3) XML PG is designed with MainRN, QueryRN, and Instance of VO1 as Table region. Selected INVOICE_NUM, INVOICE_DATE as Searchable. QueryRN is ResultbasesSearch.
    4) Deployed to E-Biz and users were able to query using INVOICE_NUM or INVOICE_DATE fields that are available in the QueryRN.
    Now, they want to add FROM_INVOICE_DATE and TO_INVOICE_DATE to the Search Condition. So, I have added the condition in the VO Query as "SELECT INVOICE_NUM, INVOICE_DATE, INVOICE_AMOUNT, ...... from AP_INVOICES_ALL WHERE INVOICE_DATE between :0 and :1".
    How to add these fields FROM_INVOICE_DATE and TO_INVOICE_DATE to the QueryRN? These are not part of VO.
    How to bind them to :0 and :1? I don't see any controller here? Do I need set a new controller and write logic for getting result set?
    Any sample script or link would really help.
    Thanks in advance.
    Ram

    Hi Ram,
    Hmmm, it is interesting.
    Add two attributes to the page fromDate and toDate and in the controller class capture the values (like String fromDate = pageContext.getParameter("FromDate");) and invoke a method from AM and pass these parameters.
    In the AM method call a method of VO and the VOImpl set and pass the bind parameters and execute the query again.
    like
    setWhereClause(" from_date = :1 AND to_date = :2");
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, fromDate);
    setWhereClauseParam(1, toDate);
    executeQuery();
    Hope this will answer your question.
    Krishna.

  • How to catch possible bind variable performance impact during development?

    Since producing load is a problem on development environment and the technics provided with Oracle can capture a parsing problem caused by a bind variable problem only after execution we are looking for pro-active solution like 10g compile time warnings stuff.
    Using binds can have impact on indexed skewed data columns and paritioned tables, so lets just think about a typical oltp environment with always same access path results for similar queries using bind variables.
    Using v$ views or even better dba_hist after 10g or 10046 trace are considered as re-active approaches since they can only be examined on a pre-production loaded environment.
    Is there any tool or approach you are using or may suggest?
    Thank you, best regards.
    Tonguc

    Are you using PL/SQL only?
    If so, I'd look at all the EXECUTE IMMEDIATE's and DBMS_SQL calls throughout the code and determine one by one if they pose a threat. They should be rare, so a simple search against the USER_SOURCE could be sufficient.
    Other programming languages will have different statements to watch out for.
    I am not aware of any tool that does this for you.
    Hope this helps.
    Regards,
    Rob.

Maybe you are looking for

  • Balance in transaction currency

    Hi, I am getting below error while posting MIRO transaction:  Balance in transaction currency Message no. F5702 Diagnosis A balance has occurred in transaction currency 'SAR' with the following details: Exchange rate '00', amount '8,199.40' and curre

  • TOUCH ISSSUES WITH XPERIA Z1

    im currently having a problem with the new update  im currently on 4.3 , build number 14.2.A.1.136 , with the recent update there is a problem with the sensitivity of the keyboard/touchscreen  , when you are using it for text or games for a couple of

  • CUP 5.3 SP8 - Authentication Source/User Details Source question

    Hello, Here is another issue I'm noticing with CUP. Currently we have it configured as such: Authentication Source: LDAP Search Data Sourec: SAPHR User Details Data Source: SAPHR When a Requestor logs in to create a request for themself, Requestor Us

  • Have a mac book pro and it has some kind of virus which opens unrelated windows. What do I do?

    have a mac book pro and it has some kind of virus which opens unrelated windows. What do I do?

  • License to play music on the N8

    I downloaded music from Ovi using my unlimited music download that comes with the N8 but I can't play, I keep getting this pop up message that I need to get a license to play it but every time I try it keeps saying that something is wrong with my int