Vo.setNamedWhereClauseParam("your param", value); is not working???

Hi Everyone,
My Jdev version is 11.1.2.3.0.
I have a simple usecase(of a search page) as follows:
i have two text fields Eno and Ename and one Submit button.
After entering data into Eno and Ename Text fields, On clicking on Submit button i need to pass Eno to Table T1 and T2 and Eno, Ename to table T3.
For which i used bind variables in 3 VOs like :
Lets say only for table T1's VO query we created bind variable "EmpParam" with the below steps:
1.In the Application Navigator, double-click the view object.
2.In the overview editor, click the Query navigation tab.
3.In the Query page, expand the Bind Variables section and click the Create new bind variable button.
4.In the Bind Variable dialog, enter the name and data type for the new bind variable. And check the Required property. thats it.
5.After defining the bind variables, the next step is to reference them in the SQL statement included in the where clause of the VO as ---> where empno=:EmpParam.
And then in initMethod() (Init phase method) i used the below code: (i used this for not showing any values in the tables while the page loads)
String EmpNo="-1";
System.out.println("Before Executing Queries");
BindingContainer bindings7 = getBindings();
System.out.println("1");
DCIteratorBinding dcitorg7=(DCIteratorBinding)bindings7.get("EmployeesVO1Iterator") ;
System.out.println("2");
ViewObject v7=dcitorg7.getViewObject();
System.out.println("3");
v7.setNamedWhereClauseParam("EmpParam", EmpNo);
System.out.println("5");
v7.executeQuery();
The output is like below when the page loads:
Before Executing Queries
1
2
3
<UIViewRoot> <notifyPhaseListeners> Exception while processing expression #{backingBeanScope.backing_EmployeesDisplayPage.InitMethod} for attribute beforePhase.
<UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled
After loading the page, the page is showing all the VO query data in all the Tables T1, T2 and T3.
What can be the reason behind the above error?
what steps i missed in my code?
what can be done to solve this issue?
Any suggestions will be really useful.
Thanks.

Hi Everyone,
On submit button click i kept the below code to pass entered empid to the VO:
System.out.println("Before Executing Queries");
BindingContainer bindings7 = getBindings();
System.out.println("1");
DCIteratorBinding dcitorg7=(DCIteratorBinding)bindings7.get("EmployeesVO1Iterator") ;
System.out.println("2");
ViewObject v7=dcitorg7.getViewObject();
System.out.println("3");
v7.setNamedWhereClauseParam("EmpParam", EmpNo);
System.out.println("5");
v7.executeQuery();
I got the below error:
javax.faces.el.EvaluationException: oracle.jbo.NoDefException: JBO-25058: Definition EmpParam of type Variable is not found in EmployeesVO1.
what can be the reason?
what should i modify?
Thanks.

