Creating a private reference of type ArrayList group??

Hi everyone.
I'm trying to creat a private reference of type ArrayList group. Here is the code I have, but I get an "invalid method declaration; return type required" error message. Here is the code I have.
private groupList()
          ArrayList group = new ArrayList();
     public setGroup(ArrayList)
          group list;
Any help would be appreciated.

your group variable must be outside of any methods in your class
public class myClass{
  private ArrayList group;
  public void setGroup(ArrayList a){
    group = a;
}

Similar Messages

  • What is the maximum number of Call Types, Skill Groups and Campaigns created in ICM 8.0.1 and 8.0.3

    Hi All,
    What is the maximum number of Call Types, Skill Groups and Campaigns created in ICM 8.0.1 and 8.0.3?
    In which the above requested information will be available??

    Oh I see. So I guess what you are saying is that is
    Director's way of compressing vector numbers. Also, as to what you
    were saying about the number 3000 is sure not the limit for vector
    units, I think I was just jumping the gun considering that I only
    glanced at the script error, and then clicked on the debug button
    to see where the error happened. Then once I looked at the varibles
    in the varible window, I saw these weird numbers with the e3 at the
    end of them, and I just thought that it could not add the vectors
    together with the e3 at the end of each vector unit. However, to
    make a long story short, I detached the script and reattached it
    which did no create the error again, and I learned that Director
    can add vector units together that have an e3 at the end of each
    vector unit. So thanks for clarifying what the e3 means.

  • Create a JTable based on an ArrayList containing instances of a class.

