Data Collection Program...

I have to code a program that will collect data from 4 textboxes and from a option box array of 5 choices. (0-5 w/ 0 being setState to true so to have no boxes checked upon startup). Then the program has to have two buttons one to clear data and one to submit the data. When the data is submitted it has to check for empty fields or not selected checkboxes. Then it will send it to a data file. The interface must be a windowed interface, not an applet so I suppose a panel would be accurate, with a dropdown menu with a submit and clear command. I have a beginning understanding of java (I'm a little slow at programming), but this is pretty far over my head. Any snippets of code or template type code would be awesome. You don't have to do it for me, but a structure without the filling would be nice. Anyways, thanks for all your help!
Arvida

Well I am not sure what you want to use.Do you want to use a jcheckbox or a
JCoboBox also when you say a windows interface I take it you mean a graphical user interface(gui)?? Well anyways here is the frame work For a JComboBox .
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.ArrayList;
public class junk extends JFrame implements ItemListener,ActionListener {
  JButton button1 = new JButton("submit"); 
  JButton button2 = new JButton("clear");
  ArrayList getit = new ArrayList();
  JComboBox box = new JComboBox(//String array);
  JTextField lab = new JTextField(20);
  String answer;
  int stat;
  public junk() {
    super();
    setSize(int,int);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container pane = getContentPane();
    pane.setLayout(//need a layoutmanger);
    box.// need to add a listener;
    lab.setText(data[0]);
    pane.add(box);
    pane.add(lab);
    button1.//need to add a listener;
    button2.//need to add a listener;
    pane.add(button1);
    pane.add(button2);
    setVisible(true); 
public void itemStateChanged(ItemEvent ieve) {//work needs to be done}
public void actionPerformed(ActionEvent eve) {/work needs to be done}
  public static void main(String[] args) {
    junk test = new junk();
} well here is a skeleton of what I have come up with all ya have to do is put it together.

Similar Messages

  • ASCP Data Collection Fails

    Dear Members :
    For sake of learning, ATP in R12.1.1 Vision instance, I created a simple ATP rule with Demand as Sales Order and Supply as PO, On-hand Available.
    I followed all the steps as below:
    1) After creating ATP rule and attaching it to the order mgmt tab in item master, enabled ATP at the org level.
    2) created sourcing rule for that item and assigned it to an assignment set(Supplier Scheduling).
    3) This assignment set appears by default to MRP:ATP assignment set profile option
    4) Set INV : Capable to Promise to ATP/CTP based on collected data, at responsibility level
    5) Include organizations to instance TST(default)
    6) Run ATP Data collection Program.
    RCS is errored out with User-Defined Exception (Source Setup Objects Creation Requests did not complete Successfully) along with Collection Triggers/Views errored out with
    Error with creating Source Triggers/Views
    Is it my setup problem or patch I need to apply, if you could please guide ?
    Thanks in advance.
    Atanu

    Following are in log for them:
    **Starts**03-JAN-2011 20:00:52
    **Ends**03-JAN-2011 20:12:22
    Error in creating Source Triggers
    Start of log messages from FND_FILE
    03-JAN 20:00:52 : Request : 5807365 :Creates Item Triggers used by Collections Process
    03-JAN 20:00:52 : Request : 5807366 :Creates BOM Triggers used by Collections Process
    03-JAN 20:00:52 : Request : 5807367 :Creates Routing Triggers used by Collections Process
    03-JAN 20:00:52 : Request : 5807368 :Creates WIP Triggers used by Collections Process
    03-JAN 20:00:52 : Request : 5807369 :Creates Demand Triggers used by Collections Process
    03-JAN 20:00:52 : Request : 5807370 :Creates Supply Triggers used by Collections Process
    03-JAN 20:00:52 : Request : 5807371 :Creates Other Triggers used by Collections Process
    03-JAN 20:00:52 : Request : 5807372 :Creates Repair Order Triggers used by Collections Process
    End of log messages from FND_FILE
    ***********************************AND that of Source Views details :**************************************************************
    **Starts**03-JAN-2011 20:00:47
    **Ends**03-JAN-2011 20:12:18
    Error in creating Source Views
    Start of log messages from FND_FILE
    03-JAN 20:00:47 : Request : 5807356 :Creates Setup Views used by Collections Process
    03-JAN 20:00:47 : Request : 5807357 :Creates Item Views used by Collections Process
    03-JAN 20:00:47 : Request : 5807358 :Creates BOM Views used by Collections Process
    03-JAN 20:00:47 : Request : 5807359 :Creates Routing Views used by Collections Process
    03-JAN 20:00:47 : Request : 5807360 :Creates WIP Views used by Collections Process
    03-JAN 20:00:47 : Request : 5807361 :Creates Demand Views used by Collections Process
    03-JAN 20:00:48 : Request : 5807362 :Creates Supply Views used by Collections Process
    03-JAN 20:00:48 : Request : 5807363 :Creates Other Views used by Collections Process
    03-JAN 20:00:48 : Request : 5807364 :Creates Repair Order Views used by Collections Process
    End of log messages from FND_FILE
    Executing request completion options...
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 03-JAN-2011 20:12:18
    ======================================================================
    Thanks
    Atanu

  • ATP Item without Run Data Collection?

    Hi,
    Can we use ATP functionality (Not GOP) by defining ATP Rules in the system and attach it to the Inv. Org without running Data Collection Program?
    I am new to ATP Functionality and planning to setup it in R12. All Gurus are requested to help me on this.

    Please review Note: 420476.1 - Schedule Sales Orders Errors With The Requested Item Or One Of Its Components Is Not Collected
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=420476.1

  • How to do filter data after Data Collection for Oracle PS

    Hi Experts,
    I have a critical issue on the "Data Volume" after data collection program.
    If I give this big chunk of data as a input to PS, then integration program is not taking this High volume of data into PS.
    Hence now I have a critical task to reduce number of Data.
    In this front, first I need to delete some items which are not required for PS in the base table(In MSC_SYSTEM_ITEMS) after collection program, but I do not know the dependent entities which also has to be taken care in MSC side after collection, If I delete the itrems from MSC_SYSTEM_ITEMS..
    Hence I require help on this data filter issue.
    Appreciating anyone's help in advance...
    Thanks & Regards,
    Bharathram N

    Hello,
    Have you looked at the request Purge ODS Data of Collections? Using this you can delete all the collected data for a specific instance id.
    Once that is done you can run a complete refresh for all entities for all enabled organizations. This will ensure that old data pertaining to disabled orgs is removed.
    Additionally in 11.5.10 (collections rup 32 and later) there is a feature implemented which does not pull data from disabled organizations into the source snapshots. This in itself does not make a difference for the ODS data, but does give better performance in the refresh snapshots.
    One thing to take into account if your purge the ODS data that in the event when you still have ascp plans that are based on this data, then you may end up with no data being displayed in the workbench (because the lid tables have been purged). Here you would have to rerun the plans.
    best regards
    Geert

  • Should the LabVIEW program be reduced to the speed of data collection?

    I'm using a LabVIEW program created by Ocean Optics for a
    Spectrophotometer probe with is run through the USB port. The problem
    occurs when we attempt to collect data over a time frame of one
    second. For some reason the whole LabVIEW program will begin to
    operate at the speed of data collection when we try to run the VI with
    an integration time of +500 ms. If anyone would be able to offer any
    kind of explanation or theory it would be greatly appreciated. Thanks
    for any and all help.
    Daniel

    Dear Daniel,
    since LV has no support for USB this must be done through a DLL or Active-X control. A call to a DLL or Active-X method is a synchronous node in LV, that means LV will go on executing when the call completes.
    My theory of your problem is that the program makes such a call and it would take that time to collect the data in the DLL or Active-X control. If you have only one loop in the program and do not use dynamic loaded VIs through the VI server than the program seems to hang on each of this calls.
    I hope this helps
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Data Collection

    Hi Experts,
    I am facing issue in Data collection Error in Decentralized environment.
    Earlier Data collection (Standard collection) was working normal but recently I am facing the below issue.
    If I launch Standard collection, it is getting Error out. Log file message (in Data pull Program) is Staging Tables' data is not collected. Please submit the request Planning ODS Load.
    For resolving the above, I tried the below two methods.
    1. 1st launch Planning data collection - purging staging tables then Launching Standard collection, but it is also fails with error in the program "APS Collections Miscellaneous Task". Error message : FDPSTP failed due to ORA-06512: at "APPS.MSC_UTIL", line 1192.
    2. launch Planning data collection - purging staging table, Data pull (manual launch) then Planning ODS load (manual launch). Same error message
    But, I am getting negative result.
    Hence, what is the missing setup. Is this need any profile option. or How to solve this.
    Appreciating your earlier answer.
    Regards,
    Ramesh

    Hi
    Package is Valid (I used the said query "select object_name, object_type, status from all_objects where object_name = 'MSC_UTIL'")
    Data collection issue is not resolving. Below are my tryings
    Try 1:
    1. I launched "Planning Data Collection - Purge Staging Tables" with validation = No (Later I tried with Validation = Yes also) then
    2. I launched Standard Collection (as standard way)
    Result:
    Planning ODS Load getting Error out, log file showing below error
    Exceptions posted by this request
    Concurrent Request for "Planning ODS Load" has completed with Error.
    Try 2:
    1. I launched "Planning Data Collection - Purge Staging Tables" with validation = No (Later I tried with Validation = Yes also) then
    2. I launched "Planning Data Pull" manually (Completed Normal) then
    3. I launched "Planning ODS Load" manually
    Result:
    Planning ODS Load Error out because of below
    I am getting below error message in the concurrent program "Generate Trading Partner Keys" log file.
    **Starts**27-FEB-2011 16:20:16
    ORACLE error 6512 in FDPSTP
    Cause: FDPSTP failed due to ORA-06512: at "APPS.MSC_CL_SETUP_ODS_LOAD", line 5094
    ORA-06512: at "APPS.MSC_CL_COLLECTION", line 6862
    ORA-06512: at line 1
    Appreciating your earlier reply
    Regards,
    Ramesh
    .

  • Data Collection Jobs fail to run

    Hello,
    I have installed three servers with SQL Server 2012 Standard Edition, which should be identically installed and configured.
    Part of the installation was setting up Data Collection which worked with out problems on two of the servers, but not on the last where 5 of the SQL Server Agent Jobs fails.
    The jobs failing are:
    collection_set_1_noncached_collect_and_upload
    Message:
    Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output.  Process Exit Code -1073741515.  The step failed.
    collection_set_2_collection
    Step 1 message:
    Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output.  Process Exit Code -1073741515.  The step failed.
    collection_set_2_upload
    Step 2 message:
    Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output.  Process Exit Code -1073741515.  The step failed.
    collection_set_3_collection
    Step 1 message:
    Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output.  Process Exit Code -1073741515.  The step failed.
    collection_set_3_upload
    Step 2 message:
    Executed as user: NT Service\SQLSERVERAGENT. The step did not generate any output.  Process Exit Code -1073741515.  The step failed.
    When I try to execute one of the jobs, I get the following event in the System Log:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
      <Provider
    Name="Application Popup"
    Guid="{47BFA2B7-BD54-4FAC-B70B-29021084CA8F}" />
      <EventID>26</EventID>
      <Version>0</Version>
      <Level>4</Level>
      <Task>0</Task>
      <Opcode>0</Opcode>
      <Keywords>0x8000000000000000</Keywords>
      <TimeCreated
    SystemTime="2013-06-04T11:23:10.924129800Z" />
      <EventRecordID>29716</EventRecordID>
      <Correlation
    />
      <Execution
    ProcessID="396" ThreadID="1336" />
      <Channel>System</Channel>
      <Computer>myServer</Computer>
      <Security
    UserID="S-1-5-18" />
      </System>
    - <EventData>
      <Data Name="Caption">DCEXEC.EXE - System Error</Data>
      <Data Name="Message">The program can't start because SqlTDiagN.dll
    is missing from your computer. Try reinstalling the program to fix this
    problem.</Data>
      </EventData>
     </Event>
    I have tried removing and reconfiguring the Data Collection two times using the stored procedure msdb.dbo.sp_syscollector_cleanup_collector and removing the underlying database.
    Both times with the same result.
    Below are the basic information about the setup of the server:
    Does any one have any suggestions about what the problem could be and what the cure might be?
    Best regards,
    Michael Andy Poulsen

    I tried running a repair on the SQL Server installation.
    This solved the problem.
    Only thing is that now I have to figure out the mening of these last lines in the log of the repair:
    "The following warnings were encountered while configuring settings on your SQL Server.  These resources / settings were missing or invalid so default values were used in recreating the missing resources.  Please review to make sure they don’t require
    further customization for your applications:
    Service SID support has been enabled on the service.
    Service SID support has been enabled on the service."
    /Michael Andy Poulsen

  • Data Collection task error (Item  is not defined in Cons Chart of Accts 01)

    Dear Experts,
    While executing Data collection task, I am getting error "Item  is not defined in Cons Chart of Accts 01", What could be the reason?
    (Many Items are getting collected in target, but at the topline this error is been shown)
    Regards
    Ritesh M

    Thans Dan,
    I have gone in the program UGMDSYNC, and getting few Gls which have not assigned Cons Chart  of account.
    Kindly tell me how to assign chart of account to these GL account?

  • Data collection task in Update mode is not posible with Original list

    Hi Friends,
    When I try to Execute the Task for data collection in sa38.I am getting the Error with in 9 sec.
    UPDATE MODE IS NO POSSIBLE WITH ORIGINAL LIST
    Message No. UCS0111
    Diagnosis :
    If you select the indicator"original list"the current task status is ignored.In this case,the system simulates a task run in with all of the organisational units are not yet blocked.Thus,setting this indicator is meaningful and valid only if the task is executed in test mode at tthe same time.
    procedure : select the original list & Test run together.
    My problem is I can not select the Test run in production  server.
    Can any one please help me to solve the Issue.

    I Thank you all for Responding to me.
    Hi Dan,
    SA38 provides all the needed parameters- Con.Group,Company,Version,Fis.Year,Period,Group currency.
    Iam trying to run the task with SA38 for Data Collection.
    Hi Lucio,
    When I Check the Fields Both the  Log & Original list . The programe gives an error message "UPDATE MODE IS NOT POSSIBLE WITH ORIGINAL LIST"
    Even when I tried with Log,Test Run & Original List Iam getting the Same error Message "UPDATE MODE IS NOT POSSIBLE WITH ORIGINAL LIST"
    I can run the task Successfully with selecting the Log option only. But my Client need  to Use both Log & Original list ( as they used to run in BIW 3.5 ) Now it we are using BI 7.
    Hi Christopher,
    We are running the programe UCBATCH01,with the T code SA38.
    Hi Eugene,
    I will look in to the link and i will Discuss with the Basis team.
    Once again Thank you all for responding
    Suraj.

  • Data Collection in APS

    Hi,
    We have both the APS and OPM applications on the same instance. We have run data pull program. The required data such as organizations, items & formulas are coming into APS. But, item forecasts entered in Forecasting form of OPM Process Planning are not being pulled. In other words there's no demand schedule.
    We have checked every bit of setup involved. Yet we have no idea what's going wrong?
    Is this a bug or are we doing something wrong?
    null

    Hello Ashok,
    At the risk of repetition let me explain the set-up for use of forecast
    in OPM-APS and you should be able to determine the source of the problem
    you're encountering while transferring the forecast data.
    1. Have a forecast in OPM for the required item in the "required
    warehouse"
    2. Have a Schedule (in MPS of OPM) which has this forecast associated
    with it.
    3. Ensure that the Make to Stock indicator is turned ON for this
    schedule
    4. Ensure that if the make to order indicator is also turned on then the
    forecast quantities are not "consumed" by sales order quantities.
    5. Ensure that the plant for which planning is being done has the
    warehouse (mentioned in forecast) as a replenishment warehouse
    (Plant-Warehouse Effectivities) for the forecasted items
    6. Do a data collection and try the LOV for MDS. - You should see a MDS
    with a name which starts with the letters in the name of the schedule
    and thw warehouse code.
    This MDS is generated by the data extract program (while doing data
    extraction) and during the generation of this MDS the forecast is
    adjusted for the sales orders quantities for the required warehouses.
    Please fee free to get intouch with me or [email protected]
    for any further queries.
    Rgds
    Abhay
    PS : Just one more simple confirmation, though the forecast is NOT being
    seen on the APS side , are you able to get the forecasted items across
    to APS ?
    null

  • Errors in Data Collection

    Hi All,
    I have 2 Exceptions in the Early Watch Report under Service Preparation Section which are :
    Errors in Data Collection
    Function Name -
    Exception
    DB6_TABLE_MAX_GROWTH_NEW -
    NO_HISTORY_FOUND
    DB6_TABLE_MAX_SIZE_NEW----
    NO_HISTORY_FOUND
    I don't know the reason for these exceptions
    does anyone know the reason for these exceptions and their solution?
    Thanks in Advance for your help
    Regard,
    Nadia Hamdy

    Hi Warren Wong,
    The Background Job "REORGCK_ALL" finished with errors
    Below is the Job Log:
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000002, user ID BCADMIN)
    Reorgck_All:REORGCHK for all Tables
    Reorgck_All:started by CL_DB6_JOB_REORGCHK            on server ENPO-D-RD1
    Reorgck_All:Parameter TESTMODE has not been set
    Reorgck_All:Parameter PARALLELISM has not been set
    Reorgck_All:Parameter RUNTIME has been set to " 0"
    Reorgck_All:Parameter COMPRESSION_CHECK has been set to ""
    Reorgck_All:Setting VOLATILE flag according to DBSTATC
    Object : Method call GET_SNAPSHOT failed with return code = ADBC error
    Reorgck_All:REORGCHK failed
    REASON=ADBC error
    Exception CX_DB6_CON in program CL_DB6_JOB_REORGCHK===========CP / CL_DB6_JOB_REORGCHK===========CM005 at line ADBC error with return code = 1,208
    Reorgck_All:Exception CX_DBA_JOB in class CL_DB6_JOB_REORGCHK
    Reorgck_All:  Kernel Error ID:
    Reorgck_All:SYSID:
    Reorgck_All:  SY-SUBRC: 1208
    Reorgck_All:  SY-TABIX: 0
    Reorgck_All:  Message: ADBC error
    Reorgck_All:  Database:
    Exception CX_DBA_JOB in class CL_DB6_JOB_REORGCHK method  line 47
    Reorgck_All:terminated with error
    REASON=ADBC error
    Job finished
    P.S. Database version is DB2 9.7
    Regards and Thanks for your help,
    Nadia

  • Can I query WMI using Data Collection Form ZCM 11 Sp2

    I'm very new to ZenWorks and I'm trying to query WMI from the Data Collection Form in an admin defined field.
    I read somewhere that you can query WMI in a similar fashion to querying a registry key but not getting results.
    Any help would really be appreciated.
    Thanks.

    robmetcalfe,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Error starting data collection CPU Utilization Chart

    I encountered this error when tried to display any charts in Performance Manager of OEM. There are 2 error messages on separate popup window. Here the 1st error messages:
    VTM-0048 : Error starting data collection CPU Utilization Chart
    java.lang.NoClassDefFoundError: oracle/sysman/vtm/chart/VtmPieChart
    at
    at oracle.sysman.vtm.chart.VtmChartFactory.getChart(VtmChartFactory.java:212)
    at oracle.sysman.vtm.VtmChartPanel.createChart(VtmChartPanel.java:391)
    at oracle.sysman.vtm.VtmChartPanel.startCollection(VtmChartPanel.java:1179)
    at oracle.sysman.vtm.VtmChartPanel.startCollection(VtmChartPanel.java:1194)
    at oracle.sysman.vtm.VtmChartPanel.startRecording(VtmChartPanel.java:1801)
    2nd error message came out following the 1st error message:
    VTM-0002 : Error displaying chart CPU Utilization Chart
    java.lang.NoClassDefFoundError: netcharts/graphics/NFDwellObserver
    at
    at oracle.sysman.vtm.chart.VtmChartFactory.getChart(VtmChartFactory.java:212)
    at oracle.sysman.vtm.VtmChartPanel.createChart(VtmChartPanel.java:391)
    at oracle.sysman.vtm.VtmChartPanel.setChartType(VtmChartPanel.java:815)
    at oracle.sysman.vtm.VtmChartPanel.processNewData(VtmChartPanel.java:733)
    at oracle.sysman.vtm.VtmVPClient.sampleComplete(VtmVPClient.java:214)
    Does anyone know how to fix it ?
    Regards,
    Tom

    Thans Dan,
    I have gone in the program UGMDSYNC, and getting few Gls which have not assigned Cons Chart  of account.
    Kindly tell me how to assign chart of account to these GL account?

  • CHaRM Reporting Data Collection Background Job

    Hi CHaRM Gurus,
    I saw lot of thread about data collection for CHaRM Reporting using /tmwflow/Config_lock. Question is do we need to run everytime before run the report or is there anyway can schedule in background to collect data Asynch. There is a SAP Note 1269192 applied in both Solution Manager and Managed system. If any job to schedule what job and the ID to use run what authorization. Because this job need to collect transport request and objects, so definitely required different authorizations.
    Thanks
    RS

    Hi,
    The job is SM:TMWFLOW_CMSSYSCOL, program  /TMWFLOW/CMSSYSCOL2. The data collector program requires additional authorizations for Read RFC user you have defined for client '000' of the satellite systems.
    Authorization object: S_TRANSPRT
    ACTVT = 03 and TTYPE = <*> (full authorization)
    Refer to note 881553 for authorizations.
    Thanks & Regards,
    Kriti Bhalla

  • What are the Disadvantages of Management Data Warehouse (data collection) ?

    Hi All,
    We are plan to implement Management Data Warehouse in production servers .
    could you please explain the Disadvantages of Management Data Warehouse (data collection) .
    Thanks in advance,
    Tirumala 
     

    >We are plan to implement Management Data Warehouse in production servers
    It appears you are referring to production server performance.
    BOL: "You can install the management data warehouse on the same instance of SQL Server that runs the data collector. However, if server resources or performance is an issue on the server being monitored, you can install the management data warehouse
    on a different computer."
    Management Data Warehouse
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

Maybe you are looking for