Similar Messages

  • Value mapping not working properly

    Hi All,
    I am using value mapping twice in same mapping program. But only 1 field is coming with value and other is taking same value from source payload, can you please tell me what can be issue here?
    Value mapping 1 -
    Context - http://sap.com/xi/XI
    SenderParty- SenderSchema
    ReceiverParty- ReceiverSchema
    Value Mapping table in ID -
    Value mapping at field 2 -
    Context - http://sap.com/xi/XI
    SenderParty1- SenderSchema1
    ReceiverParty2- ReceiverSchema2
    Value Mapping table in ID -
    Source payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Send xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
       <Record>
          <Emp_ID>123</Emp_ID>
          <Name>rash</Name>
          <Surname>sumit</Surname>
          <Gender>Male</Gender>
         <Grade>E2</Grade>
      </Record>
    </ns0:MT_VM_Send>
    Target Payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Receiver xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
    <Record>
    <Emp_ID>123</Emp_ID>
    <Full_Name>rash sumit</Full_Name>
    <Designation>E2</Designation>
    <Gender>M</Gender>
    <Travel_Mode>Train</Travel_Mode>
    </Record>
    </ns0:MT_VM_Receiver>
    Here travel_mode is coming perfect, but designation is same as defined in source payload. Why here Value mapping not working???
    Thanks & regards,
    Rashmi Joshi

    Hi Rashmi,
    The problem would either be in cache update or your mapping. Please provide the sceenshot of mapping (after clicking the value mapping function).
    you can also choose the option to throw error in value mapping function, so it will throw error when value not found.
    regards,
    Harish

  • Why does iTunes keep giving me bogus error messages.  "Your internet connection is not working, check your connection and try again."  My internet is working fine.  iTunes is not working and will not allow me to download tunes.

    why does iTunes keep giving me bogus error messages.  "Your internet connection is not working, check your connection and try again."  My internet is working fine.  iTunes is not working and will not allow me to download tunes.

    This my sound too simple, but I just kept clikning on the arrow next to the selected music and it finally "Kicked" in.
    I live in Europe ,So Be persistent and don't give up !  Aug. 2013

  • HT1212 what if your home button does not work to try to fix the connect to itunes problem?

    How do you diable your locked i pod touch using itunes if your home button does not work?

    Use one of these programs to place the iPod in recovery node:
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    The Firmware Umbrella - TinyUmbrella

  • Customer JSF Component Value Expression not work

    why my customer tag not work,
    in my jsp
    <q:my formatString="yyyy/mm/dd" current="#{LoginBean.date}"></q:my>the isLiteralText() always return true, and I can't get the correct value, #{LoginBean.date} is returned.
    bellow is my tag source.
    can anyone help me.
    package jsf;
    import javax.el.ValueExpression;
    import javax.faces.component.UIComponent;
    import javax.faces.webapp.UIComponentELTag;
    public class MyCustomerTag extends UIComponentELTag {
        private String formatString;
        @Override
        public String getComponentType() {
            return "COMPONENT_TYPE";
        @Override
        public String getRendererType() {
            return "COMPONENT_TYPE";
        @Override
        public void release() {
            super.release();
            setFormatString(null);
        @Override
        protected void setProperties(UIComponent component)  {
            if (!(component instanceof UIDatePicker))
                throw new IllegalArgumentException("Component "+
                    component.getClass().getName() +" is no UIDatePicker");
            component.setValueExpression("current", current);
            System.out.println(current.getExpressionString());
            System.out.println(current.isLiteralText());
            System.out.println((String) component.getAttributes().get("current"));
         * @return the formatString
        public String getFormatString() {
            return formatString;
         * @param formatString the formatString to set
        public void setFormatString(String formatString) {
            this.formatString = formatString;
        private ValueExpression current;
         * @return the value
        public ValueExpression getCurrent() {
            return current;
         * @param value the value to set
        public void setCurrent(ValueExpression current) {
            this.current = current;
    }

    I do not know what your native is, but there's quite a huge difference between "custom" and "customer". Look it up in your dictionary.

  • Setting transient VO attributes defaut value does not work

    Hi,
    I try to set default values to transient attributes but it dowes not work the value retuened after the executequery() is null.
    Please help.
    Thnaks
    JO

    Transient attributes will be cleared on VO requery
    what is your requirement ?
    Thanks
    Tapash

  • Deafult values features not working in CATS

    Mates
    I have maintained 315 inftyp for a pernr and when i try to enter the values for the same pernr in time sheet using cat2 ,it doesnt default the sender cost centre and activity type.Infact i  have flagged under cost assignmetn variant Asssignment of personnel cost to master cost centre and in default values ,i have flagged acontrolling area ,activiry type,att/absnece type ,master cost centre in data entry profile-cac1.how do we enable the default values features in time sheet,is there any config steps im missing ?
    Got some inputs,thanks to contributors
    activity tpye in Timesheets
    welcome your valuable inputs.
    No Worries
    KG
    Edited by: SAPenjoy:) on Apr 4, 2011 12:21 PM

    No that is not what is going on. I use InDesign CS4 on a regualr basis at home and at my last job. I've been to the training and I know how the program works and right now it is NOT working unless they have made some major changes since CS4.
    I'm running in windows 7. I'm not trying to do anything crazy, but it's not letting me do really basic things.
    I haven't looked into this yet, but is it possible the download would have loaded 64bit when I can't run it (or vice versa), I don't know all of the hardware specifics of this machine, like I said I'm still brand new here. 64bit vs. 32bit is the only thing I can think of, but that seems impossible since photoshop and illustrator are running properly.

  • HT1430 How can you restart your iphone if your lock button does not work?

    How can you restart or turn off your iPhone if the lock button does not work?

    The best way is to let the battery die. Or you can reset the phone settings which restarts everything.

  • Master details form: in the details form the List of values is not working

    The master details have an upper form and a lower form OK
    So, the List of values of values in the upper is working fine,
    the lower form or the details form the list of values not working on it and the code is right, and mean not working like when you press on it its not showing any thing
    also is work on a regular form like a tabular form .
    so please help !!!
    Edited by: user8925579 on May 12, 2011 2:28 PM
    Edited by: user8925579 on May 12, 2011 2:37 PM
    Edited by: user8925579 on May 12, 2011 2:37 PM

    SOLVED
         CMC -> Connections
    -     Right click connection name, Click u201CTools > Check Relationshipu201D
    -     In u201CQuery Resultsu201D, Right click Connections, Click u201CUser Securityu201D
    -     Assign Security for u201CEveryoneu201D
    -     UNTICK both Inherit from Parent Folder and Inherit from Parent Group
    -     Assign u201CView on Demandu201D
         CMC -> Universes
    -     Right click u201CUniversesu201D folder, click u201CPropertiesu201D
    -     Under u201CUser Securityu201D, click Everyone and assign security
    -     UNTICK both Inherit from Parent Folder and Inherit from Parent Group
    -     Assign u201CView on Demandu201D

  • Value mapping -----Not working?

    Hi experts,
    I have craeted value mapping in integartion directory.
    But the target values are not getting reflected.
    I checked the mapping in runtime and its showing exact target value.
    The data volume is huge in the mapping ( say 600) .Is it because of this volume...am i facing the error.
    The target and sorce schema are perfect...
    Coversion Example:
    Source -ABCCBB
    Expected target value -1345
    Result target value-ABCCBB( now coming in system)
    Thanks in advance for your help.

    Hi Anil,
    Generally in Value Mapping, when a target value is not given for a corresponding source value, the source value itself is sent to the target field.
    Please check if you have grouped properly.
    Thanks,
    Jaya

  • Navigate Value Interaction not working with UNIONs displayed as pivot

    hi all - If created dozens of requests the uses drilling. Now I'm getting strange behavior in a certain scenario...
    I have a request that is a pivot view and contains UNIONs. One of the columns, employee name, is set up as 'Navigate' for the Value Interaction property. The request drilled to has employee name set up as 'Is Prompted' in the criteria.
    If the main request is displayed as a table view, the drilling works fine - the drilled to request opens with the intended employee that was clicked on in the main request. However, if the main request is a pivot view (which is the view I want) instead of a table view, the drilling does not work as intented - the drilled to request opens with all the employee names. I just want to drill on the clicked upon employee, not all the employees.
    I'm using OBIEE 10.1.3.4.
    Any suggestions as to why this would work as a table view but not as a pivot view?
    Thanks!

    The best solution is to define hyperlink for the detail report in the report column itself. Change the expression of column to HTML hyperlink. (Make sure value interaction is disabled) Use Go URL syntax to navigate to detail report and pass parameter, something like below:
    <pre>'&lt;a href=”saw.dll?Go&Path=/Shared/ReportName&Action=Navigate&P0=1&P1=eq&P2=Emp.Name&P3=’ || Emp.Name || ‘">’ || Emp.Name || ‘&lt;/a>’</pre>
    This link has more details:
    http://www.iwarelogic.com/2010/09/integrating-oracle-obiee-content-using-go-url-850/
    http://www.iwarelogic.com/wp-content/uploads/blogimg/2010/09/image006.jpg
    Hope this helps

  • Value binding not working with rendered attribute

    In my jsf page i'm encountering problem with value binding it is not working for a h:inputText with rendered condition even when the rendered condition evaluates to true & the component is rendered.While trying to retrieve the value of the components with conditional rendering on submit i'm unable to retreive the value while on removing rendered condition the value binding is working perfectly
    <h:selectOneMenu id="DropDown" value="#pc_GeneralRequestInfo.objInfoDTO.State}" rendered="#pc_GeneralRequestInfo.objAddressRequestDetailsDTO.selectedAddressType == 'HOME'}">                    
    <f:selectItems value="#{pc_GeneralRequestInfo.statesList}" />
    </h:selectOneMenu>

    There is a { missing from the value attribute in the code you posted.                                                                                                                                                                                           

  • Adobe Flash Plug In crashing and your suggested fix is not working

    I can't use the Adobe Acrobat Plug In. It just keeps saying the plug in has crashed. I've tried your suggested fix for this issue and it still does not work.

    It looks like there is a slightly newer version of the Adobe Reader plug-in available - http://get.adobe.com/reader/ Try installing that.

  • Javascript: button.value = "change" not working

    onclick="rez.value = 'rezerved';" code does not work

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Plz i need your help - Skype Number not working.

    i need your help 2 days a go i brought polanda number it was working good now its not working i dont no why plz could you help me this is my phone number
    [removed for privacy and security] which i brought

    Hi, Gaza898, and welcome to the Community,
    We here in the Community do not have the tools to diagnose and rectify problems with Skype Numbers, however Skype Customer Service does.  Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service    Skype is aware of lingering website issues. Temporarily enabling scripts, pop-up dialog boxes, and disabling plug-ins which could prohibit pop-ups may help get past website problems.
    If you still experience difficulty reaching Skype Customer Service or find yourself redirected back to the Community, please try again using a different web browser and choosing a different path through the various drop-down menu options presented.
    Also, look to approve a pop-up dialogue box which would connect you to start an instant message chat with a customer service agent. If you have pop-ups blocked in your browser settings, this will also block reaching an agent.
    Last and not least, when you reach the last step of the process, remember to click on the "Start Chat" link when you are provided the choice of visiting the Community or starting an instant message chat with a customer service agent.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for

  • OBIEE11g: Set user privileges to  Open RPD in Read Only mode.

    Hi All, Can some one help me , how to set user privileges to open RPD in read only mode. 1) If a user ( xxxx) logs into the RPD then the rpd should open in Read Only Mode for xxxx user. 2) If other user (YYYY) logs in online mode then it should open

  • Font Will Not Install

    I work for a catalog company and we use the Adobe CS3 suite. After a machine meltdown I had to reinstall my system OS and Tiger Upgrade. After doing so and running one of my catalog pages in indesign I received a ton of missing font errors. While I w

  • DATE value in a STORED PROC becoming incorrect?

    I have a PL SQL script that creates a TABLE on the fly with a DATE column in it. I then have a FUNCTION that queries this table. The FCN is called from within a SP. In these three steps the date becomes a BOGUS value.... I am seeing things like this:

  • BADI for Me21N - Condition types

    Hi All, wat ever condition type given in the header should be copied to all the items in the item level. then they want to change the condition type at item level for one or two items rest all are same like header condition types. see we have a condi

  • Is it possible to pass nQuireID (session ID) via URL ?

    is it possible to pass nQuireID (session ID) via URL? (how to get the session id ?) therefore, we dont need to pass the userid and password. (embedded in the URL)