    I have a class, IncomeBudgetItem, instances of which are contained in an ArrayList. I would like to create a JTable, based on this ArrayList. One variable is a string, while others are type double. Not all variables are to appear in the JTable.
    The internal logic of my program is already working. And my GUI is largely constructed. I'm just not sure how to make them talk to each other. The actually creation of the JTable is my biggest problem right now.

    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.util.ArrayList;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    public class TableDemo extends JPanel {
         private boolean DEBUG = false;
         public TableDemo() {
              super(new GridLayout(1, 0));
              ArrayList<MyObject> list = new ArrayList<MyObject>();
              list.add(new MyObject("Kathy", "Smith", "Snowboarding", new Integer(5),
                        new Boolean(false)));
              list.add(new MyObject("John", "Doe", "Rowing", new Integer(3),
                        new Boolean(true)));
              list.add(new MyObject("Sue", "Black", "Knitting", new Integer(2),
                        new Boolean(false)));
              list.add(new MyObject("Jane", "White", "Speed reading",
                        new Integer(20), new Boolean(true)));
              JTable table = new JTable(new MyTableModel(list));
              table.setPreferredScrollableViewportSize(new Dimension(500, 70));
              table.setFillsViewportHeight(true);
              // Create the scroll pane and add the table to it.
              JScrollPane scrollPane = new JScrollPane(table);
              // Add the scroll pane to this panel.
              add(scrollPane);
         class MyObject {
              String firstName;
              String lastName;
              String sport;
              int years;
              boolean isVeg;
              MyObject(String firstName, String lastName, String sport, int years,
                        boolean isVeg) {
                   this.firstName = firstName;
                   this.lastName = lastName;
                   this.sport = sport;
                   this.years = years;
                   this.isVeg = isVeg;
         class MyTableModel extends AbstractTableModel {
              private String[] columnNames = { "First Name", "Last Name", "Sport",
                        "# of Years", "Vegetarian" };
              ArrayList<MyObject> list = null;
              MyTableModel(ArrayList<MyObject> list) {
                   this.list = list;
              public int getColumnCount() {
                   return columnNames.length;
              public int getRowCount() {
                   return list.size();
              public String getColumnName(int col) {
                   return columnNames[col];
              public Object getValueAt(int row, int col) {
                   MyObject object = list.get(row);
                   switch (col) {
                   case 0:
                        return object.firstName;
                   case 1:
                        return object.lastName;
                   case 2:
                        return object.sport;
                   case 3:
                        return object.years;
                   case 4:
                        return object.isVeg;
                   default:
                        return "unknown";
              public Class getColumnClass(int c) {
                   return getValueAt(0, c).getClass();
          * Create the GUI and show it. For thread safety, this method should be
          * invoked from the event-dispatching thread.
         private static void createAndShowGUI() {
              // Create and set up the window.
              JFrame frame = new JFrame("TableDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              // Create and set up the content pane.
              TableDemo newContentPane = new TableDemo();
              newContentPane.setOpaque(true); // content panes must be opaque
              frame.setContentPane(newContentPane);
              // Display the window.
              frame.pack();
              frame.setVisible(true);
         public static void main(String[] args) {
              // Schedule a job for the event-dispatching thread:
              // creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        createAndShowGUI();
    }

  • Reference document type in J1IS

    What for OTHR and GRPO reference document type is used in Tcode J1IS .Everyone says it is for other movement but what sort of other movement .some give detailed description with example if anyone knows.

    HI pls refer bls explanation ;
    J1IS is used to create Outgoing Excise Invoice for Vendor Return. Also for cancellation of Excise Invoice.
    J1IS u2013 Excise Invoice Other Movements
    Here click on u201CCreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD
    Doc Number - Material document No of 122 mvmt
    Doc Year
    Series Group
    Excise Group
    Vendor
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    Then go to J1IV - Post and Print Outgoing Excise Invoice.

  • Collaboration - Creating rooms and displaying to a specific group

    Hi,
    I am new to enterprise portals. Can anybody guide me in this context?
    I want to create some collaboration rooms which would be specific to groups. Eg. The Students should be able to see rooms specific to their subject. The professionals should be able to view the collaboration specific to subjects that they have selected in their profile. Administrator should be the only user who can create rooms and manage it.
    I see about the roles in the book but i am a bit confused.
    How do i do that?

    Ramachandran Reddy,
    Just goign through the forums found the question unanswered. i have done the process what you have asked for.
    1)      If you want to create Collaboration Rooms and assigning member's to the room created you should have a role assigned to you i.e. eu_role.
    2)      To assign those roles go to User Management and assign to your User or can ask the System Administrator to do it.
    3)      After assigning the role you will see New WorkSet assigned to you in the Portal i.e. Home.
    4)      In the top Navigational area go to Content Administration. Click it
    5)      Go to Collaboration Content. Click it.
    6)      On the left side Detailed Navigational area you will find Room Creation link. Click it.
    7)      That will open a New view on right side panel where you provide the details to create a Collaboration Room like
                 a) Name : Collaboration Room Name
                 b) Description : Give some description about the room you are creating
                 c) Owner: Generally as you are logged in, so the Owner will be you, but if you want to change the user you can also do it.
                d) Categories: Select any one of the categories.
                e) Template: There are Meeting templates, Project Template & Team template, depending upon the requirement you select the required template.
                    You can also create your own template
    Process to Create Room Template: On left side navigational area you will find a link "Room Template Administration". Click it.
                  I. You will see a New Template tab, click it
                  II.      A view is displayed where you need to give the details for the creation of Room template. In the Workset option box choose the option where you want to create the template. Click next.
                 III.      Add the role and give the required page permissions. Click next.
                 IV.      Incase you want to extent the then you can also extent the template. Here you can select the user's who can use the template you have created.
                 f) Choose the Room Type, it can be a Public, Private and Restricted and also in the add the members.
                 g)      When you click the Select button a new window is opened, just enter the user's name and add them to the room created. Click next.
    8)      A New Collaboration room is created and members are added to them.
    9)      Now if you want to send some messages or documents to the member's then go to the Top level Navigational and there you will find Home tab. Click it
    10)  Goto the Work in the navigation panel select the room you have created.
    11)  Choose the member from the memberlist , now depending upon the requirement send email or instant message to the user.
    if you feel the process is useful please reward points.
    regards
    Anil Dichpally

  • Create a private view for Task List in SharePoint 2013

    I have a Task List, How can I Create a Private View that every user can see Only his Tasks, and Sync it to his outlook (sync only his tasks) , no one can see or sync tasks not assigned to him?

    Hi,
    According to your post, my understanding is that you wanted to limit view permission on particular users in SharePoint.
    There is no out of the box way to achieve it in SharePoint.
    CodePlex has a good tool SharePoint 2013 Column & View Permission, it have some features as below, we can use it.
    Features:
    Column Permission
    - Hide or Read Only Columns in a List Forms (New/Edit/Display)
    - Hide Columns in Views
    - Hide Columns in Alert Me Emails
    - Specify the permission for Users, SharePoint Groups or Active Directory Groups
    View Permission
    - Disable Views
    - Automatically Disable Views in Custom WebPart Zones
    - Specify the permission for Users, SharePoint Groups or Active Directory Groups
    More information: https://sp2013columnpermission.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • HOW TO create a temp table or a record group at run time

    i have a a tabular form and i dont want to allow the user entering duplicate
    records while he is in insert mode and the inserted records are new and not exsisting in the database.
    so i want to know how to create a temp table or a record group at run time to hold the inserted valuse and compare if they are exsiting in previous rows or no.
    please help!

    As was stated above, there are better ways to do it. But if you still wish to create a temporary block to hold the inserted records, then you can do this:
    Create a non-database block with items that have the same data types as the database table. When the user creates a new record, insert the record in the non-database block. Then, before the commit, compare the records in the non-database block with those in the database block, one at a time, item by item. If the record is not a duplicate, copy the record to the database block. Commit the records, and delete the records in the non-database block.

  • How to create complaints with reference to ECC Billing document (CRM 7.0)

    Hi experts!
    I use ECC 6.0 and CRM 7.0.
    I have to create CRM complaints (ZCLR - CLRP) with reference to ecc billing documents.
    I read the following topics and help:
    1. How to create complaints with referenceto ECC Billing document
    2. Re: How can we transfer billing documents from SAP ERP to CRM 2007?
    3. http://help.sap.com/saphelp_crm70/helpdata/en/46/029ba32e675c1ae10000000a1553f6/frameset.htm
    Made these settings:
    1. Define the Business object type
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>Define Object types for Transaction reference
    2. Assign Business Object Types to Transaction Types
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>Assign Business Object Types to Transaction Types
    3. Implement a BADI - CRM_COPY_BADI_EXTERN.Check Implementation CRM_COPY_BADI_BILLDO for more information on the coding for referencing the ECC Billing document.
    Goto SPRO>CRM>Transaction>Settings for Complaints>Integration>Trnsaction Referencing>BAdI: Create Complaint with Reference to External Transaction.
    but still do not know,
    1) if I should pre-replicate billing documents into CRM ?
    2) Or, the system uses the RFC to find these documents in ECC to create reference?
    Please help me.
    Best regards Kostya.
    Edited by: Kostya Khveshchenik on Oct 20, 2010 2:09 PM

    not resolved =(
    Edited by: Kostya Khveshchenik on Nov 19, 2010 8:50 AM

  • Automatic PO form goods receipt without reference Movement type 501

    Hi,
    My client receive sample material from the vendor that is without reference to PO, but upon approval of sample the vendor has to make the payment for which i do not have the reference document number.
    To arive at the solution i wanted to generate automatic PO for movement type 501, for which i have checked the movement type settings, 501- automatic PO, i ahve maintained the info record, and during GR for movement type 501 i enter the vendor even than system is not generating any PO in backend, I have centraalised purchase organization assigned to the plant.
    can anyone suggest me if i am missing any settings,
    Suggestions willbe worth appreciating..\
    Thanks
    Sarf

    Hi,
    You need to configure the following steps for creating automatic PO in MIGO transaction.
    1.Activate the auto PO in Material and Vendor Master.
    2. Maintain the Info record.
    3.Assign the Standard Purchase organisation for the plant you want to create auto Po.
       Path: ENTERPRISE STRUCTURE-ASSIGNMENT-MATERIALS MANAGEMENT-ASSIGN STANDARD PURCHASE ORG FOR PLANT.
    4. Activate create PO automatically for movement type (101,501).
    Path: MM-INVENTORY MANAGEMENT AND PHYSICAL INVENTORY-GOODS RECEIPT-CREATE PURCHASE ORDER AUTOMATICALLY - here you can activate for the mvt type you want.
    5.In MIGO screen, goto menu Settings and click default values , you will get a screen where you can check the mvt type 101,501... are maintained in mvt type column. if not you just enter the mvt type which you want. and click adopt tab.
    6. Now you do GR using 501 mvt type and give the material and vendor ..
    It will work.
    Regards,
    abi

  • Creating PO with reference to PR

    Hi experts,
    I am in a strange problem in our present business process
    the user need to create PO with reference to PR
    but with out using use roles
    i have tried with customising settings in IMG -
    MM-- Purchasing---PO--
    define Screen layout at document level in the i have made mandatory fields (PR at item level (ME21) document type (NB) and field selection (NBF) eventhough it is not woking
    please could any body can solve my problem?
    reward point will be give for useful answer
    regards
    raj

    Hai
    The problem is simple
    The path
    Img-> MM-> Purchasing-> Authorization Management
    select Define Function authorization for buyers
    enter new entries like CH & name it Purchase order
    In field selection NBF (Purchase order)
    now select the check box i.e reference to Purchase Requisition
    & save.
    then select
    maintaince users
    parameters
    enter EFB 7 enter Ch (i.e entry entered) & save
    if this is useful to you transfer this message to others who are facing the same problem.
    Sharing Knowledge is most important
    Regards & thanks
    Kalwa Pandarinath

  • How do I create a Dynamic java.sql.Date ArrayList or Collection?

    I Have a MySQL table with a Datetime field with many values inserted.
    I want to know which is the Best way to capture all the Inserted DB values inside a Dynamic Array.
    I get errors that state that I should use Matching data-types, and plus I don't know how to create or fill a Dynamic Date ArrayList/Collection.
    Please Help, I need this urgently...

    package pruebadedates;
    import java.sql.*;
    * @author J?s?
    public class ClaseDeDates {
        /** Creates a new instance of ClaseDeDates */
         * @param args the command line arguments
        public static void main(String[] args) {
            java.sql.Date aDate[] = null;       
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://localhost/pruebafechas", "root", "picardias");
                    if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT dates FROM datestable");
                    rs = stmt.getResultSet();
                        while (rs.next())
                        aDate[] = rs.getDate("dates");
            catch(Exception e)
               System.out.println(e);
            //System.out.println(aDate);     
    }Hi, There is my code and the errors that I get are:
    found : java.sql.Date
    required: java.sql.Date[]
    aDate = rs.getDate("dates");
    Actually I have No idea as How to get a Result set into an ArrayList or Collection. Please tell me how to do this Dynamically. I have like 25 records in that Database table, but they will grow, so I would really appreciate to know the code to do this. I suspect my problem is in the bolded part of my code.
    Thank you very much Sir.

  • Create a JMS reference to a IBM MQ Resource Adapter

    Hi There,
    We have deployed the IBM MQ RA (version 7.0.0.0-k000-L080529) on our CE 7.1 SP 4 system. We are trying to create a JMS reference to utilise the RA to put a message on an IBM MQ Queue.
    We are trying to get to the RA using the following code snippet but can not get the relevant JMS / JNDI references with the activation config created:
    String lookupName = "java:QCF1"; //or something similair
    ConnectionFactory cf = (ConnectionFactory) context.lookup(lookupName);
    We have tried the XML below but the references it creates comes up in error status.
    <?xml version="1.0" encoding="UTF-8"?>
    <jms-resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jms-resources.xsd">
          <connection-factory>
          <name>QCF1</name>
          <context-factory-type>
             <initial-context-properties>
                <initial-context-factory>com.sap.engine.services.jndi.InitialContextFactoryImpl
                <!--The implementation class of initial context factory of the third-party JMS Provider.
                    For SAP this is com.sap.engine.services.jndi.InitialContextFactoryImpl-->
                </initial-context-factory>
                <provider-url>localhost</provider-url>
                <security-principal>user</security-principal>
                <security-credentials>password</security-credentials>
             </initial-context-properties>
             <link-factory-name>deployedAdapters/QueueConnectionFactory/nonGlobalTx/QueueConnectionFactory</link-factory-name>
             <user-name>jms-user-name</user-name>
             <password>jms-password</password>
             <library-name>IBMMQ</library-name>
          </context-factory-type>
       </connection-factory>
       <destination>
          <name>TargetQueue</name>
          <type>javax.jms.Queue</type>
          <external-destination-type>
             <link-connection-factory>QCF1
             <!-- This name has to be the same as the name of the connection factory -->
             </link-connection-factory>
          </external-destination-type>
       </destination>

    Hi There,
    We have deployed the IBM MQ RA (version 7.0.0.0-k000-L080529) on our CE 7.1 SP 4 system. We are trying to create a JMS reference to utilise the RA to put a message on an IBM MQ Queue.
    We are trying to get to the RA using the following code snippet but can not get the relevant JMS / JNDI references with the activation config created:
    String lookupName = "java:QCF1"; //or something similair
    ConnectionFactory cf = (ConnectionFactory) context.lookup(lookupName);
    We have tried the XML below but the references it creates comes up in error status.
    <?xml version="1.0" encoding="UTF-8"?>
    <jms-resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jms-resources.xsd">
          <connection-factory>
          <name>QCF1</name>
          <context-factory-type>
             <initial-context-properties>
                <initial-context-factory>com.sap.engine.services.jndi.InitialContextFactoryImpl
                <!--The implementation class of initial context factory of the third-party JMS Provider.
                    For SAP this is com.sap.engine.services.jndi.InitialContextFactoryImpl-->
                </initial-context-factory>
                <provider-url>localhost</provider-url>
                <security-principal>user</security-principal>
                <security-credentials>password</security-credentials>
             </initial-context-properties>
             <link-factory-name>deployedAdapters/QueueConnectionFactory/nonGlobalTx/QueueConnectionFactory</link-factory-name>
             <user-name>jms-user-name</user-name>
             <password>jms-password</password>
             <library-name>IBMMQ</library-name>
          </context-factory-type>
       </connection-factory>
       <destination>
          <name>TargetQueue</name>
          <type>javax.jms.Queue</type>
          <external-destination-type>
             <link-connection-factory>QCF1
             <!-- This name has to be the same as the name of the connection factory -->
             </link-connection-factory>
          </external-destination-type>
       </destination>

  • Sync error with Workspace "Data in this list references content type "", which is no longer in the list schema"

    Dear,
    I saved a document library containing folders and files as a template to use it as a template when I created a document library.  It contains a lot of folders and files.
    When I tried the document library to sync with workspace it gives an error "Data in this list references content type "", which is no longer in the list schema"
    I checked with this error and I found out that it has issue with onenote file, but my library does not contain any onenote file. 
    I wonder if there is any issue regarding the number of folders to sync at a time because when I tried to sync with document library similar to the big library but lesser folders and files. 
    Thanks

    This is caused by certain OneNote files.  I've filed a support ticket on this.  See my
    post on possible workarounds.  You might view the entire library in windows explorer or flatten the folder structure in a view to confirm that there are not any OneNote related files.
    Corey Roth blog: www.dotnetmafia.com twitter:
    @coreyroth

  • How to create Vector with reference to Collection

    hello experts,
    can someone let me know how to create vector with reference to Collection interface.
    Collection is an interface. and we cant create an instance of it. i'm not clear of what to pass in that constructor.
    Vector v = new Vector (Collection c);
    what are the possible objects of 'c'
    post some example code please.
    thanks

    Ever heard of reading the javadocs?
    "Collection is an interface. and we cant create an instance of it." - you don't understand interfaces, then.
    // I certainly can create a Collection - here's one
    Collection c = new ArrayList();
    // Now I'll add some Strings to my Collection.
    c.add("foo");
    c.add("bar");
    c.add("baz");
    // Now I'll make a Vector out of it.
    Vector v = new Vector(c);%

  • SO IDOC inbound create SO with reference to INV or SO #

    Hi all,
    I have a situation where I will get the inbound SO IDOC, through IDOC_INPUT_ORDERS and create a sales order with reference to a invoice number or another sales order (eg: consignment pick up and consignment fill up).
    Except modifying the standard formed BDC in the FM, by adding additional screen code into the BDC, is there any other way to do so?
    (eg: assign value into certain field in IDOC? Using another IDOC FM?)
    Please advice.
    Thanks.
    Best Regards,
    JL

    Hi ,
    At a high level, the IDOC processing executes in the following manner:
    1.     Interpret IDOC header segments and captures organizational, customer master and purchase
                    order header details. Performs user exits for each segment to process customizations to data
                    processing.
    2.     Interprets item level segments and captures item level details like material information. Again, it
                   performs user exits for each segment.
    3.     Sums up the order data and determines the posting criterion viz. creating order with reference
                  etc.
    4.     Builds up batch data communication sequence (BDC) with respect to the required screen
                    sequence of posting a sales order.
    5.     While building up the BDC data, system performs user exit to process customizations to BDC
                      data.
    6.     Calls transactions VA01 using the BDC data.
    7.     If the processing fails, an appropriate workitem is generated for workflow processing.
    User Exit - ZXVEDU03
    This user exit will be performed after each segment read in the IDOC processing function module. Exit is called during the perform interpret_idoc_orders in the idoc processing function module. The exit is executed before the BDC data building process and it is here where the invoice  number would be retrieved into a variable from segment E1EDK02.
    IF SEGMENT-SEGNAM = 'E1EDK02'.
        IF SEGMENT-SDATA(3) = 'Z43'.
           Save the  you Number XXXXXXXXXX into a temporary variable.
        Endif.
    Endif.
    User Exit - ZXVEDU04
    In the function module IDOC_INPUT_ORDERS, form call_va01_new_orders is performed wherein BDC data is built up for every screen required to post a sales order. User Exit ZXVEDU04 is performed at various stages during the built up of BDC data. It is here in this user exit that a coding needs to be performed to insert BDC data for assigning sales order to the invoice
    The BDC data for assign to invoice  should be added soon after the BDC data for purchase order type is generated. The following BDC data logic should be coded in the user exit to facilitate assign to invoice
    if you give me brief i can help you out more.
    if helpful REWARD points
    Thank you .
    Regards
    Ramana

Maybe you are looking for

  • Intel iMac late 2006 20" - screen good then bad/crazy

    I received this iMac with a 'suggested' dead hard drive - that was correct - so I replaced it with a 2nd hand HD pre-formatted with OS 10.6.8. At first the display showed a normal Snow Leopard intro screen. After about 1 minute the screen goes, as so

  • View file stored in Database in client machine

    Hi, I am using oralce forms Release 10.2.0.1.0 . In my application , files (.xls,.pdf,doc,gif etc) will be stored in Database table as BLOB. I have to add the provison to view the file in client browser. I tried using the webutil function to transfer

  • 2 1/2 hour backups

    Anybody else having 2 1/2 hour backups - and longer? I'm syncing 7 songs over to my iphone right now, and it's 10am, and I started at 8:03 - and it's still backing up. I'm tired of there 2 - 3 hour backups. And what's the point of backing up? I mean

  • ReDelivery

              I have 10 machines executing a stand alone java application listening for messages           on a queue(asynchronously) defined on WLS 7 sp1.           These apps receive the message and process them. They use transacted sessions.          

  • DB2 + ODBC Heterogeneous Services, get API4006

    Hi, I am trying to pull meta data from DB2 using Oracle Heterogeneous Services. I am able to create db link and it works in SQLPLUS. But when I try to use this link in OWB, it gives error: API4006 and API2421, cannot determine version information for