Issue in Extending VO Referring to View Links

Hi All,
I am facing an Issue while extending a VO referring in Table-in-Table Region Style.
I am able to Extend the VO, Substitute and JPXImport
When I open the page I am getting the below
## Detail 0 ##
JBO-30003: The application pool (oracle.apps.csp.portal.requirement.server.RequirementAM) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.InvalidParamException, msg=JBO-25006: Invalid parameter value ReqLineVO1 for destination passed to method ViewLinkImpl.setDestination. Explanation: view def mismatch
From Page Contoller PR the Table-in-table is set with the related viewlink.
    OAWebBean localOAWebBean1 = paramOAWebBean.findChildRecursive("ReqLineVO1");
    OAWebBean localOAWebBean2 = paramOAWebBean.findChildRecursive("ReqLineDetailsVO1");
    if (localOAWebBean1 != null)
      localOAWebBean1.setAttributeValue(CHILD_VIEW_ATTRIBUTE_NAME, "RequirementLineId");
      localOAWebBean1.setAttributeValue(VIEW_LINK_NAME, "ReqLineToDetailVL1");
    if (localOAWebBean2 != null)
      localOAWebBean2.setAttributeValue(CHILD_VIEW_ATTRIBUTE_NAME, "RequirementLineId");
      localOAWebBean2.setAttributeValue(VIEW_LINK_NAME, "ReqLineToDetailVL1");
    }My Assumtion is the Old VO Name is Missmatching in the ViewLink with Newname.
Could anybody suggest any solution to Overcome in these kind of issues.
Regards,
Krishna

hi
Please verify again your Procedure would be like this
1.) right click on BC4J create a new View Object
2.) mention your Standard VO which is to be extended
3.) click next up to query block ,here put your query and test ,it must prompt valid.
4.) click on generate java files ,and finish.
this would create your extended VO
now
5.) again double click on your extended VO,go to Attribute Mapping Properties,here you will find the option to verify your mapping ,with query columns to view attribute ,the drop down will appear only for for new added attributes ,this newly added attributes may be mapped right or may be wrong ,u need to varify.
then
6.) substitute your BC4J package and move the jpx file to server
u will find this link useful
http://oracle.anilpassi.com/extend-vo-in-oa-framwork-2.html
thanx
Pratap

