Help with Collections and Reference Cursor

I have a procedure where I want to populate a table type and then return the results with a reference cursor so the results can be used by Hyperion. Here are the type declarations:
create or replace type gg_audit_object as object (
               owner varchar2(30),
               table_name varchar2(30),
               lag_time number)
CREATE OR REPLACE TYPE gg_audit_table AS TABLE OF gg_audit_object
and here's the procedure:
CREATE OR REPLACE PROCEDURE ETSREP_GG_AUDIT_XX2 (results_cursor in out types.cursorType)
AS
v_owner varchar2(30);
v_table_name varchar2(30);
v_column_name varchar2(30);
type v_record is record(
owner varchar2(30),
table_name varchar2(30),
lag_time number);
r1 v_record;
t1 gg_audit_table;
table_cr types.cursorType;
sql_stmt varchar2(5000);
cursor table_select is
select g.owner,
g.table_name,
g.column_name
from gg_tables_to_audit g
where g.active_ind = 'Y'
order by 1,2;
BEGIN
rec_count := 0;
for main_rec in table_select loop
sql_stmt := '';
v_owner := main_rec.owner;
v_table_name := main_rec.table_name;
v_column_name := main_rec.column_name;
sql_stmt := 'select '
|| '''' || v_owner || ''','
|| '''' || v_table_name || ''','
|| 'sysdate - max(' || v_column_name || ') '
|| 'from ' || v_owner || '.' || v_table_name;
open table_cr for sql_stmt;
FETCH table_cr into r1;
close table_cr;
-- here's where I'm stumped. I need to take the values from r1 and put them
-- into t1.
-- Something like this (or whatever is the correct way to do it)
-- insert into table(t1) values (r1.owner, r1.table_name, r1.lag_time);
end loop; -- end table_select loop
-- and then open a reference cursor and select them out of t1.
-- Something like
-- open results_cursor for select * from t1;
END;
Just trying to avoid creating a real table and populating that. Any guidance would be greatly appreciated.

Found the perfect example on Ask Tom. Here is the solution.
create or replace package GG_AUDIT
as
type rc is ref cursor;
procedure GG_AUDIT_PROC( r_cursor in out types.cursorType );
end;
create or replace package body GG_AUDIT
as
procedure GG_AUDIT_PROC( r_cursor in out types.cursorType )
is
l_data gg_audit_table := gg_audit_table();
table_cr types.cursorType;
type v_record is record(
owner varchar2(30),
table_name varchar2(30),
lag_time number);
r1 v_record;
sql_stmt varchar2(5000);
v_owner varchar2(30);
v_table_name varchar2(30);
v_column_name varchar2(30);
rec_count number := 0;
cursor table_select is
select g.owner,
g.table_name,
g.column_name
from gg_tables_to_audit g
where g.active_ind = 'Y'
order by 1,2;
begin
for main_rec in table_select loop
sql_stmt := '';
v_owner := main_rec.owner;
v_table_name := main_rec.table_name;
v_column_name := main_rec.column_name;
sql_stmt := 'select '
|| '''' || v_owner || ''','
|| '''' || v_table_name || ''','
|| 'sysdate - max(' || v_column_name || ') '
|| 'from ' || v_owner || '.' || v_table_name;
open table_cr for sql_stmt;
FETCH table_cr into r1.owner, r1.table_name, r1.lag_time;
close table_cr;
rec_count := rec_count + 1;
l_data.extend;
l_data(rec_count) := gg_audit_object(r1.owner, r1.table_name, r1.lag_time);
end loop;
open r_cursor for select * from TABLE ( cast ( l_data as gg_audit_table) );
end; -- end procedure
end;
Works perfectly. Thanks guys.

