Adding the view Link to Application Module

Hi Guys ,
How do we add a view link to a Application Module
i followed the instructions in dev guide but its aint working for me .
Thanks
Tom...

Tom,
The procedure you have followed is the correct one. So do you mean that when you do the shuttle, nothing happens in the data model window? Any message or warning?
--Shiv                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Can I operate the view object outside application module?

    I publish a Application Module into Oracle 8i Server. When I operate the view object in a class that published in Oracle 8i Server.
    It raise a remoteException. Can I operate the view object outside application module?

    Hi,
    The application module is the main point of contact for the ViewObject and EntityObject classes. It handles things like the connection pooling and other coordination aspects.
    You need to go through the app module to access the ViewObject class methods.

  • Sharing view objects across application modules

    Our application uses multiple application modules because of the complex functional requirements. We have come across sharing view objects among application modules. I want to understand the best practice, sharing view object instances across application modules. These view objects can be based on Entity Objects also.
    Please let me know if there any suggestions.
    Thanks,
    Satya

    Hi Satya,
    You won't be able to share view objects between application modules, but what you can do is to share the bind variables between application modules, if each of your module contains the 'common' view object.
    A solution for sharing data between application modules is provided on this blog: http://andrejusb.blogspot.co.uk/2012/05/solution-for-sharing-global-user-data.html
    You can use this approach to share bind variables between AM's and re-query the same data.
    Hope this helps,
    Florin Marcus
    www.redsamuraiconsulting.com

  • How to get the view link definition from the view link accessor

    Hi,
    I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
    Thanks!

    Hi,
    you should get this through
    ViewObject vo = this.findViewObject("LocationsView1");
    int indx = vo.getAttributeIndexOf("DepartmentsView");
    ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
    ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
    Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
    Frank

  • I've dragged my Facebook, Google , Twitter and LinkedIn icons into the Signature box of Mail.  Is there a way of adding the web links behind each icon?  i.e. like PC Outlook

    I've just purchased a new MacBook Pro and am having problems with the Signature section of Mail.  I've added Facebook, Google+, Twitter and LinkedIn logos to my Siganture, however the associated weblinks behind each logo are not copying across.  Is there a way of adding the website links to each logo in the Signature section of Mail?
    Thankyou in advance.

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • To find the view link in the attribute definition

    Hi, I am using Jdev 10.1.3.2 and ADFBC. I have two master/detail view objects which have view link defined between them. Now I am trying to do deep copy, but I don't want to hard code the view link accessor name in the code. Here is the part of the code to get the list of attributes:
    ParentVORow newRow = (ParentVORow)parentVO.createRow();
    StructureDef def = newRow.getStructureDef();
    AttributeDef[] attrs = def.getAttributeDefs();
    Now view link accessor is in attrs, but how can I tell which attribute in attrs is a view link accessor without comparing to the attribute name?
    Thanks!

    Please see section "25.3.4.1 Determining the Attribute Kind at Runtime" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html for more information on this.

  • Check the Row state in Application Module.

    Hi All,
    I have an EOVO in my page. Is there any way to check the row state in Application module??
    My requirement is if any row is created for the EOVO , just delete it.
    Please suggest suitable methods to fulfill this requirement...
    Regards,
    Tarun

    Yes, you can check the status of the rows of a VO in Application Module(AM)
    In AM, get the instance of the VO and loop through it's rows and check the status of the rows as
    In row you have a method called getNewRowState(). It will return values like Row.STATUS_INITIALIZDED etc.
    Check the javadoc of oracle.jbo.Row for possible values and explanations about the status.
    So ideally you have to write a condition as follows. This is a sample code..just use as a guide.
    if (row.getNewRowState() = oracle.jbo.Row.STATUS_INITIALIZED){
    row.remove();
    Regards,
    Peddi.

  • How to restrict the view in a application?

    hello colleagues,
    need your help to find the best solution. There are two restriction which I need to implement:
    1. different view for single field groups
    2. different view for a complete application
    Additional Point 3) multiple view assignment to a role
    Point 1)
    I need to have for the Role the original view (leave standard) but only in the specific field group structure I want to extend with the additional view. The system need to check if the additional view is available if not it need to take the standard, if yes, than it should take the assigned view. My question, is this behaviour possible without enhancements only with the assignment of the new created view? If yes, how I can assign the view to the role that this behaviour will be covererd?
    Point 2)
    I need to change the Account structure but only for the Business application "COMM_BUPA" and not for all related Business application. The Account reference to so many application that I need to restrict the changes to avoid the overlapping to other areas and try to do this with a new created view which I assign to the relevant role. Is this possible, if yes, how?
    Point 3)
    Is it possible to assign multiple view to one role? Is there a specific setting required and how can I do this and where I assign the view to the role?
    System News: CRM 4.0 = Channel Management , EP 6.0
    Waiting for your responds -
    Thank you and regards,
    Anja

    Dear Thiruamala,
    Thank you for your answer. I still need more information, please can you help me again?
    Point 1)
    - Which Transaction (e.g. /nsu01) I can assign the iview to the role in the customizing?
    - Which are the process steps and what I need to do each step need more details - or a screen shoot?
    Point 3)
    I have customized a new view for accounts which I need to assign to all the roles and additional some roles need to have additional views depend on the roles. How I would realize this without having multiple views to a role? How I can work with screen variants in CRM 4.0?
    Thank you and best regards,
    Anja
    Message was edited by:
            Anja Herrmann

  • Change the view link from Readonly to updateable.

    Hi Experts,
    Currently i have 2 view objects and with one view link (1 to 1 mapping). When i try the following code i am getting the exception
    Integer departId= Integer.parseInt(id);
    Key key = new Key(new Object[]{departId});
    Row[] rows = departmentVO.findByKey(key, 1);
    if(rows != null && rows.length == 1) {
    employeeRow.setDepartmentVO(rows[0]);
    oracle.jbo.ReadOnlyAttrException: JBO-27008: Attribute DepartmentVO in view object EmployeeVO1 cannot be set.
    It seems the link is readonly. I have gone through the ViewLink xml file and found all the _updateable are true.  Am i missing anything?
    Please advice me.
    -t

    user,
    @ what time it error raise up.? give me some more. details.
    for eg:
    if u had a updatable view.
    in that view . a had id attribute under updatable section.
    there are options. never always, while new.
    if you check. never optios.
    if u are update something means. the error come up likes this.
    i hop u undertusd.

  • Idoc View link with Function Module ?

    Hello All,
             I have a n Idoc View . I want to know what is the outbound Function Module for this IDoc View .
    Usually the process code contains the Function Module but when the idoc View is used the Process code is not maintained in the Message control of the Partner Profiles.So how to know which Function Module is used for this Idoc View ?
    Can anyone tell me ?
    Regards,
    Deepu.K

    Hi,
    Are you looking this FM EDI_DOCUMENT_TREE_DISPLAY?
    Regards,
    Ferry Lianto

  • Accesing the services of a Application Module

    Hi all,
    I created a Applicatin Module in the Modle project of my application.
    I need to access the services of that AM from the viewController project.
    I usesd the following code
    FacesContext fc = FacesContext.getCurrentInstance();
    Object returnObject = fc.getELContext().getELResolver().getValue(fc.getELContext(), null, "data");
    BindingContext bc = (BindingContext)returnObject;
    DCDataControl dc = bc.findDataControl("AdminAMDataControl");
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    It gives a NullPointerException. Can someone help me on this please
    I'm using JDevloper 11.1.1.3.0
    Thanks,
    Melaka

    And this :P
    public  static  Connection getCurrentConnection() throws SQLException {
          PreparedStatement st =
              getDBTransaction().createPreparedStatement("commit", 1);
          Connection conn = st.getConnection();
          st.close();
          System.out.println("generando una coneccion :"+conn);
          return conn;
      public static  DBTransaction getDBTransaction() {
          return getAppmodule2().getDBTransaction();
      public  static  Statement getStatement() {
          return getAppmodule2().getDBTransaction().createStatement(0);
      }Adfboy

  • ADF panel executes all queries in the application module.

    Hi all,
    I have created an ADF Panel, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module.
    As I add more functionality meaning more available queries meaning more ADF views and ADF view links, running the Application Modules becomes slower.
    Let’s say the application module AM1 is made of 30 different view links. And application module AM2 is made of another 30 view links.
    Now let’s say that ADF Panel1 references 8 view links from AM1, but it appears that all 30 view links that make up Application Module AM1 are executed before returning the result sets of the 8 view links referenced in ADF Panel1. Let me also underline the fact that each view link in Application Module AM1 can be executed independently, so the question is how I can make Jdev not to run all 30 queries in view links in the Application Module AM1 when ADF Panel1 is executed, but just the 8 that are referenced in the ADF panel1.
    I hope I made my question understood.
    Your inputs are greatly appreciated.
    Thanks.
    Bobby A.

    Hi,
    if this is what you see then you should file a bug because certainly its not the way it is designed to work. Note that in JDeveloper 11g - you don't specify the release you are on - the iterators by default are set to refresh deferred. Only iterators that belong to a PageDef file are executed when the page loads (you can suppress this by setting a refresh condition). Other queries are not executed
    Frank

  • Application module with no connection to the database in jdeveloper 10.1.3

    I have a number of programmatic bc view objects and entity objects which i have implemented through the time from different projects and now that i have collected them i want to add all of them in a reusable application module. However i don't need a connection to the database for this application module. Is it possible to enforce the application module to circumvent the db connection?

    Hi user,
    Just out of curiosity, why would you use ADF BC for that - if I had a bunch of non-db data sources, I'd probably use POJOs and create POJO data controls.
    I didn't look in 10g, but in 11g, the ApplicationModule has a method called getDBConnectionRequired() that you could override to see if that solves your issue.
    John

  • 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

  • Problems with the Application Module Pool

    Hello,
    We have an Oracle ADF Application working in a production enviroment. The application module pool seems to work properly during the first days, but after a few days, the application module pool seems not to work properly. We start to get some errors like JBO-30003: the application pool failed to checkout an application module.
    We have included in the application a DumpPoolStatistics servlet, and what we have observed is:
    1. When the application is restarted in the server, the "total number of application modules in the pool" is equal to "maximum number of application modules in the pool".
    2. Several days after, the "total number of application modules in the pool" starts to decrease.
    We don't know why the "total number of application modules in the pool" starts to decrease, but we think this is the reason of the errors. In fact, "total number of application modules in the pool" is lower than the "jbo.ampool.minavailablesize" parameter value.
    The management of the application module pool is not a task of the developer, so we don't undestand where is the problem.
    We have configured the application module with the next parameters:
    <jbo.ampool.initpoolsize>10</jbo.ampool.initpoolsize>
    <jbo.ampool.maxpoolsize>100</jbo.ampool.maxpoolsize>
    <jbo.ampool.minavailablesize>10</jbo.ampool.minavailablesize>
    <jbo.recyclethreshold>15</jbo.recyclethreshold>
    <jbo.ampool.maxinactiveage>600000</jbo.ampool.minavailablesize>
    <jbo.ampool.monitorsleepinterval>600000</jbo.ampool.monitorsleepinterval>
    <jbo.initpoolsize>15</jbo.initpoolsize>
    <jbo.maxpoolsize>30</jbo.maxpoolsize>
    <jbo.poolminavailablesize>15</jbo.poolminavailablesize>
    <jbo.poolmaxavailablesize>25</jbo.poolmaxavailablesize>
    <jbo.poolmonitorsleepinterval>30000</jbo.poolmonitorsleepinterval>
    <jbo.poolmaxinactiveage>30000</jbo.poolmaxinactiveage>
    <jbo.dofailover>true</jbo.dofailover>
    <jbo.ampool.resetnontransactionalstate>true</jbo.ampool.resetnontransactionalstate>
    <jbo.ampool.doampooling>true</jbo.ampool.doampooling>
    We are working with JDeveloper 10.1.3.4.
    Thanks in advance!

    Sorry, you are right, the number of application modules created whe the application starts is given by the jbo.ampool.initpoolsize. But what it is sure is that the "total number of application modules in the pool" starts to decrease. The number of days is not always the same. But we have to restart the application occasionally.
    I think the time parameters are ok, I would like for example 10 minutes for pool resoruce cleanup, and 10 minutes for considering an inactive AM instance in the pool as a candidate for removal during the next resource cleanup.
    <jbo.ampool.monitorsleepinterval>600000</jbo.ampool.monitorsleepinterval> --> 10 minutes
    <jbo.ampool.maxinactiveage>600000</jbo.ampool.minavailablesize> --> 10 minutes
    Is this right?

Maybe you are looking for