Similar Messages

  • Problem in Extending VO in Jdev10g-View links

    Hello all,
    I want to extend one VO in Jdev10g. This VO is used by one report. I have done extending VO in 9iJdev last time.
    But in this case when I am extending VO, the new VO.xml doesnt contains some code which standard VO have.
    Example: In standard VO.xml, following code is present.
    <ViewLinkAccessor Name="LinesVO" ViewLink="oracle.apps.ont.print.blanket.server.HdrLinesVL" Type="oracle.jbo.RowIterator" IsUpdateable="false">
    </ViewLinkAccessor>
    <ViewLinkAccessor Name="HdrBillToAddressVO" ViewLink="oracle.apps.ont.print.blanket.server.HdrBillToVL" Type="oracle.jbo.RowIterator" IsUpdateable="false">
    </ViewLinkAccessor>
    <ViewLinkAccessor Name="HdrShipToAddressVO" ViewLink="oracle.apps.ont.print.blanket.server.HdrShipToVL" Type="oracle.jbo.RowIterator" IsUpdateable="false">
    </ViewLinkAccessor>
    But in my extended VO this code is not coming. This code is for the View links, I guess. I think, my VO is linked with these VOs using View Link.
    Please tell me how can I extend such a VO which is linked to some other VOs?
    Regards,
    Parag

    hi Meher
    No ,,,,,,
    it is performing the main controller operation.
    it is taking th oriiginal controller ,i mean
    after the code i am using super. processFormRequest(pageContext, webBean);
    i observed that the VO which i am trying to operate is related with second AM (i.e., Second region) ,,,,
    for that puprose,,,, even i am trying this code
    OAHeaderBean headerBN = (OAHeaderBean)webBean.findChildRecursive("Meter Readings");
    if(headerBN != null)
    OAAdvancedTableBean tableBean =(OAAdvancedTableBean) webBean.findChildRecursive("counterTableRN");
    OAColumnGroupBean columngpBean=(OAColumnGroupBean)tableBean.findChildRecursive("NewReadingCols");
    OAColumnBean columnBean=(OAColumnBean)columngpBean.findChildRecursive("NewReadingCols");
    String value=columnBean.getAttributeValue("NewReading").toString();
    is this correct
    Edited by: 819824 on Jul 15, 2011 7:08 AM
    Edited by: 819824 on Jul 15, 2011 7:10 AM

  • How to extend VO's which is EO based and also having View links..

    Hi All,
    we have a requirement iProcurement page, where we need to restrict the reqisition lines( if the requisition line has destination_type_code is 'INVENTORY' then i need not to display this line..
    so i try to extend the VO(PoRequisitionLinesVo),by adding the where condition "porequisitionlineeo.DESTINATION_TYPE_CODE <> 'INVENTORY' ". and i am geting below error:
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value PoRequisitionLinesVO for destination passed to method ViewLinkImpl.setDestination. Explanation: view def mismatch
    at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:996)
    And this VO has view link(PoRequisitionLinesVL).
    I think If i import the view object without importing the associated view object and viewlinks, than the imported view object does not have the link. I think this could be the possible cause of the issue..
    can any one pls help me....

    Hi ,
    if VO extension is done propery then exrension itself take care related view links , in your specific case , i dont think you need to go VO extension to set where clause , you set this where clause through controller extension .
    OAApplicationModule oaam = pageContext.getApplicationModule(webBean);
    OAViewObject voname= (OAViewObject)oaam.findViewObject("VO");
    String where = "DESTINATION_TYPE_CODE ='INVENTORY' ";
    voname.setWhereClause(where);
    voname.executeQuery();
    only condition is you must have DESTINATION_TYPE_CODE in select statement of standard view object
    Thanks
    Pratap

  • View Link Editor Issue - empty query clause if based on association

    JDeveloper 10.1.2
    Setup:
    - entities A and B
    - a 1 to * association from entity A to entity B (A_B_association)
    - a view of A based on entity A (AView)
    - a view of B based on entity B (BView)
    - BView has an expert mode query
    Create a view link from table A to table B:
    - choose the A_B_association under AView for the source attribute
    - choose the A_B_association under BView for the destination attribute
    - click add
    - click next
    issue: the query clause is empty
    - click next:
    info dialog pops up;
    title = "Business Components"
    message = "Restoring the default where clause."
    Note, however, that creating a view link based on the attributes works. That is, if I choose the primary key attribute under AView for the source attribute, and the corresponding foreign key attribute under BView for the destination attribute, then the wizard generates the expected query clause.
    If I create a new project and recreate the entities, the views, and the association, then I can successfully create a view link based on the association. The foreignKey value on the association end was different in the new association XML file.  I modifed the old XML file so that it used the same foreignKey element, but that did not seem to work.
    I am guessing that this is some sort of user error on my part or that we have otherwise managed to squat up our XML files.
    Any tips, hints, or ideas appreciated.
    Thanks,
    Steve

    The problem is in AView.
    We had modified the AView at one point, then reverted it to a default view of entity A. Here, "a default view" means that we undid our custom changes (apparently not thoroughly enough); that is, we did not delete it and create a default view from scratch using the contextual menu on the A entity.
    The bottom line is that the AView attributes were not being mapped to the entity -- they were showing up as calculated attributes.
    We created a "New Default View Object..." from the contextual menu of entity A, then manually corrected the AView.xml file to solve the problem.

  • How to extend VO which is use in VIEW LINK and VL is created dynamically.

    Hi All,
    I wants to extend VO.
    This VO is used in VIEW LINK.
    This VL name set dynamically, conditionally in one of the controller of page.
    i.e if some condition satisfied than xyz VL will use otherwise abc VL will use.
    Now,
    I have extend VO as well as VL and substitute both, but I am getting null value for some of the field and also I am not able to insert/update new value.
    So,
    I have created VORowImpl class file which extend VOROWImpl of seeded file and chage the row class of VO.xml file to new class. i.e. modified seeded .xml code and achieve what I want.
    But Is this correct way ?
    Is there any other way ?
    --Tushar Topiwala                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi pratap,
    thanx for your reply.
    intially i've done that also. i.e. extend only VO and substitute it but i'm getting null values in some field as well as nt able to insert/update new value.
    the error is related to VL.
    --tushar topiwala                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • View Link Bind variable issue

    All,
    I have a view link defined which and both the VO are part of my AM.
    At run time i am supposed to get the list of notes for a particular line. (the view link establishes this connection). However when i run my application i am not getting any records. Below SQL is getting fired for each request
    SELECT * FROM (SELECT note_type_meaning, note_status_meaning, creation_date, created_by_name,
           notes, row_id, jtf_note_id, notes_detail_size, entered_by,
           source_object_id, source_object_code, note_type, note_status, CONTEXT,
           attribute1, attribute2, attribute3, attribute4, attribute5, attribute6,
           attribute7, attribute8, attribute9, attribute10, attribute11,
           attribute12, attribute13, attribute14, attribute15, created_by,
           entered_date, last_updated_by, last_update_date, last_update_login
      FROM apps.ast_notes_details_vl
    WHERE source_object_id = :bLeadNumber) QRSLT  WHERE SOURCE_OBJECT_CODE = :Bind_LeadNumber
    <logQueryStatementAndBindParameters> BindVars:(bLeadNumber=null,Bind_LeadNumber=23040400)OK, the above sql is used to get the count but i am a bit lost as to why the bind variable is taking value at only one place.
    Please advise
    Jdev 11.1.1.5

    Sorry for this stupid post.

  • View Link Issue

    Hi Guys,
    I have 2 (SQL Query's) VO's with primary key -foriegn key relation for the underlying tables
    but when i create a VL the view link query dosent showup correctly ... is it necessary to have
    VO's based on Eo's for view links to work properly ?
    Thanks
    Tom...

    Tom,
    In case of VO based on plain sql queries u won't get <SourceVO>.sourceattr u will simple get sourceattr
    It seems something is wrong on some other side, by the way whats the difference ur getting in result of vl created on VO based on EO and not based on EO?
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • View link refresh issue in a ADF Faces application

    ADF BC, ADF Faces, JDeveloper 10.1.3.3
    There is an example.
    I have an Entity SaleEntity and two view objects: SalesView (based on the SaleEntity) and ProductsView (read only). SaleEntity has an attribute productId to reference a product sold. SalesView and ProductsView are related by a view link. The link works fine in a Business Component Browser.
    Then I created a ADF Faces form to edit a sale. I used an af:selectInputText component for a productId:
    <af:selectInputText
        value="#{bindings.ProductId.inputValue}"
        label="#{bindings.ProductId.label}" 
        required="true"
        columns="6"
        action="dialog:ProductSearch"
        autoSubmit="true"
        valueChangeListener="#{CreateSaleBean.productId_valueChanged}" 
        tip="#{bindings.ProductsViewName.inputValue}">
      <af:validator binding="#{bindings.ProductId.validator}"/>
    </af:selectInputText>
    {code}
    User can enter productId directly or select a product from a LOV. I set a tip attribute of af:selectInputText to display a name of the current product. The tip uses ProductsView through the view link between SalesView and ProductsView. valueChangeListener is used here to make tip update right after partial form submit:
    {code:java}
      public void productId_valueChanged(ValueChangeEvent valueChangeEvent) {
        String prodId = (String) valueChangeEvent.getNewValue();  
        JSFUtils.setExpressionValue("#{bindings.ProductId.inputValue}", prodId);
        getIteratorBinding("SalesViewIterator").refresh(DCExecutableBindingDef.RC_REFRESH);
        getIteratorBinding("ProductsView").refresh(DCExecutableBindingDef.RC_REFRESH);
    {code}
    SaleEntity has a productId attribute validator to ensure that id of existing product was specified. The validator is implemented in the same way as ADF Developer Guide chapter "9.6.2 Implementing an Efficient Existence Check" describes.
    All this works fine when user enters correct productId - the new value is submitted and the tip is updated. But if user enters non existing productId - the tip doesn't change. It seems that detail view row currency doesn't change in that case. I want to make the tip empty when the provided productId is incorrect. Any ideas how to achieve this?
    Thanks,
    Marius                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Blaise,
    no I don't want to insert new product. I want make products view object have no current row.
    In addition product existence check code is in a sale entity. I don't think it is a good idea to have an entity object depending to some specific view object. Maybe I'm in the wrong.
    Marius

  • Bug in view link creation

    Here's an interesting bug in JDev 9.0.3.1, Win2k:
    I'm working with a view link using the Edit View Link dialog. It links two view objects, ViewA and ViewB, in a 1:* relationship. Entities EntityA and EntityB are the respective underliers of ViewA and ViewB. Under the View Link Properties node in the dialog, the only accessor generated is for the Destination view object.
    When I click OK, the column constants at the top of EntityA.java become messed up!!
    To be specific, all of the accessor column constants defined on the entity object are removed and then re-defined one line above the beginning of the column constants declaration section. They also are renumbered starting with zero, which causes them to have the same value as the first n column constant definitions. Naturally, this causes a "duplicate case label" compile error for the EntityA.java file.
    Even worse is if the column constant definitions start on the same line as the opening brace for the class, like so:
    public class EntityAImpl extends EntityImpl
    { protected static final int COLUMN_1 = 0;
    protected static final int COLUMN_2 = 1;
    // etc.
    The effect of clicking OK in the Edit View Link dialog is then to produce a ParseException error as the dialog is dismissed. Looking at the EntityA.java file, it's clear why:
    public class EntityAImpl extends EntityImpl
    protected static final int ACCESSOR_1 = 0;
    protected static final int ACCESSOR_2 = 1;
    // etc.
    { protected static final int COLUMN_1 = 0;
    protected static final int COLUMN_2 = 1;
    // etc.
    What puzzles me is:
    * Why is the entity object being affected at all, since the accessor was only supposed to be generated in ViewA?
    * Why are all the accessors being removed and re-added, even those that have nothing to do with the view link being edited?
    * Why, when the accessors are re-added, are the constant values duplicated?

    Please send a test case. I'm unable to reproduce this in a simple project in 9.0.3.1 or 9.0.3.2.
    Is there entity inheritance involved?
    Do your entity XML files mention _superAttr anywhere in them? If so, you might be hitting a known issue with 9.0.3 relating to entity inheritance at design time and the accessor attributes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ADF BC : Polymorphic View Link

    hi
    If I generate Business Components from Tables for EMP and DEPT in the SCOTT schema, I get an Association "FkDeptnoAssoc" and a View Link "FkDeptnoLink" based on this Association.
    This allows me to select "EmpView via FkDeptnoLink" in the Data Model pane of the Application Module Editor (in the tree below "DeptView").
    After this I added a View Object "BigMoneyDeptView" that extends "DeptView" with a where clause "Dept.DEPTNO IN (SELECT DEPTNO FROM EMP WHERE SAL >= 3000)".
    Because "BigMoneyDeptView" extends "DeptView" I would expect to be able to select "EmpView via FkDeptnoLink" for the "BigMoneyDeptView" node in the Data Model pane of the Application Module Editor, but that is not the case.
    Should I create a new View Link to be able to use the detail EMP records for "BigMoneyDeptView"?
    thanks
    Jan Vervecken

    Thanks for your reply Steve, and for creating a screencast.
    Using the previous release of JDeveloper 11g (11.1.1.0.0), build 5156, it looks to me like the issue still remains (see also PolymorphicVLThread319915In11g5156AppDM.png).
    I don't know what might be different with my examples, but I have made them available for download:
    - using JDeveloper 10g (10.1.3.4.0), build 4270, see PolymorphicVLThread319915App-v0.01.zip, results in PolymorphicVLThread319915AppDM.png
    - using JDeveloper 11g (11.1.1.0.1), build 5188, see PolymorphicVLThread319915In11gApp-v0.01.zip, results in PolymorphicVLThread319915In11gAppDM.png
    - using JDeveloper 11g (11.1.1.0.0), build 5156, see PolymorphicVLThread319915In11g5156App-v0.01.zip, results in PolymorphicVLThread319915In11g5156AppDM.png
    Any suggestions?
    regards
    Jan

  • ADF BC: both ID and view link object as getter/setter in row impl

    I notice something when generating the row implementation of VO that have links to other VO. I can't seem to find the logic behind it...
    Following model:
    users( id, address_id,name,firstname,...)
    address(id, street,number,...)
    their is an assosiation between the UsersEO and the addressEO. Their is also a view link between the UsersVO and the AddressVO based upon the assosiation of the EO's.
    When we create the row implementation of the UsersVO we find a getter and setter for both the address_id as well as the address row object.
    Why is this?
    We have this issue because i added the UsersVO and the addressVO to the app module but i haven't added the link to the appModule but when i create the SDO from the appModule, the Users has both the address_id as the address row object.
    THis does not seem to make sense. How do you use it correctly? Do you just need to set the address_id and can leave the row object null or do they both need to have the same? What if you set the address_id to 1 but the id in the address row object is set to 5...
    How do the databindings handle these things?
    To me it seems more logical that the VO only has a getter and setter for the address object and handles the address_id in the background according to the values in the address object.
    Can someone explain me why this is implemented this way and how to handle it correctly?
    Edited by: Yannick Ongena on Sep 27, 2010 5:29 PM

    Yannick Ongena wrote:
    When we create the row implementation of the UsersVO we find a getter and setter for both the address_id as well as the address row object.
    Why is this? The definition of the VL allows you to optionally generate accessors for the underliying VOs, i.e. getAddressVO() in the UsersVO and getUsersVO() in the addressVO.
    We have this issue because i added the UsersVO and the addressVO to the app module but i haven't added the link to the appModule but when i create the SDO from the appModule, the Users has both the address_id as the address row object. You should add the addressVO to the AM using the VL instead and not by itself.
    THis does not seem to make sense. How do you use it correctly? Do you just need to set the address_id and can leave the row object null or do they both need to have the same? What if you set the address_id to 1 but the id in the address row object is set to 5...
    As mentioned above, once you add the addressVO to AM using the VL, the framework will take care setting the value of the row objects accordingly.

  • View Link on two programmatic view objects

    Hello,
    I use Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407
    I have two programmatic View Objects with data from other sources (an ArrayList in my example).
    Now I would like to create a View Link on it. How can I do this?
    I'm quite new on Java and ADF...
    I know it is possible because I already found Steve's example 132 here [http://blogs.oracle.com/smuenchadf/examples/|http://blogs.oracle.com/smuenchadf/examples/]
    But could somebody create a simple example based on my example classes below (which is understandable for a newbie like me ;-) ?
    Has been asked already here, but I did not found a solution as yet.
    Error with view link and ADF table Tree
    This is my example code for the view objects:
    Employee.java:
    private Number empno;
    private String ename;
    private Number dept;
    with getters and setters...
    Department.java
    private Number deptno;
    private String dname;
    with getters and setters...
    public class StaticDataDepartmentsImpl extends ViewObjectImpl {
    int rows = -1;
    private List<Department> departments = new ArrayList<Department>();
    protected void executeQueryForCollection(Object rowset, Object[] params,
    int noUserParams) {
    // Initialize our fetch position for the query collection
    setFetchPos(rowset, 0);
    super.executeQueryForCollection(rowset, params, noUserParams);
    // Help the hasNext() method know if there are more rows to fetch or not
    protected boolean hasNextForCollection(Object rowset) {
    return getFetchPos(rowset) < rows;
    // Create and populate the "next" row in the rowset when needed
    protected ViewRowImpl createRowFromResultSet(Object rowset,ResultSet rs) {
    ViewRowImpl r = createNewRowForCollection(rowset);
    int pos = getFetchPos(rowset);
    populateAttributeForRow(r, 0, departments.get(pos).getDeptno());
    populateAttributeForRow(r, 1, departments.get(pos).getDname());
    setFetchPos(rowset, pos + 1);
    return r;
    // When created, initialize static data and remove trace of any SQL query
    protected void create() {
    super.create();
    // Setup string arrays of codes and values from VO custom properties
    initializeStaticData();
    rows = (departments != null) ? departments.size() : 0;
    // Wipe out all traces of a query for this VO
    getViewDef().setQuery(null);
    getViewDef().setSelectClause(null);
    setQuery(null);
    // Return the estimatedRowCount of the collection
    public long getQueryHitCount(ViewRowSetImpl viewRowSet) {
    return rows;
    // Subclasses override this to initialize their static data
    protected void initializeStaticData() {
    Department d1 = new Department();
    d1.setDeptno(new Number(10));
    d1.setDname("IT");
    Department d2 = new Department();
    d2.setDeptno(new Number(20));
    d2.setDname("HR");
    departments.add(d1);
    departments.add(d2);
    // Store the current fetch position in the user data context
    private void setFetchPos(Object rowset, int pos) {
    if (pos == rows) {
    setFetchCompleteForCollection(rowset, true);
    setUserDataForCollection(rowset, new Integer(pos));
    // Get the current fetch position from the user data context
    private int getFetchPos(Object rowset) {
    return ((Integer)getUserDataForCollection(rowset)).intValue();
    public class StaticDataEmployeesImpl extends ViewObjectImpl {
    int rows = -1;
    private List<Employee> employees = new ArrayList<Employee>();
    protected void executeQueryForCollection(Object rowset, Object[] params,
    int noUserParams) {
    // Initialize our fetch position for the query collection
    setFetchPos(rowset, 0);
    System.out.println("in executeQueryForCollection");
    super.executeQueryForCollection(rowset, params, noUserParams);
    // Help the hasNext() method know if there are more rows to fetch or not
    protected boolean hasNextForCollection(Object rowset) {
    System.out.println("in hasNextForCollection. Rows:" + rows);
    return getFetchPos(rowset) < rows;
    // Create and populate the "next" row in the rowset when needed
    protected ViewRowImpl createRowFromResultSet(Object rowset,ResultSet rs) {
    ViewRowImpl r = createNewRowForCollection(rowset);
    int pos = getFetchPos(rowset);
    System.out.println("in createRowFromResultSet. Pos=" + pos);
    populateAttributeForRow(r, 0, employees.get(pos).getEmpno());
    populateAttributeForRow(r, 1, employees.get(pos).getEname());
    populateAttributeForRow(r, 2, employees.get(pos).getDept());
    setFetchPos(rowset, pos + 1);
    return r;
    // When created, initialize static data and remove trace of any SQL query
    protected void create() {
    super.create();
    // Setup string arrays of codes and values from VO custom properties
    initializeStaticData();
    rows = (employees != null) ? employees.size() : 0;
    System.out.println("in create(). Rows=" + rows);
    // Wipe out all traces of a query for this VO
    getViewDef().setQuery(null);
    getViewDef().setSelectClause(null);
    setQuery(null);
    // Return the estimatedRowCount of the collection
    public long getQueryHitCount(ViewRowSetImpl viewRowSet) {
    return rows;
    // Subclasses override this to initialize their static data
    protected void initializeStaticData() {
    Employee e1 = new Employee();
    e1.setEmpno(new Number(2333));
    e1.setEname("Emp1");
    e1.setDept(new Number(10));
    Employee e2 = new Employee();
    e2.setEmpno(new Number(1199));
    e2.setEname("Emp2");
    e2.setDept(new Number(20));
    Employee e3 = new Employee();
    e3.setEmpno(new Number(3433));
    e3.setEname("Emp3");
    e3.setDept(new Number(10));
    Employee e4 = new Employee();
    e4.setEmpno(new Number(5599));
    e4.setEname("Emp4");
    e4.setDept(new Number(20));
    Employee e5 = new Employee();
    e5.setEmpno(new Number(5676));
    e5.setEname("Emp5");
    e5.setDept(new Number(10));
    Employee e6 = new Employee();
    e6.setEmpno(new Number(7867));
    e6.setEname("Emp6");
    e6.setDept(new Number(20));
    employees.add(e1);
    employees.add(e2);
    employees.add(e3);
    employees.add(e4);
    employees.add(e5);
    employees.add(e6);
    // Store the current fetch position in the user data context
    private void setFetchPos(Object rowset, int pos) {
    if (pos == rows) {
    setFetchCompleteForCollection(rowset, true);
    setUserDataForCollection(rowset, new Integer(pos));
    // Get the current fetch position from the user data context
    private int getFetchPos(Object rowset) {
    return ((Integer)getUserDataForCollection(rowset)).intValue();
    Who can help?
    Thnx in advance!
    Rolf

    Rolf,
    I guess when we try to do it for you, we end up with almost the sample code provided by Steve Muench.
    So there from my point of view it doesn't make sense to do it all over.
    Take some time and study the sample code, run it without changes and after that try some changes which suits your use case better.
    If you don't understand what's going on in the sample post the question here and we try to help you.
    Timo

  • Having an issue with passing the text of a link to a session variable.

    I am having an issue with passing the text from a link to a session variable. I am adding this html as a literal for each item in the list that i have populated with a query.
    List<Literal> lit = new List<Literal>();
    for (int i = 0; i < posts.Count; i+=4)
    Literal someLit = new Literal();
    someLit.Text=
    @"<div class='row'>" +
    "<div class='col-md-12'>" +
    "<div class='panel'>" +
    " <div class='panel-body'>" +
    " <!--/stories-->" +
    " <div class='row'> " +
    " <br>" +
    "<div class='col-md-2 col-sm-3 text-center' id='javascript'> <h3>" +
    " <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>" +
    "</h3>" +
    " </div>" +
    " <div class='col-md-10 col-sm-9'>" +
    "<h3><a href='Thread.aspx' runat='server' onserverclick='MyFuncion_Click'> " + posts[i] + " </a></h3>" +
    " <div class='row'>" +
    " <div class='col-xs-9'> " +
    posts[i + 1] +
    " </div>" +
    "<div class='col-xs-3'></div>" +
    posts[i + 2] +
    " </div>" +
    "<br><br>" +
    " </div>" +
    " </div>" +
    " <!--/stories-->" +
    " </div>" +
    " </div>" +
    " </div><!--/col-12-->" +
    " </div>" +
    "</div>";
    lit.Add(someLit);
    for(int i=0; i<lit.Count; i++)
    this.Controls.Add(lit[i]);
    I use one of the list positions as the text for a link in two different spots. For now, lets only talk about the line:
    <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>
    Since I am generating these controls at pageLoad, I can't make them <asp:Linkbutton>s. And since they are anchor elements, I don't have access to an onCommand attribute or onservercommand attribute.
    All I want to do is access the content from inside the specific link tags that I generate on link click and set it as a session variable. That's what I would like my UserProfile_Click function to do. I cant commandargs it in like i can with a linkbutton's
    OnCommnad attribute, however.
    My fear is that the onserverclick attribute resolves so something else on pageLoad normally and since I am generating it the way I am similar to the way a <asp:linkButton> resolves to a generated JavaScript.
    Any help?

    @Brunellus
    For questions related to ASP.NET use the ASP.NET forum http://forums.asp.net     
    You should get more, better and faster answers on the other forum.  Thanks, ahead of time.
    Best Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 10g Preview: No way to rename view link usages in AM

    10g Preview (9.0.5.0.0 Build 1375), Win2k SP3.
    I generated the entity objects, view objects, associations, and view links from my DB structure. I created an application module with the default data model from the view objects and view links.
    I then renamed all of the view links using the Rename View Link dialog. The AM's xml file was correctly updated with the new names of the underlying view links, but the view link usages retained the old names.
    There does not appear to be a convenient way of renaming the view link usages in the AM. The workarounds are either to deconstruct the data model and then reconstruct it, or to manually edit the .java and .xml files.
    I would like to see, at minimum, the ability to rename the AM's usages via a right-click menu in the Structure pane. This would affect both view object and view link usages. Currently the only option available in the right-click menu is to edit the underlying business object, not the usage. It also would make sense to allow view link usages to be renamed from the Data Model page of the AM wizard.

    That worked beautifully. I didn't have the property inspector open originally, so it's nice to know there is a way to rename usages after all.
    I wonder if there's a usability issue here though... maybe it's just me, but with the ability to rename some things via the right-click menu in the navigator pane, it seemed natural to look in the very similar structure pane for the same sort of functionality. Now there's a third place to look. Perhaps if the right-click menu in the structure pane simply had a "Properties..." entry or something similar that brought focus to the Property Inspector, it would help the user understand that there's another place to try to make the desired changes.

  • View Link with destination VO in expert mode

    I have view link with the destination View Object in expert mode for applying a custom query.
    The view link doesn't run nicely because it seems to never find the right table.
    Does anyone manage to create this kind of view link based on a custom query in the destination VO?
    Thanks
    Olivier.

    Hi,
    I had also the same problem, I needed to query two tables which are in a Master-Detail relationship, the only way to do this is to write a new bean, extendind the FindForm bean to make a query like this:
    select * from mastertable where condition4mt and pk_mastertable in ( select fk_pk_mastertable from detailtable where condition4dt)
    So after this you get a pointer in the master table, but your condition to the detailtable is not considered from the ViewCurrentRecord Bean. I didn't go further to extend the ViewcurrentRecord bean, because this solved my problem, besides I think it would be also very difficult.
    JDevTEAM !!! are you planing to solve this king of problem ???
    I know that I can force the VO.setWhereClause() to force some condition on the detail, but are you planing to extend the ViewCurrentRecord bean to have also a master-detail view with a restriction also on the detail table ???
    TIA,
    Seb.

Maybe you are looking for

  • I can't get any new podcasts to download.

    I have subscribed and re-subscribed and nothing is helping.  I just keep getting the little greyed out exclamation point in a circle.  Any suggestions?  A couple months back I deleted my whole library and the Geek Squad was able to recover it and I g

  • Measuring Documents in Plant Maint. ECC 6.0

    Hello I've couple of questions/issues - pl. help. 1. We are able to create a maintenance order of type PM01, however,we are not able to access the measuring points from the order to enter the readings. I know in earlier versions there is a button in

  • Balances in base ledger and comparison ledger

    Dear Sir/Madam, We run the T code: KE5T to find out the difference in the base ledger and the comparison ledger. In our case we have balances appearing in the comparison ledger. the same balances are not appearing in the base ledger because of which

  • [solved?] Menus not drawing after Gnome update

    Running 64-bit Arch. Ever since updating to the latest Gnome, I've been having intermittent problems with menus in applications. I notice it most often in Abiword, Xchat, Gedit, and Guayadeque, but I think it effects almost all applications. When I d

  • SGD V4.5  JSP User load balancing

    We are using the JSP load balancing as follows, we are in a round robin DNS environment , looking for user persistance. // ** List of SGD servers hosts = "https://mydomain.com" // List of SGD servers to be used as potential targets (both modes) hosts