Identical view but different managed beans?

Hi everyone,
We have a situation where we have jsf code that is identical for 2 different pages, except that the managed bean(backing bean) is different. We are having to duplicate the jsf code just because of this. It would be much easier to maintain if we could share the jsf code between the two beans(and somehow have it use the backing bean that it needs to use at the right time). Is there a way to do this?
Thanks in advance!
-M

This code is part of a component that allows users to input their address(add page). On another page(settings page), where the user sets defaults for the system, the exact same code is needed for them to set their default address.
When the user goes to the add page, this default address is populated, the user can continue using the default or change it.
Hope this makes sense. Thanks.

Similar Messages

  • How to call different managed bean methods on a page template button

    Dear All,
    Use Case:
    I have a Page Template and inside this page template is a popup screen which is common to all my
    pages. My popup has OK and Cancel button only.
    My question is this, there are lots of pages that uses this template.
    How is it possible to invoke a managed bean methods dialoglistener when say for example the user clicks the OK button?
    One thing common among the pages is that they are included in some kind of a taskflow and I have configured
    a managedbean in a pageflowscope variable in each taskflow and I just wanted to pass the
    My Template
         - TaskFlow 1 (ManagedBean1.dialogListener)
         - TaskFlow 2 (ManagedBean2.dialogListener)
         - TaskFlow 3 (ManagedBean3.dialogListener)
    Each dialog listener does different things.     
    How to do this?
    JDEV 11G PS3
    Thanks

    Found my answer here... http://www.oracle.com/technetwork/developer-tools/adf/learnmore/79-global-template-button-strategy-360139.pdf
    Thanks!

  • Identical code but different in browser

    Using the same code produces slight shifts when moving from page to page.  Any explanation?

    If your web page does not have a linked css stylesheet or an embedded one then just copy the code below and paste it into the pages code directly before the closing </head> tag near the top of the page. Be sure to locate the tag with the leading /
    <style type="text/css">
    html {
    overflow-y: scroll;
    </style>
    This should help with 'page deviation' where  long and short page content are encountered (the long content evokes a scroll bar and moves the page a bit}

  • Shoudn't Managed Bean be part of view state?

    Hello,
    Why does JSF not identify managed bean as part of view state? After all it is beans which provide the data (model) for components in view. Isn't data part of view state?
    There are number of problems with 'request' scoped beans - in fact there are enough reasons to question why JSF allowed 'request' scope in first place.
    1. Choice of request scope saves storage, but requires the developers to save the bean data in session and restore that data everytime when the bean is reconstructed on subsequent POST backs.
    2. Failure to store or restore the bean's previous data results in NullPointerExceptions during APPLY_REQUEST_VALUES phase, when JSF tries to compare old values with new submitted values to broadcast events.
    3. This essentially mean beans are required (with old data) right at the APPLY_REQUEST_VALUES phase, same as the view state.
    4. Any storing of data in session creates overhead of cleaning it without fail. Failure to clean results in too big session storage affecting performance.
    5. Restoring bean state sometimes also means database calls as early as APPLY_REQUEST_VALUES phase - which is not the right phase for such business logic.
    JSF spec should at least provide a way for developers to configure the bean to be saved in view state.

    Hello,
    Why does JSF not identify managed bean as part of
    view state? After all it is beans which provide the
    data (model) for components in view. Isn't data part
    of view state?No. MVC is about seperating M-V-C. Model - View - Controller. View == page, Model == data. Data can be very large in some cases, storing it with a page (per user) is not scalable and is not a good idea in many cases.
    There are number of problems with 'request' scoped
    beans - in fact there are enough reasons to question
    why JSF allowed 'request' scope in first place. Request scope is very useful for certain things. I think a "pageScope" is missing, which is why I added it to JSFTemplating (https://jsftemplating.dev.java.net). Request scope is not appropriate for all cases.
    1. Choice of request scope saves storage, but
    requires the developers to save the bean data in
    session and restore that data everytime when the bean
    is reconstructed on subsequent POST backs.
    2. Failure to store or restore the bean's previous
    data results in NullPointerExceptions during
    APPLY_REQUEST_VALUES phase, when JSF tries to compare
    old values with new submitted values to broadcast
    events.
    3. This essentially mean beans are required (with old
    data) right at the APPLY_REQUEST_VALUES phase, same
    as the view state.Both managed beans and the request scope map itself can make this happen transparently.
    4. Any storing of data in session creates overhead of
    cleaning it without fail. Failure to clean results in
    too big session storage affecting performance.I agree.
    5. Restoring bean state sometimes also means database
    calls as early as APPLY_REQUEST_VALUES phase - which
    is not the right phase for such business logic.Depends on how you write your beans / application.
    JSF spec should at least provide a way for developers
    to configure the bean to be saved in view state.You don't have to use beans let alone use "managed" beans. If you feel your application would be better off storing data w/ the view state... get the UIViewRoot, call setAttribute("key", yourData).
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • ADF Faces: How to get the ADF BindingContainer in a managed bean?

    Hi,
    I not sure how to get the BindingContainer instance from inside of a managed bean method. I have tried the following config, but it does not work in all situations.
      <managed-bean>
        <managed-bean-name>backing_showBooks</managed-bean-name>
        <managed-bean-class>view.backing.ShowBooks</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>bindingContainer</property-name>
          <property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
          <value>#{bindings}</value>
        </managed-property>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1showBooks.jsp-->
      </managed-bean>When an ActionListener- method of my ShowBooks bean is called the property bindingContainer is NULL!!
    Is there a save way to get the BindingContainer in my bean??
    Any hints are welcome.
    Thanks,
    Markus

    Maybe I just need another pair of eyes but when I set this up as explained and watch it in the debugger my method public void setBindingContainer(DCBindingContainer bc) gets called but bc is null. Can anyone help?
    Thanks
    Backing Bean-
    private DCBindingContainer bindingContainer;
    public void setBindingContainer(DCBindingContainer bc) {
    this.bindingContainer = bc;
    public DCBindingContainer getBindings() {
    return bindingContainer;
    //I just threw this method on there in case I was missing something & I also
    //tried using a getBindingContainer method above but that didn;t work.
    public void setBindings(DCBindingContainer bindings) {
    this.bindingContainer = bindings;
    adf-faces.conf entry
    <managed-bean>
    <managed-bean-name>backing_VunerabilityDetail</managed-bean-name>
    <managed-bean-class>viewcontroller.backing.VunerabilityDetail</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindingContainer</property-name>
    <property-class>oracle.adf.model.binding.DCBindingContainer</property-class>
    <value>#{bindings}</value>
    </managed-property>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1VunerabilityDetail.jsp-->
    </managed-bean>

  • How to access backing bean of a xml component , in a managed bean of ADF

    Hi,
    We wrote a xml component in JSF and this component is used in ADF project by including the component as jar .
    In a master detail page , we need to update the value of the xml component, when the master row is changed. How to do this.
    We are trying to do this by accessing the backing bean of the xml component in ADF project's managed bean. So when ever the row changes, we can access the managed bean in ADF and then can set the value of the xml component by accessing it's backing bean
    But i can't access the backing bean instance of the xml component in the ADF managed bean. Could you let me know how to do this. Thanks .

    Thanks for the response Shay. The xml component is added as a custom component , with a separate faces-config.xml file . This component is added to ADF project as a jar with a custom tag.
    In the ADF project , i'm having different managed beans and i can access them from a different managed bean.
    The issue is, i can't access the added custom component's backing bean which is available from a different jar , defined in a separate faces-config.xml file . This backing bean is defined with request scope.

  • Iterator returns no records in managed bean

    Yes, its time to talk about the old SelectManyShuttle again! Well I've tried my hand at revising some blog code for the managed bean this time in order to populate and control the shuttle. But the binding is giving me the blues. Here's the code. It's not copmplete but it's enough to debug and see that the Iterator is CAPUT!
    package nebula.view.backing;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.binding.BindingContainer;
    public class RoleShuttleHelper {
    private BindingContainer bindings;
    private SelectItem[] allRoles = null;
    private List manyShuttleValue;
    private List initialSelectedValue;
    public void RoleShuttleHelper(){
    public SelectItem[] getAllRoles () {
    if (allRoles == null) {
    DCIteratorBinding rolesIt = (DCIteratorBinding) this.getBindings().get("AuthGroupView1Iterator");
    allRoles = new SelectItem[rolesIt.getAllRowsInRange().length];
    manyShuttleValue = new ArrayList();
    for(int i=0; i < rolesIt.getAllRowsInRange().length; i++){
    SelectItem item = new SelectItem();
    item.setLabel(rolesIt.getAllRowsInRange().getAttribute("GroupLongName").toString());
    item.setValue(rolesIt.getAllRowsInRange()[i].getAttribute("GroupId"));
    allRoles[i] = item;
    initialSelectedValue = manyShuttleValue;
    return allRoles;
    public void setBindings(BindingContainer bindings) {
    this.bindings= bindings;
    public BindingContainer getBindings() {
    return bindings;
    It looks like rolesIt.getAllRowsInRange().length is returning an undefined value. The causes the for loop to be skipped over. I assume this means that no rows have been fetched. Can anybody help? I've also added the XML for my managed bean to the adfc-config.xml here is that listing:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <managed-bean>
    <managed-bean-name>backing_AdminPage</managed-bean-name>
    <managed-bean-class>nebula.view.backing.AdminPage</managed-bean-class>
    <managed-bean-scope>backingBean</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1AdminPage.jsp-->
    </managed-bean>
    <managed-bean>
    <managed-bean-name>RoleShuttleHelper</managed-bean-name>
    <managed-bean-class>nebula.view.backing.RoleShuttleHelper</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    </adfc-config>
    Thanks!

    you can try this too..
        public SelectItem[] populateShuttle(String iterName, String tmpValue, String tmpLabel){
            DCIteratorBinding iter= getBindingsForDCB().findIteratorBinding(iterName);
            int startIdx = iter.getRangeSize();
            iter.setRangeSize(-1);
            Row[] rows = iter.getAllRowsInRange();
            SelectItem[] shuttleElements = new SelectItem[rows.length];
            SelectItem item = null;
            if(rows != null && rows.length > 0){
               for(int i=0; i<rows.length; i++){
                   Row r = rows;
    String attribute = r.getAttribute(tmpValue).toString();
    String label = r.getAttribute(tmpLabel).toString();
    item = new SelectItem();
    item.setValue(attribute);
    item.setLabel(label);
    shuttleElements[i] = item;
    iter.setRangeSize(startIdx);
    return shuttleElements;

  • Dynamic managed bean names

    Hi!!
    in my application i make code that must be present in every JSP pages. For that, i put it into a separated JSP page who is included in the other JSP (using <jsp:include> tag).
    My problem is that each JSP who include the repetitive JSP, uses a different managed bean name.
    For example, the page who is included is:
    <f:subview id="navigation">
          <h:inputText value="#{name-of-bean.navigation}" styleClass="inputNav" readonly="true" />
    </f:subview>When this code is included into the pages, each page must use a different "name-of-bean".
    I try with:
    <jsp:include page="navigation.jsp">
         <jsp:param name="beanName" value="AlfaBean" />
    </jsp:include>and in the child JSP:
    <h:inputText value="#{requestScope[param.beanName].navigation}"
    styleClass="inputNav" readonly="true" />but dont work.
    I try with:
    <h:inputText value="#{resources[param.beanName].navigation}"
    styleClass="inputNav" readonly="true" />but dont work.
    Some body can help me??
    PD: Sorry my bad english!!

    JSF creates a managed bean at the time when firstly it evaluates the
    corresponding value binding expression, such as "#{AlfaBean.someProp}".
    Your JSP files include no expression including the name of the bean.
    Although it may be a very tricky code, here is a sample used for you problem:<h:outputText value="" rendered="#{AlfaBean.someProp != null}"/>
    <jsp:include page="navigation.jsp">
         <jsp:param name="beanName" value="AlfaBean" />
    </jsp:include>

  • GetELResolver on managed bean

    I have a trouble using the following code:
                   if(paramId==null || paramId.equals("")){
                        resultadoTesis = (ResultadoTesis)contexto.getELContext().getELResolver().getValue(contexto.getELContext(), "#{resultadoTesis}", null);
                        tesis = resultadoTesis.getTesis();
                        posicion = new Integer (contexto.getExternalContext().getRequestParameterMap().get("index"));
                        paramId = posicion.toString();
                        paramId = tesis.get(posicion).getIus();
                   }resultadoTesis is getting "null" on the call, but the managed bean (resultadoTesis) is setted and used before and after this code part.
    Thanks in advance for any ideas on this problem.
    Carlos de Luna

    the problem i have is that JSF is not refreshing my property, that's the reason i called the ResolverEL, my faces config has:
         <managed-bean>
              <description>
              Tiene los resultados de las Ejecutorias</description>
              <managed-bean-name>
              resultadoEjecutorias</managed-bean-name>
              <managed-bean-class>
              mx.gob.scjn.ius_java.backingBeans.ResultadoEjecutorias</managed-bean-class>
              <managed-bean-scope>
              session</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <description>
              Ejecutoria con los datos necesarios para mostrar el documento de ejecutorias.</description>
              <managed-bean-name>
              ejecutoriasBean</managed-bean-name>
              <managed-bean-class>
              mx.gob.scjn.ius_java.backingBeans.EjecutoriasBean</managed-bean-class>
              <managed-bean-scope>
              session</managed-bean-scope>
              <managed-property>
                   <property-name>
                   listaActual</property-name>
                   <property-class>
                   java.util.List</property-class>
                   <value>
                   #{resultadoEjecutorias.ejecutorias}</value>
              </managed-property>
         </managed-bean>and when i tried to use the listaActual i had the result from the "first" #{resultadoEjecutorias.ejecutorias} even if that value has changed.
    the code where i want to use the lsitaActual is:
              if(this.getIndiceActual()> this.getListaActual().size()){
                  this.setIndiceActual(this.getListaActual().size()-1);
                 }I'm going to try with the Application and i will post the results.
    Greetings

  • Management Bean Error

    Dear All
    I create 2 page
    1- login and login display
    2 - in adfc-config i change scope from BackingBean to session
    i got this error
    javax.el.PropertyNotFoundException: //C:/Users/Waleed/AppData/Roaming/JDeveloper/system11.1.2.1.38.60.81/o.j2ee/drs/Application2/ViewControllerWebApp.war/Loginx.jsf @4,85 binding="#{backingBeanScope.Loginx.d1}": Target Unreachable, 'Loginx' returned null
    my jdeveloper is
    11.1.2.1

    thx very much for your qucik replay
    can you tell me where i can change {Loginx.d1}
    my adfc-config
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="Loginx">
        <page>/Loginx.jsf</page>
      </view>
      <view id="LoginDisplay">
        <page>/LoginDisplay.jsf</page>
      </view>
      <control-flow-rule id="__4">
        <from-activity-id>Loginx</from-activity-id>
        <control-flow-case id="__5">
          <from-outcome>m1</from-outcome>
          <to-activity-id>LoginDisplay</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
      <managed-bean id="__2">
        <managed-bean-name>Loginx</managed-bean-name>
        <managed-bean-class>view.backing.Loginx</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1Loginx.jsf-->
      </managed-bean>
      <managed-bean id="__3">
        <managed-bean-name>LoginDisplay</managed-bean-name>
        <managed-bean-class>view.backing.LoginDisplay</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1LoginDisplay.jsf-->
      </managed-bean>
    </adfc-config>and my loginx.jsf is
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="Loginx.jsf" id="d1" binding="#{backingBeanScope.Loginx.d1}">
            <af:form id="f1" binding="#{backingBeanScope.Loginx.f1}">
                <af:commandButton text="commandButton 1" id="cb1" binding="#{backingBeanScope.Loginx.cb1}" action="m1"/>
            </af:form>
        </af:document>
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:Loginx-->
    </f:view>and mu loginx.java is
    package view.backing;
    import java.util.HashMap;
    import java.util.Map;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import oracle.binding.AttributeContext;
    import oracle.binding.DataControl;
    import oracle.binding.ManagedDataControl;
    import oracle.binding.OperationBinding;
    import oracle.binding.RowContext;
    import oracle.binding.TransactionalDataControl;
    import oracle.binding.UpdateableDataControl;
    public class Loginx implements TransactionalDataControl, UpdateableDataControl, ManagedDataControl {
        private RichForm f1;
        private RichDocument d1;
        private RichCommandButton cb1;
        public void setF1(RichForm f1) {
            this.f1 = f1;
        public RichForm getF1() {
            return f1;
        public void setD1(RichDocument d1) {
            this.d1 = d1;
        public RichDocument getD1() {
            return d1;
        public void setCb1(RichCommandButton cb1) {
            this.cb1 = cb1;
        public RichCommandButton getCb1() {
            return cb1;
        public String getName() {
            return null;
        public void release() {
        public Object getDataProvider() {
            return null;
        public boolean invokeOperation(Map p0, OperationBinding p1) {
            return false;
        public boolean isTransactionDirty() {
            return false;
        public void rollbackTransaction() {
        public void commitTransaction() {
        public boolean setAttributeValue(AttributeContext p0, Object p1) {
            return false;
        public Object createRowData(RowContext p0) {
            return null;
        public Object registerDataProvider(RowContext p0) {
            return null;
        public boolean removeRowData(RowContext p0) {
            return false;
        public void validate() {
        public void beginRequest(HashMap p0) {
        public void endRequest(HashMap p0) {
        public boolean resetState() {
            return false;
    }

  • Setting bind variable for a view object from the Managed Bean

    Hi,
    i am using JDeveloper 11g, i have to create LOV in the JSF. To show the LOV, it has to populate data using View object and its query parameter need to be sent from the Managed Bean.
    For the View object i want to set the bind variable parameter from the managed bean value. bename is stored in a managed bean (session scope)
    #{beantest.bename}
    But it gives the following exception.
    JBO-29000: Unexpected exception caught:
    org.codehaus.groovy.control.MultipleCompilationErrorsException,msg=startup failed, Script1.groovy: 1: expecting '!',found '{'@ line1, column 2.
    I have followed the link http://kr.forums.oracle.com/forums/thread.jspa?threadID=615474 like Frank wrote on 8.2.2008:
    But steps are not clear.
    How to input the VO bind parameter with Managed bean variable?
    Any Help
    Regards
    Raj
    Edited by: user9928180 on Dec 17, 2008 9:51 AM

    Hi,
    a bind variable in a VO needs to be exposed as an executeWithParams operation in the pageDef file. Just add a new action binding to the pageDef file (context menu) and select the executeWithParams operation on teh VO. Then in the argument field, reference the managed bean property for the value
    Frank

  • Howto: Iterate ADF BC from a managed bean from the View?

    Hi Everyone,
    I've been trying to iterate a BC ADF object from a managed bean from the view layer. Here is what I have done so far, but I don't seem to get any records:
    In faces-config.xml, I am passing in the BindingContext to the managed bean. (This is a session scoped bean).
    <managed-property>
          <property-name>bindings</property-name>
          <property-class>oracle.adf.model.BindingContext</property-class>
          <value>#{data}</value>
        </managed-property>In the testPageDef.xml I have the executables and bindings setup:
      <executables>
        <iterator id="TestRO1Iterator" RangeSize="-1" Binds="TestRO1"
                  DataControl="ApplicationControlDataControl"/>
      </executables>
      <bindings>
        <table id="TestRO1" IterBinding="TestRO1Iterator">
          <AttrNames>
            <Item Value="C1"/>
            <Item Value="C2"/>
          </AttrNames>
        </table>
    </bindings>In my managed bean, in addition to the accessors for the bindingContext of bindings, I have:
                 BindingContainer bc = getBindings().findBindingContainer("testPageDef");
                 ControlBinding cb = bc.getControlBinding("TestRO1");
                 RangeBinding rb = (RangeBinding)cb;
                 List testList = rb.getRangeSet();
                 Iterator testIter = testList.iterator();
                 int testCount = testList.size();
                 while (testIter.hasNext()) {
                   Map attrs = (Map)testIter.next();
                   System.out.println(attrs.get("C1")+","+attrs.get("C2"));     
                   //Do some fancy stuff here with the values.
                 }However, my testList.size() always returns 0.
    Is this the right method to programatically access the data from the view layer from a managed bean, or have I missed something completely? Are there any working samples that I could take a look at?
    Jdev: 10.1.3.1
    Thanks!
    Kenton

    Hi,
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    private BindingContainer bindings= null;
    public void setBindings(BindingContainer bc){
    bindings = bc;
    public BindingContainer getBindingContainer(){
    return bindings;
    DCIteratorBinding dciter = (DCIteratorBinding ) bc.get("TestRO1Iterator");
    RowSetIterator rsi = dciter.getRowSetIterator();
    while (rsi.hasNext()){
    Row rw = (Row) rsi.next();
    //Do some fancy stuff here with the values.
    You find several examples in the developer guide and on the Internet
    Frank

  • OBIEE report based on same criteria but different view based on filter

    Hi,
    I am trying to create a report in OBIEE 11.1.1.5 where In the same report using the same criteria, I can have different views which applies different filter.
    Suppose, I have a report criteria as
    Dim1, Dim2, Measure1, Measure 2.
    I want to create two pivot view based on the same data.
    One view will be showing data Dim1="Value1". The other view is duplicate of this view but will show data Dim1="Value2".
    Is it possible in OBIEE?
    basically what I want is work on the same dataset but different representation and show them in the same report. Please share your opinion.
    Regards,
    Tanveer.

    Hi,
    You create a new dim dummy column in criteria and in presentation level create new pivot table view use this dummy dimension column and filter with dim1=value2.
    give updates on this.
    Mark if Helpful/correct.
    Thanks.

  • How to attach simple Spring code as managed bean into amx:listView (list view in adf mobile application)

    I found very simple code to fetch facebook feed here:
    3.&amp;nbsp;Facebook API Binding
    it uses Spring Framework. I already added spring support into jDeveloper.
    code to fetch feed is something like this:
    String accessToken = "f8FX29g..."; // access token received from Facebook after OAuth authorization
    Facebook facebook = new FacebookTemplate(accessToken);
    List<Post> feed = facebook.feedOperations().getFeed();
    I created managed bean for my amx:listView - Facebook.java. And inserted this code. But of course it is not enough. I need somehow to add spring managed bean (not like mine).
    Can you help me with that?

    Thanks for your answer. But its too wasteful for my app to run additional server. My app is very simple so i do not need server side. May be there is another way, without Spring. I mean something simpler then raw JDK 1.4 - some ready-made tool for the needs of these?
    Thanks in advance

  • Is it possible to deploy 2 SCOM 2012 R2 reporting in a SQL server which already has SCOM reporting of a different management group but with 2 different reporting instance.

    Hi Experts,
    I have a typical situation in the LAB environment. Hope some one helps. I have Installed a SCOM 2012 R2 with SQL 2012 SP1 in a single server (Management group 1). I have installed another management group on another server using this SQL server for its database
    so i have everything going fine.
    The first management group has its reporting installed in the SQL server. For the second i created a new named instance for that. But i cannot run the SCOM setup in the SQL server (Also holding the Management group 1 MS) as 1 st reporting is already there.
    When i run the setup it is asking me to repair it. I don't get the install option so i can install the reporting for management group 2 in the named instance.
    Default instance is being used by the 1st management group.
    Can any one figure a possibility for installing 2 SCOM reporting services for different management groups in a same SQL 2012 server please.
    Gautam.75801

    Hi Yan Li,
    Thank you for the reply. So as you are aware If i need to instal reporting, i need to run the SCOM 2012 R2 setup in the SQL server and select reporting and select the
    instance and then mention the management server there right. I am not getting that option there it is asking me to remove or repair the existing installation as there is already a SCOM entire setup including reporting there. As it is a lab there is no problem
    in testing. I have 2 reporting instances. Any suggestions for me on how to overcome this issue and deploy the second reporting in the new named instance ?
    Below is the screenshot of the error what i am talking about when i run SCOM 2012 R2 setup to install reporting in the SQL server
    When i click on add feature reporting is greyed out (As already 1st management groups reporting is installed)
    When i click on remove or repair it
    uninstalls the existing one. But i want both SCOM 2012 r2 reporting to be there(For both Management group). Is it possible ? If yes What is the trick to run the setup ?
    Gautam.75801

Maybe you are looking for