Multiple instances of a view

I need to use multiple instances of a view within a window.  I've been through the tutorial on component usage (with the 2 image views, etc.), but I need to have over 10 instances of the same view each with their own context values, etc., and setting up a component usage for each seems counter-productive.
Is there an easier way of having multiple view instances?
Thanks,
Cindy

Cindy,
In fact, this is "right way" -- encapsulate "view  entry" functionality into one WD component, then create N usages to this component from some other (embedding) component. Btw, it is possible to create and assemble such usages dynamically.
The overhead of such component usages will not exceed (significantly) other startegies (say, dynamically create 10xN grid of controls in one view).
VS

Similar Messages

  • Multiple instances of same view (Sun 1.2 JSF RI question)

    Does the 1.2 RI support distinct backing bean and/or component state for multiple instances of the same view?
    I've seen mention of a "window identifier" in the 1.2 spec and some RI patches (Issue 28 https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=28)
    but the latest RI code no longer contains reference to this functionality. I've attempted to test this case, bringing up the same view in two frames (or two browsers - same session). But the state is still shared between the two views.
    What configuration and/or calls need to be made to support multiple instances of the same view?

    Using request scope would be a workaround.
    I'm looking for view distinct state for the associated component tree for the session (i.e. managed bean state, whether its separate instances of the bean or copies of serialized state I don't care)
    My views require conversational-like state handling that I don't want stored on the client.

  • Multiple Reports in one Viewer instance?

    Hi. I have 2 reports, which I can show in seperate viewer instances. Is there a way I can have both these reports show in one viewer instance?
    Any help appreciated.

    You would need multiple instances of the viewer control. 
    This belongs in another forum (either the legacy (RDC) or the .Net SDK forums, depending on what you use).

  • Multiple instances of Crystal Reports Viewer possible in WPF?

    Hi, I've dragged and dropped three Crystal Reports Viewer controls on my WPF application. The goal is to be able to select up to 3 reports from a listbox and click run to generate the reports simultaneously. When I select just one report, it works fine. However when I select multiple reports it throws errors (object not found, etc). It seems there is a problem with multiple threads. Is it possible to have multiple instances of the Crystal Report Viewer display reports simultaneously? I am using version 13.0.9.1312 from the link below along with VS2013 C# WPF.
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Thanks,
    Syed

    I was able to quickly cobble together a two viewer app that looks like this:
    The code is like this:
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            crReportDocument.Load("C:\tests\formulas.rpt")
            CrystalReportsViewer1.ViewerCore.ReportSource = crReportDocument
            Dim crReportDocument2 As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            crReportDocument2.Load("C:\tests\report1.rpt")
            CrystalReportsViewer2.ViewerCore.ReportSource = crReportDocument2
        End Sub
    For more details see the document WPF Project Using the Crystal Reports WPF Viewer in 8 Easy Steps
    Now a couple of things to keep in mind;
    1) The report engine is based on 3 Concurrent Processor License (CPL) model. Meaning you can process at most three reports at the same time. In my test, doing the above code for four reports worked, but the reports are very, very simple - and with saved data. What a "real" world reports will do, I am not sure. I do know that in a web app, the reports are queued up until one report is done and thus a CPL is freed up. You will also need to keep in mind any database connection limits, etc.
    2) There is also a Print Job limit. This by default is set to 75. In a nutshell, almost anything done with a report is a Print Job. E.g.; paging, zooming, drilling, searching, etc., etc. In addition subreports are considered to be Print Jobs. Thus a report with one subreport in a detail section that returns a thousand rows of data and therefore running 1000 subreports will error out.
    You can read more about Print Job limits here:
    Crystal Reports Maximum Report Processing Jobs ... | SCN
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Multiple instances of the same bean class in session?

    I�m trying to think of a way to have multiple instances of the same bean class in session scope using JSF. For example, let�s say that I have two <h:dataTable>s on the same page. They both use the backing bean called genericBean. Now, the content for genericBean will be different for each <h:dataTable>. In fact, the data source that backs genericBean is not known until runtime. It could be a database, web service, etc.
    What I would like is for when JSF needs access genericBean instead of looking for the value with key �genericBean� in the session map it looks for �genericBean_[some runtime ID]�. I could specify this id in EL on a custom component, as a request parameter or whatever.
    I think that I need the bean to be in session scope because the tables are complex and I want them to be editable.
    I have some ideas about how I can do this but I was wondering if someone has already solved this problem or if there is a standard way to do this using tools like Shale, etc.
    Thanks,
    Randy

    Well, I came up with an interesting solution to this so I thought that I would post it here.
    I have a page that looks like this.
    <html>
    <head>
    <title>My Page</title>
    </head>
    <body>
    <f:view>
    <f:subview id="component1">
    <jsp:include page="component.jsp">
    <jsp:param name="id" value="a" />
    </jsp:include>
    </f:subview>
    <hr>
    <f:subview id="component2">
    <jsp:include page="component.jsp">
    <jsp:param name="id" value="b" />
    </jsp:include>
    </f:subview>
    </f:view>
    </body>
    </html>
    And component.jsp looke like this.
    <f:verbatim>
    <p>
    <h1>Component
    </f:verbatim>
    <h:outputText value=" #{param.id}" />
    <f:verbatim>
    </h1>
    </p>
    </f:verbatim>
    <h:form>
    <h:outputText value="#{component.id}" />
    <h:outputText value="#{component.value}" />
    <h:commandButton value="increment" action="#{component.increment}" />
    <h:commandButton value="decrement" action="#{component.decrement}" />
    <f:verbatim>
    <input type="hidden" name="id"
    value="</f:verbatim><h:outputText value="#{param.id}"/><f:verbatim>" />
    </f:verbatim>
    </h:form>
    The idea is that I want component.jsp to be initialized differently based on the id param. The component managed bean is configured to be in session scope but I want the component instance for id a and id b to be different instances in session scope. Therefore, I added a custom variable resolver to handle this.
    public Object resolveVariable(FacesContext context, String name) {
    // This id will be different for the different subviews.
    HttpServletRequest request = (HttpServletRequest) context.getExternalContext() .getRequest();
    String id = request.getParameter("id");
    // If there is an id in the request then check if this is a bean that can have multiple
    // instances in session scope.
    if ((id != null) && (id.length() > 0)) {
    ExternalContext ec = context.getExternalContext();
    // Build the new name for the key of this bean
    String newName = name + "_" + id;
    Object value = null;
    // See if the bean instance already esists.
    if ((null == (value = ec.getRequestMap().get(newName))) &&
    (null == (value = ec.getSessionMap().get(newName))) &&
    (null == (value = ec.getApplicationMap().get(newName)))) {
         // We could not find the bean instance in scope so create the bean
         // using the standard variable resolver.
    value = original.resolveVariable(context, name);
    // Now check if the bean implements that page component interface. If it is
    // a page component then we want to rename the key to access this bean so
    // that the instance is only used when the id is provided in the request.
    // For example, if there are two components (a and b) we will have in session scope
    // component_a and component_b. The will each point to a unique instance of the
    // Component bean class.
    if (value instanceof PageComponent) {
    // Try to get the value again
    if (null != (value = ec.getRequestMap().get(name))) {
         // Initialize the bean using the id
    ((PageComponent) value).initInstance(id);
    ec.getRequestMap().remove(name);
    ec.getRequestMap().put(newName, value);
    } else if (null != (value = ec.getSessionMap().get(name))) {
    ((PageComponent) value).initInstance(id);
    ec.getSessionMap().remove(name);
    ec.getSessionMap().put(newName, value);
    } else if (null != (value = ec.getApplicationMap().get(name))) {
    ((PageComponent) value).initInstance(id);
    ec.getApplicationMap().remove(name);
    ec.getApplicationMap().put(newName, value);
    return value;
    return original.resolveVariable(context, name);
    }

  • Multiple instances of the same APEX application under SSO

    Currently we have several applications that are authenticated through Oracle SSO. The apps are authenticating correctly, but I can't be in multiple instances of the same application without having to re-validate through SSO when I move between instances.
    Scenario: I'm successfully signed into my "parent" application, app_id 1 through SSO. I click a custom link that opens the "child" application (app_id 2) to view widget "A". When the page is launched I see the usual "Redirecting to the Login Server for authentication" message (verifying that I'm signed in through SSO) and then it succeeds and takes me into app 2, displaying widget A. I click the next link to launch another instance of app 2 with a different APEX session id for viewing widget "B". This also passes through SSO and redirects me into app 2, displaying widget B as expected. But now if I go back to navigate anywhere on widget A in my first instance, it has to go back through the "Redirecting to Login Server." This now means the widget A window is valid, but the widget B window will have to redirect next time I use it (back & forth & so on...)
    So my question I suppose is: Is it possible/good practice to allow a single user to open multiple separate instances of the same APEX application using different APEX session_ids viewing different data under Oracle Enterprise SSO?
    Guesstimation: It seems like there must be a switch somewhere in SSO that says "allow multiple application instances yes/no"...but my problem may be APEX itself, or how SSO is tied into APEX... Sorry for the super-generic example, I'm not exactly sure where I should be looking to resolve this, and the closest similar problem I found on the forums was here: login to application twice in two seperate IE  windows clears other login

    reset your dock preferences. delete the file homedirectory/library/preferences/com.apple.dock.plist and log out/in. your dock, spaces and exposé will be reset to the defaults. see if the problem goes away.

  • [SOLVED] Multiple Instances of Word 2010; Possible to Force Single Instance?

    Is it possible to either:
    Control Word instancing so that its a single instace application; OR
    Adjust the behavior so that if there's already an Word of word, new documents (no matter how they're launched) will open in the existing instance and NOT a new one?
    I have a user who tends to open documents en masse/in bulk, highlighting 2-8 at a time and opening them (alternate-click > open OR once selected hitting [Enter]).
    When they do this, multiple instances of Word are launched.
    Very rarely is there an instance for each document, but its usually close.  For example, if they opened 8 documents there might be 5-7 instances, with several instances showing 2 or more documents in View > Switch Windows.
    Multiple instances of Word are a problem for this user because they because a heavy user of Ctrl+F6 / Ctrl+Shift+F6.
    And when documents are spread out across multiple instances, this does not work: It does not allow them to cycle through all opened documents; It will only cycle through those that are within that particular instance of Word.
    Is this by design?
    Is this a change in the way earlier versions of Word behaved?
    Is this an 'undocumented feature' [or worse]?
    Can this behavior be controlled?

    No idea; I'd call it a bug.
    This behavior started with Word 2007 or 2010, earlier versions opened all documents within a single instance.
    See 1.
    No, unfortunately not.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Run Multiple Instances of Windows Store App

    We have a desktop app which we are considering porting to Windows Store. Our app allows the user to generate orders. If the user wishes to generate several orders simultaneously, they open several instances of our app.
    Is it possible to run multiple instances of a Windows Store app on Windows 10?

    Hi,
    Another thread in MSDN forum already answered this question:
    https://social.msdn.microsoft.com/forums/windowsapps/en-us/19b5bd94-d772-46b0-b5af-a1be475b0e16/multiple-instance-in-metro-app
    The app is still single instance, but it can now open multiple windows by calling
    CoreApplication.CreateNewView. This is demonstrated in the
    Multiple Views Sample
    Roger Lu
    TechNet Community Support

  • How to open multiple instance of Adobe Live Cycle Designer ES 8.2

    Hi,
      How do I open multiple instance of Adobe Live Cycle Designer ES 8.2. I have two forms and I need to compare them. Another situation is I want to correct/copy the contents by keeping the old and new one under the view simultaneously. I also want to take advantage of multiple monitors
    The MDI style windows with Ctl+Tab to switch between documents is not helping me in the context explained above
       adobe Acrobat work on multi instance if I type acrobat.exe /n;
    but if I type "C:\Program Files\Adobe\Acrobat 9.0\Designer 8.2\FormDesigner.exe" /n;, its just opening the existing livecycle instance
    please help

    I don't think you can run two instances.
    But you can stretch the main application window across both monitors and tile the two documents inside the main window.

  • Multiple instances of jobs showing in Data Services Admin Console

    When running jobs, there are multiple instances of the job showing in the admin console and when viewing any of the logs they are not associated with that job. We have had this in the past, and, I believe, it relates to an internal counter in one of the AL_* table which has wrapped to the start and this causes the admin console to see broken/cartesian joins and display multiple instances. However, I now cannot find how to resolve this. Any help would be appreciated.

    what is the version of DS/DI ? what is DS/DI Repositroy Database Type
    did you manually delete data from AL_HISTORY table ?

  • Deploying Windows Azure Cloud Service to multiple instances

    Hello folks,
    Currently, I have Windows Azure Cloud service on one instance, if I move to multiple instances, will Azure deploy it to all instances during the time of deployment? Basically, the fact that there are multiple instances behind the Cloud Service will be transparent
    to the whole deployment process, is that a correct understanding?
    Thanks

    Hi,
    From my experience, all the instances in one cloud service were the same, and we just focus on the application and not the infrastructure. Refer to
    http://www.windowsazure.com/en-us/services/cloud-services/ for more information.
    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.

  • Multiple instances of AcroRd32.exe while using Windows Explorer Preview Pane

    I'm trying to understand why our computers behave differently while browsing PDF files using Windows Explorer with the preview pane turned on.
    All are Windows 7 Pro 32-bit.
    The scenario:  Open Windows Explorer with the preview pane turned on, go to a folder full of PDF files, and start single-clicking on them, one by one down the list.  Keep Task Manager open, on the Processes tab, showing processes from all users, as you click on the PDF files.
    On two of the computers, you can keep clicking right on the down the list, and the preview pane shows the PDF file contents immediately with each click.  The Task Manager does not show any instances of AcroRd32.exe running, and the machine does not slow down no matter how quickly you go down the list of files.  You can keep clicking all day.
    On the other two computers, as you keep clicking down the list, after about six or seven clicks, the machine starts getting slower and slower in responding to display the PDF contents.  In Task Manager, you see multiple instances of AcroRd32.exe executing, and the list keeps growing with more instances - I've seen up to 8, with memory allocations to some of the instances approaching 700MB!  One of the CPU cores goes to 100%. If you stop clicking in Windows Explorer, eventually, the machine recovers, and the list of multiple instances of AcroRd32.exe shrinks, but never goes away completely until you close the Explorer window.
    What could account for this difference?  One of the users is complaining - he often browses folders of scanned PDFs looking for invoices, transactions, etc., and has to go slowly to keep his machine from bogging down.  I don't know when this behavior started.
    It doesn't matter if it is a shared folder on a network resource or one locally on the machine, or if it is an admin or standard Windows account - the behavior is the same.  I've tried uninstalling and reinstalling Adobe Reader, to no avail.
    Thanks for any ideas.

    Yes i'm having this issue to.
    Becomes worse after display many documents in pane, worst even if scanned images are in.
    After killing the  process, sometimes it generate even more process.
    After Killing all the process, sometimes need to deactivate the pane view and activate
    again to restore normal preview.
    Sometimes it takes a lot of time to progress to file below, if i wait, going to files above, it pass
    the file that shows delay, without any problem.
    I add received from Microsoft, in answer to the same issue to uninstall adobe reader and install
    latest version. It become a bit more stable, but problem still shows.
    Abobe reader: 10.1.0, ATI latest drivers 11-07
    Please, Help!

  • Disable parallel slaves from multiple instances in RAC.

    Hi All,
    By default while using parallel execution in RAC slaves are spead accross multiple instances.
    Why can I ensure slaves are allocated to only on that node where query is executed.
    Basically to avoid interconnect trafic.
    Thanks,
    Raja.

    It would cripple RAC, wouldn't it. It would make any query on any gv$ view impossible.
    Even if it was possible, it would make your database unsupported.
    Apart from that, it doesn't make sense too. You want to distribute resources, and to run on the server which is least loaded.
    Sybrand Bakker
    Senior Oracle DBA

  • Multiple instances of a page

    Hello
    I have a multipage form I am creating.  One of the pages spans two pages, and within the page is a table and within the table cells are linked (Data Binding)  See screen shot.
    Sorry it is a little grainy.
    What I am trying to do is be able to create multiple instances of these two pages but the data in Row1 of the table is only the same in that particular instance. So the data inputed in the next instance would be different than the first and so on.
    I hope that makes since, as that is the best I can explain it.
    Thanks
    Gregg

    Thats easy
    DO the following steps
    1. Add a matrix with rowgroup as Yr field and Column group on StoreName
    2. Add a parent row group on City field. delete the columns or grouping retaining group alone(ie choose Delete Columns only option
    3. Add a new tablix  with a single row group on City field
    4. Add a row below under same group in table
    5. Move the matrix inside the new row and you will get desired output
    see screenshots below
    Also attached is a sample report for your reference using your sample data
    https://drive.google.com/file/d/0B4ZDNhljf8tQek1HNldPOFVjNTA/view?usp=sharing
    Just change datasource to point to any of your server and database and execute the rdl
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Multiple instances of same component become non-editable

    I have created a simple component for authors to add links. They enter anchor text, link destination, title attribute, via textfield. They set the target attribute via a dropdown list, xtype=selection. The issue we run into, is that if the author has entered multiple instances of the same component on a page, the dropdowns become non-editable after they are set the first time. They cannot be edited changed until the page edit view/content finder is closed and reopened.
    Scenario:
    1. User drag/drops component
    2. User makes selection from dropdown xtype=selection
    3. User drag/drops same component again to allowed parent
    4. User make selection from dropdown xtype=selection in second instance of component
    5. User can no longer change the selection in either instance of the component without closing and reopening edit view/content finder.
    6. User closes and reopens edit view/content finder.
    7. Again, both instances of the dropdown xtype=selection become non-editable after first selection of an option until the edit view/content finder is closed and reopened.
    When there is only one instance of the component on the page, the drop downs/xtype=select remain editable at all times.
    In addition to this particular scenario, I've had to work around some other issues of multiple instances of a component, where only one instance on a page works at all, the data gets crossed/jumbled between instances of the same component, etc.
    My question is first, how might I solve for the scenario fully called out in this question? Secondly, is there some methodology to making multiple instances of the same component track themselves individually, work together on the same page, play nicely with each other?
    Any assistance is appreciated.

    Using request scope would be a workaround.
    I'm looking for view distinct state for the associated component tree for the session (i.e. managed bean state, whether its separate instances of the bean or copies of serialized state I don't care)
    My views require conversational-like state handling that I don't want stored on the client.

Maybe you are looking for

  • Lion 10.7.4 Console: Could not find image named 'ForwardArrow'.

    I found following message presented in syslog since today evening, however, the system is running fine so far. 12-5-22 下午10:25:44.345 Console: Could not find image named 'BackArrow'. 12-5-22 下午10:25:44.345 Console: Could not find image named 'Forward

  • DGE-550SX on Solaris 10?

    Has anyone tried using the D-Link DGE-550SX PCI-X Fiber 1000BASE-SX Network Adapter (any other fiber gigabit low profile pci-x card) on Solaris 10 X86? Thanks.

  • Adobe Ideas and Photoshop Touch for iOS 7 iPhone 5s

    I've been attempting to open the designs I create on Adobe Ideas onto my Photoshop Touch for editing. Is this possible? If not, then what should I do? I'm a novice to all of this.

  • HOW CAN I GET A DIFFERENT STATE WHEN CREATE THE VM

    All i Always get is  Country United States  (US)  Region Washington (WA) City Redmond ZIP code 98052 What do i do to change the state ...Please help

  • Workcentre Capacity

    Hi Experts, We want to maintain the capacity of work centre can you please answer the following : 1.We have created workcenter such as AUTO at second level & AUTO-WELD,AUTO-FITT on third level in Hierarchy. Could you tell me how I have to maintain th