FORCAST MODEL IN FORCASTING VIEW

Dear All,
        I want to get material list in mara when forcast model available.
(Forcast model in Forcasting view mm02)
my problem is how to mapped the field, material number and forcast model.
if you already mapped please send the information or send me the steps
how to find mapping like dat.
Thanks in advanced

markf12 wrote:
This is probably a simple question but I can't seem to figure this out or find out about it in the help.sometines when I'm working on a page element the margnins and padding are shown in the design view window. most often they are not visable. How can I choose to show the margin and paddign of elements in the Design view? I have the View>visua laids>box model selected. It only shows up seemingly randomly.
I suspect there is a keyboard combination or something I need to invoke so I can have control over shwoing the margin and padding when I want to see it.
thanks for any help.
Should show up if you click the border of a container. Then if you want to see that actual measurements hover over the border again.

Similar Messages

  • Forcasting view

    hi ,
        when we need to maintain the forcasting views?
    if need what field we must have to maintain (mandatory field) ?
    In this  FORCASTING view there is option forcast value , consumption value,excute forcast . what is this.?? is it master data.
    plz explain

    h iuhuihi

  • Microsoft BI Semantic Model for Power View is missing in data source

    Microsoft BI Semantic Model for Power View is missing in data source type drop down when cretaing a rsds data source for powerview in sharepoint 2013

    Hi Sanjay,
    I resolved the issue.Follow the steps
    1)Go to Central Admin->System Settings->Manage Farm Solutions (Under Farm Management)
    2)Check if "powerpivotwebapplicationsolution.wsp" is there and is deployed for the webapplication under which you are creating report by verifying
    Deployed to:,if not then deploy that for your web application.
    Please Mark it as answer if this reply helps you in resolving the issue,It will help other users facing similar problem

  • Why is useful to separate the model from the view in Swing?

    As I have read a few times, swing implements the model-view-controller pattern and I think I understand why to separate the controller from the model and view but not why to separate the model from the view, why is this useful?
    Thanks

    J_MARTINEZ wrote:
    Ok, got it but how can I control the view because for I�ve read in swing you just modify the model in the components. For example, if I have a JProgressBar and I use the method setValue(int) to fill the bar, I am modifying the proeperty value in the model but I dont have control for the view.I'm not sure I know what you mean here. If you change the model, the view will automatically update itself and display the changed value. You should have a look at some of Swing's source code such as AbstractButton and DefaultButtonModel. There you'll see that the view adds (I think, it's been a bit since I looked myself) a ChangeListener to the Model that the model uses to notify the view of any changes.

  • CM14 BI Publisher - modifying an existing Data Model, the Graphic View in Query Builder does not display

    I am trying to edit the default forms/reports that come with CM14, trying to edit the data model, data set, (to get to the old Infomaker style graphic view) , the Query model does not display (error the list of tables is too long..) Oracle tell me the limit is 60,  there are not 60 tables referenced in any CM report.
    Does this Query builder view work at all on any report?
    (bigger question, we are moving from CM12, should we move to CM13 which works with infomaker?)
    Thanks,
    Paul L

    Kurt, thanks for your replies.
    A couple of notes/clarifications.
    1.     You are correct that BI works better in Firefox--I have observed issues with the BI display when using IE.  I would recommend using Firefox too.
    2.     You are correct about the way to get to the Query Builder to see a graphical view of data tables.  There are basically two issues with this that I mentioned, but will re-iterate:
    a.  If you have an EXISTING query in the data set, then click the "Query Builder" button, this will remove the existing query that's there, it will NOT display the existing query in the query builder.  Query Builder works only to create a NEW query from scratch.
    b.  Query builder is limited to selecting 60 fields max in your query.  If you are creating a large report with many tables, you may find that 60 fields is not enough.  For that you will have to work in the SQL edit screen rather than using the query builder.
    I would impress on anyone developing CM14 reports that they become familiar with the database schema and relationships to avoid problems when developing your BI reports.  You should be able to find the tables and joins documentation in the knowledgebase.

  • Cannot connect to specific Cube through BI Semantic Model for Power View in SharePoint 2013

    I'm trying to create a connection to an Analysis Services Cube through a BI Semantic Model connection in SharePoint 2013 to create a Power View report. I'm able to connect to other cubes on the same server, and I have SQL Server 2012 SP1 Update 9 installed
    so it's not a versioning issue.
    I've captured a log of two different connection attempts to show this in action. I can't post links, but just send me a message if you need it, just in case there's any interest in it. The first is a successful connection to an alternate cube
    on the same server, and the second is an unsuccessful attempt that produces and error with "Internal error: An unexpected exception occurred.".
    On the SharePoint side, the error is reported as:
    Internal error: An unexpected exception occurred. ---> Microsoft.ReportingServices.DataExtensions.AdomdTestConnectionException: Internal error: An unexpected exception
    occurred.
    This cube was working the previous day, but it has since been edited and it no longer works now but there's no clear reason why. It can still be queried directly through SSMS with MDX queries, and produces no errors.
    Any help is much appreciated,
    Ryan

    Hi Ryan Myers,
    According to your description, when you tried to connect to an Analysis Services Cube in SharePoint 2013 through BI Semantic Model, you get the error message: Internal error: An unexpected exception occurred. But the MDX queries works fine in SSMS.
    It's hard to give you the exact reason that cause this issue based on the limited information, please validate if the connection string is correct. Besides, we can troubleshoot this issue by using the Windows Event logs and msmdsrv.log.
    We can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log)
    Reference:
    Data collection for troubleshooting Analysis Services issues
    Data Connection For a Power View Report
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Problem with Data Model and Analysis View

    I create an analyze in BI Publisher and then i create a data model using this object.
    When i try to generate an XML with a number of rows the BI Publisher return an empty XML (Only with de DATA_DS tags but no data).   To bypass this problem i make and XML file by hand and this allow me to create reports and design it but when i try to view the reports i got the message that says "No Data Found".
    So i was check the analysis and all looks appears to be fine,  In the results tab it show me a complete table with the data i was looking to use.
    So i try to repeat the error and when  i try to create the XML for the Data Model i found this two error in the logs:
    [root@server ~]# [2013-07-17T16:37:22.844-04:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 2361] [userId: <anonymous>] [ecid: ad7bb40a72b553c0:-3e5f91c5:13ecd037992:-8000-00000000000e2b34,0] [APP: bipublisher#11.1.1] Incomplete xslt._XDONFSEPARATORS: decimal separator: null, grouping separator: null
    [2013-07-17T16:37:26.828-04:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 2361] [userId: <anonymous>] [ecid: ad7bb40a72b553c0:-3e5f91c5:13ecd037992:-8000-00000000000e2b3a,0] [APP: bipublisher#11.1.1] Incomplete xslt._XDONFSEPARATORS: decimal separator: null, grouping separator: null
    [2013-07-17T16:37:26.865-04:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 2361] [userId: <anonymous>] [ecid: ad7bb40a72b553c0:-3e5f91c5:13ecd037992:-8000-00000000000e2b3a,0] [APP: bipublisher#11.1.1] oracle.xdo.servlet.CreateException: Path: /FOLDER/MODEL.xdm is not pointing to a report. Actual type: ReportItem, sub-type: DataModel[[
            at oracle.xdo.servlet.ReportException.fillInStackTrace(ReportException.java:124)
            at java.lang.Throwable.<init>(Throwable.java:196)
            at java.lang.Exception.<init>(Exception.java:41)
            at oracle.xdo.servlet.ReportException.<init>(ReportException.java:36)
            at oracle.xdo.servlet.CreateException.<init>(CreateException.java:18)
            at oracle.xdo.servlet.ReportRepository.getReport(ReportRepository.java:104)
            at oracle.xdo.servlet.ReportRepository.getReport(ReportRepository.java:128)
            at oracle.xdo.servlet.dataengine.DataProcessorFactory.getDataModelPath(DataProcessorFactory.java:207)
            at oracle.xdo.servlet.dataengine.DataProcessorFactory.isSemanticLayerDataModel(DataProcessorFactory.java:99)
            at oracle.xdo.servlet.dataengine.DataProcessorFactory.isSemanticLayerDataModel(DataProcessorFactory.java:78)
            at oracle.xdo.servlet.ReportModelContextImpl.getReportXMLData(ReportModelContextImpl.java:157)
            at oracle.xdo.servlet.CoreProcessor.process(CoreProcessor.java:346)
            at oracle.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:101)
            at oracle.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:1074)
            at oracle.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:639)
            at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:492)
            at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:462)
            at oracle.xdo.servlet.XDOServlet.doGet(XDOServlet.java:280)
            at oracle.xdo.servlet.XDOServlet.doPost(XDOServlet.java:313)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.xdo.servlet.metadata.track.MostRecentFilter.doFilter(MostRecentFilter.java:64)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:125)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.xdo.servlet.init.InitCheckingFilter.doFilter(InitCheckingFilter.java:63)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    And when i try to view the report that use the analysis i got this two warning in the logs:
    [2013-07-17T16:58:01.615-04:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 57] [userId: <anonymous>] [ecid: ad7bb40a72b553c0:-3e5f91c5:13ecd037992:-8000-00000000000e2d7c,0] [APP: bipublisher#11.1.1] Incomplete xslt._XDONFSEPARATORS: decimal separator: null, grouping separator: null
    [2013-07-17T16:58:02.034-04:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 57] [userId: <anonymous>] [ecid: ad7bb40a72b553c0:-3e5f91c5:13ecd037992:-8000-00000000000e2d84,0] [APP: bipublisher#11.1.1] Incomplete xslt._XDONFSEPARATORS: decimal separator: null, grouping separator: null
    As i understand there is has a reference to a null value but i cant find what column of the analysis has the problem.
    Any ideas about how to solve or debug this?
    Thanks

    I follow your instructions and it works fine. I can create the XML and the reports can show data.
    So, i already know that there is no problem with the data and with the BI Publisher installation but i still doesn know what is the problem with the analysis view that fails.
    Any idea how to debug it?
    Thanks.

  • See the box model in Design View

    This is probably a simple question but I can't seem to figure this out or find out about it in the help.sometines when I'm working on a page element the margnins and padding are shown in the design view window. most often they are not visable. How can I choose to show the margin and paddign of elements in the Design view? I have the View>visua laids>box model selected. It only shows up seemingly randomly.
    I suspect there is a keyboard combination or something I need to invoke so I can have control over shwoing the margin and padding when I want to see it.
    thanks for any help.

    markf12 wrote:
    This is probably a simple question but I can't seem to figure this out or find out about it in the help.sometines when I'm working on a page element the margnins and padding are shown in the design view window. most often they are not visable. How can I choose to show the margin and paddign of elements in the Design view? I have the View>visua laids>box model selected. It only shows up seemingly randomly.
    I suspect there is a keyboard combination or something I need to invoke so I can have control over shwoing the margin and padding when I want to see it.
    thanks for any help.
    Should show up if you click the border of a container. Then if you want to see that actual measurements hover over the border again.

  • Changing Model Vs. Changing View

    Hello,
    What is the preferred way to do things? Chaning the model or changing the view? For example, use myJTable.setValueAt( object, row, column ) or myModel.setValueAt( object, row, column )....Pros and cons of each.
    AC

    What is the preferred way to do things? Chaning the
    model or changing the view? For example, use
    myJTable.setValueAt( object, row, column ) or
    myModel.setValueAt( object, row, column )....Pros and
    cons of each.Actually, when you go through the JTable to update a value in its model, the table is acting as controller not view (if you don't believe this, think about how JTable allows in-cell editing).
    If you're truly structuring your program in an MVC manner, then by all means you change the model directly -- the idea of MVC is that the model exists independently of its controllers or views (plural intended).

  • Problem in Modeling in webdynpro view composition?

    hi
    I have made the project TutWD_ViewComposition_init given in help library but getting null pointer exception
    at:
    public java.lang.String getImageSourceCa(IPrivateImageView.IContextElement element)
        //@@begin getImageSourceCalc(IPrivateImageView.IContextElement)
        if (wdContext.currentContextElement().getComponentUsageName().equals("LeftImageCompInst")) {
          return "leftperson.jpg";
        } else {
          return "rightperson.jpg";
        //@@end
    If anybody has made this project and rectified this problem plz give reply.
    regards
    Nidhideep

    hi
    Armin and sunil ,i knw that component usage is null,i can solve this problem by context mapping,but problem is see the code:
    public java.lang.String getTrayTitleCalc(IPrivateImageView.IContextElement element)
        //@@begin getTrayTitleCalc(IPrivateImageView.IContextElement)
           String groupName =
              "Instance of Web Dynpro Component 'ImageComp' named '"
                + wdContext.currentContextElement().getComponentUsageName()
                + "'";
           return groupName;
        //@@end
      //@@begin javadoc:getImageSourceCalc(IPrivateImageView.IContextElement)
    Declared getter method for attribute ImageSourceCalc of node Context
    @param element the element requested for the value
    @return the calculated value for attribute ImageSourceCalc
      //@@end
      public java.lang.String getImageSourceCalc(IPrivateImageView.IContextElement element)
        //@@begin getImageSourceCalc(IPrivateImageView.IContextElement)
        if (wdContext.currentContextElement().getComponentUsageName().equals("LeftImageCompInst")) {
          return "leftperson.jpg";
        } else {
          return "rightperson.jpg";
    Hw come my method getTraytitle gets the componentUsage while getImageSourceCalc donot ?
    I think it is some conceptual problem rather than coding mistake .Plz do give ur views.
    Regards
    Nidhideep

  • Refactoring: change applicaon modele of a view objects.

    We develop an ADF BC - ADF RC application J Dev 11.1.1.1
    We want to reorganize our applciaton module and view objects.
    But we developed our pages too.
    is it possible ? Is tyehre anyone do it before ?
    Thanks...

    Try right clicking on ADF BC components and look into the refactor option - it should be better in 11g.

  • Model-View-Presenter - help

    Hi,
    I recently read about Model-View-Presenter on Martin Fowler's website, and elsewhere. I think I understand the idea...
    The view just displays the GUI components..events fired from the View are delegated to a Presenter. The presenter then deals with the model and updates the View accordingly. Sound about right?
    Ok, so I learn best by example..and I haven't found any code samples yet, so I thought I'd give it a shot. Below is my code...
    Model
    * the model to be displayed in a View
    public class Album {
         private boolean isClassical;
         private String composer;
         public String getComposer() {
              return composer;
         public void setComposer(String composer) {
              this.composer = composer;
         public boolean isClassical() {
              return isClassical;
         public void setClassical(boolean isClassical) {
              this.isClassical = isClassical;
    View - interface
    import java.awt.event.ActionListener;
    * An interface which defines the methods needed by a presenter
    public interface View {
         public boolean isClassical();
         public void setClassical(boolean b);
         public boolean isComposerEnabled();
         public void setComposerEnabled(boolean b);
         public void addClassicalChangeListener(ActionListener al);
         public void showView();
    View - implementation
    import java.awt.Dimension;
    import java.awt.event.ActionListener;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    * A an implementation of the View interface.  It shows a checkbox
    * and a textfield.
    public class MyView extends JFrame implements View {
         private JCheckBox checkboxClassical;
         private JTextField textfieldComposer;
         private MyPresenter mp;
         public MyView() {
              checkboxClassical = new JCheckBox("Classical");
              textfieldComposer = new JTextField();
              textfieldComposer.setPreferredSize(new Dimension(100, 20));
              textfieldComposer.setEnabled(false);
              JPanel p = new JPanel();
              p.add(checkboxClassical);
              p.add(textfieldComposer);
              add(p);
              setSize(600, 400);
         public void addClassicalChangeListener(ActionListener al) {
              checkboxClassical.addActionListener(al);
         public void setPresenter(MyPresenter mp) {
              this.mp = mp;
         public void setClassical(boolean b) {
              checkboxClassical.setSelected(b);
         public boolean isClassical() {
              return checkboxClassical.isSelected();
         public void setComposerEnabled(boolean b) {
              textfieldComposer.setEnabled(b);
         public boolean isComposerEnabled() {
              return textfieldComposer.isEnabled();
         public void showView() {
              setVisible(true);
    Presenter
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    * A presenter for a View.  When the "classical" fires
    * an ActionEvent, the "composer" component is enabled or disabled.
    public class MyPresenter {
         private Album album;
         private View view;
         public MyPresenter(Album album, View viewVal) {
              this.album = album;
              this.view = viewVal;
              view.addClassicalChangeListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        view.setClassical(view.isClassical());
                        view.setComposerEnabled(view.isClassical());
              view.showView();
    }and here is a simple Main to tie it togehter.
    * Ties together the M-V-P
    public class Main {
         public static void main(String[] args) {
              Album al = new Album();
              al.setClassical(false);
              MyView myView = new MyView();
              MyPresenter mp = new MyPresenter(al, myView);
              myView.setPresenter(mp);
    }Ok, the idea is this. The GUI shows a checkbox and a textfield. basically, if the checkbox is selected the textfield is enabled and can be typed into. If the checkbox is not selected, the textfield is disabled. From the model point of view, if isClassical is false, then no composer can be defined.
    So, is my code following the pattern? Does anyone have any simple code to contribute as an example? For some reason is just seems weird to me that I would have an interface define a bunch of methods that the Presenter can call. And I have to create the Model and View which get passed to the presenter, and then I have to set the presenter on the view....it just seems weird to me.
    Any comments, suggestions, examples??
    Thanks for your time and contributions.

    The other information didnt answer my questions. The response was mixing the idea of MVC instead of MVP, and then the response discussed what they thought was wrong with MVP and why they use a different model. I am looking for help on understanding the pattern more, also for someoen (who knows about MVP) to look at my sample code and help me understand what I did right/wrong.
    Thanks.

  • Model-View-Controller implementation help

    Hello, all. I'm updating an old, clunky, slow-as-molasses application to a slightly more responsive and expandable app with the help of the MVC pattern. However, I'm having a little trouble figuring out the best way to implement MVC in a Java app. Specifically, I'm not sure of the best way to get the model and two views talking to each other.
    My model comes in the form of a couple manager classes that provide access to all the business data for the application. This is a relatively simple client-server app where the server can request that certain data be added or deleted, and the model responds accordingly. Similarly, scheduled tasks that run every 2 minutes can cause certain data to expire or become scheduled for display.
    The model provides addXXXChangeListener methods. When a model change occurs that listeners need to know about, the model calls a notifyListeners method, and all registered listeners are notified of the change. View classes that are interested in hearing about model changes register themselves as listeners with the model and implement methods in the XXXChangeListener interface. In this way, the interaction between the model and view is almost exactly like existing interactions between event sources and listeners in Swing/AWT.
    Right now, there isn't a lot of decoupling between the model and view, since the View obviously needs a reference to the model to add itself as a listener. The controller for the app sets all that up. Is this a viable way of implementing MVC in a Java app? Any suggestions or advice would be greatly appreciated.

    Right now, there isn't a lot of decoupling between
    the model and view, since the View obviously needs a
    reference to the model to add itself as a listener.
    The controller for the app sets all that up. Is
    s this a viable way of implementing MVC in a Java
    app? Any suggestions or advice would be greatly
    appreciated.In classic MVC, the code that registers the listeners, captures the events and updates the model should be in the controller. The advantage being that you could theoretically change the view to use a different model. In reality, the view is generally (but not always) pretty specific to the model (while pieces of the model may not be) so there is little gained by doing this. The other advantage is that this can be a little cleaner and allow the controller to be 'smarter'.
    If you are simply worried about coupling the vew to a specfic implementation of the model, create interfaces for the Model classes and let the Controller supply the View with references to the implmentations.

  • Is it proper for an application module has 300 views in the data model?

    Based on my understanding, all view object instances are initialized at the same time as the application module.
    It follows that when an application module is associated with a user session, the queries of each view object in the data model are executed.
    ie. if the data model has 325 view object instances, 325 queries will be executed.
    This doesn't seem efficient:
    1. As each user session only need to access a subset of the view objects (for examples 35 views), the rest of view objects need not be instantiated for that session.
    2. Performance may be slow on executing all 325 queries at one time, even worse when some queries are complex queries.
    Am I correct on this?
    In this case, will it be better to instantiate the view objects using the view object definition at runtime instead of adding all of them to the application module at design time?

    No, that's not the default behaviour.
    Assuming you're talking JDev 11, the AM on it's General tab as a Tuning option where you can set the loading of the VOs to Lazy or Non-Lazy, Lazy is the default. In turn each VO on their General tab also has a Tuning option of similar nature.
    Online documentation says:
    Lazy LoadingSelect to choose lazy loading. In this case, the application module instance is created without any of its components. Your view object and nested application module instances will not load until the first time they are used. For example, when lazy loading is enabled, a view object is instantiated only when the application accesses it. This will make start-up time faster.
    Non-lazy Loading
    Select to choose non-lazy loading. Your view object and nested application module instances will load when the application starts up. For example, suppose the application module you are editing defines three view objects and two nested application modules (which appear in the Application Module Instance section of the Data Model page over the application module overview editor). When lazy loading is disabled, the application module instance is created together with all three view objects and both nested application modules.>
    So in essence as you describe for each session, if we're using the Lazy setting, even though you have 325 VOs within an AM, if the user within the session only visits 35 queries, only 35 queries should fire.
    Does this help?
    CM.

  • Model View Control

    Hi.. i need some help when designing the view part of my application. My main problem is that sometimes i do not know how to separate the control code from the one needed in the view part.For example, if I have some componentes(implementes mouse motion listener) that can be moved., that code where should it goes?

    My 2 Shekels' worth (for what it's worth):
    1) Perhaps a component should not implement a Listener.
    2) Rather the component could be part of the View
    3) And the Listener could be part of the Control.
    4) The Model holds the position of the movable component.
    5) The MouseListeners of the Control tell the Model when a move occurs.
    6) The Model notifies the View that a change has occurred (Observer Pattern)
    7) The View queries the Model's state and changes itself accordingly.

Maybe you are looking for