How to filter data returned by View Object

Hi everyone,
I have a custom View Object that I am using to retrieve some data.
I need to implement some business logic to filter the data before displaying it.
I have to go through the rows returned by the underlying View's SQL and selectively decide which row to display. I have been looking around to find some examples that explain how to achieve what I am trying to do but with no luck.
I would really appreciate if anyone of you could give me some pointers!
Many thanks in advance for your help!
Regards,
Sacha

Hi,
expaining the usecase you want to implement for sure helps answering your question.
From a performance point of view, selecting all data to dismiss them on the middle tier doesn't feel right. E.g. if you want to implement selective data fetching for security then e.g using Virtual Private Database (VPD) with the Oracle DB is a better option. Ideally data that you don't want to displayed shouldn't be queried at all.
Frank

Similar Messages

  • How to Filter & Sort on Cached view object data?

    We are using JDeveloper 9.0.3.4 and implemeting a Struts/JSP application that query's via view object on one table. Is it possible to sort and order by on the view object's cached data? How does one do this?
    Thanks
    Natalie

    As for filtering rows, there are two ways:
    1. In the VO that's sorting data (in my article), you can add logic to skip unmatching rows in the following methods:
    protected boolean hasNextForCollection(Object qc)
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet resultSet)
    2. In the base VO (unsorted), you can apply a RowQualifier. For example,
    oracle.jbo.server.RowQualifier rowQual = new oracle.jbo.server.RowQualifier("EmpDeptNum = 20");
    myVO.setRowQualifier(rowQual);
    Thanks.
    Sung

  • How to execute Custom java data source LOV view object from a common mthd?

    Hi,
    My application contains Custom java data source implemented LOVs. I want to have a util method which gets the view accessor name, find the view accessor and execute it. But i couldn't find any API to get the view accessors by passing the name.
    Can anyone help me iin how best view accessors can be accessed in common but no by creating ViewRowImpl class (By every developer) and by accessing the RowSet getters?
    Thanks in advance.

    I am sorrry, let me tell my requirement clearly.
    My application is not data base driven. Data transaction happens using tuxedo server.
    We have entity driven VOs as well as programmatic VOs. Both are custom java data source implemented. Entity driven VOs will participate in transactions whereas programmatic VOs are used as List view object to show List of values.
    Custom java datasource implementation in BaseService Viewobject Impl class looks like
            private boolean callService = false;
        private List serviceCallInputParams = null;
        public BaseServiceViewObjectImpl()
            super();
         * Overridden for custom java data source support.
        protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams)
            List dataFromService = null;
            if(callService)
                callService = retrieveDataFromService(serviceCallInputParams);
            setUserDataForCollection(qc, dataFromService != null? dataFromService.iterator(): null);   
            super.executeQueryForCollection(qc, params, noUserParams);
         * Overridden for custom java data source support.
        protected boolean hasNextForCollection(Object qc)
            Iterator<BaseDatum> datumItr = (Iterator<BaseDatum>) getUserDataForCollection(qc);
            if (datumItr != null && datumItr.hasNext())
                return true;
            callService = false;
            serviceCallInputParams = null;
            setFetchCompleteForCollection(qc, true);
            return false;
        }Individual screen developer, who want to load data to VO, will do something like the below code in their VO impl class
        public void fetch()
            BaseServiceViewObjectImpl vo = this;
            vo.setCallService(true);
            vo.setServiceCallInputParams(new ArrayList());
            vo.executeQuery();
        }As these custom java data source implemented LOV VOs comes across the screens, i want to have a util method at Base VOImpl class, that gets the view accessor name, finds the LOV VO instance, retrieves data for that. I want to do something like
         * Wrapper method available at Base Service ViewObject impl class
        public void fetchLOVData(String viewAccessorName, List serviewInputParams)
            // find the LOV View object instance
            BaseServiceViewObjectImpl lovViewObject  = (BaseServiceViewObjectImpl) findViewAccessor(viewAccessorName);
            // Get data for LOV view object from service
            lovViewObject.setCallService(true);
            lovViewObject.setServiceCallInputParams(serviewInputParams);
            lovViewObject.executeQuery();
    Question:
    1. Is it achievable?
    1. Is there any API available at View Object Impl class level, that gets the view accessor name and returns the exact LOV view object instance? If not, how can i achieve it?

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

  • Prompts in one view to filter data in other view

    All,
    I have 2 views (Bar chart and pie chart) in the same report. I have to put a prompt on the report where user can select date.
    Now I want to show this prompt only once on the report and use that prompt to update data in both views. Where shall I put this prompt and how can I use it to filter data in both views?
    Requirement is to put the prompt on the report so that user can select date and time while viewing the report.
    Thanks for your help.
    Regards

    Hello
    You can put the prompt at the report level.
    I would recommend using a surface prompt view at the top of the report.
    An example is provided in the call center demo ( packaged with the product) -- Reassign cases report.
    Regards
    Payal

  • HOW TO FILTER DATA FROM MICROSOFT ACCESS

    HOW TO FILTER DATA FROM MICROSOFT ACCESS BASED ON DATE AND TIME AND GIVE THE RESULT TO A TABLE ?
    I need some example files , can anybody please help me ?
    Solved!
    Go to Solution.

    Just be sure to get examples specific to the Jet DBMS. It is rather "idiosyncratic" when dealing with time and date values.
    One question: the timestamp is being saved in a datetime field, right?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to extract data of a view

    Hi,
    I'm working with VB.net and SBO 2005. My question is :
    How to extract data of a view ?
    Thank you.

    Hi!
    View is just a T-SQL statement stored and saved on the server side. All you need is to query this view using the following syntax:
    SELECT <view columns> FROM <view name> WHERE <conditions>
    So the syntax is the same as T-SQL SELECT-clause
    HTH

  • How to extraxct  data from a view.

    hi,
        i'm tying to extrct data from a view vbdka, with select. but i;m getting a syntax error that it anot a DB Table or DB view, pls tell me how to extract data from that view.
    thanks.

    hi,
    just check out if u have declared the table or not n see if it is not a structure also
    madhuri.

  • How to filter data

    Dear Friends
    How to filter data by entering data in the field then the data filtered according to the data that is enter the filed
    For example
    If I have a list of values in the field EMPNO , and If I enter ‘S’ at the field EMPNO before pressing F9
    it should display those employees only when I press F9 as the following :
    SMITH
    SCOTT
    And if enter ‘AL’ it should display those employees only when I press F9 as the following:
    ALLEN
    ALI
    But if don’t enter any value in EMPNO and press F9 Then It should display all the All the employee’s name as the following
    ENAME
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    ALI
    ABDULLAH
    Waiting for your valuable answer .
    Best regards
    Jamil Alshaibani

    Dear Rosario
    I have SET THE ITEM PROPERTY VALIDATE FROM LIST TO YES
    Of the field EMPNO ON WHICH I HAVE ASSIGN THE LOVE.
    And also I have written the script as the following:
    SELECT ENAME,EMPNO FROM EMP
    WHERE EMP.ENAME LIKE :EMPNO||'%'
    Then I type ‘S’ in the field EMPNO and I press F9 it is not responding for displaying the list of values it is displayed this message in the status bar ‘FRM-40502: ORACLE ERROR :UNABLE TO READ LIST OF VALUES .
    Waiting for valuable answer in details.
    Best regards
    Jamil Alshaibani

  • How to select data from Maintance View in Program

    Dear All ,
    How to select data from Maintance View V_T052 in abap Program.
    Regards,
    Archana

    TABLES: t179, t179t.
    DATA: v_t179_int TYPE TABLE OF v_t179.
    SELECT * FROM t179
      JOIN t179t ON
        t179prodh = t179tprodh
      INTO CORRESPONDING FIELDS OF TABLE v_t179_int.
    Reward points...

  • How to retrive data  from  database views or projection views

    how to retrive data  from  database views or projection views

    Hi chintam,
    1. Very simple
    2. Just like normal select statement.
    3. Select * from VIEWNAME.
    4. (Instead of the tablename, we just have to give the viewname)
    regards,
    amit m.

  • How to filter data in BIP Report fetched from Integration Object

    Hi,
    I have a requirement where I am extracting data of Account records of a Customer. Customer can have multiple types of Accounts. In BIP report, I want to different types of Customer Accounts in different tables. Is it possible? I tried but Conditional Region and Conditional Format options are not working for me. I am using BI Publisher desktop 10.1.3.4.1 version addon for MS Word.
    I am pasting below sample XML for this.
    <?xml version="1.0" encoding="UTF-8"?><ListofIO
    <ListOfBipStarsFincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-46</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    سلامه مصطفى ابراهيم سلامه</AccountName
    <AccountType
    Time Deposit</AccountType
    <Acct_Num_Mid_7_7
    7539940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104142</Acct_Num_Mid_1_6
    <AccountNumber
    1041427539940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5B-445</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    940784</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290755</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-227</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    عبد العزيز محمدعلي درويش الصبحي</AccountName
    <AccountType
    Time Deposit</AccountType
    <Acct_Num_Mid_7_7
    469940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041430469940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5B-226</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    941674</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290758</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-228</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    خالد جابر عبدالله الحربي</AccountName
    <AccountType
    Time Deposit</AccountType
    <Acct_Num_Mid_7_7
    1259940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041431259940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-241</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    942454</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290759</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-229</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    غميض مسفر مسيفر الهذلي</AccountName
    <AccountType
    Saving Account</AccountType
    <Acct_Num_Mid_7_7
    1509940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041431509940</AccountNumber
    <AcctGen-PrimaryContactId
    1-5W6-1401</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    -1</CustomerNumber
    <IntegrationId
    942464</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290760</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-230</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    مرزوق رده راسن السعيدي</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    2909940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041432909940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-269</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    942794</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290762</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-231</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    سلطان سلمان عليان المطرفي</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    9409940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041439409940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-325</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    944194</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290768</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-232</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    محمد بابكر محمد بابكر</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    9529940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041439529940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-68</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    944444</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290769</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-233</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    عمر احمد آل عبدالمحسن القناوي</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    759940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104144</Acct_Num_Mid_1_6
    <AccountNumber
    1041440759940</AccountNumber
    <AcctGen-PrimaryContactId
    1-5W6-1257</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    -1</CustomerNumber
    <IntegrationId
    944594</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290770</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-8</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    بهاء عبد الله عبد الحفيظ مليح</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    109940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104108</Acct_Num_Mid_1_6
    <AccountNumber
    1041080109940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K52-162</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    920224</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290590</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-234</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    عمر صدقة عمر قطب</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    5769940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104146</Acct_Num_Mid_1_6
    <AccountNumber
    1041465769940</AccountNumber
    <AcctGen-PrimaryContactId
    1-5WC-201</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    -1</CustomerNumber
    <IntegrationId
    972664</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290782</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <Login
    SADMIN2</Login
    </ListOfBipStarsFincorpAccount
    </ListofIO
    Regards,
    Prashant

    I am trying to achieve this is ADF. I called a webservice which returns me data in the format as described above.
    It is returning me one data element for each column of the row. For eg. if we have 4 Rows X 5 Columns, it is returning me 20 data elements.
    I have to fall back on attributes of each data element to get the column name and row it belongs. If you the sample data above 'id' will point
    to Column Name and 'sequence' points to rownumber.
    How can I read through this data in java to get a specific column for each row. for eg. filter all data element where id='sch_name'.
    Webservice returns me an object of XMLElement class.

  • How to populate bind variable in view objects where clause in ADF faces

    I've got a page with 2 input items.
    The user manually enters the first value.
    On the second input item I have created a LOV for the item which opens in a popup. How do I restrict the data returned in the LOV using the value entered in the first input item. I have created a bind variable and have included it in the where clause for the view object but how do I populated it.

    Here is an example:
    Using the HR schema with the EMPLOYEES and DEPARTMENTS tables.
    Example is using ADF BC and created an EMPLOYEES entity with an updateable view object for page,
    and created a DEPARTMENTS view as a lookup
    (SQL: select department_id, department_name from departments where department_name = :DeptName)
    1: add method to the backing bean to filter the LOV
    public void getTextValueToFilterLOV(ValueChangeEvent valueChangeEvent) {
    Object value_from_form = valueChangeEvent.getNewValue();
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application fapp = fctx.getApplication();
    JUFormBinding formBinding = (JUFormBinding)fapp.createValueBinding("#{bindings}").getValue(fctx);
    DCIteratorBinding dcBinding = (DCIteratorBinding)formBinding.get("DeptLOVIterator");
    ViewObject vo = dcBinding.getViewObject();
    vo.setNamedWhereClauseParam("DeptName",value_from_form);
    vo.executeQuery();
    2. add valueChangeListener to the inputText on the page with an id and autoSubmit="true"
    <af:inputText value="#{bindings.LastName.inputValue}" label="#{bindings.LastName.label}" binding="#{backing_DeptForm.inputText3}"
    id="inputText3"
    autoSubmit="true"
    valueChangeListener="#{backing_DeptForm.getTextValueToFilterLOV}">
    </af:inputText>
    3. reference the LOV with the id name on the partialTriggers property
    <af:selectOneChoice value="#{bindings.EmployeesUpdView1DepartmentId.inputValue}"
    label="#{bindings.EmployeesUpdView1DepartmentId.label}" binding="#{backing_DeptForm.selectOneChoice1}"
    id="selectOneChoice1"
    partialTriggers="inputText3">
    <f:selectItems value="#{bindings.EmployeesUpdView1DepartmentId.items}"
    binding="#{backing_DeptForm.selectItems1}"
    id="selectItems1"/>
    </af:selectOneChoice>
    Summary:
    When you entered a text (LastName), that value is passed into the backing bean method.
    The Bean method code will find the LOV Iterator and put the value into the bind variable.
    Cheers,
    Jim

  • How to handle data in a request object

    I want to know the best way to handle data received from sql query to display on a jsp page and for page navigation. If I store data in a request object then the data is lost after displaying first page. When user hits Next link to view more data I need to do another query to database which I want to avoid. I display only 20 rows at a time. So if my query returns 100 rows I display 5 pages. I need to retain data when user hits next to view other pages. What is the best way to handle this?
    - Raj

    By caching your resultset. There are caching custom tags that perform this function. Check out http://www.servletsuite.com/jsp.htm.

  • How to add row in multiple view object based on common entity object.

    Hi ,
    I have
    Jdeveloper version - 10.1.3.3.0
    Oracle Database - 11g R2
    I have a situation where i have to show data from one table in three adf tables on jsf page depending on a flag value in a column in table. For this purpose i have done the following steps
    a) Created an entity object on the database table .
    b) Created three view objects on this entity object and edited the view object's SQL and included the where clause
                       WHERE  A.USER_PERSONAL_NO = :P_USER_PERSONAL_NO AND
                           A.AUTH_TYPE = 'LF'
                       The auth_type cloumn decided in which view object the data will be shown
    Now, when i query the data from database by executing the query of these view objects the data is shown correctly in all three view objects. Till here there seems every thing ok
    Now , i have to provide the logic to add records in the adf tables for this i have provided add button in action facet of all three tables which are binded to methods in managed bean,
    when i add a record in a adf table by add button the new row which is created is shown in all three tables . I cant understand why this is happening , please help me to solve this problem.
    How can i make it possible so that the record appears only in that adf table in which the record is added.
    The method for adding record is
                Row rw = currentAM.getWfRecommAuths().createRow();
                rw.setAttribute("UserPersonalNo",this.getQuery_personal_no().getValue());
                rw.setAttribute("AuthPersonalNo","");
                rw.setAttribute("AuthType","LX");
                currentAM.getWfRecommAuths().last();
                currentAM.getWfRecommAuths().insertRow(rw);
               Please help , thanks in advance.

    Hi,
    have a look at polymorphic view objects
    http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/bcadvvo.htm#CEGDCCCB
    Frank

Maybe you are looking for