Using MVC - One model for each set of data, or one model for all?

Hi there,
I'm using MVC for my app, which pulls data from other sites, (news, blogs, video, twitter). Would I have a model for each set of data, or one for all that fires differint events depending on the data?
Thanks in advance!

Attached please find the screenshots and help me out. You can maximize to view em.
Thanks,
Attachments:
Air water2000.vi ‏490 KB

Similar Messages

  • My family shares one apple id. Is there any way to make an apple id for each member of my family and have it all connected to the same credit card and have the same previous downloads open to download by signing in to each members personal apple id?

    My family shares one apple id. Is there any way to make an apple id for each member of my family and have it all connected to the same credit card and have the same previous downloads open to download by signing in to each members personal apple id?

    Hi cindy,
    If you all have individual Apple IDs, then you would be able to dowload music from a shared iTunes library on a computer, but you would not be able to sign on each individual ID on an iOS device in order to download music purchased under the original Apple ID without a 90-day waiting period between sign-ons.
    Here's what I mean:
    If you were to sign on a new Apple ID on, say, an iPhone, and then were to purchase and download some music from iTunes, then you would have to wait 90 days before you could sign on the old Apple ID to that iPhone in order to download previously purchased material (and vice versa).
    However, if all of the music purchased by that origjnal Apple ID is in an iTunes library on a shared computer, then you can hook up the device and selectively sync any music in that library to the device. You can also sign on any of the Apple IDs to that shared iTunes library and purchase music to be added to the library.
    You would need to authorize the computer for each of the new Apple IDs.
    Each of the Apple IDs would also be able to download that music purchased either by syncing to the iTunes library on the computer or by downloading it OTA on the device.
    So, each Apple ID can download music, movies, etc. purchased with that Apple ID OTA to the device. Also each Apple ID can sync any music, movies, etc. that are in the iTunes library on the computer regardless of who purchased them.
    The only other thing you would need to remember is that if an App needed to be updated, then the original Apple ID that was used to purchase that App would come up, and the password that goes with that Apple ID would be required to do the update.
    Hope that helps,
    GB

  • Adding a check box control for each row of data in a DataModel

    Hi all,
    I need to add a checkbox control for each row of data on a DataModel object.
    I have a "commandButton" at the bottom of DataModel, and whenever someone checks some of the rows on that list of rows,
    I need to get the selected dataModel(fragment of the list) in my backing bean.
    How do I achieve this functionality in JSF?
    Thanks,
    Meghasyam.

    Hi all,
    I need to add a checkbox control for each row of data
    on a DataModel object.
    I have a "commandButton" at the bottom of DataModel,
    and whenever someone checks some of the rows on that
    list of rows,
    I need to get the selected dataModel(fragment of the
    list) in my backing bean.
    How do I achieve this functionality in JSF?
    Thanks,
    Meghasyam.You'll want to have a wrapper class as suggested above, which has a "selected" boolean in it. Then use the "binding" attribute of the h:selectBooleanCheckbox component to bind the checkbox to that property... Make the property public and specify the properties exact name in the binding... bindings do not append "get" to the EL.
    Here is an example of what your table might look like... This code would display the list of names with a checkbox to the left of each name... When the check box is selected, the "selected" property of that wrapper class is set to true or false as needed. Then when the form is submitted, and you are inside your actionListener or action method call, you can look through your collection of wrapper classes asking each one if it was selected or not... Then do whatever you want with them... In this example, replace "myBackingBean" with the name of your backing bean, and "names" with the name of the method in your backing bean which returns the collection of wrapper classes... create a flag "public boolean selected" or similar in your wrapper class..
    <h:dataTable id="namestable"
    value="#{myBackingBean.names}"
    var="aName">
    <h:column>
    <h:selectBooleanCheckbox binding="#{aName.selected}"/>
    <h:outputText value="#{aName.nameText}"/>
    </h:column>
    </h:dataTable>
    Let me know if that isn't clear enough and I'll see if I can find a better way to explain it...
    -Garrett

  • I've reached the maximum amount of iCloud accounts, I don't rem my old ones how do I set up a new one?

    I've reached the maximum amount of iCloud accounts, I don't rem my old ones how do I set up a new one?

    Using another apple device. (every device has limit of three accounts)

  • I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assistant i am able to log data from one signal at a time only.

    I am trying to log data from 4 voltage input signal using labview, but when i use DAQ assiatant i am able to log data from one signal at a time only.I am trying to get all 4 input data to logged in a single file againt time. I am new to Labview, I need to sample this data within a couple of days can someone help please.

    Naveen
    Check out the info in the Analog Input section of the document linked below.  (Ignore the part about Global Channels.)  In Figure 5, notice that you can select multiple channels while holding <Ctrl> or <Shift>.
    Developer Zone Tutorial: NI-DAQmx Express VI Tutorial
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • Why can't I set the Date format in English for Malaysia Region for my iPhone and iPad?

    Why can't I set the Date format in English for Malaysia Region for my iPhone and iPad?

    Apple should change the settings to Malaysia -> Malay / English / Chinese / Tamil

  • NorthWinds DB-Can't set READ DATA/READ DESIGN permissions for MSysObjects

    I tried to set READ DATA and READ DESIGN for object MSysObjects as stated in the tutorial for Migrating Northwind Access DB but I get a "You can't change permissions for 'MSysObjects'". The error message says that to change permissions for this object, I must have Administer permission for it. How do I get permissions? Can someone please help.

    Hi Robert,
    Apologies for the delay in responding, but I see you've since found a workaround yourself, which is great.
    As a minimum we recommend that a user applies the read data/read design permissions, but users with "Update Data" have sufficient permissions in order to create a connection to the MS Access MDB file via Oracle SQL Developer. Generally, once you're in the Admins group, there should be no issues setting the required permissions of the MSys~ tables. However, I have known MS Access to be a little temperamental when it comes to allowing for permissions settings on these tables. If necessary, go to the "Change Owner" tab of the "User and Group Permissions" dialog, and set the New Owner of the table in question to Admin.
    Regards,
    Hilary

  • A plea for a readable Java (for each, Set Integer & subclasses )

    I like the new language features a lot, but I don't like the proposed syntax. I thought the great thing about Java was that it got us away from the awful C++ punctuation soup. Here's my proposal for a more readable syntax without adding new keywords to the language:
    for each (Item i in collection) { ... }
    'for' is already a keyword. By separating this, we can part this production as:
    ForStatement: for Identifier ( Type VariableDeclaratorId Identifier Expression ) Statement
    (Using the productions and terminals in the JLS).
    Note that, after the first 'for' is encountered, the parser can look at the next token (right-paren or Identifier) to determine whether this is a 'for each' or an old-style 'for' statement. We don't need to make 'each' or 'in' into an keyword, and they don't conflict with variable, method, or class names. Semantic checking will simply ensure that the Identifiers mentioned have the appropriate contents.
    Next, for the variance syntax:
    Set<Integer & subclasses> Set<Integer & superclasses> Set<*>
    Again, the grammar here is:
    Identifier < Type & Identifier> | Identifier < * >
    The '&' is not otherwise allowed in parameterized types before 'extends', so there is no grammar ambiguity. The Identifier following & in this production is checked to be only 'subclasses' or 'superclasses' (otherwise a syntax error). There is no conflict with class names, because Set<Integer & Foo> is not a legal use for a class named 'Foo'.
    To save typing, perhaps 'subclasses'/'superclasses' can be shortened to 'sub'/'super' without sacrificing readability. I expect invariant types will still be most-heavily used, so I don't think fingers will be hurting all that much.
    Perhaps this Identifier-not-keyword idea can be taken further with some of the other new grammar productions? I await suggestions!
    Comments/Votes?

    Read the papers on variance. In a nutshell, a generic
    type A<X> is not related to the generic type A<Y>,
    regardless of the relationship between X and Y.
    Variance changes that and is a proposed addition in
    the (very) new generics implementation.I find your comment confusing. Maybe I am misunderstanding the OPs intentions with this syntax.
    Right now:
    List<java.util.Date> is a List that only allows instances of java.util.Date. I can still add a java.sql.Date to this list, though, because an instance java.sql.Date is an instance of java.util.Date.
    His proposal:
    List<String & superclasses> Now given the current syntax, I would take this to mean that this defines a List that takes instances of String and an instances of any superclass of String i.e. instances of Object i.e. anything other than primitives.
    I think what you are saying is that if I define a method (for example) like so, method(List<java.util.Date>) that I can't pass an List<java.sql.Date> to it. Understood, though I find that puzzling because that means an method that accepts a List shouldn't accept a List<String>. I didn't see anything in the OPs post that makes me think that is the context which this syntax would be used though it could be. Clarification would be nice.
    In that context, however, List<String & superclasses> would still be quite useless because wouldn't it still evaluate to a method that accepts a List<Object>? What would be the value of rejecting more specifc List types but allow the most generic List type?

  • Create separate NDR for each exchange domains hosted in one exchange server single forest

    Hi techies,
    Our environment is windows 2012 domain with exchange 2013.
    Configured with multiple domains like xyz.com, abc.com etc.,
    Problem description:
    When a user mailbox [email protected] is full, the exchange server delivers the NDR from [email protected]
    Requirement:
    Is it possible to create separate NDR for each domain?
    Management do not want to show the domin name xyz.com for the users belong to abc.com when delivers an NDR messages.
    Appreciate your earliest response.
    Thanks
    Alagar

    Hi Alagar,
    Please check what is your -ExternalPostmasterAddress says:
    Get-TransportConfig | fl *Post*
    You can set it to blank if required.
    Set-TransportConfig -ExternalPostmasterAddress $null
    And if senders are still receiving NDR's after you set *Prohibit send and receive at (GB): unlimited , please give it some time, it might be due to AD replication is yet to complete.
    Regards,
    Satyajit
    Please“Vote As Helpful”
    if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Two sets of Data within one Chart

    Hi All,
    I am creating a report that is strictly all charts.  It's coming along well, but I've hit a roadblock.
    I have a database of 1200 clients, each divided into 40 sales branches.  Each report has graphs that shows the sales performance of each sales branch, and in a few charts, I like to compare certain branch performance data to the overall performance for all 40 branches.  I'm currently using parameters and "F5" so each report is only of the selected sales branch.
    For example:  Bar chart #1 has a breakdown of of our client profile based on gender, for Branch #25.  So I have a chart with two bars, Males=75%, Females=25%.  Great.  Now I want to insert values that applies to all 40 branches to the same chart, to see how Branch #25 compares to the overall client gender profile for all 40 branches.  Ideally, I like to see two bars for males, one for Branch #25, and one for Overall, and likewise, two bars for females.
    How do I do that?
    Thank you very much!!
    Frank

    Thanks Brian!  You are correct, that is a disappointment... 
    Does anyone know of a workaround?  For example, by creating a subreport of the overall, and importing certain numbers into the main report, and using that to chart the values?? 
    In the example I've set up, let's say I created another report that summarizes the client profile based on gender for all 40 branches so I have the percentages, then import those percentages into the main report.  I know you can import summations from another subreport(stored variables), and using those stored variables for calculations in the main report.  Can we do the same for charting?
    Anyone?
    Thank You!!
    Frank

  • Best way to know correct forecast model - process chain set up with multiple forecast models

    Hi Experts,
    I need your help in selecting best forecast model for our company. We have some of the models already used for our company, and because of multiple models used it is taking very long time for process chain to finish. There is no existing documentation available on which model was used why initially. Please help me to make out forecasting process smooth.
    - What is the best way to know, which forecast model is correct and should be used for our forecasting process.
    - In case multiple forecasting models are really required to be used, please suggest ways to optimally schedule them in process chain.
    - At times we get messages like "not enough data available" for specific model - any way to avoid this.
    - How to optimally use parallel processing profiles forecasting process in process chain.
    - Things which should be avoided.
    Request your help, please share your experiences.
    Regards
    NB

    Hi Neelesh,
    There are many points you need to consider to redesign forecast process for your company/client.
    You need to select the best suited forecast model first depending on the business. This has to be well tested & agreed by business users. Complexity will be an outcome of this exercise with business users. Best id to give then a brief intro on all available models & then help them selection the best one as per their requirement.
    Auto selection models are generally more time taking & should be used only when you have no idea at all on the business/demand pattern.
    Run time will depend how you are clubbing the CVCs to get the forecast generated & also parallel processing. For parallel processing profile you will need to do trial & error testing along with help from Basis team on how many free dial up processes are available.
    Even you can run many forecast calculations in parallel if the product/cvcs are totally different. - As per my personal experience maximum run time reduction can be achieved here.
    Daily run is not advisable except only for businesses where you have too much dynamism in demand planning i.e. you expect the demands to be changed overnight. Most of the companies run forecast on monthly basis or at weekly basis at the max.
    "Not Enough data" will be a problem if you are having the irrelevant models used in forecast profiles. This means users are not bothered to maintain the needed data for he forecast calculations or they are not aware at all of the situation. Running such models on daily basis is not advised at all. Better users should use interactive forecasting & saving the results in such cases.
    Just to give a crude example we get forecast calculated on monthly basis for approximately 4 lac cvcs in less than 3 hrs using moving avg, seasonal linear regression, seasonal trend, croston models. We use parallel profiles also everywhere with 10 blocks & 500 cvc/block.
    Hope this helps. Let me know if you have nay more questions & also the results using any of this.
    Regards,
    Rahul

  • Separate Header, Main, Trailer for each group of date

    Hi,
    I have report built-in Oracle Reports10g R2, with Header, Main, Trailer sections, I am running report for different date parameters, for instance date between 29-30 Dec, 11.
    But when i get output of the report it do format as I expect, mean output comes in this way Header(29, 30 Dec), Main(29, 30 Dec), Trailer(29, 30). I made separate repeating frame for all of 3 sections which is based on DATE parameter. I want output to be Header(29 Dec), Main(29 Dec), Trailer(29) and same for 30th Dec.
    Somebody will guide me please what is wrong with my report.
    Thanks and Regards,
    Syed Khawar
    Edited by: S.Khawar on Jan 4, 2012 11:44 AM

    Hi bombocha,
    According to your description, you want to export each group to separate Excel File. As tested in my environment, we can use filter and subscription to achieve your goal. Please refer to the following steps:
    Supposing we have a table grouping on SalesTerritoryGroup field, we can create another dataset Dataset2 using the simple queries "Select distinct SalesTerritoryGroup from ...".
    Add a parameter @SalesTerritoryGroup to the report, then get Available Values from Dataset2 SalesTerritoryGroup field.
    Create a filter on the dataset used to extract report data, set Expression: SalesTerritoryGroup, Operator: =, Value: [@SalesTerritoryGroup].
    Deploy the report to report manager and create a data-driven subscription with Windows File Share delivery extension.
    In step 3 of creating the subscription, specify the query as "Select distinct  SalesTerritoryGroup  from ..." and click on Validate button.
    In step 4, set file name as Get the value from the database: SalesTerritoryGroup, and set Render Format to Excel.
    In step 5, as to the SalesTerritoryGroup parameter values, select SalesTerritoryGroup from Get the value from the database drop down list.
    Create a schedule for the subscription, then click Finish.
    For more information about Data-driven Subscriptions, please refer to the following article:
    Data-driven Subscriptions in SSRS
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • How can I display more than one record with result set meta data?

    Hi,
    My code:
        ArrayList<String> resultList = new ArrayList<String>();
        rs=ps.executeQuery();      
        ResultSetMetaData rsmd = rs.getMetaData();      
        while(rs.next()){      
         for(int k=1;k<=rsmd.getColumnCount();k++){            
            resultList.add(rs.getString(k)); 
        ps.close();       
        }catch(Exception e){                                 
        e.printStackTrace();      
        return resultList;
        public String test(ArrayList result)throws Exception{ 
        String data=         
            "<tr>"+ 
            "<td class=normalFont>"+result.get(0)+"</td>"+ 
            "<td class=normalFont>"+result.get(1)+"</td>"+ 
            "</tr>"; 
        return data; 
        }  All the things are wroking but the problem is that ArrayList is displaying just one record whereas I have more than 20 records to display. I tried with loop like: i<result.size(); and result.get(i) then its throwing exception
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 I stuck here for the last more than 2 days. Please help me
    Best regards

    Raakh wrote:
    Still waiting .....I would have answered much earlier, but when I saw this little bit of impatience, I decided to delay answering for a while.
    ArrayList<String> list = new ArrayList<String>();
    list.add("abc");
    list.add("def");
    list.add("ghi");
    System.out.println(list.get(0));
    abc
    System.out.println(list.get(1));
    def
    System.out.printnln(list);
    [abc, def, ghi]That list has 3 items. Each one is a String.
    But here is what you appear to be doing:
    select * from person
    +-----+-------------+-------------+--------+
    | id  |  first name |  last name  | height |
    +-----+-------------+-------------+--------+
    |   1 | Joe         | Smith       | 180    |
    +-----+-------------+-------------+--------+
    |   2 | Mary        | Jones       | 144    |
    +-----+-------------+-------------+--------+
    for each row in ResultSet {
      for each column in ResultSet {
        list.add(that element);
    // which becomes
    list.add(1);
    list.add("Joe");
    list.add("Smith");
    list.add(180);
    list.add(2);
    list.add("Mary");
    list.add("Jones");
    list.add(144);
    System.out.println(list.get(0));
    1
    System.out.println(list.get(1));
    Joe
    System.out.printlN(list);
    [1, Joe, Smith, 180, 2, Mary, Jones, 144]That list has 8 items. Some of them are Strings and some of them are Integers. I would assume that, for this sample case, you would want a list with 2 items, both of which are Person objects. However, it really isn't clear from your posts what you are trying to do or what difficulty you're having, so I'm just guessing.

  • What's the RFC name for BPS to transfer data from one Plan-Area to another?

    I created a role for BPS planner.This include all authorization except the RFC authorization for transfering data from one plan-area to another.However, even I set the '*' to the RFC name. Am I missing something? Any suggestion is appreciated.
    Best regard,
    Gerald He

    Hi Vlad,
      Thanks for your reply. It's helpful.
      Finally, I found that this error message will be pop-up when the authorization is not right. For example, if you don't have right authorization to access the corrsponding InfoCube which the BPS is based on. Now, I find the root cause and fixed this issue.
    Best regard,
    Gerald

  • Header for each column of data

    I am struggling to get header for each column in attached code. I would like to see this data in excel with header at the top. Also I wonder how to know which column belongs to which plot and which axis.
    Solved!
    Go to Solution.
    Attachments:
    saving for excel.vi ‏130 KB

    I would keep this in the original thread.

Maybe you are looking for