Parent view

Hi there,
I'm trying to figure out the logic of how to find the root components of views that I created. We are trying to upgrade our system and there are various new sql files that need to be loaded but they have to be in order or will fail. We can go through each file and check which is which but I'm sure I can do this programatically by looping through the files, extracting the tables or views that are used in the FROM clause and then save this to a table. The sql for the views is currently stored in separate files and from these I want to extract the components that build the table and insert the names into a table. From this table that explains how each is built I would like to loop through and find the base tables or views.It sounds like a database question but I will need to create a function of some sort in Java that will loop through the values and check whether they are being used in another view. A view is built up of other views or tables, and I need to check which tables are the roots of everything else. These will be loaded first and then the other views after them. I'm not sure what logic to use because it seems like a recursive function and my brain can't get round the loop.

So you want to scan text files, extract SQL statements or something like that, and parse those SQL statements? Sounds like a text processing problem to me. I don't see where JDBC comes into it at all.
But I would suggest you step back a bit and do some design. Figure out what information you need from those files, then figure out how it is structured and what its internal relationships are. Basically what a database designer would normally do.

Similar Messages

  • How to reference the Parent view Object attribute in Child View object

    Hi , I have the requirememt to generate Tree like struture to display Salary from joining date to retirement date in yearly form.I have writtent two Pl/SQL function to return parent node and child nodes(based on selected year).
    1.First function --> Input paramter (employee id, retirement date , joining date) --> return parent node row with start_date and end_date
    2. 2nd function --> input paarmter(employee id, startDate, end_date) --> return child node based on selected parent node i.e. start date and end date
    I have created two ADF view object based on two function return
    Parent Node --> select * from Table( EUPS.FN_GET_CONTR_SAL_BY_YR(employeeId,retirement Date, dateOf joining)) ;
    Child Node --> select * FROM TABLE( EUPS.FN_GET_CONTR_SAL_FOR_YEAR( employeId,startDate, endDate) ) based on selected parent node.
    I am giving binding variable as input for 2nd function (child node) . I don't know how to reference the binding variable value in child view from parent view.
    Like I have to refernce employeId,startDate, endDate values in 2nd function from parent view object. some thing like parentNode.selectedStart_date parentNode.employeeId.
    I know we can achive this writing the code in backing bean.But i want to know how can we refernce parent view object attribute values in child view object using Groovy or otherway?
    I will appreciate your help.
    Thanks

    I have two view com.ContractualSalaryByYearlyView for Parent Node and com.ContractualSalaryByYearlyView for child Node.
    I have created view link(ContractualSalYearlyByYearViewLink) betweem two view by giving common field empId, stDate , endDate.(below is the view link xml file).
    I tried give the binding attribute values using parent object reference like below in com.ContractualSalaryByYearlyView xml file but getting error
    Variable ContractualSalaryByYearlyView not recognized.I think i am using groovy expression.
    Thanks for quick response.
    com.ContractualSalaryByYearlyView xml
    <ViewObject
    <DesignTime>
    <Attr Name="_isExpertMode" Value="true"/>
    </DesignTime>
    <Variable
    Name="empId"
    Kind="where"
    Type="java.lang.Integer">
    <TransientExpression><![CDATA[adf.object.ContractualSalaryByYearlyView.EmpId]]></TransientExpression>
    </Variable>
    ContractualSalYearlyByYearViewLink.xml file
    <ViewLinkDefEnd
    Name="ContractualSalaryByYearlyView"
    Cardinality="1"
    Owner="com.ContractualSalaryByYearlyView"
    Source="true">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryByYearlyView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryByYearlyView.EmpId"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.StDate"/>
    <Item
    Value="com.ContractualSalaryByYearlyView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>
    <ViewLinkDefEnd
    Name="ContractualSalaryForYearView"
    Cardinality="-1"
    Owner="com.ContractualSalaryForYearView">
    <DesignTime>
    <Attr Name="_finderName" Value="ContractualSalaryForYearView"/>
    <Attr Name="_isUpdateable" Value="true"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item
    Value="com.ContractualSalaryForYearView.EmpId"/>
    <Item
    Value="com.ContractualSalaryForYearView.StDate"/>
    <Item
    Value="com.ContractualSalaryForYearView.EndDate"/>
    </AttrArray>
    </ViewLinkDefEnd>

  • How to call parent view event or method from popup in java webdynpro

    Hi ,
    I have  view  in my webdynpro component. I created a  button, when i click i am opening  a popup window.
    In side  popup window i am doing some search criteria. I want call a parent view method from popup window and populate search results in parent view table control.I can able to pass the data through context mapping. But i want  a  custom method where i want  to write a code to populate the table control ( i don;t want  to use the wdDoModifyView() method).
    Please help me.
    Thanks
    Aravinda

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

  • How to get initial value of Child View from Parent View in ADF?

    Hi,
    I am typically from a Oracle forms background and new to ADF.
    In ADF,how can I populate the initial value for a new record in child view from the parent view?
    For example.. using standard Departments and Employees tables which has parent child relation ship.
    If I want to create a new employee.. how do I get the initial value for department_id of my employee record(employee table) from departments table in ADF?
    Thanks in advance
    Vishnu

    USer, please tell us your jdev version!
    If  you have setup the data model in a way that it reflects this relationship (should be automatic if you use the 'create business components from table' wizard) this is pretty easy.
    To check this, open the application module and select the data model. On the right side you see departments view and under it indented the employees view. This indent shows you that the employees view is a child of the departments view. This is all you nee for the model layer.
    In the UI you open the datacontrol and open the departments view. One node it the employees view (as child). Now, if you work on a department (e.g. you drag the department view onto a page and drop it as form), you can add a button to create a new child (employee) by opening the employee node in department and drag the createInsert operation onto the page and drop it as button.
    Then create a new page and drop the employees view (the child from departments view) on to the page and drop it as form. This form will then display the new row for thew employee of hte department.
    Last thing to do is to add anavigation case from the departments page to the employees page and select this on the CreateInsert button.
    The form should have the DepartmentId pre-selected.
    Timo

  • Accessing setters in parent view object through view link

    Hi,
    I want to access the setters in a parent view object from a child view object through the view link. I have not been able to find an example, can someone point me to one? This is possible isn't it?
    Thanks,
    Jim

    Hi,
    have a look at the developer guide, it has one
    http://download-uk.oracle.com/docs/html/B25947_01/toc.htm
    Frank

  • Contextual event in reverse direction ( from child TF to parent view )

    Hi ,
    It seems all example of Contextual events talk about mirroring input value from Parent page to Child TF running in a region and there are numerous examples out there.
    What I wanted to accomplish was that an lov in a child TF triggers a contextual event and the parent TF takes the selected list of values. It needs to conduct a search based on these values and than mark the rows in a (tree)table.
    What has succeeded is almost all aspects of this. I can fire the event and receive it successfully. But the problem is the the backingBean class that I create via EL is not binded to my parent pages components. The treetable component returns null.
    My handler code (the handler code from the bean which you use to create the data control to listen to the cntxtual event) is almost 1:1 to as the code from the book "Oracle Fusion Developer Guide: Building Rich Internet Applications with Oracle ADF Business Components and Oracle ADF Faces", Chapter 6, page 210.
    public void receiveEvent(
    DCBindingContainerValueChangeEvent incomingPayload){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    Application app = fctx.getApplication();
    ExpressionFactory exprFactory = app.getExpressionFactory();
    ValueExpression valExpr = exprFactory.createValueExpression(
    elctx,
    //reference the managed bean that holds the mirror value
    //property displayed in the input text field
    "#{backingBeanScope.ConsumerBackingBean}",
    Object.class);
    ConsumerBackingBean consumer = null;
    consumer = (ConsumerBackingBean)valExpr.getValue(elctx);
    //get the changed attribute value from the contextual event
    //payload
    String newValue = (String)incomingPayload.getNewValue();
    //set the new value to the backing bean property that is
    //referenced by the input text field in View 3
    consumer.setMirrorValue(newValue);
    AdfFacesContext adffacesContext = null;
    adffacesContext = AdfFacesContext.getCurrentInstance();
    //partially update the text field to display the new value
    adffacesContext.addPartialTarget(consumer.getMirrorTxt());
    The #{backingBeanScope.ConsumerBackingBean} evaluates in my case to fine. But every component I should see as binding in the bean is null.
    Since the handler is declared in the pageDef of this parent page Fragment, i assumed the last bit about it being able to get to the backing bean and hence to my components should also be possible.
    If I cant refresh my components than I dont see the use of the contextual frameworks for me.

    You should find this post useful: http://flexponential.com/2010/12/05/saving-scroll-position-between-views-in-a-mobile-flex- application/
    It demonstrates one way of saving and restoring data when pushing and popping a view.

  • How to update a list in parent view with data from child view/window ?

    I have a view named AccountListView that displays some buttons and a list of accounts.Its viewmodel is called AccountListViewModel and has a collection : ObservableCollection<AccountViewModel>. What I'd like to acomplish: whenever I press the Add/Edit
    Button from the AccountListView to open a new window/usercontrol, i.e. AccountView and bind it to an instance of AccountViewModel that will have some fields to fill in and a Submit and Cancel buttons. How can I update the ObservableCollection<AccountViewModel>
    from  inside the child view, so when I click on the Submit button from AccountViewModel it will return an AccountViewModel object with the data I filled in and add it to the observablecollection. Would notifications from prism be the right way ? Should
    I include code from the AccountListViewModel and AccountViewModel ?

    The way to communicate between view models in Prism is to use the EventAggregator. You raise an event from view model A and subscribe and handle this event in view model B. I have written a blog post about it which should be helpful here:
    http://blog.magnusmontin.net/2014/02/28/using-the-event-aggregator-pattern-to-communicate-between-view-models/.
    In your case you could define an event that carries an AccountViewModel object and pass this one from view model A to view model B:
    public class AccountViewModelEvent : CompositePresentationEvent<AccountViewModel>
    Please refer to the blog post for more information and a complete code example.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • Trigger an event in the parent view, when popping a child view (Mobile)

    So from one view I'm pushing another view with some data:
    <s:Button label="Edit System" click="navigator.pushView(EditSystem, systems.selectedItem)"/>
    The problem I have is that in this other view I'm updating a view things in my sqlite database, so when I pop the 'EditSystem' view and return to the original, I want to run a function to requery the the sql so I can update a view things in the original view. But from what I can fugure Eventlisteners dont work across views? How do I trigger an event in the original view when I return from a child view via pop? 

    You should find this post useful: http://flexponential.com/2010/12/05/saving-scroll-position-between-views-in-a-mobile-flex- application/
    It demonstrates one way of saving and restoring data when pushing and popping a view.

  • Navigation from a view in viewcontainer to parent view of view container?

    Hi,
    I am facing the following problem while navigating between views.
    Scenario:
    View1 contains view container element
    In the view container element view2 is embeded.
    I want to navigate from view2 to view1.I have created outboundplug for view2 and inboundplug for view1.
    In view2 , when I am firing the outbound plug I am getting the following error…..
    Error:
    Application error occurred during request processing.
    Details:       com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'sap.com/pb' and application 'null' are not deployed on the server. Please check the used URL for typos.
    Exception id: [00144F4148CE00610000057F0000094E000446B1C8D1816D]
    am i missing anything?
    please guide me in this issue.
    Thanks
    Madhu

    Madhu,
    Creating Plugs is simple. Go thru this document. It may help you.
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/52120e27ca7e48a41201a4b08d99df/frameset.htm
    Create Outbound plug from view1, inbound plug from view2 and make a link from view1 to view2.
    from view1 call outbound plug like wdThis.wdFireXXXoutplug(). Deploy & Run your application.
    Let me know, if does not work.
    Regards,
    Sridhar

  • Trigger round trip in parent view from called view on close event

    Hi Experts,
                       We have a requirement in which from my view.htm page on click of a button (using onclientclick) I am opening another view using window.open of javascript.
      Now in pop-up after processing it, i am using self.close to close the pop-up, before this point I am setting collection of calling page in on_request method of pop-up page controller class, but it does not reflect after pop-up has closed. though it reflects on any round-trip on the calling page.
      How do I trigger round trip from pop-up after Self.Close from htm page?? Or from do_request method?
      I am trying to use opener.location.reload, but use of opener gives permission denied javascript error.
    Please help, I am really stuck here.
    Thanks,
    Rohit
    Edited by: Rohit Khetarpal on Mar 25, 2010 1:29 PM

    Still no replies no one using BSP now a days?
    I have one more doubt, in addition to above, I am coding in IC Web 5.0 application (CRM_IC), one of the z-views i created in z-bsp application (Z_WW_CRM_IC), where i have input field using CRMIC bsp tag in Search View.
    Now, I am opening another view in Pop-up using Onclientclick of button (as mentioned in above post too), but in the view URL, i need to send values that are entered in the search view, how can i do that.
    I have tried in javascript, var val = <%= <contextnode>->get_country( attribute_path = 'country') %>;
    but it doesn't work, it works only if there already has been a server round trip!
    Any help is highly appreciated.
    Thanks,
    Rohit

  • Problem with saving Parent - Child  View Objects in ADF 11g.

    Hi Every one,
    I have a requirment, something like I will be displaying some data on my jsff screen based on one Transient View Object. Whenever user clicks on Save button, I have to do following steps in my AMImpl.
    -> Preapre dynamically Parent View Object Rows based on some logic
    -> Prepare dynamically Child View object Rows and invoke insertRow method on respective child view object.
    When I say commit() First Parent ViewObject data need to be saved and then Child View object data has to be saved. I am having Parent - Child Key relation ship btw these two ViewObjects. Some how I am populating the Parent Primary key in the Child View Object. Please suggest me If there is any other alternative to this.
    Thanks

    I got the solution, Enabling the check box option for Master - Detail Entity association (CompositionAssociation -> Cascade Update Key Attributes) resolved the issue.
    Thanks

  • How To Display  attributes of Child Node and Parent Node in same view

    Suppose I have two view Carview and CarDetail View...IN Component context I have Parent Node Called Cars and It have its attribute as Price,Warranty,Year and also One Child Node Called as Brand Name Whose attribute are PrimaryBrand and SecondaryBrand..Now If I do Mapping of My First View i.e CarView with Child node of BrandName..and then I Have To Show Whole Detail of Car in CarDetailView.......How Can I Achieve it..

    Hi Vinay,
    You can map the child node and even the paren tnode to the same view if u want to display in the same window..
    If not if ur requirment is to dispaly in the sme view but should not map the child and parent to the Same view then you can take another new view.. and insert 2 view containers and then add the Child view and parent view in that view containers and then Diaplay the newly created view.
    Regards,
    Raju Bonagiri

  • How do I make a copy of a view model? (10.1.3.4)

    I have an application where it is important to maintain records for multiple reasons even if they have been edited, inactivated, or deleted. They way my organization does this for edit is that if a record is modified, we leave that record as it is and change a status field, then create a new record with the new values. This is a common paradigm with many businesses.
    We have decided that for some of our pages with multiple complex many-to-many relationships that instead of trying to handle this complexity at the time of committal, that it would be a lot easier just to duplicate our business model when entering the page in edit mode. The question is, is there any easy way to do that sticking with a model-centric view? How would I make duplicates of these views in the application module in such a way that I can roleback if an error occurs?
    In short, the business requirement is that I have a page where if I click an edit button, it will bring up a copy an uncommitted new copy of the model. This copy needs to go away if the screen is navigated away from or some error happens during the commit.
    If it helps, you can think of my page as the USERS, PRODUCTS, EXPERTISE_AREAS in the SRDemo schema. My USERS and PRODUCTS tables have an additional STATUS field that is initially active but gets set to ‘inactive’ when a modified version of it is committed. We have two views, one is a UserVO and the other is a ProductsExpertiseAreasVO with an associated viewlink using userId. The edit webpage shows some input fields for the attributes of the UserVO for a single userId and a table of the associated ProductsExpertiseAreasVOs.
    Thank you,
    - Joe
    Edited by: JoeScheirich on Mar 16, 2010 9:53 AM

    So without an easy way to do a proper deep clone that incorporated the extra logic needed in the child view create method, I made a custom AM method to do the cloning for me through calling create:
        public Key cloneParentVO(Key key) {
            Row[] parentRowArray = getParentVO().findByKey(key,1);
            ParentVORowImpl currentParentVORow = (ParentVORowImpl)parentRowArray[0];
            currentParentVORow.setStatus("ARCHIVE");
            // create a clone of the ParentVORow
            AttributeList attributeList = new AttributeListImpl();
            attributeList.setAttribute("Status", "ACTIVE");
            attributeList.setAttribute("ExpireNumOfDays", currentParentVORow.getExpireNumOfDays());
            ParentVORowImpl cloneParentVORow = (ParentVORowImpl)getParentVO().createAndInitRow(attributeList);
            // insert the new ParentVORow into the ParentVO
            getParentVO().insertRow(cloneParentVORow);
            // create a clone of all associated childVOs
            RowIterator childVORowIterator = currentParentVORow.getChildVO();
            childVORowIterator.reset();
            while(childVORowIterator.hasNext()) {
                childVORowImpl childVORow =
                    (childVORowImpl)childVORowIterator.next();
                AttributeList attributeList2 = new AttributeListImpl();
                attributeList2.setAttribute("ParentUid", cloneParentVORow.getParentUid());
                attributeList2.setAttribute("Discount", childVORow.getDiscount());
                attributeList2.setAttribute("DiscountMethod", childVORow.getDiscountMethod());
                Row newchildVORowImpl =  cloneParentVORow.getchildVO().createAndInitRow(attributeList2);
                cloneParentVORow.getchildVO().insertRow(newchildVORowImpl);
             return cloneParentVORow.getKey();
        }Everything seems to work great and I can get the new parent view by the returned key and iterate through the new children through the view link accessor.
    My problem now is that for reasons beyond my understanding, when I display the new parent and child views on a page, the new parent data displays, but the table that show the child data doesn’t have any rows though I can iterate through the child views just find if I throw in some debug code prior to the PrepareRenderer phase.
        public void prepareRender(LifecycleContext context) {
             MyAMImpl myAMImpl = (MyAMImpl)JSFUtils.getApplicationModuleForDataControl(AppConstants.ADMIN_AM);
             Key key = parentVOIter.getCurrentRow().getKey();
             Key newKey = myAMImpl.cloneCategoryVO(key);
             myAMImpl.getParentVO().findAndSetCurrentRowByKey(newKey, 1);
             super.prepareRender(context);
        }Anyone got any ideas?

  • Sharing information between tiled view and view bean

    I have come across one more problem. I have a search result
    page. This search result page has a static text field and a repeated group
    (I simplified the page description, for explanation purpose). In the NetD
    implementation they are maintaining a page level attribute (say boolean
    haveSenisitiveCustomers) and setting this attribute in the
    afterDataObjectExecute event. (This data object is associated with the
    repeated). In end display event of static text field, they are displaying
    message say " due to Registration type, not all customers meeting the
    criteria are listed") if the haveSensitiveCustomers flag is set.
    After Migration, the boolean flag and static Text Field movedto
    SearchResultViewBean and afterDataObjectExecuteEvent has moved to
    TiledViewBean. Actual processing done is more complicated than this
    explanation. However, it boils down to sharing information between
    tiledViewBean and its parent bean. How do we achieve this in the Migrated
    Application?
    One way is to add getter methods in the child tiled view bean( to
    access in parent view bean, call getRepeated1 and cast to the actual type
    and invoke the get methods)Probably the typical solution (I say typical because I don't yet know) will
    be to do what you suggest: provide methods between views that can be used to
    determine the state needed for processing like this.
    However, let me alert you to something that's different than ND, and which
    may cause you some trouble. In ND, all retrieving DataObjects associated
    with a page executed at one time, and the afterDataObjectExcecuteEvent fired
    before any display processing began. However, in JATO, tiled views are
    independent objects, and any models associated with them only execute when
    the tiled view is first displayed.
    Therefore, if the static test field you refer to appears in the page before
    the tiled view, then the tiled view will not have executed its associated
    model before the static text field is rendered. You will never see the
    static text field display the text you want because you won't have the
    information at display time. (If the text field appears after the repeated,
    then it's not problem, as the display of the tiled view will have executed
    the associate model before the field displays.)
    The solution is to manually reference the tiled view and its associate model
    before they would normally execute. You would execute the model and set the
    tiled view's setAutoRetrieveEnabled() to false to prevent it from executing
    the model a second time. Perhaps the easiest thing to do would be this:
    beforeStaticTextDisplay(...)
    // Force the tiled view to execute the associated model
    Repeated1TiledView tiledView=
    (Repeated1TiledView)getChild("Repeated1");
    tiledView.beginDisplay();
    tiledView.setAutoRetrieveEnabled(false);
    Although the beginDisplay() method will be executed twice in this case (once
    deliberately, above, and later during actual display), there should be no
    overhead. The beginDisplay() method doesn't do anything anyway except
    execute associated auto-retrieving models and fire the
    afterAllModelsExecute() event.
    Mike, do you concur or have any comments?
    This explanation rests on the understanding of a number of other subjects,
    some of which you may not be fully familiar with. Feel free to ask further
    questions about this explanation.
    Todd
    Todd Fast
    Senior Engineer
    Sun/Netscape Alliance
    todd.fast@e...

    I have come across one more problem. I have a search result
    page. This search result page has a static text field and a repeated group
    (I simplified the page description, for explanation purpose). In the NetD
    implementation they are maintaining a page level attribute (say boolean
    haveSenisitiveCustomers) and setting this attribute in the
    afterDataObjectExecute event. (This data object is associated with the
    repeated). In end display event of static text field, they are displaying
    message say " due to Registration type, not all customers meeting the
    criteria are listed") if the haveSensitiveCustomers flag is set.
    After Migration, the boolean flag and static Text Field movedto
    SearchResultViewBean and afterDataObjectExecuteEvent has moved to
    TiledViewBean. Actual processing done is more complicated than this
    explanation. However, it boils down to sharing information between
    tiledViewBean and its parent bean. How do we achieve this in the Migrated
    Application?
    One way is to add getter methods in the child tiled view bean( to
    access in parent view bean, call getRepeated1 and cast to the actual type
    and invoke the get methods)Probably the typical solution (I say typical because I don't yet know) will
    be to do what you suggest: provide methods between views that can be used to
    determine the state needed for processing like this.
    However, let me alert you to something that's different than ND, and which
    may cause you some trouble. In ND, all retrieving DataObjects associated
    with a page executed at one time, and the afterDataObjectExcecuteEvent fired
    before any display processing began. However, in JATO, tiled views are
    independent objects, and any models associated with them only execute when
    the tiled view is first displayed.
    Therefore, if the static test field you refer to appears in the page before
    the tiled view, then the tiled view will not have executed its associated
    model before the static text field is rendered. You will never see the
    static text field display the text you want because you won't have the
    information at display time. (If the text field appears after the repeated,
    then it's not problem, as the display of the tiled view will have executed
    the associate model before the field displays.)
    The solution is to manually reference the tiled view and its associate model
    before they would normally execute. You would execute the model and set the
    tiled view's setAutoRetrieveEnabled() to false to prevent it from executing
    the model a second time. Perhaps the easiest thing to do would be this:
    beforeStaticTextDisplay(...)
    // Force the tiled view to execute the associated model
    Repeated1TiledView tiledView=
    (Repeated1TiledView)getChild("Repeated1");
    tiledView.beginDisplay();
    tiledView.setAutoRetrieveEnabled(false);
    Although the beginDisplay() method will be executed twice in this case (once
    deliberately, above, and later during actual display), there should be no
    overhead. The beginDisplay() method doesn't do anything anyway except
    execute associated auto-retrieving models and fire the
    afterAllModelsExecute() event.
    Mike, do you concur or have any comments?
    This explanation rests on the understanding of a number of other subjects,
    some of which you may not be fully familiar with. Feel free to ask further
    questions about this explanation.
    Todd
    Todd Fast
    Senior Engineer
    Sun/Netscape Alliance
    todd.fast@e...

  • Using a View multiple times in a Window

    Hi,
    In my default  view I've got a tabstrip with 3 tabs. I've created 3 different view containers elements in each tab as I want to embed another view (ie VIEW_1) in these containers. However, I'm getting the following error.
    View VIEW_1 Is Already Displayed in Window W_WINDWOW of Component ZW_COMP.
    How can I solve this?

    Create separate views. You can't repeate the same view (actively) within a window.  Do you have some reuable section that you want to appear in each tab? The perhaps you should palce it in the parent view before the view Containers or use a separate component for the usable section (you can have multiple component usages of the same component within one window).

Maybe you are looking for