Custom VO: checking view link params

Hi!
I am writing a custom ViewObjectImpl to retrieve data from webservices.
I am now implementing master-detail functionality via the view links.
I know that in the executeQueryForCollection the query will get executed, and that all named parameters will be passed using a Object[]. When the query is executed via a view link, a Bind_Attribute parameter will be passed.
Only, how can I dynamically map this name on the corresponding view object attribute? The name of the bind parameter contains the attribute name of the source view object, but I need the name of the destination view object attribute.
I tried looking into the results of getViewLinks(), but I do not find any methods that can return me the view link definition and corresponding attributes.
Is this possible?
Jeroen van Veldhuizen

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.

Similar Messages

  • 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

  • Use View Object with Alternative Data Sources in View Link

    In my case, I created a view object based on alternative data source (not with SQL query). I have setQuery(null) in the override create() function for this View Object. When I use this View Object at the destination end of the View Link, the setQuery(null) will raise Jbo-26016 exception (You cannot set customer query (calling setQuery()) on a view object if it is the detail view object in a master detail view link.) which does not allow me to do that. I looked Avrom's Framework for Database API-Based ADF BC, in which he override the DBTransaction and CallableStatement in order to intercept the default query clause set by the View Link. I'd like to see if there is any alternative ways to achieve my objective?

    Just following up what I found so far. I'm trying to use customized View Object based on alternative data source at the destination end of View Link with ADF 10.1.3.
    1. For the View Object at the destination end of View Link, I can not call setQuery() which will raise Jbo-26016 exception.
    2. I can omit the setQuery(null) call in my customized ViewObjectImpl, and as long as there is no SQL statement in the View Definition XML, it won't cause problem when calling the executeQueryForCollection() of the super class.
    3. The override executeQueryForCollection() must call the super.executeQueryForCollection() in order to get appropriate result (I tried to skip the call and it does not give back any results)
    4. The funny thing is, when I make getQuery() call in my customized ViewObjectImpl (I'm just trying to double check if the Query object is clean or not), the query object is set to "SELECT FROM" following the getQuery() call, and which causes the exceptions when I call super.exeuteQueryForCollection(). I found out later from the Javadoc API which is implemented in that way.
    So I guess my case is resolved by not making specific call to setQuery(null).

  • Unable to create view links ....

    Hi,
    when i try to create a view link on my custom VO's ..im getting the following error:Ia m not using any standard VO's but still iam facing this issue
    Error occurred trying to activate the wizard pageView objects.
    Unable to find referenced object.
    Object=oracle.apps.ego.common.server.EgoChangeOrderCreationVO
    Owner=xxcus.apps.xo2c.sample.server.EgoChangeOrderCreationVOEx
    Exception:oracle.jbo.dt.objects.jboReferenceException
    I checked for these files on both the server and my local jdev.
    only the PosShipmentsCustomVO.xml is present both on the server and my local jdev.the .class file is not there on the server.
    Any help is greatly appreciated.
    Thanks

    Hello,
    Check the developer's gude for the following:
    Developing Business components -->Creating and modifying View Objects, view Links, Application Modules -->Ways to create View Link instances in the code.
    Do let us know if you are still stuck some where.
    Pavan K

  • View Links for Programmatic View Objects

    Hi All,
    I created a read only VO called MyVO based on a sql query.
    I created 2 programmatic view objects, MasterView and ChildView.
    In a custom method in AMImpl class ,I iterate through this MyVO resultset and get the rows in a Row object.
    Based on some attributes values of the Row, I populate both master and child View Objects.
    I have created a view link between Master and Child Programmatic View Objects and have exposed them in AM.
    Now I run the AM, and run the method exposed in client interface.
    Now I click on my master and child programmatic views.
    I see that the rows are populated in both of these programmatic VOs.
    But when I click on viewlink which I have exposed under master, it doesnt show me any
    record for child.
    This is my method of AMImpl which is exposed in AM client interface.
    public void constructLines(){
    ViewObject vo= this.getMyVO1();
    ViewObject master=this.getTransientVO1();
    ViewObject child=this.getTransientLineVO1();
    Row r,masterRow,childRow;
    int count=0;
    while(vo.hasNext()){
    ++count;
    r=vo.next();
    masterRow = master.createRow();
    if(r.getAttribute("QuoteHeaderId")!=null)
    masterRow.setAttribute("QuoteHeaderId",
    r.getAttribute("QuoteHeaderId").toString());
    if(r.getAttribute("QuoteLineId")!=null)
    masterRow.setAttribute("QuoteLineId",
    r.getAttribute("QuoteLineId").toString());
    if(r.getAttribute("LineNumber")!=null)
    masterRow.setAttribute("LineNumber",
    r.getAttribute("LineNumber").toString());
    master.insertRow(masterRow);
    childRow= child.createRow();
    if(r.getAttribute("RefLineId")!=null)
    childRow.setAttribute("RefLineId",
    r.getAttribute("QuoteLineId").toString());
    if(r.getAttribute("QuoteHeaderId")!=null)
    childRow.setAttribute("QuoteHeaderId",
    r.getAttribute("QuoteHeaderId").toString());
    child.insertRow(childRow);
    This is stopping me from my development progress.
    Any suggestion to solve this will be of great help.
    Thanks,
    Prabhanjan

    Hi..
    have you define relationship correctly between masterVO and childVO.sometime there may be the problem.

  • Creating a Static view link association creates a null entityImpl error

    294] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.assoc.DeptTypesFkLink
    [295] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.assoc.assoc
    [296] Loading from individual XML files
    [297] Loading the Containees for the Package 'myModel.view.assoc.assoc'.
    [298] }}+++ End Event9 null
    [299] }}+++ End Event8 null
    [300] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.DeptsView
    [301] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.view.view
    [302] Loading from individual XML files
    [303] Loading the Containees for the Package 'myModel.view.view'.
    [304] }}+++ End Event11 null
    [305] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.entity.Depts
    [306] {{ type: 'METAOBJECT_LOAD' Loading meta-object: myModel.entity.entity
    [307] Loading from individual XML files
    [308] Loading the Containees for the Package 'myModel.entity.entity'.
    [309] }}+++ End Event13 null
    [310] Custom class myModel.entity.nullImpl not found
    [311] }}+++ End Event12 null
    [312] }}+++ End Event10 null
    [313] JUErrorHandlerDlg.reportException(oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper)
    [314] UIMessageBundle (language base) being initialized
    ## Detail 0 ##
    java.lang.ClassNotFoundException: myModel.entity.nullImpl
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:166)
         at oracle.jbo.common.JBOClass.findCustomClass(JBOClass.java:202)
         at oracle.jbo.server.AssociationDefImpl.initFromXML(AssociationDefImpl.java:940)
         at oracle.jbo.server.AssociationDefImpl.loadFromXML(AssociationDefImpl.java:907)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:4274)
         at oracle.jbo.server.EntityDefImpl.loadAttributes(EntityDefImpl.java:4232)
         at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:3063)
         at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:2700)
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:584)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:817)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:482)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:420)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:402)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:808)
         at oracle.jbo.server.EntityDefImpl.findDefObject(EntityDefImpl.java:469)
         at oracle.jbo.server.ViewDefImpl.doAddEntityUsage(ViewDefImpl.java:4245)
         at oracle.jbo.server.ViewDefImpl.loadEntityReference(ViewDefImpl.java:4317)
         at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:2940)
         at oracle.jbo.server.ViewDefImpl.loadFromXML(ViewDefImpl.java:2744)
         at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:588)
         at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:817)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:482)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:420)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:402)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:808)
         at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:560)
         at oracle.jbo.server.ViewLinkDefImpl.resolveReferences(ViewLinkDefImpl.java:718)
         at oracle.jbo.server.ViewLinkDefImpl.findDefObject(ViewLinkDefImpl.java:130)
         at oracle.jbo.server.ViewDefImpl.resolveViewLinkAccessorAttribute(ViewDefImpl.java:5191)
         at oracle.jbo.server.ViewDefImpl.processViewLinkAccessors(ViewDefImpl.java:5363)
         at oracle.jbo.server.ViewDefImpl.getAttributeDefImpls(ViewDefImpl.java:592)
         at oracle.jbo.server.ViewObjectImpl.initViewAttributeDefImpls(ViewObjectImpl.java:7136)
         at oracle.jbo.server.ViewObjectImpl.getAttributeDefs(ViewObjectImpl.java:4769)
         at oracle.adf.model.bc4j.meta.StructureDefinitionImpl.loadAttributes(StructureDefinitionImpl.java:281)
         at oracle.adf.model.bc4j.meta.StructureDefinitionImpl.loadStructure(StructureDefinitionImpl.java:150)
         at oracle.adf.model.bc4j.meta.StructureDefinitionImpl.getAttributeDefinitions(StructureDefinitionImpl.java:64)
         at oracle.jbo.jbotester.binding.TesterBinding.getAttributeNames(TesterBinding.java:257)
         at oracle.jbo.jbotester.binding.TesterBinding.createIteratorBinding(TesterBinding.java:172)
         at oracle.jbo.jbotester.binding.TesterBinding.createIteratorBindings(TesterBinding.java:163)
         at oracle.jbo.jbotester.binding.TesterBinding.<init>(TesterBinding.java:119)
         at oracle.jbo.jbotester.binding.TesterBinding.<init>(TesterBinding.java:82)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:587)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)

    I created a static view object called StaticDepartments with the data from the DEPT table, but typed in statically.
    I created a normal, entity-based EmpView VO over an Emp EO.
    I created a 1-to-* view link between StaticDepartments and EmpView based on the Deptno attribute.
    I added the master/detail to the AM's data model and tested, and it worked ok.
    What's different about the way you're creating the view link here?

  • Create view link programatically

    Hi all,
    I am working on this weird requirement.
    Basically, I have to create a detail table on a search resullt table. The search result is seeded search, for Item Advance search in Oracle PIM module which is not based upon a VO. The search result table is dynamically built at run time in the EgoItemSearchHelper class and that's where they build the search result VO (EgoItemSearchResultsVO).
    Now, I need to access this VO in the controller class, and create a view link programatically between details table VO and this VO. The problem is since I do not have Impl class for the EgoItemSearchResultsVO, how do I accees the column that is the key attribute. Second I do not know how to create view link between the two VOs programatically.
    Please help it's urgent.
    Thanks

    Pratap, My problem is the seeded VO is in seeded AM and my details VO will be in my custom AM, I don't know if we can have a view link between View objects that are in different AMs.
    To bypass that problem, I tried to create a VO in the seeded AM programatically and then created a view link. Now since the AM is seeded, and I am adding my details VO to this AM programatically, I thought of creating a table also programatically on the detais VO.
    In the end it does not work, I end up getting a show button on the main table, but when I click I get an error (Cannot find <null> attribute in the EOGITEMSEARCHRESULTVO) which is the seeded VO class. Unfortunately there is no boolean variable on the dynamic seeded VO, so don't know what to put in oatablebean.setDetailViewAttributeName("") method;
    Any clues on this, appreciate all responses from the forum gurus.
    ViewObject voEmp = oaapplicationmodule.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
    ViewObject voEmp = am.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
    AttributeDef[] prjLinkAttrs = new AttributeDef[]{oaapplicationmodule.findViewObject("EgoItemSearchResultsVO").findAttributeDef("INVENTORY_ITEM_ID_B")};
    System.out.println("definition for attr = "+ prjLinkAttrs[0]);
    AttributeDef[] taskLinkAttrs = new AttributeDef[]{voEmp.findAttributeDef("InvId") };
    ViewLink vl = am.createViewLinkBetweenViewObjects("MyLink3",
    "DetailInv", // accessor name--more on this below
    am.findViewObject("EgoItemSearchResultsVO"), // master
    prjLinkAttrs, // department attributes
    voEmp, // detail
    taskLinkAttrs, // employee attributes
    null); // assoc clause
    System.out.println("view link =" + vl.getName());
    OATableBean tb = (OATableBean)createWebBean(oapagecontext,TABLE_BEAN,null,"table");
    tb.setViewUsageName("MyEmp");
    OAMessageStyledTextBean beans = (OAMessageStyledTextBean)createWebBean(oapagecontext,MESSAGE_STYLED_TEXT_BEAN,OAWebBeanConstants.VARCHAR2_DATATYPE,"number");
    beans.setPrompt("column1");
    beans.setViewUsageName("MyEmp");
    beans.setViewAttributeName("InvId");
    tb.addIndexedChild(beans);
    oatablebean.setDetail((OAWebBean)tb);
    oatablebean.setDetailViewAttributeName("SelectFlag"); // I just tried this, SelectFlag is not a boolean attribute though, is there a way to create a boolean attribute programatically for seeded VO EGOITEMSEARCHRESULTVO and set it here, will it help
    oatablebean.setAllDetailsEnabled(true);

  • 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.

  • Every time I click to update an application I get a window "Download Error" it gives me the option to "Contact customer support" and a link "Reload Applications"

    Every time I click to update an application I get a window "Download Error" it gives me the option to "Contact customer support" and a link "Reload Applications"

    Sal Sabaj, Would ask you to follow the suggestions mentioned under the below article and check if that helps.
    http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html
    Let us know in case you still get that issue.
    Regards
    ~ Arpit Kapoor

  • View Link Bug!  - JDEV Developers please read.

    This has to be a bug. When I am done with my project for the day I check in the files into PVCS. After check in the files are deleted off my local drive. When I recheck out my project and do a rebuild on the project, I get several View link XML files that say that they are not correct. However when I pull them up in the editor and relink them, there is NO CHANGE to the XML file that stores the DEF. Below is a sample of one of the files. If I go into this view link with the visual editor and reselect the linking nodes, all is fine in JDEV.
    Is this a bug that is being worked on for the next version?
    SAMPLE
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
    <ViewLink Name="RequestCauseLookupVL">
    <DesignTime>
    <Attr Name="_isCodegen" Value="true"/>
    <Attr Name="_version" Value="10.1.3.36.73"/>
    </DesignTime>
    <ViewLinkDefEnd Name="RequestVO" Cardinality="1"
    Owner="dataAccess.Request.RequestView" Source="true">
    <AttrArray Name="Attributes">
    <Item Value="dataAccess.Request.RequestView.CauseCd"/>
    </AttrArray>
    <DesignTime>
    <Attr Name="_finderName" Value="RequestVO"/>
    <Attr Name="_accessor" Value="true"/>
    <Attr Name="_minCardinality" Value="1"/>
    <Attr Name="_isUpdateable" Value="true"/>
    <Attr Name="_entityAccessor" Value="true"/>
    </DesignTime>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd Name="ReqCause_LOV" Cardinality="1"
    Owner="dataAccess.lov.ReqCause_LOV">
    <AttrArray Name="Attributes">
    <Item Value="dataAccess.lov.ReqCause_LOV.LookupId"/>
    </AttrArray>
    <DesignTime>
    <Attr Name="_finderName" Value="ReqCause_LOV"/>
    <Attr Name="_accessor" Value="true"/>
    <Attr Name="_isUpdateable" Value="true"/>
    <Attr Name="_entityAccessor" Value="true"/>
    </DesignTime>
    </ViewLinkDefEnd>
    </ViewLink>

    Hi Steve,
    JDev appears to be updating the viewlink files. I have not edited any of them and they all have the timestamp of when i closed JDev last Friday:
    -rw-rw-rw-   1 user     group        1236 Sep  1 16:45 ApprovalDetailsFkLink.xml
    -rw-rw-rw-   1 user     group        1224 Sep  1 16:45 InvestigatorsFkLink.xml
    -rw-rw-rw-   1 user     group        1260 Sep  1 16:45 MulticentreProjectsFkLink.xml
    -rw-rw-rw-   1 user     group        1258 Sep  1 16:45 PrjWorklistItemsFkLink.xml
    -rw-rw-rw-   1 user     group        1200 Sep  1 16:45 FieldBasedFKLink.xml
    -rw-rw-rw-   1 user     group        1195 Sep  1 16:45 GmAnimalsFKLink.xml
    -rw-rw-rw-   1 user     group        1225 Sep  1 16:45 HarmfulFKLink.xml
    -rw-rw-rw-   1 user     group        1032 Sep  1 16:45 ObservationFKLink.xml
    -rw-rw-rw-   1 user     group        1226 Sep  1 16:45 OtherInvestigatorsFKLink.xml
    -rw-rw-rw-   1 user     group        1196 Sep  1 16:45 OtherPartiesFKLink.xml
    -rw-rw-rw-   1 user     group        1028 Sep  1 16:45 PermitsFKLink.xml
    -rw-rw-rw-   1 user     group        1206 Sep  1 16:45 ProjectPartiesFKLink.xml
    -rw-rw-rw-   1 user     group        1042 Sep  1 16:45 RespInvestigatorsFkLink.xml
    -rw-rw-rw-   1 user     group        1012 Sep  1 16:45 SurgeryFKLink.xml
    -rw-rw-rw-   1 user     group        1190 Sep  1 16:45 TeachingFKLink.xmlthe CVS looks like this (August 24 was when i deleted them all from CVS and re-added them):
    -r--r--r--    1 banstey  dba          1347 Aug 24 09:51 ProjectPartiesFKLink.xml,v
    -r--r--r--    1 banstey  dba          1172 Aug 24 09:51 PermitsFKLink.xml,v
    -r--r--r--    1 banstey  dba          1337 Aug 24 09:51 OtherPartiesFKLink.xml,v
    -r--r--r--    1 banstey  dba          1367 Aug 24 09:51 OtherInvestigatorsFKLink.xml,v
    -r--r--r--    1 banstey  dba          1176 Aug 24 09:51 ObservationFKLink.xml,v
    -r--r--r--    1 banstey  dba          1399 Aug 24 09:51 PrjWorklistItemsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1401 Aug 24 09:51 MulticentreProjectsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1365 Aug 24 09:51 InvestigatorsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1377 Aug 24 09:51 ApprovalDetailsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1325 Aug 24 09:51 AnimalFKLink.xml,v
    -r--r--r--    1 banstey  dba          1331 Aug 24 09:51 TeachingFKLink.xml,v
    -r--r--r--    1 banstey  dba          1186 Aug 24 09:51 RespInvestigatorsFkLink.xml,v
    -r--r--r--    1 banstey  dba          1341 Aug 30 11:37 AnimalCareFKLink.xml,v
    -r--r--r--    1 banstey  dba          1341 Aug 30 11:38 FieldBasedFKLink.xml,vTimestamps of my associations are all over the place, which is consistent with the creation process.
    Will do an unchanged commit and post the results.
    regards,
    Brenden

  • 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.

  • View Link Problems

    Hi
    I have a master child relationship...
    Lets say table Employee and Table Quarters
    EMployee is master and qaurters child, in the quarters table i need to create a column called quarter name which is a transient column which will be populated at runtime...
    so i create the view link, but when the code runs for the selection of the child rows i get 0 rows returned... ie when i click on the master row a PPR event fires which should iterate through the child rows and add the qaurter names to the list....
    Please could someone tell me how to iterate through a child when selecting from a master
    this is how i am doin it currently
    XxPerfQuarterViewRowImpl row = (XxPerfQuarterViewRowImpl)first();
    if(row != null)
    String name = "Quarter "+i++;
    row.setQuarterName(name);
    while((row = (XxPerfQuarterViewRowImpl)next()) != null){
    name = "Quarter "+i++;
    row.setQuarterName(name);
    but before this logic even runs i get a null pointer cos no rows are returned please assits ASAP
    THanks IN Advance

    all that i am doin with the code is setting the current row on the MAster
    Here is the code for that
    // sets rows with master details selcections
    public void hangleMasterSelect(String view, String column, String value)
    OADBTransaction txn = getOADBTransaction();
    String detailTableText = null;
    OAViewObject vo = (OAViewObject)findViewObject(view);
    vo.reset();
    Row [] rows = vo.getFilteredRows(column,value);
    if ((rows != null) && (rows.length > 0))
    Row masterRow = rows[0];
    vo.setCurrentRow(masterRow);
    which is called from the CO for the table region as follows
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if ("quarterSelect".equals(event))
    Serializable[] params = { "XxPerfQuarterView1", "SelectFlag", "Y" };
    am.invokeMethod("hangleMasterSelect",params);
    // am.invokeMethod("setQuarterNames");
    right... now that alll works
    but as i said to you i have to insert some dynamic data in the child table at runtime
    ie in the quarters table (which is the child) once the correct rows are returned from the master IE the rows that are linked to the master....
    i need to fo through them and set a string in a transient variable....
    like this
    public void setQuarterNames(String performanceId){
    // setWhereClause("performance_contract_id ="+performanceId);
    // executeQuery();
    int i = 1;
    XxPerfQuarterViewRowImpl row = (XxPerfQuarterViewRowImpl)first();
    if(row != null)
    String name = "Quarter "+i++;
    row.setQuarterName(name);
    while((row = (XxPerfQuarterViewRowImpl)next()) != null){
    name = "Quarter "+i++;
    row.setQuarterName(name);
    }

  • View link between VO from two application modules

    Is it possible to create view link between VOs from 2 different Application modules?

    Here is what it says:
    SymptomsYou have an ADF BC (BC4J) project and you are getting the following error:
    oracle.jbo.domain.Number; local class incompatibleA more detailed error looks similar to:
    oracle.jbo.domain.Number; local class incompatible: stream classdesc
    serialVersionUID = -7171468674200794918, local class serialVersionUID =
    -6507359405709672486
    CauseThis problem is caused by either that:
    You have inadvertently mixed two mutually exclusive domain libraries like "BC4J Generic Domains" (bc4jdomgnrc.jar) and "BC4J Oracle Domains" (bc4jdomorcl.jar).
    or
    You have added the "BC4J Datum" library (bc4jdatum.jar) to your middle-tier class path, and are trying to use a JDBC driver different from the one that ships with JDeveloper 10g in the box.
    The BC4J Generic Domains and the BC4J Oracle Domains are never meant to be used in the same application classpath. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    The BC4J Datum library is designed for use in a thin-client Classpath that is remotely accessing an ADF Business Components middle tier deployed as an EJB Session bean. It contains only the domain classes (typically jar'ed up as part of the whole Oracle JDBC Driver JAR) without having to have the rest of the JDBC Driver JAR on the thin client. SolutionPlease check if any of the above suggested scenarios is applicable to your application.
    If you have the BC4J Generic Domains and the BC4J Oracle Domains in the same project despite that they are never meant to be used in the same application classpath you will get this error. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    Goto the Project Properties for you project.
    Select Profiles -> <Profile Name> -> Libraries
    Check in the Selected list (to the right) if you have both BC4J Generic Domains and the BC4J Oracle Domains there. If so, remove the one not appropriate for your project.

  • View link in ADF

    Hi,
    I have created a view link. It works fine when I test it through application module, but when I select the view link node under related view object and look at the different options available in the dropdown list "Drop As:", I can't see anything. It is supposed to be something like Master Detail (Many to Many), but what I see is all blank in the dropdown list and I can't use it in the jsp page to create a master detail functionality.
    Thanks,
    Setare

    yes that's the view object for the master.
    Suppose you create a default business component on the Dept and Emp tables from the Scott schema.
    In the Data Controller Palette you'll see a DeptView1 and if you expand it after the fieilds from the dept table you'll see the Empview table.
    check out this image to see how it looks like:
    http://otn.oracle.com/products/jdev/collateral/tutorials/9050/images/datacontrol.jpg
    (that's from the UIX tutorial).

  • View Link

    Hi,
    I have created a view link in JDeveloper that will create a link between a standard Oracle view object and a view object that has been extended. Could anyone please share the steps on how to get the standard Oracle view object and the custom view object to recognize the view link?
    Thanks in advance!

    Any ideas??

Maybe you are looking for

  • Help! Need to convert my songs prom AIFF to MP3

    I'm trying to share songs I've created with Garage band. For some reason they are way too large (40 - 60MB) to attach to an email and send. They shouldn't be that big, they are just average sized songs. Thats the size that they each came out when I e

  • HT204053 I have two apple ID's.  One is an old one I no longer wish to use, but it is the one associated with my iPhone.  How do I change to my newer apple ID on my iPhone?

    I have two apple ID's.  One is an old one I no longer wish to use, but it is the one associated with my iPhone.  How do I change to my newer apple ID on my iPhone?

  • SAVE DIALOG!!!!

    why does a save dialog always point to the jsp as default?how can i specify a different file, to save...... Are there any restrictions as to where my file has to exist on the server? If i say response.setContentType("application/zip"); response.setHe

  • Mouse clicking issues

    For the last 2 weeks or so I all of a sudden have mouse clicking issues on a 2009 iMac. The mouse (I have tried 3 different ones from apple and Logitech) seem to be able to open files etc. on a click. I have to click repeatedly to get it done. When I

  • PLEASE HELP I NEED HELP

    I logged in to my mid 2012 13" MacBookPro with Latest OSX Mavericks and my dock only appears if i click down on the bottom of my screen (I hide my dock so that it only comes up when I hover over where it would be) and when I do get the dock open if I