Set query parameter inside a XML Query (JD 11.1.1.3.0)

Hello to all,
I'm trying to write a search query on XML document. This is the query:
SELECT Document.CREATION_DATE,
Document.DESCRIPTION,
Document.ID,
Document.TITLE,
Document.XML
FROM DOCUMENT Document
where Document.XML.existsNode('//field[contains(@value,:textSearchable) and @searchable="true"]') = 1
Now I'd like to set the textSearchable on Visual Object. I created the VO with variable named textSearchable and I tryed to use it by:
am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
ViewObject visualObject = am.findViewObject("engineSearch1");
visualObject.setNamedWhereClauseParam("textSearchable",this.it2.getValue().toString());
visualObject.executeQuery();
But the system return an error who says that the parameter textSearchable is not found
Where I made a mistake?
Thank you,
Cristian

I believe you need to define the named where clause param first.
Take a look at ViewObject.defineNamedWhereClauseParam().
Sascha

Similar Messages

  • Setting the values inside xml file in xmlparsing

    Hi,
    Iu2019ve an xml file without containing any values inside the tags. I need to get the values from the text file and set the values inside the xml file. When I try to set the string variable inside the setValueNode()  using DOM parser, itu2019s not setting any values inside the xml file. 
    Please help me on this..
    Regards
    Vineela

    Hi,
    I am doing conversion from EDIFACT format to xml format.
    I am writing this code using core java. So I am using xmlparsing to convert my data. Iu2019ve one Hash table with me. I need to get the values from there and populate those values into xml file.
    Regards
    Vineela

  • How to set Query SQL Statement parameter dynamically in Sender JDBCAdpter

    Hi All,
    I have one scenario in which we are using JDBC Sender Adapter.
    Now in this case,we need to set Query SQL Statement with a SELECT statement based on some fields.
    This SQL statement is not constant, it would need to be changed.
    Means sometimes receiver will want to execute SQL statement with these fields and sometimes they will want to execute it with different fields.
    We can create separate channels for each SQL statement but again that is not an optimum solution.
    So ,I am looking out for a way to set these parameters dynamically or set SQL statement at Runtime.
    Can you all please help me to get this?

    Shweta ,
    <i>Sometimes receiver will want to execute SQL statement dynamically</i>....
    How you will get the query dynamically? Ok Let me assume, consider they are sending the query through file, then its definitely possible. But u need BPM and also not sender JDBC receiver adapter instead, receiver JDBC adapter.
    SQL Query File ->BPM>Synchronous send [Fetch data from DB]--->Response -
    >...............
    Do u think the above design will suit's ur case!!!!
    Best regards,
    raj.

  • WEBI Sample Result Set Query Property Question

    Wnen I set the WEBI Sample Result Set query property my retrievals took longer than I thought they should especially with a limited result set.  When I hit the View SQL button and look at SQL I notice that the following order by is added to the query:
    Order by dbms_random.value
    I copied the query and ran it against our Oracle database with and without the order by.  Without the order by the query ran significantly faster.   Is there any way to stop the order by from being generated when the Sample Result Set property is set?
    Thanks,
    Bob

    Thanks for your reply.
    I tried to locate the parameter you mentioned in the parameters for my universe and did not find anything referencing not enforcing order bys.  I checked the documentation and did not see anything there either.   Please respond with the exact name of the parameter or if it is a custom parameter the settings you used to create it.
    Thanks,
    Bob

  • Query Performance and Result Set Query/Sub-Query

    Hi,
    I have an infoset with as many as <b>15 joins</b> with different ODS and Master Data..<b>The ODS are quite huge with 20 million, 160 million records)...</b>Its taking a lot of time even for a few days and need to get atleast 3 months data in a reasonable amount of time....
    Could anyone please tell me whether <b>Sub-Query or Result Set Query have to be written against the same InfoProvider</b> (Cube, Infoset, etc)...or they can be used in queries
    on different infoprovider...
    Please suggest...Thanks in Advance.
    Regards
    Anil

    Hi Bhanu,
    Needed some help defining the Precalculated Value Set as I wasnt succesful....
    Please suggest answers if possible for the questions below
    1) Can I use Filter Criteria for restricting the value set for the characteristic when I Define a Query on an ODS. When i tried this it gave me errors as below  ..
    "System error in program CL_RSR_REQUEST and form  EXECUTE_VTABLE:COB_PRO_GET_ALWAYS....                     Error when filling value set DELIVERY..                                               
    Job cancelled after system exception ERROR_MESSAGE"                                           
    2) Can I create a create a Value Set predefined on an Infoset -  Not Succesful as Infoset have names such as "InfosetName_F000232" and cannot find the characteristic in Paramter Tab for Value Set in Reprting Agent.
    3) How does the precalculated value Set variable help if I am not using any Filtering Criteria and is storing the List of all values for the Variable from the ODS which consists of 20 millio records.
    Thanks for your help.
    Kind Regards
    Anil

  • JDBC & setQueryTimeout - or is there another way to set query timeout?

    I am trying to set query timeout for TimesTen using jdbc library. But it seems like TimesTen jdbc library does not support setQueryTimeOut. Is there a way to set it without having to set it statically in the DNS?
    I tried to set the SqlQueryTimeout in the connection string but it doesn't work either:
         Connection connection = DriverManager.getConnection(
         "jdbc:timesten:client:TTC_SERVER=bleh;TCP_PORT=17013;TTC_Server_DSN=blah;TTC_Timeout=0;SqlQueryTimeout=5;");
    Thanks for your help!

    Thanks for replying. I don't know have good knowledge on Cache Connect. I will have to read on that first.
    It seems like TimesTen does not support jdbc setQueryTimeout. Calling this method on TimesTen jdbc library will return false: supportsQueryTimeout().
    I created a test class for testing the SqlQueryTimeout. I set the TTC_Timeout to 400 seconds and SqlQueryTimeOut to 5 seconds. So after 5 seconds it should time out.
    The way I test it is by putting a break point before executing the query, do a route add DBServer to an un-connectible gateway to simulate the network delay/connection problem and then continue after I added the route.
    After executing the query, instead of timing out after 5 second, it will wait for a few minutes before timing out.
    The code for testing the timeout is as follow:
    public class TTTest {
         public static void main(String[] args) throws ClassNotFoundException {
         Class.forName("com.timesten.jdbc.TimesTenDriver");
         try {
         Connection connection = DriverManager.getConnection(
         "jdbc:timesten:client:TTC_SERVER=server;TCP_PORT=17013;TTC_Server_DSN=server_dns;"
         + "TTC_Timeout=400;SqlQueryTimeout=5;");
         System.out.println(connection.getClass().getName());          
         Statement stmt = connection.createStatement();
         //com.timesten.jdbc.JdbcOdbcStatement stmt = (JdbcOdbcStatement)connection.createStatement();     
         System.out.println(stmt.getClass().getName());
         System.out.println("Query started " + new Date());
    // Pause here, put a route add and continue
         ResultSet rs = stmt.executeQuery("select count(*) from mse");
         rs.next();
         System.out.println("there are " + rs.getInt(1) + " rows");
         rs.close();
         stmt.close();
         connection.close();          
         } catch (Exception x) {           
         x.printStackTrace(System.err);
         System.err.println(new Date());
    }

  • Info set query condition

    we have a infoset query to generate a list of parked logistic invoices, we use the same vendor and the same T-code : MIR7 to generate park document, but I can see only the park documents generated by my collegue throgh this info set query.
    I can't see the park documents generated by me throgh this info set query, we are using the same T-code MIR7 and same query.
    why this happen? Is someone set the condition of this query, so i can't see the parked document generate by my self. I can see these parked document(both my collegue and mine) through MIR6

    any idea from query design point of view? thanks

  • Set query of VO through CO

    How can I set query of VO on run time through CO?
    Thanks,
    Krunal

    could you resolve the issue.
    because I am also facing the same error when I use the
    vo.setWhereClause(".........");
    I have extended the existing controller by adding some conditions for the ViewObject. (see above)
    after assigning the extended controller to the controller class of the page, I am receiving an error about the SQL statement, that includes two where statements in one sql.
    what is the correct syntax for that?
    how can I add one more condition within the controller to the VO???
    thanks a lot in advance for your advices...
    regards,
    DOGAN
    ps: the error I am receiving:
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT /* leading (PLL) NO_MERGE( PLL ) USE_NL( PLL POH ) */
    POH.SEGMENT1 PO_NUMBER,
         PRL.RELEASE_NUM RELEASE_NUM,
         DECODE(PRL.PO_RELEASE_ID, NULL, POH.SEGMENT1, POH.SEGMENT1 || '-' || TO_CHAR(PRL.RELEASE_NUM)) DISPLAY_PO_NUMBER,
    POL.LINE_NUM LINE_NUM,
    POL.ITEM_ID ITEM_ID,
         POL.ITEM_REVISION ITEM_REVISION,
         POL.ITEM_DESCRIPTION ITEM_DESCRIPTION,
         POL.VENDOR_PRODUCT_NUM SUPPLIER_ITEM_NUMBER,
    NVL(PLL.PROMISED_DATE, PLL.NEED_BY_DATE) DUE_DATE,
         PLL.RECEIPT_DAYS_EXCEPTION_CODE RECEIPT_DAYS_EXCEPTION_CODE,
         PLL.DAYS_EARLY_RECEIPT_ALLOWED DAYS_EARLY_RECEIPT_ALLOWED,
         PLL.DAYS_LATE_RECEIPT_ALLOWED DAYS_LATE_RECEIPT_ALLOWED,
         POL.UNIT_MEAS_LOOKUP_CODE UNIT_MEAS_LOOKUP_CODE,
         TO_NUMBER(NULL) SHIPMENT_QUANTITY,
         PLL.QUANTITY QUANTITY_ORDERED,
         PLL.QUANTITY_RECEIVED QUANTITY_RECEIVED,
         NVL(HRL.LOCATION_CODE, SUBSTR(RTRIM(HZ.ADDRESS1)||'-'||RTRIM(HZ.CITY),1,20))
    SHIP_TO_LOCATION,
         PVS.VENDOR_SITE_CODE VENDOR_SITE_CODE,
         PVS.PAY_SITE_FLAG PAY_SITE_FLAG,
         POH.PO_HEADER_ID PO_HEADER_ID,
    POH.CURRENCY_CODE CURRENCY_CODE,
    POH.RATE_TYPE RATE_TYPE,
    POH.RATE RATE,
    POH.RATE_DATE RATE_DATE,
    POL.PO_LINE_ID PO_LINE_ID,
    PLL.LINE_LOCATION_ID LINE_LOCATION_ID,
    PLL.SHIP_TO_ORGANIZATION_ID ORG_ID,
         POL.UNIT_PRICE UNIT_PRICE,
         POH.VENDOR_ID VENDOR_ID,
         POH.VENDOR_SITE_ID VENDOR_SITE_ID,
         POV.VENDOR_NAME VENDOR_NAME,
         PLL.SHIPMENT_NUM SHIPMENT_NUM,
         POH.VENDOR_CONTACT_ID VENDOR_CONTACT_ID,
         MSI.CONCATENATED_SEGMENTS ITEM_NUM,
         PLL.TAXABLE_FLAG TAXABLE_FLAG,
         '' TAX_NAME,
         POH.REVISION_NUM REVISION_NUM,
         TO_NUMBER(NULL) TOLERABLE_QUANTITY,
         NULL ORGANIZATION_CODE,
         HRO2.NAME SHIP_TO_ORG_NAME,
         HRO.NAME ORGANIZATION_NAME,
         MUM.UOM_CLASS UOM_CLASS,
         PLL.ORG_ID OPERATING_UNIT_ID,
         PLL.PO_RELEASE_ID PO_RELEASE_ID,
         PLL.MATCH_OPTION MATCH_OPTION,
         PVS.PAY_ON_CODE PAY_ON_CODE,
         PLL.CONSIGNED_FLAG CONSIGNED_FLAG,
         PLL.SHIP_TO_LOCATION_ID SHIP_TO_LOCATION_ID,
         POL.SUPPLIER_REF_NUMBER SUPPLIER_REF_NUMBER,
         nvl(POH.SHIPPING_CONTROL,'SUPPLIER') TRANSPORTATION_ARRANGED_BY ,     
    PLC.DISPLAYED_FIELD TAB_Display,
    NVL(MSI.PRIMARY_UNIT_OF_MEASURE,POL.UNIT_MEAS_LOOKUP_CODE),
    PLL.QTY_RCV_EXCEPTION_CODE
    FROM
    PO_HEADERS_ALL     POH,
    PO_LINES_ALL     POL,
    PO_LINE_LOCATIONS_ALL      PLL,
    PO_RELEASES_ALL           PRL,
    PO_VENDOR_SITES_ALL      PVS,
    HR_LOCATIONS_ALL_TL     HRL,
    HZ_LOCATIONS          HZ,
    PO_VENDORS               POV,
    MTL_SYSTEM_ITEMS_KFV     MSI,
    MTL_UNITS_OF_MEASURE     MUM,
    HR_ALL_ORGANIZATION_UNITS_TL     HRO,
    HR_ALL_ORGANIZATION_UNITS_TL     HRO2,
    PO_LOOKUP_CODES PLC
    WHERE
    POH.PO_HEADER_ID = PLL.PO_HEADER_ID AND
    POH.PO_HEADER_ID = POL.PO_HEADER_ID AND
    POH.AUTHORIZATION_STATUS = 'APPROVED' AND
    POL.PO_LINE_ID = PLL.PO_LINE_ID AND
    POL.UNIT_MEAS_LOOKUP_CODE = MUM.UNIT_OF_MEASURE (+) AND
    PLL.PO_RELEASE_ID = PRL.PO_RELEASE_ID(+) AND
    POV.VENDOR_ID = POH.VENDOR_ID AND
    PVS.VENDOR_SITE_ID = POH.VENDOR_SITE_ID AND
    HRL.LOCATION_ID(+) = PLL.SHIP_TO_LOCATION_ID AND
    HRL.LANGUAGE(+) = USERENV('LANG') AND
    HZ.LOCATION_ID(+) = PLL.SHIP_TO_LOCATION_ID AND
    NVL(PLL.APPROVED_FLAG, 'N') = 'Y' AND
    NVL(PLL.CANCEL_FLAG, 'N') = 'N' AND
    NVL(POH.FROZEN_FLAG, 'N') = 'N' AND
    NVL(PLL.CLOSED_CODE, 'OPEN') NOT IN
    ('FINALLY CLOSED', 'CLOSED', 'CLOSED FOR RECEIVING', 'CANCELLED') AND
    (PLL.QUANTITY*(1+NVL(PLL.QTY_RCV_TOLERANCE, 0)/100)) >
    (NVL(PLL.QUANTITY_RECEIVED, 0) + NVL(PLL.QUANTITY_SHIPPED, 0) + NVL(PLL.QUANTITY_CANCELLED, 0)) AND
    PLL.SHIPMENT_TYPE IN ('STANDARD','BLANKET','SCHEDULED') AND
    NVL(PLL.payment_type, ' ') not in ('ADVANCE', 'DELIVERY','MILESTONE','RATE','LUMPSUM') AND
    POL.ITEM_ID = MSI.INVENTORY_ITEM_ID (+) AND
    NVL(MSI.ORGANIZATION_ID, PLL.SHIP_TO_ORGANIZATION_ID) = PLL.SHIP_TO_ORGANIZATION_ID AND
    HRO2.ORGANIZATION_ID (+) = PLL.SHIP_TO_ORGANIZATION_ID AND
    HRO2.LANGUAGE (+)= USERENV('LANG') AND
    HRO.ORGANIZATION_ID (+) = POH.ORG_ID AND
    HRO.LANGUAGE (+)= USERENV('LANG') AND
    DECODE(PLL.PO_RELEASE_ID, NULL, NVL(POH.CONSIGNED_CONSUMPTION_FLAG, 'N'), NVL(PRL.CONSIGNED_CONSUMPTION_FLAG, 'N'))!='Y'
    AND PLC.LOOKUP_TYPE='SHIPPING CONTROL'
    AND NVL(POH.SHIPPING_CONTROL,'SUPPLIER') =PLC.LOOKUP_CODE
    AND PLL.OUTSOURCED_ASSEMBLY <> 1
    AND PLL.PAYMENT_TYPE IS NULL) QRSLT WHERE (NVL(HRL.LOCATION_CODE,SUBSTR (RTRIM (HZ.ADDRESS1) || '-' || RTRIM (HZ.CITY), 1, 20)) not in ('BU-TVP')) ORDER BY DUE_DATE ASC
    Edited by: doGan on Jan 31, 2011 7:27 AM

  • How to set query parameters to i5Grid

    Hello Everyone,
    I am working on creating i5Charts.
    I mapped query template and display template to i5Chart template but I need to pass the query parameters dynamically.
    How to set query parameters to i5Grid?
    Pls help with syntax.
    Thanks.
    Regards,
    Minakshi

    Hi Minakshi,
    Yes you can try the first 2 options listed by Rohit, the 3rd one however is not supported.
    The below syntax should work for you:
      1.  gridObject.getQueryObject().setRowCount(<Value>);
      2.  gridObject.getQueryObject().setParameter("RowCount", <Value>);
    You can check the documentation at the following link:
    http|s://<host>:<port>/XMII/JSDOC/i5ChartAllClasses.html
    You could also use the script assistant to check for the JS methods.
    Regards,
    Ria

  • Info-set query datasource

    Hi Geeks,
    I have created an infoset query. Based on tables
    VBAK - Sales order header data
    VBAP - Sales order item data
    VBUP - Sales document item status
    VBPA - Parnter function table.
    I created a custom data-source in RSO2 based on this infoset query.
    Now I want to delete tables (VBPA) or entries (VBPA-KUNNR) in field groups from infoset query.
    & system is not allowing me to do this saying
    System says "VBPA-KUNNR" is used in queries.
    Can anybody please suggest me any way to change the infoset & inturn datasource created over it.
    Thanx in advance.
    Monica

    If I correctly understand , you want to remove the filed or table from info set query .
    As data source is based on Infoset query , it  will not allow to change the  same
    You can delete the data source  or if you do not want to delete  just  detach the info set from Data source  by removing the info set name  ( may be you can replace it with another duplicate query name for time being ) and save activate datasource  and later change the info set .
    You can revert back to original info set  query name in data sources after changes are done.

  • Attempt to set a parameter name that does not occur in the SQL: vc_temp_1

    I have query view object build on the following sql
    select
    nvl(u.full_name,e.arabic_first_name||' '||e.arabic_family_name) as empName,
    (select sc.general_specialty from ta_scientific_certificate sc where sc.user_id=u.user_id
    group by sc.general_specialty
    Having Max(sc.qualification_kind)>= All (select max(sc1.qualification_kind) from ta_scientific_certificate sc1 where sc1.user_id=u.user_id group by sc1.qualification_kind ) )as general_specialty
    , u.*,ur.default_role,ur.role_1,ur.role_2,ur.role_3,ur.role_4,ur.role_5,ur.role_6,ur.role_7
    from ta_user u,employee e,TA_USER_ROLES ur
    where u.account_enabled='1' and u.emp_id = e.empl_code(+) and ur.user_id=u.user_id(+)
    with this query
    ( (EMP_ID IS NULL ) ) AND (( ( (DEFAULT_ROLE = 4 ) ) OR ( (DEFAULT_ROLE = 6 ) ) )OR( ( (ROLE_1 = 4 ) ) OR ( (ROLE_1 = 6 ) ) )OR( ( (ROLE_2 = 4 ) ) OR ( (ROLE_2 = 6 ) ) )OR( ( (ROLE_3 = 4 ) ) OR ( (ROLE_3 = 6 ) ) )OR( ( (ROLE_4 = 4 ) ) OR ( (ROLE_4 = 6 ) ) )OR( ( (ROLE_5 = 4 ) ) OR ( (ROLE_5 = 6 ) ) )OR( ( (ROLE_6 = 4 ) ) OR ( (ROLE_6 = 6 ) ) )OR( ( (ROLE_7 = 4 ) ) OR ( (ROLE_7 = 6 ) ) ))
    I created search page by dragging this view object from MyApplicationModule->NamedCriteria
    but i don't want to show all the fields that their names start with ROLE in my search option so I unChecked the attribute queryalbe
    no when I press button search the error Attempt to set a parameter name that does not occur in the SQL: vc_temp_1 is shown
    if i press OK on error message and click search again it works
    how can I make this error disappear

    no I don't think that i have
    this is my source ( I will divide it into two parts)
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="SciQualMgtVO"
    Version="11.1.2.60.17"
    OrderBy='"EMPNAME"'
    BindingStyle="OracleName"
    CustomQuery="true"
    PageIterMode="Full"
    UseGlueCode="false">
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    <ViewAccessor
    Name="LookupAM_IpaCodesVO_GeneralSpecialityVA"
    ViewObjectName="ta.common.lookup.IpaCodesVO"
    AMUsageName="LookupAM"
    ViewInstanceName="IpaCodesVO_GeneralSpecialityDC"
    RowLevelBinds="true"/>
    <ViewAccessor
    Name="CountryVA"
    ViewObjectName="ta.common.lookup.CountryVO"
    RowLevelBinds="true"/>
    <ViewAccessor
    Name="DegreeVA"
    ViewObjectName="ta.common.lookup.DegreeVO"
    RowLevelBinds="true"/>
    <ViewAccessor
    Name="LookupAM_IpaCodesVO_ScientificQualificationVA"
    ViewObjectName="ta.common.lookup.IpaCodesVO"
    AMUsageName="LookupAM"
    ViewInstanceName="IpaCodesVO_ScientificQualificationDC"
    RowLevelBinds="true"/>
    <ViewAccessor
    Name="YesNoVA"
    ViewObjectName="ta.common.constants.YesNoVO"
    RowLevelBinds="true"/>
    <ViewAccessor
    Name="IpaCodesVO_GeneralSpecialityVA"
    ViewObjectName="ta.common.lookup.IpaCodesVO"
    RowLevelBinds="true">
    <ViewCriteriaUsage
    Name="IpaCodesVO_GeneralSpecialityCriteria"
    FullName="ta.common.lookup.IpaCodesVO.IpaCodesVO_GeneralSpecialityCriteria"/>
    </ViewAccessor>
    <ViewAccessor
    Name="IpaCodesVO_ScientificQualificationVA"
    ViewObjectName="ta.common.lookup.IpaCodesVO"
    AMUsageName="LookupAM"
    ViewInstanceName="IpaCodesVO_ScientificQualificationDC"
    RowLevelBinds="true">
    <ViewCriteriaUsage
    Name="IpaCodesVO_ScientificQualificationCriteria"
    FullName="ta.common.lookup.IpaCodesVO.IpaCodesVO_ScientificQualificationCriteria"/>
    </ViewAccessor>
    <ListBinding
    Name="ar_LOV_GeneralSpecialty"
    ListVOName="IpaCodesVO_GeneralSpecialityVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="GeneralSpecialty"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="Code"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="ArabicDescription"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="en_LOV_GeneralSpecialty"
    ListVOName="IpaCodesVO_GeneralSpecialityVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="GeneralSpecialty"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="Code"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="EnglishDescription"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="ar_male_LOV_Nationality"
    ListVOName="CountryVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="Nationality"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="CountryCode"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="MaleNational"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="ar_female_LOV_Nationality"
    ListVOName="CountryVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="Nationality"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="CountryCode"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="FemaleNational"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="en_LOV_Nationality"
    ListVOName="CountryVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="Nationality"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="CountryCode"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="EnglishNational"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="ar_LOV_ScientificDegree"
    ListVOName="IpaCodesVO_ScientificQualificationVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="ScientificDegree"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="Code"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="ArabicDescription"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="en_LOV_ScientificDegree"
    ListVOName="IpaCodesVO_ScientificQualificationVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="ScientificDegree"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="Code"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="EnglishDescription"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="en_LOV_ScientificQualification"
    ListVOName="DegreeVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="ScientificQualification"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="DegreeCode"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="EnglishName"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="ar_LOV_Country"
    ListVOName="CountryVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="Country"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="CountryCode"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="ArabicName"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="en_LOV_Country"
    ListVOName="CountryVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="Country"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="CountryCode"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="EnglishName"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="LOV_PastArbitration"
    ListVOName="YesNoVA"
    ListRangeSize="-1"
    NullValueFlag="none"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="PastArbitration"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="Code"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="Name"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="LOV_PastCooperation"
    ListVOName="YesNoVA"
    ListRangeSize="-1"
    NullValueFlag="none"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="PastCooperation"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="Code"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="Name"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="LOV_FutureCooperation"
    ListVOName="YesNoVA"
    ListRangeSize="-1"
    NullValueFlag="none"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="FutureCooperation"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="Code"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="Name"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <ListBinding
    Name="ar_LOV_ScientificQualification"
    ListVOName="DegreeVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
    MRUCount="0">
    <AttrArray Name="AttrNames">
    <Item Value="ScientificQualification"/>
    </AttrArray>
    <AttrArray Name="ListAttrNames">
    <Item Value="DegreeCode"/>
    </AttrArray>
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="ArabicName"/>
    </AttrArray>
    <DisplayCriteria/>
    </ListBinding>
    <SQLQuery><![CDATA[select 
      nvl(u.full_name,e.arabic_first_name||' '||e.arabic_family_name) as empName,
    (select sc.general_specialty from ta_scientific_certificate sc   where sc.user_id=u.user_id
    group by sc.general_specialty
    Having Max(sc.qualification_kind)>= All (select max(sc1.qualification_kind) from ta_scientific_certificate sc1 where sc1.user_id=u.user_id group by sc1.qualification_kind )  )as general_specialty
    , u.*,ur.default_role,ur.role_1,ur.role_2,ur.role_3,ur.role_4,ur.role_5,ur.role_6,ur.role_7
      from ta_user u,employee e,TA_USER_ROLES ur
    where u.account_enabled='1' and u.emp_id = e.empl_code(+)  and ur.user_id=u.user_id(+)]]></SQLQuery>
    <ViewAttribute
    Name="Empname"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="255"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="EMPNAME"
    Expression="EMPNAME"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Empname_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="GeneralSpecialty"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="20"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="GENERAL_SPECIALTY"
    Expression="GENERAL_SPECIALTY"
    SQLType="VARCHAR"
    LOVName="ar_LOV_GeneralSpecialty"
    LOVFinder="GeneralSpecialtySwitcher">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="20"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="choice"/>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.GeneralSpecialty_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="UserId"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Type="java.lang.Integer"
    ColumnType="NUMBER"
    AliasName="USER_ID"
    Expression="USER_ID"
    SQLType="INTEGER"/>
    <ViewAttribute
    Name="FullName"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="FULL_NAME"
    Expression="FULL_NAME"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.FullName_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="FullNameEn"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="FULL_NAME_EN"
    Expression="FULL_NAME_EN"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.FullNameEn_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="TitleSalutation"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="20"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="TITLE_SALUTATION"
    Expression="TITLE_SALUTATION"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="20"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.TitleSalutation_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Nationality"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="3"
    Scale="0"
    Type="java.lang.Integer"
    ColumnType="NUMBER"
    AliasName="NATIONALITY"
    Expression="NATIONALITY"
    SQLType="INTEGER"
    LOVName="ar_male_LOV_Nationality"
    LOVFinder="NationalitySwitcher">
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="choice"/>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Nationality_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Gender"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="1"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="GENDER"
    Expression="GENDER"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="1"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Gender_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Employer"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="100"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="EMPLOYER"
    Expression="EMPLOYER"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Employer_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="CurrentJob"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="CURRENT_JOB"
    Expression="CURRENT_JOB"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.CurrentJob_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Degree"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="DEGREE"
    Expression="DEGREE"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Degree_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Department"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="DEPARTMENT"
    Expression="DEPARTMENT"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Department_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="ScientificDegree"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="4"
    Scale="0"
    Type="java.lang.Integer"
    ColumnType="NUMBER"
    AliasName="SCIENTIFIC_DEGREE"
    Expression="SCIENTIFIC_DEGREE"
    SQLType="INTEGER"
    LOVName="ar_LOV_ScientificDegree"
    LOVFinder="ScientificDegreeSwitcher">
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.ScientificDegree_LABEL"/>
    <CONTROLTYPE
    Value="choice"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="ScientificQualification"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="20"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="SCIENTIFIC_QUALIFICATION"
    Expression="SCIENTIFIC_QUALIFICATION"
    SQLType="VARCHAR"
    LOVName="ar_LOV_ScientificQualification"
    LOVFinder="ScientificQualificationSwitcher">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="20"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.ScientificQualification_LABEL"/>
    <CONTROLTYPE
    Value="choice"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Country"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="3"
    Scale="0"
    Type="java.lang.Integer"
    ColumnType="NUMBER"
    AliasName="COUNTRY"
    Expression="COUNTRY"
    SQLType="INTEGER"
    LOVName="ar_LOV_Country"
    LOVFinder="CountrySwitcher">
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="choice"/>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Country_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="City"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="CITY"
    Expression="CITY"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.City_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="ZipCode"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="20"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="ZIP_CODE"
    Expression="ZIP_CODE"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="20"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.ZipCode_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="POBox"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="20"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="P_O_BOX"
    Expression="P_O_BOX"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="20"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.POBox_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="CurrentAddress"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="100"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="CURRENT_ADDRESS"
    Expression="CURRENT_ADDRESS"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.CurrentAddress_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="WorkPhone"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="WORK_PHONE"
    Expression="WORK_PHONE"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.WorkPhone_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="HomePhone"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="HOME_PHONE"
    Expression="HOME_PHONE"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.HomePhone_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="CellPhone"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="CELL_PHONE"
    Expression="CELL_PHONE"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.CellPhone_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Fax"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="FAX"
    Expression="FAX"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Fax_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="PermanentAddress"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="100"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="PERMANENT_ADDRESS"
    Expression="PERMANENT_ADDRESS"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="100"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.PermanentAddress_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Email"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="EMAIL"
    Expression="EMAIL"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.Email_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="Password"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="PASSWORD"
    Expression="PASSWORD"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="PastArbitration"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="1"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="PAST_ARBITRATION"
    Expression="PAST_ARBITRATION"
    SQLType="VARCHAR"
    LOVName="LOV_PastArbitration">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="1"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="radio"/>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.PastArbitration_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="PastCooperation"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="1"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="PAST_COOPERATION"
    Expression="PAST_COOPERATION"
    SQLType="VARCHAR"
    LOVName="LOV_PastCooperation">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="1"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="radio"/>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.PastCooperation_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="FutureCooperation"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="1"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="FUTURE_COOPERATION"
    Expression="FUTURE_COOPERATION"
    SQLType="VARCHAR"
    LOVName="LOV_FutureCooperation">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="1"/>
    </DesignTime>
    <Properties>
    <SchemaBasedProperties>
    <CONTROLTYPE
    Value="radio"/>
    <LABEL
    ResId="ta.model.ro.SciQualMgtVO.FutureCooperation_LABEL"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="EmpId"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="20"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="EMP_ID"
    Expression="EMP_ID"
    SQLType="VARCHAR"
    IsQueriable="false">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="20"/>
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="LoginName"
    IsUpdateable="false"
    IsPersistent="false"
    PrecisionRule="true"
    Precision="50"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="LOGIN_NAME"
    Expression="LOGIN_NAME"
    SQLType="VARCHAR">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="50"/>
    </DesignTime>
    </ViewAttribute>

  • Reg. Provider Url set in weblogic-ejb-jar.xml

    have created an MDB which listens to an IBM MQ. I currently
    specify the path of the binding file by setting the provider_url in the weblogic-ejb-jar.xml
    An example is as follows::
    <destination-jndi-name>Sample.Q</destination-jndi-name>
    <initial-context-factory>com.sun.jndi.fscontext.RefFSContextFactory</initial-context-factory>
    <provider-url>file:/apps/test/</provider-url>
    <connection-factory-jndi-name>Sample.QCF</connection-factory-jndi-name>
    is there any way to set this parameter dynamically from MDB itself

    AFAIK you can't dynamically reconfigure MDBs; whats in the XML is what you get.
    One alternative is to use Spring and Message Driven POJOs which allows you to use Spring to configure the provider & activation spec, which allows you to dynamically at runtime configure properties however you wish or even hot deploy MDPs within a running application.
    http://jencks.org/Message+Driven+POJOs
    Depending on how complex your runtime-configuration is you could create your own Spring Factory Beans to do wacky stuff (query a database or whatever to figure out the provider URLs etc) or use a Spring post processor to inject values from some other source (JNDI, LDAP etc).
    James
    http://logicblaze.com/

  • Move a node inside a XML (Jdev 11.1.1)

    Hello to all,
    I'm trying to write a query to move a node inside a XML.
    For example from:
    <root>
    <fields>
    <field id="1">...</field>
    <field id="2">...</field>
    <field id="3">...</field>
    <field id="4">...</field>
    *<field id="5">...</field>*
    </fields>
    </root>
    to:
    <root>
    <fields>
    <field id="1">...</field>
    *<field id="5">...</field>*
    <field id="2">...</field>
    <field id="3">...</field>
    <field id="4">...</field>
    </fields>
    </root>
    I can do this by 3 steps:
    1. exctractnode +//field[@id="5"]+ for recovering <field id="5">...</field>
    2. deleteXML for node +//field[@id="5"]+
    3. insertXMLBefore +//field[@id="2"]+
    Is it possible to do this in only 1 step and for multiple DOMs? (I need to do this in java)
    Thank you,
    Cristian
    Edited by: baol on 3-feb-2011 5.53

    And it not make a real UPDATE on XMLTYPE fileld XML on my table Document.Then make it an UPDATE :)
    SQL> create table document (
      2   doc_id number,
      3   xml    xmltype
      4  );
    Table created
    SQL> insert into document values(1,
      2  xmltype('<root>
      3    <fields>
      4      <field id="1">F1</field>
      5      <field id="2">F2</field>
      6      <field id="3">F3</field>
      7      <field id="4">F4</field>
      8      <field id="5">F5</field>
      9    </fields>
    10  </root>')
    11  );
    1 row inserted
    SQL> update document d
      2  set d.xml =
      3         insertXMLBefore(
      4           deleteXML(
      5             d.xml,
      6             '//field[@id="5"]'
      7           ),
      8           '//field[@id="2"]',
      9           XMLQuery('$d//field[@id="5"]' passing d.xml as "d" returning content)
    10         )
    11  where d.doc_id = 1
    12  ;
    1 row updated
    SQL> set long 10000
    SQL> select xmlserialize(document xml as clob indent) from document;
    XMLSERIALIZE(DOCUMENTXMLASCLOB
    <root>
      <fields>
        <field id="1">F1</field>
        <field id="5">F5</field>
        <field id="2">F2</field>
        <field id="3">F3</field>
        <field id="4">F4</field>
      </fields>
    </root>
    And since you're working with java, don't forget to use bind variables to execute the statement.
    Something like (not tested) :
    update document d
    set d.xml =
           insertXMLBefore(
             deleteXML(
               d.xml,
               '//field[@id="'|| ? ||'"]'
             '//field[@id="'|| ? ||'"]',
             XMLQuery('$d//field[@id=$ID]'
               passing d.xml as "d",
                       ? as "ID"
               returning content
    where d.doc_id = 1
    ;

  • Error : The value is not set for parameter number"

    Hello All,
    I am getting an error message when I tried modifying a program by adding a new ID column to a database table.
    All DML is working except the Delete. So to look at the delete method, I am setting the parameter correctly as can be seen in the code belwo.
    Can someone please take a quick look and let me know where I need to tweak the code further.
    Thanks
    Fm
    The piece of code is given below.
    /* File Modified */
    /* EmailSetupDao.java
    * Generated by the MDK DAO Code Generator
    package com.harris.mercury.setups.standard.emailsetup;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Vector;
    import org.apache.log4j.Logger;
    import com.harris.mercury.dao.CreateException;
    import com.harris.mercury.dao.DAO;
    import com.harris.mercury.dao.DataField;
    import com.harris.mercury.dao.Holder;
    import com.harris.mercury.dao.LocalResultProxy;
    import com.harris.mercury.dao.RemoveException;
    import com.harris.mercury.dao.ResultProxy;
    import com.harris.mercury.system.DatabaseHelper;
    import com.harris.mercury.system.database.dialect.Dialect;
    * The EmailSetupDao class
    public class EmailSetupDao implements DAO
    protected static Logger logger = Logger.getLogger(EmailSetupDao.class);
    /* This method is called by ResultProxies when they need
    * the data they have retrieved in a ResultSet mapped
    * to a holder.
    public Holder createHolder(ResultSet rs) throws SQLException
    EmailSetupHolder holder = new EmailSetupHolder(); // THE CODE GENERATOR NEEDS THIS VARIABLE
    try
    /* Assign the data into the new holder */
    // $$START_CREATEHOLDER_CONVERSIONS
    holder.setEmail_address( rs.getString("email_address") );
    holder.setLogin_id( rs.getString("login_id") );
    holder.setUser_name( rs.getString("user_name") );
    holder.setSmtp( rs.getString("smtp") );
    holder.setId(rs.getString("id") );
    // $$END_CREATEHOLDER_CONVERSIONS
    catch(SQLException sqle)
    logger.error(sqle, sqle);
    throw sqle;
    return holder;
    /* The findAll method returns a ResultProxy containing all the
    * records in the pucemailr table, unless an extended where clause
    * has been defined.
    public ResultProxy findAll(Connection con) throws SQLException
    LocalResultProxy result = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    // $$START_ALLFIND
    result = new LocalResultProxy(this,con, "select email_address, login_id, user_name, smtp, id from pucemailr"+makeOrderBy());
    // $$END_ALLFIND
    return result;
    /* Inserts a record into the pucemailr table using a EmailSetupHolder.
    * An exception is thrown if it is not sucessful.
    public void insert(Connection con, EmailSetupHolder holder) throws CreateException
    CreateException ce = null;
    PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    try
    // Insert into the data base
    // $$START_INSERT_PS
         ps = con.prepareStatement("insert into pucemailr (email_address, login_id, user_name, smtp) values(?, ?, ?, ?) ");
    // $$END_INSERT_PS
    /* Assign the variables in the holder to their corresponding
    * indexes in the prepared statement
    ps = assignPreparedStatementValues(ps, holder, true) ;
    // Try the insert
    ps.executeUpdate();
    catch (SQLException se)
    ce = new CreateException(se.getMessage());
    catch (Exception ex)
    ce = new CreateException(ex.getMessage());
    } finally {
    DatabaseHelper.close(ps);
    // Throw exception if error occurred
    if (ce != null) {
    throw ce;
    /* This method will update a pucemailr record using the
    * supplied EmailSetupHolder. If an error occurs, an exception
    * is thrown.
    public void update(Connection con, EmailSetupHolder holder) throws Exception
    RuntimeException re = null;
    PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    try
    // $$START_UPDATE_PS
         ps = con.prepareStatement("update pucemailr set email_address=?, login_id=?, user_name=?,smtp=? where id=?");
    // $$END_UPDATE_PS
    /* Assign the variables in the holder to their corresponding
    * indexes in the prepared statement
    ps = assignPreparedStatementValues(ps, holder, false) ;
    // Try the insert
    int ret = ps.executeUpdate();
    if (ret != 1)
    re = new RuntimeException("Update failed on table pucemailr in EmailSetupDao");
    catch (SQLException se)
    re = new CreateException(se.getMessage());
    catch (Exception ex)
    re = new RuntimeException(ex.getMessage());
    } finally {
    DatabaseHelper.close(ps);
    // Throw exception if error occurred
    if (re != null) {
    throw re;
    /* Using the EmailSetupHolder, this method locates records in the pucemailr table.
    * Null values found in the holder are not used in the search.
    * An exception is thrown if an error occurs.
    public ResultProxy find(Connection con, EmailSetupHolder holder) throws SQLException
    // THE CODE GENERATOR NEEDS THESE VARIABLES
    ResultProxy result = null;
    int needAnd = 0;
    StringBuffer selectStatement = new StringBuffer();
    // $$START_FIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    if(holder.getId() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getId())+"%'");
    if(holder.getEmail_address() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("email_address like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getEmail_address())+"%'");
    if(holder.getLogin_id() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("login_id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getLogin_id())+"%'");
    if(holder.getUser_name() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("user_name like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getUser_name())+"%'");
    if(holder.getSmtp() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("smtp like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getSmtp())+"%'");
    // $$END_FIND
    result = new LocalResultProxy(this, con, selectStatement.toString()+makeOrderBy());
    return result;
    /* Creates an Order by clause */
    public String makeOrderBy()
    String result = "";
    // $$START_ORDERBY
    result = " order by smtp";
    // $$END_ORDERBY
    return result ;
    /* This method deltes a single record that matches all the
    * variables found in the EmailSetupHolder.
    * An exception is thrown if an error occurs.
    public void delete(Connection con, EmailSetupHolder holder) throws RemoveException
    RemoveException re = null;
    PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    boolean hasVars = false;
    StringBuffer deleteSQL = new StringBuffer();
    deleteSQL.append( "delete from pucemailr where " );
    // $$START_DELETE_SQL
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getEmail_address() != null) {
    deleteSQL.append("email_address=?") ;
    } else {
    deleteSQL.append("email_address is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getLogin_id() != null) {
    deleteSQL.append("login_id=?") ;
    } else {
    deleteSQL.append("login_id is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getUser_name() != null) {
    deleteSQL.append("user_name=?") ;
    } else {
    deleteSQL.append("user_name is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getSmtp() != null) {
    deleteSQL.append("smtp=?") ;
    } else {
    deleteSQL.append("smtp is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getSmtp() != null) {
    deleteSQL.append("id=?") ;
    } else {
    deleteSQL.append("id is null");
    hasVars = true;
    // $$END_DELETE_SQL
    try
         ps = con.prepareStatement(deleteSQL.toString());
    /* Assign the variables in the holder to their corresponding
    * indexes in the prepared statement
    int index = 1 ;
    // $$START_DELETE_VARS
    /* if( holder.getEmail_address() != null) {
    ps.setString(index, holder.getEmail_address() );
    index ++;
    if( holder.getLogin_id() != null) {
    ps.setString(index, holder.getLogin_id() );
    index ++;
    if( holder.getUser_name() != null) {
    ps.setString(index, holder.getUser_name() );
    index ++;
    if( holder.getSmtp() != null) {
    ps.setString(index, holder.getSmtp() );
    index ++;
    if( holder.getId() != null) {
    ps.setString(index, holder.getId() );
    index ++;
    // $$END_DELETE_VARS
    // Try the insert
    int ret = ps.executeUpdate();
    if (ret != 1)
    re = new RemoveException("Delete failed on table pucemailr in EmailSetupDao");
    catch (SQLException se)
    re = new RemoveException(se.getMessage());
    catch (Exception ex) {
    re = new RemoveException(ex.getMessage());
    } finally {
    DatabaseHelper.close(ps);
    // Throw exception if error occurred
    if (re != null)
    throw re;
    /* This method finds records in pucemailr table that match the
    * supplied where clause.
    * An exception is thrown if an error occurs.
    public ResultProxy advancedFind(Connection con, String whereclause) throws SQLException
    // THE CODE GENERATOR NEEDS THIS VARIABLE AND THE PARAMETER VARIABLE 'whereclause'
    StringBuffer selectStatement = new StringBuffer();
    // $$START_ADVANCEDFIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    // $$END_ADVANCEDFIND
    selectStatement.append(" where ");
    selectStatement.append(whereclause);
    return new LocalResultProxy(this,con, selectStatement.toString()+makeOrderBy());
    /* This methods returns a Vector of DataField objects that
    * map the columns in the pucemailr table for the
    * advanced find Where Clause Generator in the client. The extended
    * where clause will be applied if one exists for this DAO.
    public Vector<DataField> getQueryFields() {
    Vector<DataField> v = new Vector<DataField>() ; // THE CODE GENERATOR NEEDS THIS VARIABLE
    // $$START_QUERYFIELDS
    v.addElement( new DataField( "email_address", "Email address", DataField.STRING ) ) ;
    v.addElement( new DataField( "login_id", "Login id", DataField.STRING ) ) ;
    v.addElement( new DataField( "user_name", "User name", DataField.STRING ) ) ;
    v.addElement( new DataField( "smtp", "Smtp", DataField.STRING ) ) ;
    v.addElement( new DataField( "id", "Id", DataField.STRING ) ) ;
    // $$END_QUERYFIELDS
    return v;
         * Jira Issue NS 30679 - Faiz Qureshi March 7, 2013
         * @param ps
         * @param holder
         * @param isInsert - Added Boolean parameter so the id parameter does not get passed for Insert DML statements
         * @return
         * @throws Exception
    public PreparedStatement assignPreparedStatementValues(PreparedStatement ps, EmailSetupHolder holder, boolean isInsert)
    throws Exception
    // $$START_PS_SETS
    if( holder.getEmail_address() != null)
    ps.setString(1, holder.getEmail_address() );
    else
    ps.setNull(1, java.sql.Types.VARCHAR);
    if( holder.getLogin_id() != null)
    ps.setString(2, holder.getLogin_id() );
    else
    ps.setNull(2, java.sql.Types.VARCHAR);
    if( holder.getUser_name() != null)
    ps.setString(3, holder.getUser_name() );
    else
    ps.setNull(3, java.sql.Types.VARCHAR);
    if( holder.getSmtp() != null)
    ps.setString(4, holder.getSmtp() );
    else
    ps.setNull(4, java.sql.Types.VARCHAR);
    if (!isInsert){
         if( holder.getId() != null)
         ps.setString(5, holder.getId() );
         else
         ps.setNull(5, java.sql.Types.VARCHAR);
    // $$END_PS_SETS
    return ps;
    /* Do not delete this tag, it is reserved for adding new methods to the DAO */
    // $$ START_MDK_RESERVED
    // $$START_EDITABLE_SUB_TABLE_NAME
    * Returns the table names used in this DAO
    * @return the table names used in this DAO
    public String[] getTableNames() {
    // $$START_UNEDITABLE_SUB_TABLE_NAME
    String[] tableNames = new String[] {"pucemailr"};
    // $$END_UNEDITABLE_SUB_TABLE_NAME
    return tableNames;
    // $$END_EDITABLE_SUB_TABLE_NAME
    // $$START_EDITABLE_SUB_FIND
    * Using the EmailSetupHolder, this method locates records in the pucemailr table.
    * Null values found in the holder are not used in the search.
    * An exception is thrown if an error occurs.
    * @param con The database connection
    * @param holder holder containing the values to generate a query upon
    * @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
    * space in front of the order by, it will be automatically handled. Specify null to use the default
    * or empty string for no ordering.
    * @return The result of the search
    * @throws SQLException if an error occurs in the search.
    public ResultProxy find(Connection con, EmailSetupHolder holder, String orderBy) throws SQLException
    // THE CODE GENERATOR NEEDS THESE VARIABLES
    ResultProxy result = null;
    int needAnd = 0;
    StringBuffer selectStatement = new StringBuffer();
    // $$START_FIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    if(holder.getEmail_address() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("email_address like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getEmail_address())+"%'");
    if(holder.getLogin_id() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("login_id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getLogin_id())+"%'");
    if(holder.getUser_name() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("user_name like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getUser_name())+"%'");
    if(holder.getSmtp() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("smtp like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getSmtp())+"%'");
    if(holder.getId() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("Id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getId())+"%'"); }
    // $$END_FIND
    result = new LocalResultProxy(this, con, selectStatement.toString() + (orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
    return result;
    // $$END_EDITABLE_SUB_FIND
    // $$START_EDITABLE_SUB_FINDALL
    * The findAll method returns a ResultProxy containing all the records in the pucemailr table,
    * unless an extended where clause has been defined.
    * @param con The database connection
    * @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
    * space in front of the order by, it will be automatically handled. Specify null to use the default
    * or empty string for no ordering.
    * @return The result of the search
    * @throws SQLException if an error occurs in the search.
    public ResultProxy findAll(Connection con, String orderBy) throws SQLException
    LocalResultProxy result = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    // $$START_UNEDITABLE_SUB_FINDALL
    result = new LocalResultProxy(this,con, "select email_address, login_id, user_name, smtp, id from pucemailr" + (orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
    // $$END_UNEDITABLE_SUB_FINDALL
    return result;
    // $$END_EDITABLE_SUB_FINDALL
    // $$START_EDITABLE_SUB_ADVANCEDFIND
    * This method finds records in pucemailr table that match the supplied where clause.
    * @param con The database connection
    * @param whereclause The where clause for the select statement - do not include the "where" - it
    * will be automatically prepended
    * @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
    * space in front of the order by, it will be automatically handled. Specify null to use the default
    * or empty string for no ordering.
    * @return The result of the search
    * @throws SQLException if an error occurs in the search.
    public ResultProxy advancedFind(Connection con, String whereclause, String orderBy) throws SQLException
    // THE CODE GENERATOR NEEDS THIS VARIABLE AND THE PARAMETER VARIABLE 'whereclause'
    StringBuffer selectStatement = new StringBuffer();
    // $$START_ADVANCEDFIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    // $$END_ADVANCEDFIND
    selectStatement.append(" where ");
    selectStatement.append(whereclause);
    selectStatement.append((orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
    return new LocalResultProxy(this,con, selectStatement.toString());
    // $$END_EDITABLE_SUB_ADVANCEDFIND
    // $$ END_MDK_RESERVED
    }

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • How to set variable value in an XML array

    Hi,
    Please let me know how to set the value for a xml array element using assign activity inside a for-each block in BPEL 11g
    I tried to set the variable value for result element using the below condition but i encountered selection failure message
    $outputVariable.payload/ns1:Student['i']/ns1:result or
    $outputVariable.payload/ns1:Student[$i]/ns1:result
    And the xsd used is as below
    <xsd:complexType name="StudentCollection">
    <xsd:sequence>
    <xsd:element name="Student" type="Student" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Student">
    <xsd:sequence>
    <xsd:element name="Name" type="xsd:string"/>
    <xsd:element name="location" type="xsd:string"/>
    <xsd:element name="mark" type="xsd:string"/>
    <xsd:element name="result" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    Thanks,
    Dhana

    Hi,
    At the back of button specify the following parameter:-
    CMD    1        Execute_planning_function
    Planning_function_name  1   xyz
    Var_name     1    variable_name
    var_value      1    blank
    Can also refer to link below:-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0a89464-f697-2910-2ba6-9877e3088954?quicklink=index&overridelayout=true(can refer to page 20)
    http://www.sdn.sap.com/ddc5564a-337d-4cf9-a34e-2dab64df09be/finaldownload/downloadid-a61a6724ba8e7b7fbd9c5df9590ab50d/ddc5564a-337d-4cf9-a34e-2dab64df09be/irj/scn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be?quicklink=index&overridelayout=true
    Hope it may help

Maybe you are looking for

  • Extended features is no longer available??

    I've read 100's of questions on this topic, but cannot find any answers. I'm using Acrobat Pro 9.x on Mac OSX.5 to create the form and none of the PCs I open it on can fill in the form. Even if I don't email it. Is there a fix? and Reader10, how does

  • Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called?

    Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called? It's just annoying that I have to reach high for it!

  • Spacewalk quickstart for Oracle linux 6.1

    I have spacewalk installed following the instructions at https://fedorahosted.org/spacewalk/wiki/HowToInstall. I am completely stuck regarding what to do next. My question is, how do I register my new spacewalk server with oracle linux network in ord

  • Bill from CMR for new drop wire

    Hello, I recently received a bill in the mail from CMR claims for nearly $300 for a new drop line. I called 811 and had all lines marked prior to digging a posthole, however the fios line was not marked and unfortunately the line was cut about 8 inch

  • Do iTune gift cards expire?

    I'm having a heck of a time redeeming a gift card I bought several years ago. Every time I try to use it, it sends me in circles making me change my Apple ID just to continue and then it won't let me buy anything even after I give it the number on th