Multiple MVC

Hi guys,
I am developing an BSP application with MVC Pattern.
I am using data binding , where model binds the data between controller and view,which is very effective and efficient.
          I have read in many logs and also in sap help
that it is good approach to follow 1 controller per view
but when using multiple controller for multiple views
where data has to be shared between several views and controllers. when we have multiple controllers,it is possible to have a central instance that can access the application data.
how the data should be shared between the model and views and controllers when they are multiple.
I have read WAS book by SAP press which also doesn't cover handling multiple MVCs..
  Can some one please explain me what is the best approach
and how to handle it.
Thanking you in anticipation.
Thanks & Regards,
Vishwanath Purohit

Hello Vishwanath,
You can handle multiple views with controllers using the attributes of the controllers.( You must define attributes for the controller for communication )
The subcontrollers of your top level controler will be listed in the m_subcontrollers parameter of the top level controller.
You can set or get the attributes of the subcontrollers using the set_attribute  or get_attribute method respectively.
controller = me->get_controller( controller_id = '<id of controller>' ).
controller->set_attribute( name = '<name of attribute>'
                            value = '<value>' ).
or
value = controller->get_attribute( name= '<name of attribute>' ).
Similary you can access the top level controller from the subcontroller using the m_parent parameter of the subcontroller.
data : parent type ref to <class of top level controller>
parent ?= m_parent.
parent->set_attribute( name = '<name of attribute>'
                       value = '<value>' ).
or
value = parent->get_attribute( name= '<name of attribute>' ).
In this way you can communicate with controllers. The controllers in turn communicate with their models.
Hope this helps.
Regards,
Loveline.

