CREATING THE LOV COMPONENT PROGRAMATICALLY

I am trying to create SelectInputText programatically like this
lovitem = (CoreSelectInputText)apps.createComponent(CoreSelectInputText.COMPONENT_TYPE);
lovitem.setId("lovitem");
lovitem.setLabel("Application Id");
lovitem.setShortDesc("Click to get a value");
lovitem.setAction(new ConstantMethodBinding("dialog:launchLov"));
javax.faces.el.MethodBinding mb = apps.createMethodBinding("#{Application1.lovTestField_valueChangeListener}", new Class[] {
javax.faces.event.ValueChangeEvent.class
lovitem.setValueChangeListener(mb);
lovitem.setWindowWidth(300);
lovitem.setWindowHeight(200);
findComponent("form1").getChildren().add(4,lovitem);
In my faces-config.xml I have given the following navigation
<navigation-rule>
<from-view-id>/Test.jsp</from-view-id>
<navigation-case>
<from-outcome>dialog:launchLov</from-outcome>
<to-view-id>/Test2.jsp</to-view-id>
</navigation-case>
</navigation-rule>
My heterogeneous custom component is rendered fine but when I click on
LOV icon nothing happens.
Can anybody help me in the same..
it is an urgent requirement for us.
Regards
Ravi

I am trying to create SelectInputText programatically like this
lovitem = (CoreSelectInputText)apps.createComponent(CoreSelectInputText.COMPONENT_TYPE);
lovitem.setId("lovitem");
lovitem.setLabel("Application Id");
lovitem.setShortDesc("Click to get a value");
lovitem.setAction(new ConstantMethodBinding("dialog:launchLov"));
javax.faces.el.MethodBinding mb = apps.createMethodBinding("#{Application1.lovTestField_valueChangeListener}", new Class[] {
javax.faces.event.ValueChangeEvent.class
lovitem.setValueChangeListener(mb);
lovitem.setWindowWidth(300);
lovitem.setWindowHeight(200);
findComponent("form1").getChildren().add(4,lovitem);
In my faces-config.xml I have given the following navigation
<navigation-rule>
<from-view-id>/Test.jsp</from-view-id>
<navigation-case>
<from-outcome>dialog:launchLov</from-outcome>
<to-view-id>/Test2.jsp</to-view-id>
</navigation-case>
</navigation-rule>
My heterogeneous custom component is rendered fine but when I click on
LOV icon nothing happens.
Can anybody help me in the same..
it is an urgent requirement for us.
Regards
Ravi

Similar Messages

  • FM or BAPI to create the Content Component Hierarchy ( jji7 )

    Dear All,
    Is there any FM or BAPI available to create the Content Component Hierarchy ( jji7 ) which is related to IS Media.
    Thanks,
    Senthil.

    Hello,
    sorry but in SAP standard is no Bapi available for the creation of the content component.
    It does make no sence because normally you should create the content component once only.
    I hope that the information are helpful.
    regards
    Claudia

  • Is any Public API available to create the rpd file programatically

    Hi:
    In general is there any public API's that can be used to create the rpd file programatically?
    I know that there is a discoverer migration tool to convert to rpd file is present in the latest version. But how to do it for the hyperion reports?
    Searching for any API's that may be present to create the rpd file programatically.
    Thanks & Regards
    Sridhar D

    You can use UDML to make changes to the RPD. However it is not supported by Oracle so you will be by yourself in anything goes wrong. You can also easily see the UDML code if you copy any objects from Administration tool into Notepad. This post will teach you the basics: http://oraclebizint.wordpress.com/2008/04/04/oracle-bi-ee-101332-udml-to-automate-repository-updates-migration-of-repositories-from-development-to-testproduction-environment/

  • 'Failed to Create the SOA Component'

    Hi All,
    I have installed the Jdeveloper 11.1.1.3.0 in my windows 7 machine.
    Versions are as below,
    ADF Business Components 11.1.1.56.60
    BPMN Editor 11.1.1.3.0.6.84
    Java (TM) Platform 1.6.0_18
    Oracle IDE 11.1.1.3.37.56.60
    SOA Composite Editor 11.1.1.3.0.25.57
    Versioning Support 11.1.1.3.37.56.60
    machine RAM - 2GB
    Have enough hard disk spaces (more than 50 G)
    Im getting a error *'Failed to create the SOA component'* when i trying to create a BPMN project.
    It works properly for BPEL projects.
    I have reinstalled the jdeveloper several times, but didn't work.
    What should i do???
    Thank You.......
    Edited by: Nir on Apr 8, 2012 10:01 PM

    Yes ..
    version is ----> BPMN Editor 11.1.1.3.0.6.84
    when i try to include a *'BPMN Process'* to Composite.xml it gives below error,
    java.lang.NullPointerException
         at oracle.bpm.fusion.soa.SCAComponentBPMN.createImplementation(SCAComponentBPMN.java:71)
         at oracle.tip.tools.ide.fabric.gui.controller.ActionComponentEdit.add(ActionComponentEdit.java:102)
         at oracle.tip.tools.ide.fabric.gui.controller.ActionComponentEdit.process(ActionComponentEdit.java:78)
    Thank You
    IS THERE ANYONE TO HELP ME ?????
    Edited by: Nir on Apr 8, 2012 11:27 PM
    Edited by: Nir on Apr 9, 2012 3:12 AM
    When i create the project in a different folder it got created.
    But i cant create BPMN projects in new folders
    Thanks
    Edited by: Nir on Apr 10, 2012 1:58 AM

  • Error while creating the 'LOV' type parameter in Siebel 8.1.1.5

    Hi,
    One of my Customer is facing the below error while creatting the parameter of type 'LOV' in Parameter applet in Siebel 8.1.1.5
    Runtime Error!
    Program: C:\Program Files\Internet Explorer\iexplorer.exe
    This application has requested the Runtime to terminate it in an usual way. Please contact the application’s support team for more information
    Could some please let me know what would be the reason for this issue?
    Thanks in advance for your help.
    Thanks,
    Ravi

    Please close this thread...it appears that the error occurs when the report involves a big set of records. I tried trying to filter only one record and was able to produce the pdf

  • How to create the Declarative Component?

    Hi,
    I am using jdev 11g Release 2.
    I want to create reusable component. So I want to create a declarative component.
    Please let me know some sample and study materials.
    Regards,
    Ragu

    another examples can be found in these links:
    Missing In or Out Parameter at Index 1
    http://andrejusb.blogspot.com/2009/10/custom-declarative-components-in-adf.html
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31973/af_reuse.htm#CACBFGFC

  • Error while creating the development component project

    Hello
    i tried to create development component project through NWDS which is expected to be used as CallableObject but it gave following exception
    Plugin name: Web Dynpro Archive Builder
    Plugin ID: com.sap.ide.webdynpro.archivebuilder
    Class: com.sap.ide.webdynpro.archivebuilder.project.WebDynproDevelopmentComponentProjectWizard
    Method: createProject(String, IPath, IProgressMonitor)
    Message: Invalid project description.
    Exception: org.eclipse.core.internal.resources.ResourceException: Invalid project description in plugin name
    I am using NWDS 7 version and using J2EE engine of NetWeaver 2004s server.
    Thanks in advance.
    Regards
    Rajeev

    Hi
    sorry for that
    see the below link ,it will be helpful for u.
    Re: development component
    Regards
    Hazrath

  • Creating the Shop Component  XCM

    Hi,
    We are configuring ISA in ECC 5.0(ERP).
    When trying the URL http:///shopadmin/shopadmin/init.do we are getting a message "ISA Framework: Internal Error No XCM application configuration has been passed and there is no default XCM application configuration defined. Check XCM configuration".
    I have a question about shop component configuration. If my shop is new (not upgrade), what I need to put in field "Object-Path" and in defaultShopId. I tried with blank fields and with values. But I´m not sure about this fields. I think that error in Web Shop could be for this fields.
    Please help us regaring this.

    Review forum CRM

  • How to change the lov query??

    Hi Friends,
    I am trying to extend a controller of the base page to change the lov query. I am not able to get the lov VO since I am not getting the lov AM in the controller.
    I want to use the setQuery() to set the lov query programatically in base class controller PR.
    My controller code looks like ::
    OAApplicationModule am = oapagecontext.getRootApplicationModule();
    oapagecontext.writeDiagnostics(this,"The Root AM is : " + am.toString(),6); // displaying oracle.apps.icx.por.req.server.RequisitionAMImpl
    OAApplicationModule lovAM = (OAApplicationModule)am.findApplicationModule("RequisitionLovAM"); // Returning Null
    OAViewObjectImpl vo = (OAViewObjectImpl)lovAM.findViewObject("ReqSupplierVO");
    String seededQuery = vo.getQuery();
    oapagecontext.writeDiagnostics(this,"Seeded Query for ReqSupplierVO is "+ seededQuery,6);
    String customQuery = "new_query" // here i m writing my new query.
    vo.setQuery(customQuery); // setting my custom query.
    oapagecontext.writeDiagnostics(this,"Custom Query for the ReqSupplierVO is "+ vo.getQuery(),6);
    The following are the details.
    Base Page : /oracle/apps/icx/icatalog/shopping/webui/NonCatalogRequestPG
    Base Page Controller : logi.oracle.apps.icx.icatalog.shopping.webui.NonCatalogRequestCO
    Lov Region : /oracle/apps/icx/lov/webui/ReqSupplierLovRN
    Lov Controller : oracle.apps.icx.lov.webui.ReqSupplierLovCO
    Lov VO : oracle.apps.icx.lov.server.ReqSupplierVO ( i want to remove outer join in this VO query )
    I cant extend the lov controller since the same lov region is using in other pages also where i dont want apply my new lov query.
    Is the way i am trying is correct? How can i get the Lov AM in the base page? Any help highly appreciated.

    Hi Pratap,
    Thanks for coming back on this.
    The background of this customization is, We are implementing AME and are trying to restrict the number of approvers in the Change First Approver LOV (ApprroverLovVO.xml) based on company code and cost centre during the creation of Requistion. At the moment, the LOV is bringing back every employee who has a valid WF role.
    At the moment (up till I saw this thread) I was trying to customize ReqApprChfCo.java by adding this code to processRequest method
    OAMessageLovInputBean CompanyCode = (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("ChargeAccountFlex0_column"); //this is returing null
    OAMessageLovInputBean CostCentre = (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("ChargeAccountFlex1_column"); //this is returing null
    RequisitionLovAMImpl am = (RequisitionLovAMImpl)oapagecontext.getApplicationModule(oawebbean); // this is returning null
    OAViewObject approverLovVO = (OAViewObject)oam.findViewObject("ApproverLovVO");
    Then, once found to append the viewobject with where clause. Was this the right method of achiving it, or to create a new custom VO and region?
    Regards,
    Chetan

  • Discoverer, not showing up the lov ellipse (arrow)

    am developing a report in oracle discoverer, and i have
    used item class in administrator ....
    but in the discoverer desktop, it doesnt show the lov arrow
    ..it is simply asking me to enter the value, rather than
    presenting me with a list of values...
    how to make sure that i get to see the list?

    Hi,
    To make sure you will see the LOV,
    after creating the LOV in the administrator, press the + sign near the item and see if the list is opened.
    In the desktop/ Plus you can also do the same check ot verify that the LOV is exists and that you have the privileges to open it (if you created the LOV in another BA you have to get the permission to use it).
    The next step is to make sure that the parameter you created is related to the item that uses the LOV you can check it in the parameter screen.
    The easiest way to make sure that happens is to start the process from creating the condition and then from within the condition create the parameter.

  • When do I need to declare multiple usages of the same component

    I have a noddy WD4A component with a main view containing only ViewContainerUI elements. Each container has a sub-view embedded implementing some functionality I am playing with. One of these views implements a select option by using the WDR_SELECT_OPTIONS component. I have got this working. Then I decide to make a copy of the view in order to test some modifications. I embed this in a new ViewContainerUI element on the main view.
    So now I have 2 sub views implementing the same select option. When I run it, the 2nd select option appears in the first view as a duplicate. The only way I can fix this is by declaring a second usage (of WDR_SELECT_OPTIONS) in the component and using this in the copied view.
    So now I have 2 WDR_SELECT_OPTIONS component usages declared (with different names) so that my 2 views can coexist on the screen. Is this really necessary? Had it been the same view implementing both select options fair enough - but these are 2 different views.
    If the views were not displayed at the same time, could I have declared and used just 1 component usage?
    Peter

    I have still not succeeded in dynamically creating a 2nd select Option and getting it to display in a View Container (called VC_SOD). The code compiles and runs but the select option does not display. This is hopefully something I will never need to do in reality. Just an exercise.
    The code that is commented out is the original standard technique of using a select_option usage. There is probably more then 1 fundamental mistake in the code
    method WDDOMODIFYVIEW .
      DATA: LT_RANGE_TABLE TYPE REF TO DATA,
            RT_RANGE_TABLE TYPE REF TO DATA,
            READ_ONLY TYPE ABAP_BOOL,
            TYPENAME TYPE STRING.
      DATA: LR_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER,
            L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
    create the used component
      L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_SELECT_OPTIONS( ).
    Here we copy the usage just for the hell of it.
      DATA lr_component_usage type ref to if_wd_component_usage.
      L_REF_CMP_USAGE = L_REF_CMP_USAGE->CREATE_COMP_USAGE_OF_SAME_TYPE( name = 'SELECT_OPTIONS2' ).
      IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
        L_REF_CMP_USAGE->CREATE_COMPONENT( ).
      ENDIF.
    *call the interface controller method init_selection_screen to get the helper class
    WD_THIS->M_WD_SOD = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
      data L_INTF_CONTROLLER type ref to IWCI_WDR_SELECT_OPTIONS.
      L_INTF_CONTROLLER ?= L_REF_CMP_USAGE->GET_INTERFACE_CONTROLLER( ).
    data lo_view_controller type ref to if_wd_view_controller.
    data lo_view_usage TYPE REF TO if_wd_rr_view_usage.
    data lo_view_cnt_assignment TYPE REF TO if_wd_rr_view_cnt_assignment.
    data lo_view type ref to if_wd_view.
    lo_view_controller = wd_this->wd_get_api( ).
    lo_view_usage = view->get_view_usage( ).
    try and see what is going on
    data lo_view_container_assignments type WDRR_VCA_OBJECTS.
    lo_view_container_assignments = lo_view_usage->GET_VIEW_CNT_ASSIGNMENTS( ).
    lo_view_cnt_assignment = lo_view_usage->create_view_cnt_assignment( name = 'VC_SOD' assigned_container = 'VC_SOD' ).
    try and see what is going on
    lo_view_container_assignments = lo_view_usage->GET_VIEW_CNT_ASSIGNMENTS( ).
    init the select screen
    WD_THIS->M_HANDLER = WD_THIS->M_WD_SOD->INIT_SELECTION_SCREEN( ).
      WD_THIS->M_HANDLER = L_INTF_CONTROLLER->INIT_SELECTION_SCREEN( ).
      WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
                                  I_DISPLAY_BTN_CANCEL  = ABAP_FALSE
                                  I_DISPLAY_BTN_CHECK   = ABAP_FALSE
                                  I_DISPLAY_BTN_RESET   = ABAP_FALSE
                                  I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
    create a range table that consists of this new data element
      LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
    add a new field to the selection
      WD_THIS->M_HANDLER->ADD_SELECTION_FIELD( I_ID = 'S_CARR_ID' IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
    endmethod.

  • Creating result based search programatically

    Hi All,
    I am trying to create a simple result based search programmatically. I need to do this because I want the user to basically be able to select a specific table name and then the search adjusts the criteria and results automatically based on the table selected. If you like it is a generic query mechanism.
    I have attempted to do this by declaratively setting up the query region as far as possible and then adding the table fields and binding them to a VO instance that I have created (I also create the view definition programatically)
    The query region renders and the go and clear buttons are available, the result table renders and if I do a blind query it works fine and the result appear. The problem I have is that for the fields in the table that have queriable set to yes, the search region is not rendering the search fields.
    This is what I have done (all in process request for now to get it working)
    OADBTransactionImpl dbTx = (OADBTransactionImpl)am.getTransaction();
    OAViewDef viewDef = dbTx.createViewDef();
    viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
    viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
    viewDef.addSqlDerivedAttrDef("RECORD_ID","RECORD_ID","java.lang.String",Types.VARCHAR,false,true,AttributeDef.READONLY);
    viewDef.addSqlDerivedAttrDef("RUNTIME_KEY","RUNTIME_KEY","java.lang.String",Types.VARCHAR,false,true,AttributeDef.READONLY);
    viewDef.addSqlDerivedAttrDef("STATUS","STATUS","java.lang.String",Types.VARCHAR,false,true,AttributeDef.READONLY);
    viewDef.setSql(sqlStmt);
    am.createViewObject("InterfaceTableVO1",viewDef);
    OATableBean tableBean = (OATableBean)webBean.findChildRecursive("InterfaceTableVO1");
    OAMessageStyledTextBean leaf = null;
    leaf=(OAMessageStyledTextBean)createWebBean(pageContext,MESSAGE_STYLED_TEXT_BEAN,null,"RECORD_ID");
    leaf.setViewUsageName("InterfaceTableVO1");
    leaf.setViewAttributeName("RECORD_ID");
    leaf.setWrapEnabled(false);
    leaf.setPrompt("RECORD_ID");
    leaf.setQueryable(true);
    tableBean.addIndexedChild(leaf);
    The query bean and table have been defined declaratively, my hope was when I added the leaf nodes to the table with query able set to true that the framework would automatically figure the bindings out but it doesn't seem to be doing this.
    Could this be a UIX rendering problem that I need to get around somehow?
    Thanks
    Keith

    anyone got any ideas on this one?

  • A way of creating an LOV. Does it achieve something extra than normal way?

    Hi,
    In some ADF applications I have seen a way of LOV creation where there are two view objects as follows
    1. BaseVO having an attribute - 'lovAttribue' and
    query as
    select '' as lovAttribute from dual;
    The only attribute of this VO defines an lov with list data source as LovVO and List attribute as lovItem
    2. LovVO having attribute - 'lovItem' and
    query as
    select lovItem from table where some_condition;
    BaseVO is exposed in AM and its data control is dropped on the page to create the LOV.
    Another, more common way of creating LOV involves just a single View Object having an attribute which defines an LOV having the List data Source as the same View Object.
    I want to know is there any benefit of the first approach for creating LOV?
    Regards,
    Harmeet K Saini

    Thank you for the quick response, varjak.
    I did not know about the Thunderbolt option card, so thank you for telling me about that. That would solve a problem if I am getting Apollo Duo, which is a better model of Apollo Twin with more in/out and such. However, I'm only able to afford Apollo Twin right now and it does not come wtih the optional card slot, so unfortunately I would have to pass this option for now.
    I would definitely try out the USB monitor adaptor though. It looks like there many company that makes those so I would pick one and see how it works. Too bad my iMac only has USB 2.0, which would be much slower than 3.0 so I would guess there would be lag as you said, but it's worth a try.
    Thank you again.
    Nao

  • Logo Component - Design mode shows the edit component toolbar don't show "Edit" button

    I just created a Logo component on my website following the CQ "How to create a Fully Featured Internet Website" guide.
    I do create the logo component, edited the jsp page with the following code
    <%@include file="/libs/foundation/global.jsp"%>
    <%@ page import="com.day.text.Text,
                     com.day.cq.wcm.foundation.Image,
                     com.day.cq.commons.Doctype" %>
    <%  String home = Text.getAbsoluteParent(currentPage.getPath(), 2);
        Resource res = currentStyle.getDefiningResource("fileReference");
        if (res == null) {
            res = currentStyle.getDefiningResource("file");
        log.error("path is:" + currentStyle.getPath());
    %>
        <a href="<%= home %>.html"> <%
        if (res == null) {
            %> Home Page <%
        }else {
            Image img = new Image(res);
            img.setItemName(Image.NN_FILE, "file");
            img.setItemName(Image.PN_REFERENCE, "fileReference");
            img.setSelector("img");
            img.setDoctype(Doctype.fromRequest(request));
            img.setAlt("Home Page");
            img.draw(out);
        %>
        </a>
    Then, I created the tag "<cg:include>" in my jsp page, calling this jsp.
    After all that, I created the Design Dialog for my logo component, then a "items" node under the tab1 node of the design dialog.
    After this, finnaly, the widget node (absParent), under the items created before.
    A lot of propertys later, I got my Logo object in the page, but the toolbar with the "Edit" button on Design mode don't show me the "Edit button" 
    Someone can tell me how to get the button there?
    Is some property that I may have forgotten?
    Thanks.

    Basically, the edit toolbar has the same with as your component, which indeed is problematic for narrow components.
    But you can work-around that with a basic CSS hack:
    .cq-editbar {
        min-width: 200px !important;
        _width: 200px !important; /* IE6 */
    This seems to be fixed in CQ 5.5.

  • Getting Exception when setting the LOV whereclause Dynamically

    Hi all,
    I have created the LOV in which the whereClause is set dynamically.
    The LOV is fetching proper value when I query it first two times but after that it goes to the exception page-
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (Select pvsa.vendor_site_code SITE_NAME,
    hou.NAME Operating_unit,
    pvco.vendor_site_id vendor_site_id,
    pvco.vendor_contact_id vendor_contact_id,
    hzr.subject_id subject_id
    from PO_VENDOR_CONTACTS pvco,
    hz_party_sites hps,
    hz_parties hp,
    hz_relationships hzr,
    PO_VENDOR_SITES_ALL pvsa,
    hr_operating_units hou
    Where pvco.PARTY_SITE_ID = hps.PARTY_SITE_ID
    AND hps.PARTY_ID = hzr.PARTY_ID
    and hou.organization_id = pvsa.org_id
    /*AND hzr.subject_id = :1*/
    and hp.party_id = hzr.subject_id
    and hzr.relationship_type = 'CONTACT'
    and hzr.relationship_code = 'CONTACT_OF'
    and hzr.subject_type = 'PERSON'
    and hzr.object_type = 'ORGANIZATION'
    AND pvsa.vendor_site_id = pvco.vendor_site_id
    AND pvsa.pay_site_flag = 'Y') QRSLT WHERE (subject_id = :1 AND ( UPPER(SITE_NAME) like :2 AND (SITE_NAME like :3 OR SITE_NAME like :4 OR SITE_NAME like :5 OR SITE_NAME like :6)))
    - INVALID COLUMN TYPE.
    Below is the Code for my LOV CO-
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OADBTransaction oadbtransaction = (OADBTransaction)am.getOADBTransaction();
    String ContactPartyIdStr=null;
    ContactPartyIdStr = (String)oadbtransaction.getValue("ContactPartyId");
    System.out.println("In PR of LOV CO - ContactPartyIdStr is - " + ContactPartyIdStr);
    if (ContactPartyIdStr != null )
    Serializable[] parameters1 = { ContactPartyIdStr};
    am.invokeMethod("SiteLovInit",parameters1);
    Code for LOV AM-
    public void SiteLovInit(String ContactPartyIdStr)
    SitesLovVOImpl vo = (SitesLovVOImpl)getSitesLovVO1();
    if(vo == null)
    MessageToken[] errTokens = { new MessageToken("OBJECT_NAME", "SitesLovVO1")};
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    vo.initVOQuery(ContactPartyIdStr);
    Code for LOV VOImpl-
    public void initVOQuery(String ContactPartyIdStr)
    if ((ContactPartyIdStr != null) && (!("".equals(ContactPartyIdStr))))
    Integer ContactPartyId = Integer.parseInt(ContactPartyIdStr);
    this.clearCache();
    StringBuffer whereClause = new StringBuffer("subject_id = :1");
    setWhereClause(null);
    setWhereClause(whereClause.toString());
    setWhereClauseParams(null);
    setWhereClauseParam(0,ContactPartyId);
    if(isLoggingEnabled(1))
    writeDiagnostics(this, "Query in SitesLovVOImpl "+this.getQuery(), 1);
    try
    executeQuery();
    catch(Exception e)
    e.printStackTrace();
    String sQuery = new String(this.getQuery());
    System.out.println(" The Site VO query is - "+ sQuery); *// This query prints the same query all the time*
    I also tried running the query in the back end. It fetches teh required rows.
    I am unable to debug this.
    Plz help... :)

    Hi Anand,
    Thanks for ur help. But the link shows how to use a filed from the page as criteria item.
    But my reqirement is that I need to set the whereClause using a ID which is passed from previous page.
    So how do I go about it using the criteria item in this case.

Maybe you are looking for