Similar Messages

  • Help with writing and retrieving data from a table field with type "LCHR"

    Hi Experts,
    I need help with writing and reading data from a database table field which has a type of "LCHR". I have given an example of the original code but don't know what to change it to in order to fix it and still read in the original data that's stored in the LCHR field.
    Basically we have two Function modules, one that saves list data to a database table and one that reads in this data. Both Function modules have an identicle table which has an array of fields from type INT4, CHAR, and type P. The INT4 field is the first one.
    Incidentally this worked in the 4.7 non-unicode system but is now dumping in the new ECC6 Unicode system.
    Thanks in advance,
    C
    SAVING THE LIST DATA TO DB
    DATA: L_WA(800).
    LOOP AT T_TAB into L_WA.
    ZDBTAB-DATALEN = STRLEN( L_WA ).
    MOVE: L_WA to ZDBTAB-RAWDATA.
    ZDBTAB-LINENUM = SY-TABIX.
    INSERT ZDBTAB.
    READING THE DATA FROM DB
    DATA: BEGIN OF T_DATA,
                 SEQNR type ZDBTAB-LINENUM,
                 DATA type ZDBTAB-RAWDATA,
               END OF T_TAB.
    Select the data.
    SELECT linenum rawdata from ZDBTAB into table T_DATA
         WHERE repid = w_repname
         AND rundate = w_rundate
         ORDER BY linenum.
    Populate calling Internal Table.
    LOOP AT T-DATA.
    APPEND T_DATA to T_TAB.
    ENDLOOP.

    Hi Anuj,
    The unicode flag is active.
    When I run our report and then to try and save the list data a dump is happening at the following point
    LOOP AT T_TAB into L_WA.
    As I say, T_TAB consists of different fields and field types whereas L_WA is CHAR 800. The dump mentions UC_OBJECTS_NOT_CONVERTIBLE
    When I try to load a saved list the dump is happening at the following point
    APPEND T_DATA-RAWDATA to T_TAB.
    T_DATA-RAWDATA is type LCHR and T_TAB consists of different fields and field types.
    In both examples the dumps mention UC_OBJECTS_NOT_CONVERTIBLE
    Regards
    C

  • Help with count and sum query

    Hi I am using oracle 10g. Trying to aggregate duplicate count records. I have so far:
    SELECT 'ST' LEDGER,
    CASE
    WHEN c.Category = 'E' THEN 'Headcount Exempt'
    ELSE 'Headcount Non-Exempt'
    END
    ACCOUNTS,
    CASE WHEN a.COMPANY = 'ZEE' THEN 'OH' ELSE 'NA' END MARKET,
    'MARCH_12' AS PERIOD,
    COUNT (a.empl_id) head_count
    FROM essbase.employee_pubinfo a
    LEFT OUTER JOIN MMS_DIST_COPY b
    ON a.cost_ctr = TRIM (b.bu)
    INNER JOIN MMS_GL_PAY_GROUPS c
    ON a.pay_group = c.group_code
    WHERE a.employee_status IN ('A', 'L', 'P', 'S')
    AND FISCAL_YEAR = '2012'
    AND FISCAL_MONTH = 'MARCH'
    GROUP BY a.company,
    b.district,
    a.cost_ctr,
    c.category,
    a.fiscal_month,
    a.fiscal_year;
    which gives me same rows with different head_counts. I am trying to combine the same rows as a total (one record). Do I use a subquery?

    Hi,
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    user610131 wrote:
    ... which gives me same rows with different head_counts.If they have different head_counts, then the rows are not the same.
    I am trying to combine the same rows as a total (one record). Do I use a subquery?Maybe. It's more likely that you need a different GROUP BY clause, since the GROUP BY clause determines how many rows of output there will be. I'll be able to say more after you post the sample data, results, and explanation.
    You may want both a sub-query and a different GROUP BY clause. For example:
    WITH    got_group_by_columns     AS
         SELECT  a.empl_id
         ,     CASE
                        WHEN  c.category = 'E'
                  THEN  'Headcount Exempt'
                        ELSE  'Headcount Non-Exempt'
                END          AS accounts
         ,       CASE
                        WHEN a.company = 'ZEE'
                        THEN 'OH'
                        ELSE 'NA'
                END          AS market
         FROM              essbase.employee_pubinfo a
         LEFT OUTER JOIN  mms_dist_copy             b  ON   a.cost_ctr     = TRIM (b.bu)
         INNER JOIN       mms_gl_pay_groups        c  ON   a.pay_group      = c.group_code
         WHERE     a.employee_status     IN ('A', 'L', 'P', 'S')
         AND        fiscal_year           = '2012'
         AND        fiscal_month          = 'MARCH'
    SELECT    'ST'               AS ledger
    ,       accounts
    ,       market
    ,       'MARCH_12'          AS period
    ,       COUNT (empl_id)       AS head_count
    FROM       got_group_by_columns
    GROUP BY  accounts
    ,            market
    ;But that's just a wild guess.
    You said you wanted "Help with count and sum". I see the COUNT, but what do you want with SUM? No doubt this will be clearer after you post the sample data and results.
    Edited by: Frank Kulash on Apr 4, 2012 5:31 PM

  • MOVED: [Athlon64] Need Help with X64 and Promise 20378

    This topic has been moved to Operating Systems.
    [Athlon64] Need Help with X64 and Promise 20378

    I'm moving this the the Administration Forum.  It seems more apporpiate there.

  • Help with if statement in cursor and for loop to get output

    I have the following cursor and and want to use if else statement to get the output. The cursor is working fine. What i need help with is how to use and if else statement to only get the folderrsn that have not been updated in the last 30 days. If you look at the talbe below my select statement is showing folderrs 291631 was updated only 4 days ago and folderrsn 322160 was also updated 4 days ago.
    I do not want these two to appear in my result set. So i need to use if else so that my result only shows all folderrsn that havenot been updated in the last 30 days.
    Here is my cursor:
    /*Cursor for Email procedure. It is working Shows userid and the string
    You need to update these folders*/
    DECLARE
    a_user varchar2(200) := null;
    v_assigneduser varchar2(20);
    v_folderrsn varchar2(200);
    v_emailaddress varchar2(60);
    v_subject varchar2(200);
    Cursor c IS
    SELECT assigneduser, vu.emailaddress, f.folderrsn, trunc(f.indate) AS "IN DATE",
    MAX (trunc(fpa.attemptdate)) AS "LAST UPDATE",
    trunc(sysdate) - MAX (trunc(fpa.attemptdate)) AS "DAYS PAST"
    --MAX (TRUNC (fpa.attemptdate)) - TRUNC (f.indate) AS "NUMBER OF DAYS"
    FROM folder f, folderprocess fp, validuser vu, folderprocessattempt fpa
    WHERE f.foldertype = 'HJ'
    AND f.statuscode NOT IN (20, 40)
    AND f.folderrsn = fp.folderrsn
    AND fp.processrsn = fpa.processrsn
    AND vu.userid = fp.assigneduser
    AND vu.statuscode = 1
    GROUP BY assigneduser, vu.emailaddress, f.folderrsn, f.indate
    ORDER BY fp.assigneduser;
    BEGIN
    FOR c1 IN c LOOP
    IF (c1.assigneduser = v_assigneduser) THEN
    dbms_output.put_line(' ' || c1.folderrsn);
    else
    dbms_output.put(c1.assigneduser ||': ' || 'Overdue Folders:You need to update these folders: Folderrsn: '||c1.folderrsn);
    END IF;
    a_user := c1.assigneduser;
    v_assigneduser := c1.assigneduser;
    v_folderrsn := c1.folderrsn;
    v_emailaddress := c1.emailaddress;
    v_subject := 'Subject: Project for';
    END LOOP;
    END;
    The reason I have included the folowing table is that I want you to see the output from the select statement. that way you can help me do the if statement in the above cursor so that the result will look like this:
    emailaddress
    Subject: 'Project for ' || V_email || 'not updated in the last 30 days'
    v_folderrsn
    v_folderrsn
    etc
    [email protected]......
    Subject: 'Project for: ' Jim...'not updated in the last 30 days'
    284087
    292709
    [email protected].....
    Subject: 'Project for: ' Kim...'not updated in the last 30 days'
    185083
    190121
    190132
    190133
    190159
    190237
    284109
    286647
    294631
    322922
    [email protected]....
    Subject: 'Project for: Joe...'not updated in the last 30 days'
    183332
    183336
    [email protected]......
    Subject: 'Project for: Sam...'not updated in the last 30 days'
    183876
    183877
    183879
    183880
    183881
    183882
    183883
    183884
    183886
    183887
    183888
    This table is to shwo you the select statement output. I want to eliminnate the two days that that are less than 30 days since the last update in the last column.
    Assigneduser....Email.........Folderrsn...........indate.............maxattemptdate...days past since last update
    JIM.........      jim@ aol.com.... 284087.............     9/28/2006.......10/5/2006...........690
    JIM.........      jim@ aol.com.... 292709.............     3/20/2007.......3/28/2007............516
    KIM.........      kim@ aol.com.... 185083.............     8/31/2004.......2/9/2006.............     928
    KIM...........kim@ aol.com.... 190121.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190132.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190133.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190159.............     2/13/2006.......2/14/2006............923
    KIM...........kim@ aol.com.... 190237.............     2/23/2006.......2/23/2006............914
    KIM...........kim@ aol.com.... 284109.............     9/28/2006.......9/28/2006............697
    KIM...........kim@ aol.com.... 286647.............     11/7/2006.......12/5/2006............629
    KIM...........kim@ aol.com.... 294631.............     4/2/2007.........3/4/2008.............174
    KIM...........kim@ aol.com.... 322922.............     7/29/2008.......7/29/2008............27
    JOE...........joe@ aol.com.... 183332.............     1/28/2004.......4/23/2004............1585
    JOE...........joe@ aol.com.... 183336.............     1/28/2004.......3/9/2004.............1630
    SAM...........sam@ aol.com....183876.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183877.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183879.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183880.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183881.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183882.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183883.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183884.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183886.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183887.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183888.............3/5/2004.........3/8/2004............     1631
    PAT...........pat@ aol.com.....291630.............2/23/2007.......7/8/2008............     48
    PAT...........pat@ aol.com.....313990.............2/27/2008.......7/28/2008............28
    NED...........ned@ aol.com.....190681.............4/4/2006........8/10/2006............746
    NED...........ned@ aol.com......95467.............6/14/2006.......11/6/2006............658
    NED...........ned@ aol.com......286688.............11/8/2006.......10/3/2007............327
    NED...........ned@ aol.com.....291631.............2/23/2007.......8/21/2008............4
    NED...........ned@ aol.com.....292111.............3/7/2007.........2/26/2008............181
    NED...........ned@ aol.com.....292410.............3/15/2007.......7/22/2008............34
    NED...........ned@ aol.com.....299410.............6/27/2007.......2/27/2008............180
    NED...........ned@ aol.com.....303790.............9/19/2007.......9/19/2007............341
    NED...........ned@ aol.com.....304268.............9/24/2007.......3/3/2008............     175
    NED...........ned@ aol.com.....308228.............12/6/2007.......12/6/2007............263
    NED...........ned@ aol.com.....316689.............3/19/2008.......3/19/2008............159
    NED...........ned@ aol.com.....316789.............3/20/2008.......3/20/2008............158
    NED...........ned@ aol.com.....317528.............3/25/2008.......3/25/2008............153
    NED...........ned@ aol.com.....321476.............6/4/2008.........6/17/2008............69
    NED...........ned@ aol.com.....322160.............7/3/2008.........8/21/2008............4
    MOE...........moe@ aol.com.....184169.............4/5/2004.......12/5/2006............629
    [email protected]/27/2004.......3/8/2004............1631
    How do I incorporate a if else statement in the above cursor so the two days less than 30 days since last update are not returned. I do not want to send email if the project have been updated within the last 30 days.
    Edited by: user4653174 on Aug 25, 2008 2:40 PM

    analytical functions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions2a.htm#81409
    CASE
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#36899
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/04_struc.htm#5997
    Incorporating either of these into your query should assist you in returning the desired results.

  • Help with encapsulation and a specific case of design

    Hello all. I have been playing with Java (my first real language and first OOP language) for a couple months now. Right now I am trying to write my first real application, but I want to design it right and I am smashing my head against the wall with my data structure, specifically with encapsulation.
    I go into detail about my app below, but it gets long so for those who don't want to read that far, let me just put these two questions up front:
    1) How do principles of encapsulation change when members are complex objects rather than primitives? If the member objects themselves have only primitive members and show good encapsulation, does it make sense to pass a reference to them? Or does good encapsulation demand that I deep-clone all the way to the bottom of my data structure and pass only cloned objects through my top level accessors? Does the analysis change when the structure gets three or four levels deep? Don't DOM structures built of walkable nodes violate basic principles of encapsulation?
    2) "Encapsulation" is sometimes used to mean no public members, othertimes to mean no public members AND no setter methods. The reasons for the first are obvious, but why go to the extreme of the latter? More importantly HOW do you go to the extreme of the latter? Would an "updatePrices" method that updates encapsulated member prices based on calculations, taking a single argument of say the time of year be considered a "setter" method that violates the stricter vision of encapsulation?
    Even help with just those two questions would be great. For the masochistic, on to my app... The present code is at
    http://www.immortalcoil.org/drake/Code.zip
    The most basic form of the application is statistics driven flash card software for Japanese Kanji (Chinese characters). For those who do not know, these are ideographic characters that represent concepts rather than sounds. There are a few thousand. In abstract terms, my data structure needs to represent the following.
    -  There are a bunch of kanji.
       Each kanji is defined by:
       -  a single character (the kanji itself); and
       -  multiple readings which fall into two categories of "on" and "kun".
          Each reading is defined by:
          -  A string of hiragana or katakana (Japanese phoenetic characters); and
          -  Statistics that I keep to represent knowledge of that reading/kanji pair.Ideally the structure should be extensible. Later I might want to add statistics associated with the character itself rather than individual readings, for example. Right now I am thinking of building a data structure like so:
    -  A Vector that holds:
       -  custom KanjiEntry objects that each hold
          -  a kanji in a primitive char value; and
          -  two (on, kun) arrays or Vectors of custom Reading objects that hold
             -  the reading in a String; and
             -  statistics of some sort, probably in primitive valuesFirst of all, is this approach sensible in the rough outlines?
    Now, I need to be able to do the obvious things... save to and load from file, generate tables and views, and edit values. The quesiton of editting values raises the questions I identified above as (1) and (2). Say I want to pull up a reading, quiz the user on it, and update its statistics based on whether the user got it right or wrong. I could do all this through the KanjiEntry object with a setter method that takes a zillion arguments like:
    theKanjiEntry.setStatistic(
    "on",   // which set of readings
    2,      // which element in that array or Vector
    "score", // which statistic
    98);      // the valueOr I could pass a clone of the Reading object out, work with that, then tell the KanjiEntry to replace the original with my modified clone.
    My instincts balk at the first approach, and a little at the second. Doesn't it make more sense to work with a reference to the Reading object? Or is that bad encapsulation?
    A second point. When running flash cards, I do not care about the subtlties of the structure, like whether a reading is an on or a kun (although this is important when browsing a table representing the entire structure). All I really care about is kanij/reading pairings. And I should be able to quickly poll the Reading objects to see which ones need quizzing the most, based on their statistics. I was thinking of making a nice neat Hashtable with the keys being the kanji characters in Strings (not the KanjiEntry objects) and the values being the Reading objects. The result would be two indeces to the Reading objects... the basic structure and my ad hoc hashtable for runninq quizzes. Then I would just make sure that they stay in sync in terms of the higher level structure (like if a whole new KanjiEntry got added). Is this bad form, or even downright dangerous?
    Apart from good form, the other consideration bouncing around in my head is that if I get all crazy with deep cloning and filling the bottom level guys with instance methods then this puppy is going to get bloated or lag when there are several thousand kanji in memory at once.
    Any help would be appreciated.
    Drake

    Usually by better design. Move methods that use the
    getters inside the class that actually has the data....
    As a basic rule of thumb:
    The one who has the data is the one using it. If
    another class needs that data, wonder what for and
    consider moving that operation away from that class.
    Or move from pull to push: instead of A getting
    something from B, have B give it to A as a method
    call argument.Thanks for the response. I think I see what you are saying.. in my case it is something like this.
    Solution 1 (disfavored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              char theKanji = currentKanjiEntry.getKanji();
              String theReading = currentKanjiEntry.getReading();
              // build and show a flashcard based on theKanji and theReading
              // use a setter to change currentKanji's data based on whether the user answers correctly;
    }Solution 2 (favored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              currentKanji.buildAndShowFlashcard(); // method includes updating stats
    }I can definitely see the advantages to this, but two potential reasons to think hard about it occur to me right away. First, if this process is carried out to a sufficient extreme the objects that hold my data end up sucking in all the functionality of my program and my objects stop resembling natural concepts.
    In your shopping example, say you want to generate price tags for the items. The price tags can be generated with ONLY the raw price, because we do not want the VAT on them. They are simple GIF graphics that have the price printed on a an irregular polygon. Should all that graphics generating code really go into the item objects, or should we just get the price out of the object with a simple getter method and then make the tags?
    My second concern is that the more instance methods I put into my bottom level data objects the bigger they get, and I intend to have thousands of these things in memory. Is there a balance to strike at some point?
    It's not really a setter. Outsiders are not setting
    the items price - it's rather updating its own price
    given an argument. This is exactly how it should be,
    see my above point. A breach of encapsulation would
    be: another object gets the item price, re-calculates
    it using a date it knows, and sets the price again.
    You can see yourself that pushing the date into the
    item's method is much beter than breaching
    encapsulation and getting and setting the price.So the point is not "don't allow access to the members" (which after all you are still doing, albeit less directly) so much as "make sure that any functionality implicated in working with the members is handled within the object," right? Take your shopping example. Say we live in a country where there is no VAT and the app will never be used internationally. Then we would resort to a simple setter/getter scheme, right? Or is the answer that if the object really is pure data are almost so, then it should be turned into a standard java.util collection instead of a custom class?
    Thanks for the help.
    Drake

  • In need of help with Collections.

    Greetings,
    I've been assigned a college work where I have to develop a solution, utilizing Swing and Collections, to the problem below:
    "There is a department store with several products. The store owner doesn't know exactly how many product types there are, so he decided to register all types of products. The registering option consists of the following operations: add, remove, and change product.
    The products have three characteristics (attributes): name, quantity and price. Once all products are registered, the store owned wants to see a list of the products in alphabetical order on the screen.
    The store owner also wants the program to sell the products. The sale is done with the user searching for a product by the name, and the program will show the price of the product on the screen. The user confirms that it's the right product, and the program will reduce the item's quantity by one.
    Obs.: To simplify the problem, work with a reduced number of products. Also the program does not need to store date in the disk."
    So far I've built a class named Product, a visual class for the GUI and the main class. Inside the Product class I have a String for the name, a Float for the price, and Integer for the quantity, as well as the getters and setters for those private variables.
    In the GUI class I've made a Product Array and I also made the text fields so the user can type the data and put it in the array. This part seems to be working fine. The problem begins when using Collections. How can I use this array to make a sorted list of the products (it seemed to work when using Arrays.sort(products, byAlpha [Comparator I've creadted to sort alphabetically]), but I don't know how to work with this, now supposedly sorted, data), maybe put it inside a JList, where the user can see what products he is registering in real time? Can I make it so the user clicks on the product in the JList and he can now delete it or change the values of that product (price, quantity)?
    Any help, suggestions, insight, are greatly appreciated. Thanks in advance!
    Thiago.

    So, for example, on a JButton, I should
    write the code on a different class, and in the GUI
    class, make an instance of that class (or is it the
    other way around?), and call the method that I need
    for that button inside the actionPerformed? (Sorry if
    I sound confusing, I'm not very familiar with Java)Suppose you have a class called Store, that represents the store. Internally, it has a Collection of Products, but the caller doesn't need to know that.
    So, Store might have a method called findProducts:
    public Collection<Product> findProducts(String findThis) {
        Collection<Product> returnThis = new ArrayList<Product>;
        // code here that searches through the internal collection, and
        // adds products whose names match the search string to returnThis
        return returnThis;
    }So then you might have a GUI that looks like this:
    public class StoreGUI {
        private Store theStore;
        public StoreGUI() {
            theStore = new Store();
            // create frame, etc.
            final JTextField searchThis = new JTextField();
            JButton searchButton = new JButton("Search");
            final JList searchResults = new JList();
            searchButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    Collection<Product> result = store.findProducts(searchThis.getText());
                    searchResults.setListData(result.toArray());
            // add text field, button, etc. to frame, etc.
    It may be preferable to get rid of getters and
    setters and instead have operations that are
    specifically meaningful for Products. Not sure if I understand, could you give me an
    example of how I could do that?I mean that if Product now has this:
    private int quantity;
    public int getQuantity() {
        return quantity;
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }Then arguably that doesn't make sense, because when you run a store you can't just magically create a hundred boxes of cornflakes, which (arguably) is what you'd be doing if you did this:
    cornflakes.setQuantity(100);So it might make more sense to get rid of setQuantity, and provide methods on Product like this:
    private int quantity;
    public int getQuantity() { // this is still OK, you can always look at your inventory
        return quantity;
    public void buy(int quantity) {
        // check to make certain that quantity is no more than this.quantity
        this.quantity -= quantity;
    public void addInventory(int quantity) {
        this.quantity += quantity;
    }This might not be the best example, because the difference isn't huge. But the idea is that you're modelling reality a little more closely, and you're moving the logic that controls the state of the object, directly into the logic. (So you don't have some external object calling getQuantity, changing it, and then calling setQuantity.) This tends to make code easier to maintain.
    The book I'm using as reference gives examples
    of List and ArrayList, but only using String. I'm not
    sure how to use it for my Product class, would it be
    something like this?
    > HashSet<Product> products = new HashSet<Product>();Yes, that's exactly right.
    Also, do you happen to know any
    resource on the web where I can learn more about
    Collections?http://java.sun.com/docs/books/tutorial/collections/index.html

  • Help with collection

    I have posted about this previously and have been working on it and could use some help/advice. I had a charge of from 2011 from JC Penney for $741 and when I contacted JC P to make payment, they sent me to a company called "crown asset management." When I contacted this company they said they weren't handling the collection and sent me to an attorrneys office. When I called them they agreed to a payment plan and at that time nothing was on my credit report for this account except the charge off. I have made 2 payments and suddenly a collection pops up on my account from JC Penney and the collection is listed under Synchrony Bank FKA GEO Capital. I want the collection to note that it is open and being "paid as promised." Crown Assett Management, JC Penney and the Attorney office all say to contact one another. I have called Synchrony Bank and they do not have an account in my name. What can I do? I am pulling my hair out with this one.

    The taking and reporting of the charge-off is totally separate from any issue of subsequent collection on the debt.It is simply a reporting by the creditor that they moved the bad debt in their accounting books from a receivable asset over to an loss as a bad debt.The consumer continues to owe the entire debt, and can continue to collect upon it themselves of via a debt collector.A charged-off debt can also become a collection if referred to or sold to a debt collector. An in-house collection can still qualify as a debt collector under the FDCPA, and thus report a collection.As clearly defined under FDCPA 803(6), "the term includes any creditor who, in the process of collecting his own debts, uses any name other than his own which would indicate that a third person is collecting or attempting to collect such debts."Synchrony is thus considered a debt collector, and subject to all provisions of the FDCPA. As you pay the debt, you can insist that they promptly update the remaining balance under their collection, and notify the credtior of the current balance.FCRA 623(a)(2) requires a party who has reported to a CRA to promplty update their reporting so as to maintain its current accuracy.It is common for creditors and debt collectors not to update the remaining balance  after receipt of each payment, but technically you can insist that they do so. Once the debt is paid, neither the charge-off reported by the OC nor any collection that might also be reported by a debt collector is required to be deleted.They are required to promplty update the balance to show $0 debt (creditor) and $0 remaining under collection (any debt collector).

  • Help with PS and HDR Effect Pro from Nik

    I altready have a help request into Nik Software, but was hoping someone here could offer some suggestions.
    I'm running the Nik Complete software program on Win 7 64Bit, Raid 5 machine. 8800 GTS 512 MB card; 12gb of RAM, i7 quad core, 2.67 GH, PS CS5 and Lightroom 3.2, Wacom Intuos 3 tablet.
    I have the most updated drivers for video, wacom tablet. OS is current with updates. PS CS5 is updated, but I am NOT running Lightroom's 3.3 RC.
    I updated all software updates for the NIK software collection from their site and still have the same problem even after uninstall and re-install.
    When I attempt to run HDR Efect Pro I get the menu window to select my images, click ok and with in seconds I get the message that Adobe Photoshop CS5 has stoopped working and must close...
    I've gone to their site and looked into their FAQ/troubleshooting and did all their recommendations, update drivers, look for color profiles with 0 Bytes in the system color spool for both 32 and 64 bit apps and still no luck. This also happens with CS4 and CS3 and if I attempt to use the program form Lightroom and Bridge. Any ideas, work arounds, suggestions? Their automatic reply from my support request says 2-3 days due to the high populaity of their program!!!
    Thanks for any and all help.

    Outside of suggesting some pretty generic things, I can't offer much help...  I don't use Nik products myself
    You could try disabling the "Use OpenGL Drawing" setting in Photoshop as a workaround to see if that helps.  Perhaps between Photoshop and the plug-in problems are being caused in the OpenGL driver for your particular video card.
    Also, given that 3rd party plug-ins and Photoshop could be competing for memory, you could try changing the amount of memory Photoshop is allowed to use in the Edit - Preferences - Performance dialog.
    Good luck.
    -Noel

  • Help - Concept: Object and reference?

    Q1:
    In Java tutorial, it says: The real-world objects share two characteristics: They all have state and behavior.
    State is associate with variables. So I am wondering where the object reference fit in the object if an object encapsulates some children objects? Is reference also varaibles?
    For example, if a MailInBox object has the size property, numberOfMessage property and a reference to each message object, does this mean that MailInBox object has property of size, numberOfMessage and all references?
    If reference belong to an object, an object can own both attribute properties and object references, right?
    =================
    Q2:
    What is the clientship of an object?, please help give me an example.
    Thanks!

    Thanks for your reply.
    For first question, My original question was whether an object can have both attribute properties and object references.
    Here if a MainBox object has 1) a simple attribute "size" which is integer type, so "size" is the attribute of the MainBox; 2) At the same time, if a MainBox has a child object called "Inbox", so a MainBox object has a reference to the Inbox.
    So in this sense, I concluded that an object can have both attribute properties (here is "size") and object references (here is "size"). Is it right?
    This can also be inferred from your statements:
    It is correct to assume that an object has attributes, which
    simplistically reflect its state.Then,
    Therefore, the Mail Box object only has 2 references.But In Java tutorial, it says: The real-world objects share two characteristics: They all have state and behavior.
    Then I concluded that Both reference and attributes are variables, right?
    =====
    So is it safe to say, "an object can have attribute and reference"?
    or
    is it safe to say, "an object can have attribute with reference"?
    Thanks!

  • Help with treemap and other stuff

    hi guys..
    i m new to this forum..
    and this is my first post....so if i act a little naive .....please bare with me.
    and if this is not the correct place to post ..i m sorry for that.
    i have an assignment to submit....i m getting the whole picture ....but not sure how to go about implementing it.
    here it is...
    Write an Object Oriented solution to the problem in Java. The solution is to consist of:
    A TableIndex class
    A TableNavigator Interface
    A data row class ....class that i have to create.
    An application class to use and test your TableIndex class
    The following UML class diagrams show the public methods of the classes. Other methods may be specified. Specify data members, inner classes and interfaces as appropriate.
    TableIndex Class
    The TableIndex class is an index to a collection of objects. The class is to approximate an index to a data table in memory that consists of a number of rows. To control access to the index a current row is defined that specifies the row that can be accessed. To retrieve a row from the index it must be the current row. The get() method is the only method in TableIndex class that retrieves a row from the index. The current row can be changed explicitly using the methods: previous(), next(), first(), last(), gotoBookmark and find(K); and implicitly using insert(K, V), modify(K, V) and remove().
    The TableIndex class is to be implemented using the java API's TreeMap class and must use Generics. The data types K and V below are generic types for the Key and Value (row) respectively. An important aspect of the assignment is using the Java API documentation to understand the TreeMap class.
    guys ....can u plz help with the starting bit ..
    what should be the opening statement of the class...
    public class TableIndex<K , V> .....????
    and what should be the treemap declaration..??
    TreeMap<K , V> indexTable = new TreeMap<K , V>();...???
    i m confused....
    can u plz explain to me..

    hi mate.....didnt quite get you..
    can u plz be a bit more simple in explanation..!!!
    i will post the whole question ..so that anyone reading will understand better....
    Problem Description
    You are to develop an index class and associated classes.
    Requirements
    Write an Object Oriented solution to the problem in Java. The solution is to consist of:
    A TableIndex class
    A TableNavigator Interface
    A data row class
    An application class to use and test your TableIndex class
    The following UML class diagrams show the public methods of the classes. Other methods may be specified. Specify data members, inner classes and interfaces as appropriate.
    TableIndex Class
    The TableIndex class is an index to a collection of objects. The class is to approximate an index to a data table in memory that consists of a number of rows. To control access to the index a current row is defined that specifies the row that can be accessed. To retrieve a row from the index it must be the current row. The get() method is the only method in TableIndex class that retrieves a row from the index. The current row can be changed explicitly using the methods: previous(), next(), first(), last(), gotoBookmark and find(K); and implicitly using insert(K, V), modify(K, V) and remove().
    The TableIndex class is to be implemented using the java API's TreeMap class and must use Generics. The data types K and V below are generic types for the Key and Value (row) respectively. An important aspect of the assignment is using the Java API documentation to understand the TreeMap class.
    TableIndex
    +TableIndex()
    +TableIndex(name: String, comp: Comparator)
    +getName(): String
    +isEmpty(): Boolean
    +size(): Integer
    +hasPrevious(): Boolean
    +hasNext(): Boolean
    +previous()
    +next()
    +first()
    +last()
    +setBookmark(): Boolean
    +clearBookmark()
    +gotoBookmark(): Boolean
    +contains(key: K): Boolean
    +find(key: K): Boolean
    +get(): V
    +insert(key:K, value: V): Boolean
    +modify(value: V): Boolean
    +modify(key: K, value: V): Boolean
    +remove(): V
    +iterator(): Iterator
    +equals(obj2: Object): Boolean
    +toString(): String
    Additional Notes:
    The table index has an order defined by the compareTo method of the key's class or by the compare method specified in the class that implements the Comparator interface.
    getName(): the name of the index, blank by default.
    isEmpty(): returns true if there aren't any rows in the table index
    size(): returns the number of rows in the table index
    hasPrevious(): returns true if there is a row before the current row.
    hasNext(): returns true if there is a row after the current row in sequence.
    previous(): if there is a row before the current row, move to the row and make it the new current row.
    next() if there is a row after the current row, move to the row and make it the new current row.
    first(): if the table isn't empty, move to the first row and make it the new current row.
    last(): if the table isn't empty, move to the last row and make it the new current row.
    setBookmark(): sets a bookmark at the current row. If the bookmark is successfully set the method returns true. The bookmark is cleared if the TableIndex is empty or the row the bookmark was set on is deleted..
    clearBookmark(): sets the bookmark to null, indicating there isn't a bookmark.
    gotoBookmark(): if a bookmark has been set, go to the bookmarked row. If successful the book marked row becomes the current row and the method returns true.
    contains(K): return true if a row with the key specified exists.
    find(K): if a row is found with the specified key, the current row is set to the row found.
    get(): returns the current row. Null is returned if there isn't a current row.
    insert(K, V): inserts a row (value) with the key specified. The key must not be null and must be unique (not already in the TableIndex). The row (value) must not be null. If the row is successfully inserted true is returned, and the row becomes the current row..
    modify(V): change the current row's data to the row (value) specified. The key and the current row key are to remain the same. If successful true is returned.
    modify(K, V): change the current row's key and data to the key and row (value) specified. If successful the changed row becomes the new current row. If successful true is returned. Note: this is more difficult than modify(V).
    remove(): remove the current row. When a row is deleted the next row (if available) becomes the current row, otherwise if there isn't a next row the previous row becomes the current row, otherwise the table is empty therefore the current row is null.
    iterator(): returns an iterator to the rows (values) in the index. The rows are to be retrieved in order. The remove method does not need to be implemented (its method body can be empty)..
    the equals method uses the name, and the rows (values) in order when testing for equality.
    the toString method should return appropriately formatted data members and the rows (values/data) in the index.
    TableNavigator Interface
    «interface»
    TableNavigator
    +isEmpty(): Boolean
    +hasPrevious(): Boolean
    +hasNext(): Boolean
    +previous()
    +next()
    +first()
    +last()
    +contains(key: K): Boolean
    +find(key: K): Boolean
    Additional Notes:
    The TableIndex class implements the TableNavigator Interface.
    The purpose of the above methods is outlined in the TableIndex class.
    Your Data Row Class
    You are to include a class of your own to represent a row of data in the TableIndex. This is not to be a class that was covered in other programming subjects. It does not need to be complex but must include a range of data types. This class will be used to test your TableIndex class. The class should have an appropriate name and deal with something of interest to you.
    Your Application Class
    The application class is to make use of the TableIndex class and your data row class. It is to clearly show how the TableIndex class is used, and in doing so, test it. The class should have an appropriate name. The application class should create two indexes of different key data types. One of the indexes must make use of the Comparator interface to have a key that is in descending order.
    Output
    Output in the test classes/programs is to go to standard out or a text file. There should be no output from the TableIndex class or your data row class. A GUI interface is NOT required. There is no need to input data from the keyboard or file. Use the Unix script command or write output to a text file (etc) to provide example runs of your test programs.

  • Help with JSP and logic:iterate

    I have some queries hope someone can help me.
    I have a jsp page call request.jsp:
    ====================================
    <%@ page import="java.util.*" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html>
    <body>
       <%@ page import="RequestData" %>
       <jsp:useBean id="RD" class="RequestData" />
       <%Iterator data = (Iterator)request.getAttribute("Data");%>
       <logic:iterate id="element" name="RD" collection="<%=data%>">
          <jsp:getProperty name="RD" property="requestID" />
          <%=element%><br>
       </logic:iterate>
    </body>
    </html>
    And I have the RequestData.java file:
    ======================================
    private int requestID = 1234;
    public int getRequestID() { return requestID; }
    The jsp page display:
    ======================
    0 RequestData@590510
    0 RequestData@5b6d00
    0 RequestData@514f7f
    0 RequestData@3a5a9c
    0 RequestData@12d7ae
    0 RequestData@e1666
    Seems like the requestID is not returned. Does anybody know this?
    I have done the exact one using JSP and servlets, trying to learn using JSP and custom tags. The one with JSP and servlet looks like:
    ============================================
    <%@ page import="RequestData" %>
    <%Iterator data = (Iterator)request.getAttribute("Data");
    while (data.hasNext()) {
       RequestData RD = (RequestData)data.next();
       out.println(RD.getRequestID() );
    }%>

    Oh think I got it...
    but one thing I'm not sure is...
    If I use "<jsp:useBean id="RD" class="RequestData" />", do I still need "<%@ page import="RequestData" %>"?
    I tried without and it gives me error...

  • Help with TYPE and LIKE statements

    HI guys,
    I know this is really novice stuff, but I am a little confused.
    Can anyone please explain the exact difference between TYPE and like with the help of a program, to understand it.
    What situation would demand the use of each of the LIKE statement, since I can do all these things using the TYPE ?

    Hi Akhil,
    I summarized the info in SDN posts and SAP Help, to make it easier for you to understand. I also included some code snippets. Hope these prove to be helpful to you.
    The following is from SAP Help:
    The Additions TYPE and LIKE
    The additions TYPE type and LIKE dobj are used in various ABAP statements. The additions can have various meanings, depending on the syntax and context.
    ·        Definition of local types in a program
    ·        Declaration of data objects
    ·        Dynamic creation of data objects
    ·        Specification of the type of formal parameters in subroutines
    ·        Specification of the type of formal parameters in methods
    ·        Specification of the type of field symbols
    A known data type can be any of the following:
    ·        A predefined ABAP type to which you refer using the TYPE addition
    ·        An existing local data type in the program to which you refer using the TYPE addition
    ·        The data type of a local data object in the program to which you refer using the LIKE addition
    ·        A data type in the ABAP Dictionary to which you refer using the TYPE addition. To ensure compatibility with earlier releases, it is still possible to use the LIKE addition to refer to database tables and flat structures in the ABAP Dictionary. However, you should use the TYPE addition in new programs.
    The LIKE addition takes its technical attributes from a visible data object. As a rule, you can use LIKE to refer to any object that has been declared using DATA or a similar statement, and is visible in the current context.  The data object only has to have been declared. It is irrelevant whether the data object already exists in memory when you make the LIKE reference.
    ·        In principle, the local data objects in the same program are visible. As with local data types, there is a difference between local data objects in procedures and global data objects. Data objects defined in a procedure obscure other objects with the same name that are declared in the global declarations of the program.
    ·        You can also refer to the data objects of other visible ABAP programs. These might be, for example, the visible attributes of global classes in class pools. If a global class cl_lobal has a public instance attribute or static attribute attr, you can refer to it as follows in any ABAP program:
    DATA dref TYPE REF TO cl_global.
    DATA:  f1 LIKE cl_global=>attr,
           f2 LIKE dref->attr.
    You can access the technical properties of an instance attribute using the class name and a reference variable without first having to create an object. The properties of the attributes of a class are not instance-specific and belong to the static properties of the class.
    Example
    TYPES: BEGIN OF struct,
             number_1 TYPE i,
             number_2 TYPE p DECIMALS 2,
           END OF struct.
    DATA:  wa_struct TYPE struct,
           number    LIKE wa_struct-number_2,
           date      LIKE sy-datum,
           time      TYPE t,
           text      TYPE string,
           company   TYPE s_carr_id.
    This example declares variables with reference to the internal type STRUCT in the program, a component of an existing data object wa_struct, the predefined data object SY-DATUM, the predefined ABAP type t and STRING, and the data element S_CARR_ID from the ABAP Dictionary.
    The following info is from various posts:
    --> Type: It is used when userdefined object link with SAP system data type.
    Local types mask global types that have the same names. When typing the interface parameters or field symbols, a reference is also possible to generic types ANY, ANY TABLE,INDEX TABLE, TABLE or STANDARD TABLE, SORTED TABLE and HASHED TABLE.
    --> Like: It is when data object link with the other data object.
    --> TYPE, you assign datatype directly to the data object while declaring.
    --> LIKE,you assign the datatype of another object to the declaring data object. The datatype is referenced indirectly.
    you can refer to all visible data objects at the ABAP program's positon in question. Only the declaration of the data object must be known. In this case it is totally irrelevant whether the data object already exists physically in
    memory during the LIKE reference. Local data objects mask global data objects that have the same name.
    --> Type is a keyword used to refer to a data type whereas Like is a keyword used to copy the existing properties of already existing data object.
    Types: var1(20) type c.
    data: var2 type var1. ( type is used bcoz var1 is defined with TYPES and it
    does not occupy any memory spce.
    data: var3 like var2. ( like is used here bcoz var2 is defined with DATA
    so it does occupy space in memory ).
    data: material like mara-matnr. ( like is used here bcoz mara-matnr is stored in memory)
    --> Type refers the existing data type
    --> Like refers the existing data object
    Please Reward Points if any of the above points are helpful to you.
    Regards,
    Kalyan Chakravarthy

  • Please help with Collection

    Hello, I have an assignment on collection and have tried to implement it but facing errors that i am unable to understand.
    Below is what i am supposed to do and below that is my code which is ofcourse not working as always (just kidding)
    Question:
    Design and Implement a class called SimpleEmailManager, in package swd.util, which manages a collection of SimpleEmail instances. The manager�s behaviour is shown in the following sample codes:                         [35%]
    SimpleEmailManager manager = new SimpleEmailManager();
    // Construct a SimpleManager that manages an empty collection of SimpleEmails
    SimpleEmail m1 = new SimpleEmail (�);
    Mail m2 = new Mail (�);
    m1.setCreateDate(new java.util.Date(�Jan 1, 2002�));
    m2.setCreateDate(new java.util.Date(�June 16, 1997�));
    manager.add(m1); // Add Mail m1 to the collection
    manager.add(m2); // Add Mail m2 to the collection
    SimpleEmail m = manager.getNewestMail();
    // Return one of the SimpleEmail in the collection with the most recent creation
    // date. Return null if the collection is empty
    java.util.Iterator iterator1 = manager.getMailMadeBefore("Jan 1, 1998");
    // Return an Iterator of the Simple Mails in the collection created Before
    // the specific date
    java.util.Iterator iterator2 = manager.iterator()
    // Return an Iterator of the collection managed by the manager
    manager.remove(m1)
    // Remove mail m1 from the collection
    My Solution:
    package swd.util;
    import java.util.*;
    import javax.swing.*;
    import swd.util.SimpleEmail;
    import swd.util.Mail;
    * <p>Title: SimpleEmailMsnsger Class</p>
    * <p>Description: Manages a colection of objects of simple email class</p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: </p>
    * <p>author Irfan Noor Bukhari ID=12748237</p>
    * <p>version 1.0</p>
    public class SimpleEmailManager
         SimpleEmailManager manager = new Collection();
         public SimpleEmailManager()
              SimpleEmail m1 = new SimpleEmail ("Wag The Dog", "[email protected]", "[email protected]");
              Mail m2 = new Mail ("[email protected]", "[email protected]", "Is this the subject", "Wag The Dog");
              m1.setCreateDate(new Date("Jan 1, 2002"));
              m2.setCreateDate(new Date("June 16, 1997"));
              manager.add(m1);
              manager.add(m2);
              SimpleEmail m = manager.getNewestMail();
              //JOptionPane.showInputDialog("Enter Date")
    //          Collection c;
    //          c.add(m1);
    //          c.add(m2);
    //m1.setCreateDate(new java.util.Date("Jan 1, 2002"));
    //m2.setCreateDate(new java.util.Date("June 16, 1997"));
    //manager.add(m1); // Add Mail m1 to the collection
    //manager.add(m2); // Add Mail m2 to the collection
    //SimpleEmail m = manager.getNewestMail();
    // Return one of the SimpleEmail in the collection with the most recent creation
    // date. Return null if the collection is empty
    //java.util.Iterator iterator1 = manager.getMailMadeBefore("Jan 1, 1998");
    // Return an Iterator of the Simple Mails in the collection created Before
    // the specific date
    //java.util.Iterator iterator2 = manager.iterator()
    // Return an Iterator of the collection managed by the manager
    //manager.remove(m1)
    //     public Collection add(SimpleEmail o)
    //          Collection c;
    //          c.add(o);
    //          return c;
         public SimpleEmailManager getNewestMail()
              Iterator i = manager.iterator();
              if (manager == null)
                   return null;
              else
                   while ( i.hasNext() )
                        System.out.println(i.next().toString());
              return     i.next();
         public static void main(String[] args)
              new SimpleEmailManager();
    please help me

    How much of java do you know? Since you have started working on Collections I take it that you have covered the basics of class, constructors, variables & their types & such like. From your code it is apparent that you still haven't understood these basic concepts. I'd recommend that you read your notes, read a good book on java, read the tutorials on sun's website (the 1st few trails), get a firm grasp of these basic concepts first and then go back to your Collections assignment. Yes, this is a lot of work; yes it will take time; but nothing of value can be learned without expending time & energy.
    Since I'm feeling rather magnanimous at this time, I'll give you a hint. You have class called SimpleEmailManager; you are declaring a variable called manager of type SimpleEmailManager in the constructor; but you are trying to create it as a Collection type. Decide whether the var manager is SimpleEmailManager or Collection.

  • Help with Mathscipt and for loop

    I have a code in Mathscript/matlab and I need to output the array out. One option is my first code,the other option is using a for loop, but I am only getting the last ouput out. I need to get the whole output out.
    Any help.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Help with Mathscript_for loop.vi ‏115 KB
    Help with Mathscript_for loop2.vi ‏84 KB

    Here's how it should look like.
    Message Edited by altenbach on 10-30-2008 05:12 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MathscriptInFOR.png ‏15 KB

Maybe you are looking for

  • Is TREX mandatory for Talent Management?

    Dear Experts, Is TREX a mandatory component for Talent Management? It's because I am having issue when I click "Search" in Talent Management Specialist Launchpad, telling me "Error occurred during the search; contact your system administrator". And i

  • Where can I fiond the documentation of these tool options? (sorry I do not even the name of these buttons :-( )

    Hi! Sorry, I'm lost. I just started to wonder, what are these buttons for: http://postimg.org/image/vryd2es2f/ (Sorry, but the file upload pop up is not working for since weeks...) I've no clue, how to search for it, as I do not know, how to name the

  • Photoshop CS6 is installed, do I need CC or can it be uninstalled

    I started Adobe Application Manager from the desktop icon, I assumed it was for checking for and installing updates for Photoshop CS6, but it in fact is an installer for CC. I allowed the installation to complete rather than quit partway through and

  • Windows 7 64bit ultimate and x-fi

    !Hi! Can somebody help me. I recently installed win 7 ultimate 64bit and found my driver CD is not compatibile. I went to Creative sites but by the images there's no my audio card. On my installation CD there is sign "Xtreme Fidelity", but I didn't f

  • Newbie having problems with image on form

    In Design, I use both the "image" and "image field" tools to place a JPG image on my form, but the image does not show up on the form (the placement is there for the image, but not the image). How can I correct this problem?