Similar Messages

  • Displaying multiple roles related to a single key value in a single view MVC 4

    Dear Team,
             My name is Ajay Sutar. I am newly learning MVC 4, as we are about to initiate a new project in ASP .NET MVC 4. I am using a details scaffolding to display a  single
    record. but now my single employee have multiple roles. As example,
     Emp_no    |    Role                     | Salary 
     E1             | Software Engineer  | 10000
     E1             | Tester                     | 10000 
    as i have used Details scaffold and FirstOrDefault method of linq for this view, I am unable to display the second role "Tester" in the  output. only first role is geeting displayed.
    What i want is :
    Emp_no : E1                 Role: Software Engineer                  Salary:10000
                                                  Tester 

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • MVC: Multiple Gridviews/Webgrids on a single screen

    Hi Gurus, 
    I am new to MVC and trying to learn development here.
    I want to add multiple webgrids on a single web page. for example
    I have a got an entity Order. I need to show three different lists of orders on the dashboard. Open, Submitted & Finalized orders. 
    Also, need to show a list of Order Templates that would come from a separate entity.
    How is that possible? I know how to do it in ASP.Net but could get started with this in MVC Razor.
    Thanks in advance.
    Atif

    Hi,
    You need to post your questions for MVC @ http://forums.asp.net/1146.aspx/1?MVC
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • MVC �Best Practice� (handling multiple views per action/event)

    Looking for the best approach for handling multiple views for one action/event class? Background: I have a small application using a basic MVC model, one controller servlet, multiple event classes, and multiple JSP views. For performance reasons, the controller Servlet is loaded once, and each event class is an instance within it. Each event has an �eventProcess()� and an �eventForward()� method called by the controller, standard stuff.
    However, because event classes should not use instance variables, how should I communicate which view to forward to should based upon eventProcess() logic (e.g. if error, error.jsp, if success, success.sjp)? Currently, there is only one view mapped per event, and I'm having to put error handling logic in the JSP, which goes against the JSP being for just view only.
    My though was 1) A session object/variable that the eventProcess() sets, and the eventForward() reads, or 2) Have eventProcess() return a mapping key and have the conroller lookup a view page based upon that key, as opposed to 1-1 event/view mapping.
    Would like your thoughts!
    Thanks
    bRi

    Your solution seems ok to me, but maybe the Struts framework from Apache
    that implements MVC for JSP is a better solution for you:
    http://jakarta.apache.org/struts/index.html
    You should take a look at it. It has in addition some useful taglibs that makes life much easier.
    We have successfully used it in a project with about 50 pages.

  • BSP MVC with multiple components approaches

    Hello,
    I have developed in BSP with follows MVC. The BSP application had multiple subcontroller and one main controller. I had one model for each controller,
    but the models were "stored" on the level of the main
    controller.
    Is this the right way? Are there are other approaches?
    Regards & Thanks,
    Guido

    Hi,
    Do you mean to say that u have instantiated the subcontroller models in the main controller using the model data and assigning them to the views in ur subcontroller do_request method?If so it will work however a better approach is to instantiate one main model class (make different method in the model class to access the records from database)in the main controller and use it to assign to the view in the do_request method of the subcontroller.
    Hope this helps.
    Reward useful answers.
    Regards,
    Shrita.

  • Retrieve multiple objects with MVC/FrontController for view in JSP.

    I have made a MVC system (front-end only); a link call the url: ?page=createSomething to the FrontController, that is implemented as a Servlet, and then dispatch to createSomething.jsp. That�s all fine, but I need to retrieve 2-3 list to use in dropdowns, and that�s here I give up!
    A simple scenario is to retrieve a single object eg a member: I call the url: ?page=viewmemeber&command=viewMemeber&id=5. The Servlet call a commandHandler witch return a member, use setAttribute(�member�, member); and then dispatch to viewmember.jsp and use JSTL to view the member. That�s all fine, as long I only need to set a single object or a list of objects.
    The problem is now I want to create a member and need to retrieve 2-3 list to use in a dropdown when creating a member.. I can do a ?page=createmember&command=getAllCountries, but that will only allow a dropdown of countries.
    Is the solution to use a command pattern and use: ?page=createmember&command=getAllCountrysAndCitysAnd� ?
    My servlet
    commandhandlerclass = Class.forName("controllers.CommandHandler");
                    commandhandlerobject = commandhandlerclass.newInstance();
                    Object arguments[] = new Object[] { requestContextMap };
                    commandhandlermethod = commandhandlerclass.getMethod(
                        getString(requestContextMap, "command"),
                        new Class[] { requestContextMap.getClass() }
                    commandhandlerreturndata = commandhandlermethod.invoke(commandhandlerobject, arguments);
    request.setAttribute("bean", commandhandlerreturndata);

    Hi Dear,
    I think you want to create a member and in create member page you want two to three combo box.
    If my understanding is right then you can create a wrapper method that get all required data like city,state,countries and return all that data as map or collection. After getting all that required data set it to request or whereever you like and forward request to the JSP page. Then in JSP page you can get all that data from the map (Country data, city data ...).
    If you required help, i am ready for the same...
    Regard
    Patel Vinod

  • MVC model in Web systems and applications

    MVC model in Web systems and applications
    Object-oriented design model is experience, MVC idea is a user interface for the original. This article discusses how the major application areas in the new Web design patterns and the use of MVC framework. The article first introduced the concept of design patterns and characteristics, and MVC architecture design concepts and analysis of the MVC framework contains several key models. Based on the characteristics of Web applications on how to use patterns and MVC framework made some design ideas.??
    1. Introduction
    1.1 design model
    Object-oriented technology and the emergence of software applications has greatly enhanced the trusted and software quality. Object-oriented programming than previous models to various programming simple and efficient, but the object-oriented design methodology than the previous design methods to complex and much more skill, a good design should be both on the issue of gender, but also to take full account of the problems and needs sufficient interoperability. In the past 10 years, people in the object-oriented technology and the practical application of research to explore certain issues in relation to the creation of a number of good solutions, the so-called object-oriented design patterns. Object-oriented technology is one of the purposes of enhancing the software trusted, and to design model, design programmes in important positions from a deeper sense of meaning and essence embodies trusted. There are many people in the design model definition, which cited Christopher Alexander is the largest design model definition : Each design model is a tripartite rule, which expresses a contextual environment (Context), a problem and a solution. Design models generally following basic elements : model name, the purpose solution effect 1995-1998 code and related design models. There are several classifications design patterns can be divided into a model based on the purpose (Creational), structural type (Structural) and the type of behaviour (Behavioral) three. It is mainly used in the creation of a model-based object model-based structure to deal primarily with the category or combination of objects, used to describe behavior-based model is the main target for the category or how stress and how to allocate responsibilities. Design patterns can be divided into categories based on the scope and target mode model type model dealing with the relationship between the categories and sub-categories, these relations through the establishment of succession in Translation moment to be finalized, are static. Model is targeted at addressing the relationship between the moment of change these relations in the operation, more dynamic. Model features : through the experience acquired in a structured format to write down, avoid encountering the same problems on the first design, exist in different abstract level, in continuous improvement, can be trusted artificial product for the design and best practice in the world to be combined to address larger issues.
    1.2 MVC framework
    MVC was first used in a user interface Smalltalk-80 China. M representative models Model, representatives maps View V, C representatives controller Controller. MVC trusted code with the aim of increasing the rate of data reduction expressed, the data describing the operation and application coupled degrees. Also makes software Keweihuxing, restorative, expansionary, flexibility and packaging of greatly enhanced. Single-user applications are usually incident-driven user interface to the organizational structure. Staff development tool with an interface painting of a user interface interface code based on user input and then prepare to implement the corresponding moves, many interactive development environment encouraged to do so, because it emphasizes first and then a functional interface. Some software design model is the strategy that will be fixed before the code into the regular system of the final. Result is that the procedures and organizations around the user interface elements in the user interface elements of those moves, data storage, applications and functions of the code is used to indicate the way intertwined. In single-user system code structure can be so, because the system will not demand frequent changes. But for a large system such as large Web systems, or e-commerce systems to be applied. Model by incorporating data from a variety of access and control data can be separated to improve distributed system design. MVC design pattern is composed of three parts. Model is the application object, no user interface. Type in the screen showing that it represents the flow of data users. Controller user interface definition response to user input, the users responsible for the action against the Model into operation. Model View data updated to reflect the adoption of data changes.
    2. MVC design pattern,
    An MVC framework for the design of the system includes many models, but with MVC is most closely related to the following three models : Observer, Cambridge and Strategy.
    2.1 Observer models
    MVC through the use of purchase / notification form and the separation of the Model View. View to ensure that their content accurately reflected Model and state. Once Model content changes, there must be a mechanism to allow notification to the relevant Model View, View can be made relevant at the appropriate time updating of data. This design is also more general problems can be solved, the target separation, making a change to the target audience affect others, which targets those who do not know the details of the object being affected. This is described as Observer in the design model. Model type : Observer model is the object-oriented model, it is behaviour-based model. Model purposes : definition of hierarchical dependence relations between objects, or when a target value of the state change, all its dependent relationship with the object are notified and automatically updated. There are a variety of data may show a way, in different ways and may also show. When a way through a changed data, then the other should be able to show immediately that the data change and do accordingly.
    Effect :
    1. Abstract coupling. I only know that it has a target audience of some observers, the observers met each abstract Observer category simple interface, does not know their specific affiliation categories. This makes the coupling between goals and observers smallest and abstract.
    2. Support radio communications. Needless to notify designated observers goals, how to deal with the observer informed decisions.
    3. Possible accidents updated. We update logic, avoiding mistakes updated.
    2.2 Faculty model
    MVC is an important feature of View can nest. Nest can be used for any type of combination of local maps available, but also management of type nest. This thinking reflects the type and mix of components will be equal treatment design. This object-oriented design ideas in the area of Cambridge has been described as a design model. Model types : Cambridge model is the object-oriented model, it is also the structure type model. Model purpose : to target portfolio into tree structures to express "part-whole" level structure. Prepared for the use and combination of individual target audiences with the use of consistency.
    Effect :
    1. Definition of a target portfolio includes simple objects and the structure of the category level. Simple objects may be complex combinations of objects, and can be targeted portfolio mix. This customer-code used in the target areas can use simple combinations target.
    2. Simplify customer-code. Needless to know their customers - a mix of target audiences is a simple target or can use these items in a consistent manner.
    3. Easier to add new types of components. New components can easily be changed to a combination of customer-targeted codes.
    2.3 Strategy model
    Another important characteristic is the MVC can not change the View of changes View response to user input. This often requires a change in response to the logic of the system is very important. MVC to respond to the logic involved in the Controller. Controller of a category level structure could easily change to the original Controller appropriate, a new Controller. View Controller son used to achieve a specific example of such a response strategy. To achieve different response strategy, as long as examples of the use of different types of replacement will Controller. Also in the running time by changing the View Controller for users to change View of response strategies. This View-Controller relationship was described as an example of Strategy design pattern. Model types : Strategy model is the object-oriented model, it is behaviour-based model. Model purposes : definition of a series of algorithms, and their packaging, and ensure that they can replace each other, making algorithms can independently use its customer-change.
    Effect :
    1. Strategy category levels for Context definition of the relevant algorithms can be trusted or behaviour.
    2. Alternative methods of succession. If the direct successor Context, with different acts will be added Context act, the realization of which would algorithm mixed up with Context, Context hard to preserve and expand, but can not dynamically changing algorithms. Will be enclosed in a separate Strategy category algorithms to enable algorithm independent Context change easily cut over expansion.
    3. Can provide the same acts different date.
    4. Strategy-must understand what customers between different.
    5. Context and Strategy communications between costs.
    6. An increase in the number of targets.
    3. MVC in Web application system
    Now some of the distributed systems such as Web-based B2B e-commerce system, suitable for use MVC framework. Through analysis from the perspective of high-level applications can be a target divided into three categories. Category is shown for the target audience consists of a group of commercial rules and data, there is a category that is receiving requests to control commercial target to complete the request. These applications often need to change is shown, such as web style, color, but also need to demonstrate the contents of the display. And the business rules and data to be relatively stable. Therefore, said that the frequent need to change the View objects that the business rules and data model to be relatively stable target, and that the control of the Controller is the most stable. When the system is usually issued after the View objects by artists, designers or HTML/JSP system managers to manage. Controller target applications development personnel from the development and implementation of rules for commercial and business development personnel from the target data, database managers and experts in the field of common completed. Show in Web?? or customers - control logic can be Servlet or JSP, dynamically generated Html. Generally used Servlet better than using JSP. JSP will be better with the Html code of separate codes for page designers and developers of separation efficiency. Servlet and JSP can complete all complete functions, actually JSP eventually converted into a Servlet. And control of the target system exists in every level, the coordination of cross-layer moves. Contain business rules and data objects exist in the EJB layer (EJB-centred model) or Web?? (Web-centred model).
    3.1 View in the Web application system
    View of the system shows that it fully exist in Web??. General by JSP, Java Bean and Custom Tag. JSP can generate dynamic web content using Java Custom Tag easier Bean, but it can show the logic of packaging, and more conducive to modular trusted. Some well-designed in a number of JSP Custom Tag can even be used in different system duplication. Model for control of JSP and Java Bean objects. JSP through Java Bean objects to retrieve the data model, the Model and Controller object is responsible for updating the data on Java Bean. In general, can we devise all possible screen that users can see all the elements of the system. Based on these elements, to identify the public part of passive components and dynamics. Can consider the use of templates means to separate the content generated JSP public, also need to change their generation Html or JSP from a JSP templates to dynamically introduce these different parts (include methods). Another issue to consider is screen option, when dealing with End users request template automatically available to show that the concern that users must know what is the screen components. So can consider all screens on the definition of a centralized document, such as a document or text document java. Taking into account the possibility of changes in future document definition screens, the best use of text documents such as a XML document, so future changes to the recompilation. According to the URL and user input parameters to shine upon the results of a screen, of course, likely to be made on the basis of the outcome of the implementation of actions to choose different results screen. Therefore, the need for a request for matching resources with document (XML), if a URL request several different results, it must specify in the document need to control the flow (a controller object), as well as the corresponding screen different flows.
    3.2 Model in the Web application system
    Model objects represent business rules and business data exist in EJB layer and Web??. In J2EE norms, the system needs some data stored in the database, such as user account information (account model), the company's data (company model), some not recorded in the database. If a user browsing the current catalogue (catalog model), the contents of his shopping (shopping cart model). Which one of these models exist in the data according to their life cycle and scope to decide. In Web?? a HttpSession and ServletContext and Java Bean objects to store data in the EJB layer is a data storage and logic EJB to. Web?? the Java Bean objects stored in the model layer model of the EJB object data copy. Because there are many different EJB tier model targets, so Web?? through a ModelManager to control the EJB layer object model in ModelManger background model can be used for packaging methods. In the EJB layer and the rules have all the data into EJB model is inappropriate. If the database can visit the Dao object model into objects. Dao can be encapsulated and the specific details of the database in the world, if we can write a different table, a number of databases, or even multiple databases. If the orders can be a model for OrderDAO, it may have to deal with Order table, table and OrderItemLines OrderStatus table. Value can also consider the use of targets. Value can be a target of securing long-range targets, because every time the remote object attributes could be a long-range redeployment process will consume network resources. EJB objects in the distance can be used instead target. In the distance, one-time items to be targeted instead of the value of all attributes.
    3.3 Controller in Web application system
    Coordination with the Model View Controller object to the request of users into the system to identify incidents. In Web?? generally a MainServlet (or Main.jsp), and receiving all requests, it can use screen flow management devices (ScreenFlowManger) decided next screen. There is a general request processors RequestProcessor contains all requests are needed to be done to deal with logic, such as the request translated into system events (RequestToEvent). Acting processors usually also includes a request for ClientControlWebImpl, it is logical to deal with the EJB layer in Web?? Acting. In EJB layer, a layer for EJB tier Web ClientController provide the CD visit. Another StateMachine used to create and delete ejb handle Web?? sent to the incident. Controller Another important function is synchronous View and Model data. ModelManger contained in a ModelUpdateManger, it puts events into a Model System assembly that all the needs of synchronous Model, and then notify Listeners do synchronous operation.
    4. Concluding remarks
    In recent years, with the Internet technology development and the emergence of new business models, the Web is based on a large number of applications. On how to design these systems architecture, and gradually there has been some convergence of opinion, the most important point is that its structure should be rational in the open. Demand than ever faster development of technology and design concepts, systems for the future, the cost of upgrading the smallest, research software systems architecture still very useful and necessary.

    Bravo. And your point is?

  • Multiple database users, ORM, entity framework, best practices

    Hello everyone!
    You've already helped me several times, however I must ask for an advice once more.
    I was assigned to develop .NET application with Data Access Layer and I've decided to use Oracle Database Software to provide sample data.
    As I'm absolute novice considering creating DAL I'd be grateful if you can examine my plan in terms of security and reliability:
    My database:
    1) I've created database with sample tables and relations between them. All tables belongs to databaseAdmin.
    2) I've created HR and Manager database users and granted them some privileges on certain databaseAdmin's tables. My intention is to reduce access to unnecessary tables. If my application user want to make some changes to Customers table it should be enough to connect to database as HR.
    And now I'd like to map my database using Entity Framework in my application. And that's where I have a problem:
    -If I create Entity Model basing on databaseAdmin tables I get perfect model, however every Entity SQL query would be executed on behalf of databaseAdmin, which breaks my idea of hiding unnecessary tables.
    -If I create Entity Model for HR and Manager users, my models could overlap on tables that both users have access to and no connection between tables would be generated (as from their point of view those tables are just some tables that belong to databaseAdmin)
    Could you help me with this deadlock? Or maybe my assumptions about multiple database users are incorrect? Please, bear in mind I'm a novice.
    I was trying to find a solution in web, and there're tons of data discussing technical aspects of Entity Framework etc., but not so many documents about conceptual model of database.

    hi Michael,
    Thanks for you posting!
    Sorry for I am not totally understanding your issue. Maybe two points need your confirm:
    1. I confuse with the "Service controller"? IS your meaning MVC controller? Or ServiceController(http://www.codeproject.com/Articles/31688/Using-the-ServiceController-in-C-to-stop-and-start
    2.whether  The type of ID in the model is match to the database ? In other words, Is the type of IDin .edmx matched to the database?
    By the way, it seems that this issue is more related to EF. You could post this issue on EF discussion for better support.
    Thanks & Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • POP UP IN BSP MVC-NO java script code

    1.when ever I click on one Button in BSP application(MVC) ,One pop up should trigger with Yes or NO options.
    2.If user selects Yes I need to proceed further.
    I can do it through javascript code in page layout,AS I am doing changes in Standard application I do not want to change page layout .
    But I am looking to trigger pop up from abap code ,because I can enhance the class and implement post exit to event handler methods.
    BSP application name: HRRCF_ACT_PROC.
    View Name: List.do
    Event handler : Ondelete ( ).
    Domain: erecruiting
    I can create a new ZBSP apllication and view as yes or no options
    But how to call that new BSP application as POP UP and sned back data to original application

    1/In your BSP application YES /NO use this function identify computer name ***************************
      data: iRFCHOST type RFCHOST,
           oRFCHOST type RFCHOST.
      CALL FUNCTION 'TH_USER_INFO'
        IMPORTING
          TERMINAL = iRFCHOST.
      CALL FUNCTION 'RFC_IP_TO_HOST'
        EXPORTING
          RFCIP                       = IRFCHOST
        IMPORTING
          RFCHOST                     = ORFCHOST
        EXCEPTIONS
          IP_TO_HOST_CONVERSION_ERROR = 1
          OTHERS                      = 2.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    2/Save computer name and decison Yes/No to custom table *************************************
    3/In you BSP aplication use function identify computer name(terminal name) and look to custom table for decision Yes/No
    Note: It will work if user will not work with multiple seesion

  • Mvc 4 checkbox

    i have a problem with saving multiple checkbox selection in the database

    Checkboxes are the same in MVC 4 as before, you just need to know how to bind them properly.
    Easiest way is to use the HTML helpers:
    @Html.CheckBoxFor(m => m.BooleanField)
    That's pretty much it for a single field.
    Binding a List of Values to Checkboxes in MVC is a little bit trickier.

  • Execution of entity validation multiple times (adf bc 10g)

    Implementing entity method validators sometimes causes the validation (e.g. validateEntity method) to execute multiple times. We have figured out that this case occurs when we call method setAttribute programmatically when we implement business rules on the entity level. For example in many cases that we want to enforce dml operation execution, we override the method prepareForDML so that the framework works as follows:
    •     calls validateEntity, validates entity for the first time
    •     calls prepareForDML –> setAttribute this method invalidates the entity row
    •     calls validateEntity, validates entity for a second time
    I can understand that sometimes multiple entity validation is necessary and important, there are cases though that this behaviour is not necessary and additionally it degrades performance especially when we utilize sql queries inside the validation (as it executes the queries multiple times).
    Is there any workaround to avoid multiple execution of entity validation or enforce the validation to occur only once, for example after the prepareForDML method and not before?
    Edited by: user647567 on 9 Σεπ 2010 6:58 πμ

    Hi there:
    I don't think JDeveloper provides a switch to bypass the Entity Validation. Too much meddling. MVC model has those layers and advocates reducing unnecessary dependencies between layers. Entities and Views are both in Model layer though. But you can build a view without an Entity and vise versa you can have an Entity that doesn't have default views. So my understanding is the Entity Validation is quite necessary.
    Though from View layer, on a jspx page, you can use command buttons and set their "immediate" property to "true" to bypass form validation temporarily and postpone it to form submission time.
    My understanding for Entity validator is they should be light weighted. You properly should avoid SQL queries directly in them. Instead you should use EntityImpl or ViewObjImpl/ViewRowImpl instead of SQL queries directly in validator.
    If you feel my answer helpful to you, please mark it so.
    Thanks,
    Alex
    Edited by: Alexbie on Sep 9, 2010 11:11 AM

  • 11g - is it possible to deploy multiple repositories?

    One of our clients was under the impression that deploying multiple RPDs in 11g would be simpler than it was in 10g, where we needed to deploy multiple copies of the BI Presentation Server and point each one to its own repository.
    A quick RTFM of all of the 11g docs doesn't reveal any mention of truly deploying multiple RPDs within a single BI Server environment. Yes, of course we can still list additional RPDs in the NQSConfig.ini, but actually making them available to users is another issue entirely.
    I know how to do it in 10g: multiple installations of BI Presentation Server. Is there a way to do it in 11g?

    I am faced with a similar requirement although the hosting environment for the provider hosted apps would be an IIS web server in our own infrastructure. 
    Would it be advisable to use a common IIS website to host multiple apps? The MVC web application which will provide functionality
    for the apps is already in place which is why we are checking for options to use the same web project for multiple apps. 
    Can the web config file's clientID be shared by multiple apps?

  • Re: MVC abuse

    It's possible we're talking about two separate things. However, the Model-Controller-View paradigm specifically allows for the maximum amount of flexibility. Model in this case generally means the data model, or the data source.
    For example, let's take a typical eBusiness portal-slash-web site. Normally you have a series of web pages (the HTML output, and the forms) representing the view aspects, some sort of business logic (the Servlets and other class files) representing the controller, and the database itself as the model. Say, a human resources application that determines your available sick days and vacation days.
    If the system was designed according to MVC principles, then you should be able to swap any one of these three components without affecting the other two. Let's say in theory that two years down the road, your boss decides they can't afford to pay the Microsoft Tax, and rather than conducting business through a web browser, he wants to switch to a desktop Java application. You should then be able to code a swing component (view) that calls the existing business logic (controller) and database access (model) code. Similarly, if you decide to change the database from say Sybase to Oracle, then all you need to do is change the database access (model) aspect.
    In your example, the advantage of a MVC architecture would be that all you need to do is change the business logic in order to add new operations. Or alternatively, if you changed the model, the controller and the view should effortlessly recognize the changes in the model without any intervention on your part. Realistically, especially when it comes to web pages, at least two if not all three components probably need to be changed, which is why most people don't bother following the philosophy closely.
    I do stress it's possible we're talking about two different MVCs; we do have different definitions of "model" for example. But in theory, if your application was MVC-compliant, then you should never have any maintenance pains - it's so well designed and modular that changes made to one component don't break the others.

    I hope I have not annoyed everybody yet.
    I would like to try to explain myself one more time as I still have not figured out the answer for myself.
    For the sake of argument lets separate Model component in two layers and call them Logic and Flow.
    Logic consists of pure business logic methods/information and includes cached, SQL statements, calculating the result (in whatever type), etc.
    Flow ties multiple Logic pieces together into one invocation block.
    Lets say form validation is a separate notion. Broken down this way the Model component would look as follows (l: means logic, f: means flow)
    l: process session, load information
    f: if OK invoke registration logic. Get username from 3rd party token, business ID from session manager and password from user form
    l: create account
    f: if not OK return to form JSP, if OK set up purchasing parameters (price, etc.) and proceed to purchasing; to identify payment attributes use payment reference table from MySQL DB, business ID from session management, date of birth, etc.
    l: add purchase record to the database together
    f: if not OK forward to error JSP, otherwise update account tokens
    In the above example, Logic components do not change almost ever. However Flow can depend on systems involved in the particular task and has to be flexible if the directives do not form just one-two complete Model elements.
    So, Logic elements can (and have to) be compiled Java classes deployable as JAR units. Flow elements have to be lights weight scriptable as we do not want to have a separate Action class for every marketing request and we do not want to break the flow into multiple HTTP requests where it is not needed.
    Either because I do not understand these systems yet good enough or for whatever other reason I do not see any reasonably easy way to implement such business logic flexibility in Struts or in JavaServer Faces.
    PS Please forgive a little clumsy example. I did not have time for more sophisticated one but I do have similar real life examples.
    PPS I in no way imply that MVC is a bad concept. I am just trying to figure out whether it applies for a certain class of problems (flexible and restructurable business requiements)

  • Best practice MVC for forms to cfc

    Conceptually I would like to keep my logic for a very big
    site as MVC as possible. As a cf newbie though I am not sure
    whether the strategy suggested by most of the blog/tutorials of
    sending (say)
    index.cfm's Form.UserName to UsernameCheck.cfm which then
    <cfinvoke> Username.cfc
    or if I can/should send Form.UserName directly to
    Username.cfc
    Going direct is more straightforward obviously but then is
    the only place to put <cfif> (aka Controller) logic in the
    index.cfm page (which defeats my intentions anyway)????
    I may be way missing something here, but fwiw I'm getting
    kind of spaghetti with multiple <cfelseif> 's for every
    index.cfm module so am presently leaning toward redirecting (say)
    failed signins to RetrySignIn.cfm rather than back to (essentially)
    a <cfelseif> of index.cfm.
    Thanks in advance for feedback on your experiences, I realize
    this could be done/argued either way but . . .

    quote:
    Originally posted by:
    ProjectedSurplus
    by MVC I mean separating code as much as possible into
    Model (ie database) -- Controller (Business Logic) --- View
    (Presentation Tier)
    or very very roughly:
    SQL in stored procs -- <cfif> statements in cfc's
    (and/or non-display cfm's) --- HTML (using CSS)
    In theory thus the code should be more compartmentalized and
    hence manageable/reusable.
    I guess what I am getting at (as I work through this issue)
    is what are your opinions regarding (say)
    a single index.cfm page with nested <cfif> clauses
    which set out what happens on failed signin attempts but all
    redirect back to the index.cfm
    vs.
    a start index.cfm page which then redirects the user to (say)
    a RetrySignIn.cfm page (ie. precluding the need for a <cfif>
    check)
    My opinion is that simplicity is a very redeeming quality.
    With that in mind, I consider putting all business logic into
    cfc's for no other reason than to separate logic code from
    presentation to be a bad idea because it decreases simplicity and
    adds no value.
    Putting 100% of your queries into StoredProcedures will
    probably increase performance. I don't really know because I've
    never really tested it. Also, since I don't use Stored Procedures
    for a variety of reasons, I don't know the amount of effort
    required to create and maintain them.
    This is all subjective. We all have to determine the best way
    to handle our own situations.

  • Performance test on MVC application

    Hi All,
    By using Visual Studio Performance tool, how can we test ASP.Net MVC application.
    When we open our MVC application basically it is loading very slow
    Can we get the below information by using Visual Studio Performance tool.
    1. How the controller is getting the input and passing it to the model for the retrieving the data.
    2. How can we see the performance of the controller passing the input to the service and getting the information and passing it to the view
    We want to the observe where exactly the delay is happening.
    We also have many java script functions written in the code.
    Please help me in providing the following information.
    Thanks
    Santosh

    Hi Santosh,
    Thanks for your post.
    Generally, I know that the VS Performance tool: load test is used to expect usage of a software program by simulating multiple users who access the program at the same time.
    The load test consist of a series of Web performance tests which operate under multiple simulated users over a period of time.
    For more information:
    https://msdn.microsoft.com/en-us/library/vstudio/dd293540(v=vs.110).aspx
    https://msdn.microsoft.com/en-us/library/dn250793.aspx
    Load tests provide named counter sets, they are useful when you analyze performance counter data. The counter sets include ASP.NET, so when you create a load test with the Load Test Wizard, you add an initial set of counters.
    https://msdn.microsoft.com/en-us/library/ms404676.aspx?f=255&MSPPError=-2147217396
    https://msdn.microsoft.com/en-us/library/ms404704.aspx
    After you run this load test, you can use the load test analyzer to view your load test data and analyze your load test to locate bottlenecks, identify errors, and measure improvements in your application.
    https://msdn.microsoft.com/en-us/library/ee923686.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • EJB Issue with return empty children in join fetch query

    I'm a newbie and still trying to learn all of the facets of EJB 3.0 (and other backend capabilities) however could not find this issue anywhere resolved. I have a recursive table which has a 0,1-n relationship with itself. In this case, I want to que

  • Weird warning message on tomcat 5.0.30

    Hi This message recently started to show up in tomcat's console window: ParserUtils: warning org.xml.sax.SAXParseException: URI was not reported to parser for entity [document] ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope URI

  • Can you listen to AM radio with I pod?

    Can you listen to FM and AM radio on an I pod?

  • File authentication problem in OWSM

    Hi all, I want to create file authentication in owsm for that i created .htpasswd file in that i have given username:password. But when i am running the following command in the command prompt it's giving the problem. Oracle_home\owsm\bin>wsmadmin md

  • 2 plots in 1 problem

    Hello, i have a problem. I need to plot 2 plots on 1 to compare their FFT. I want to have 2 plots with the same styles as u can see at plots named FFT2 and FFT3, but when i compare them at plot FFT one of them have different line style. Can someone t