Adding item to array already created

hey, im having problems adding to array that is already created, here is the code.
the buffer reader and the inputs are created. an arrray list has also been created with elements already in it. ihave created 7 processes but want to add one more to it which is called pprocess 8.
i have created the variables
String name
double amount
double price
i input these values no p[roblem with that all i need to do is add onto the process list. how do i do that, ive done this but no luck.
Processes tProcesses8 = new Processes(tname , amount, tprice);
tProcessList.add(tProcesses8);
does anybody no the problem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

i input these values no p[roblem with that all i need
to do is add onto the process list. how do i do that,
ive done this but no luck.
Processes tProcesses8 = new Processes(tname , amount,
tprice);
tProcessList.add(tProcesses8);
When you say "no luck", what do you mean?  Does it compile?  Does it throw an exception?  What is the failure mode?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Adding additional albums on already-create album page in iWeb??

    Hello,
    I have a web site already created in iweb and there is an album page with multiple albums. I am wondering now, how do I create another album on this page? I have the photos on my desktop (NOT in iphoto) that I want to add, and simply want to create an additional album on the page and drag these images into it.
    Does anyone have any advice? This seems like it should be easy but I cannot figure it out, and appreciate any insight! Thanks!

    Question-
    i am adding photos to my page and would like to be able to double click on a photo and have it expand to full size viewing in another page or the same page.
    How do i acheive this?
    Thanks in advance for any assistance!!

  • Adding new class in already created DIR

    I created a DIR and it is in released staus .
    I change the status from released to correction. One class is already added in the DIR. I want to add a new class in that DIR. but the system won't allow me. Message appearing "Multiple classification not allowed"
    Can anyone help?
    Its urgent

    Message appearing "Multiple classification not allowed"
    Propose you setup a Class Hierarchy to meet your requirement.Herein,you would need to create a parent class and assign subordinate classes to it.
    For Eg: Assume you have created classes Class ABC and Class PQR and you need to assign both of these to a Document Type.When you attempt to do this, the system throws up a message  "Multiple classification not allowed". Hence,you need to create another new class Class XYZ and assign both the previously created classes Class ABC and Class PQR to it. (Path:SAP Menu> CA components> Classification S/m > Assignment > Assign objects/Classes to classes)
    Once done,you would have to assign Class XYZ to the required Document Type.This will ensure that the required classes are assigned and reflect in the Document Type.
    Regards,
    Pradeepkumar Haragoldavar

  • Can we copy the already created Configuration Item in ATO Model

    Hi all,
    We have the requirement for copy the Existing configurator ATO items into new model. i.e. Customer will congifured the model in istore process flow to create a sale order. After that for second sales order customer don't want to make same configuration so added interface for copying the existing configuration. In this process we are facing following issue.
    Steps we are followed for copying the existing ATO models:
    =>First we find the existing configuration's for already created ato model.
    =>Then we copied the existing model configuration into new configuration using cz_cfg_api.copy_configuration API.
    =>After that we are passing new configuration detail, model line details and sub item detail into ASO_QUOTE_LINES_PVT.Insert_Quote_Line_Rows API.
    =>This API's will made the appropriate entry in 'ASO_QUOTE_LINES_ALL' and 'ASO_QUOTE_LINE_DETAILS', line_relation tables.
    After the all process when we looking into the cart page the model and model sub-items are created as separate lines.
    It was not converted as ATO model.
    Please help.

    Hi,
    We solved this issue by using custom API process, also we used ASO oracle packages.
    Thanks,
    LSP

  • Adding a file to an already created Archive throws error

    Hello Experts,
    In one of the WLST python scripts, we had a piece of code which was adding a file to an already created archive. Below is the code snippet:
    import zipfile
    try:
    conn='1.properties'
    fileName='/home/pbnagara/temp/Zip1.par'
    myZip = zipfile.ZipFile(fileName, mode='a')
    myZip.write(conn)
    myZip.close()
    except Exception:
    print 'Exception occurred while writing to Zip file: ' + fileName
    --> it makes use of the standard python module [zipfile] to add a file to the archive.
    This code has started failing [for some strange unknown reason] when we upgraded.
    The same script works fine in a standalone mode[using the system's default python packages] but fails only when run within WLST.
    Does WLST package a different set of zipfile libraries? Can anyone point out what might be going wrong here?

    I did get a reply from someone on the jfreechart forum, but need to ask more questions. This was his reply:
    Hi Allyson,
    You are trying to add a (subclass of) JFrame to a JPanel...that won't work, of course, and Java tells you so.
    You need to create a ChartPanel to display your chart. This is a subclass of JComponent, which you can happily add to a JPanel (or any other container).
    Regards,
    Dave Gilbert
    Here is the code for the method:
    private void LineChartFrame() {
    double[][] data = new double[][] {
    { 1.0, 4.0, 3.0, 5.0, 5.0, 7.0, 7.0, 8.0 },
    { 5.0, 7.0, 6.0, 8.0, 4.0, 4.0, 2.0, 1.0 },
    { 4.0, 3.0, 2.0, 3.0, 6.0, 3.0, 4.0, 3.0 }
    DefaultCategoryDataset dataset = new DefaultCategoryDataset(data);
    // set the series names...
    String[] seriesNames = new String[] { "First", "Second", "Third" };
    dataset.setSeriesNames(seriesNames);
    // set the category names...
    String[] categories = new String[] { "Type 1", "Type 2", "Type 3", "Type 4", "Type 5", "Type 6", "Type 7", "Type 8" };
    dataset.setCategories(categories);
    // create the chart...
    chart = ChartFactory.createLineChart(
    "Line Chart Demo 1", // chart title
    "Category", // domain axis label
    "Value", // range axis label
    dataset, // data
    true, // include legend
    true, // tooltips
    false); // urls
    chartPanel = new ChartPanel(chart);
    chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
    setContentPane(chartPanel);
    }And I tried this to add it to my panel:
    jPanel1.add(chartPanel, null);But I get this error:
    java.lang.NullPointerException
    ChartPanel is defined globally in this file.
    jPanel1 is my main panel that I want to add the chart to.
    I am putting my last duke dollar on this in the hopes that someone can help. Thanks.
    Allyson

  • Adding a new item to an already existing BOM

    Hi,
        I am having a problem adding a new item to an already existing parent BOM.I excute the following code (as per the SDK).
        Dim vProdTree As SAPbobsCOM.ProductTrees
        Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
        'Set Values to the fields
        vProdTree.TreeCode = "Item1"
        vProdTree.TreeType = iProductionTree
        'Set Values to the Assembly parts of the
        'First Assembly
        vProdTree.Items.ItemCode = Excel.Row(Cell1)
        vProdTree.Items.Price = 20
        vProdTree.Items.Quantity = 1
        vProdTree.Items.Currency = "Eur"
        'Adding the Product Tree
        RetVal = vProdTree.Add
        If (RetVal <> 0) Then
            vCmp.GetLastError ErrCode, ErrMsg
            MsgBox ErrCode & " " & ErrMsg
        End If
    If there is no parent BOM production tree with keycode Item1, then when the above code is run for the first time, it works.The issue occurs when I run change my excel, Cell1 to a different value and run the program again. The error states that the code already exists, which is correct, but does not  append the item to the existing BOM.
    I have tried vProdTree.Update, but this line overwrites the original child item in the BOM, rather than appending a new item, which is what I want it to do.
    Any  help is appreciated.
    - Adrian.V

    Your issue here is how the "Items" (which is actually pointing to ProductTree_Lines object) works. It is a List of items, and when you get the object is always pointing at the first item in the list.
    So for example, to add a BOM with two items you would need to set the details of the first Item and then add a line using vProdTree.Items.Add() before setting the values for that item.
    e.g.:
    Dim vProdTree As SAPbobsCOM.ProductTrees
    Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
    'Set Values to the fields
    vProdTree.TreeCode = "Item1"
    vProdTree.TreeType = iProductionTree
    'Set Values to the Assembly parts of the
    'First Assembly
    vProdTree.Items.ItemCode = Excel.Row(Cell1)
    vProdTree.Items.Price = 20
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Add a second item to the BOM
    vProdTree.Items.Add
    vProdTree.Items.ItemCode = Excel.Row(Cell2)
    vProdTree.Items.Price = 50
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Adding the Product Tree
    RetVal = vProdTree.Add
    If (RetVal 0) Then
    vCmp.GetLastError ErrCode, ErrMsg
    MsgBox ErrCode & " " & ErrMsg
    End If
    To do what you want to do, which is get the BOM and add a new item to it, you will need to do this:
    Dim vProdTree As SAPbobsCOM.ProductTrees
    Set vProdTree = vCmp.GetBusinessObject(oProductTrees)
    'Get your BOM by key
    vProdTree.GetByKey("Item1")
    'Add a second item to the BOM
    'First Item exists so you need to add a new row
    vProdTree.Items.Add
    vProdTree.Items.ItemCode = Excel.Row(Cell1)
    vProdTree.Items.Price = 50
    vProdTree.Items.Quantity = 1
    vProdTree.Items.Currency = "Eur"
    'Update the Product Tree
    RetVal = vProdTree.Update
    If (RetVal 0) Then
    vCmp.GetLastError ErrCode, ErrMsg
    MsgBox ErrCode & " " & ErrMsg
    End If
    Method one allows you to add multiple lines as you add the object (which makes more sense), method 2 allows you to get the object after it has been added and add multiple lines to it. This is similar to how the Document_Lines object works.

  • Adding a Date/Time stamp to videos already created

    We have someone using Elemets 8
    They need to add in the date/time stamp to video's that are already created.
    The camcorder we have does record this information but doesn't allow that information to be put onto the screen its a Canon HD HF200
    We were told by Adobe support we can do this but they wanted $39 plus $39 an hour.
    Anyone out there able to tell me how we can get this done for free

    PrE lacks the TimeCode Effect (unless it has been added in PrE 10?), that both PrPro and Adobe After Effects has. However, even that Effect does not do date/time, just Runtime TimeCode, but with some display alternatives.
    There are two programs called DVDate. One is/was freeware, and the other was inexpensive shareware. I do not have the two links handy, but believe that either will do what the user wishes.
    I know that in the past, one valued contributor, Neale, has posted the links, and has also given the details of what each of the programs can, and cannot do. Maybe he'll drop by this thread, and fill in the blanks that I am leaving here.
    Good luck,
    Hunt

  • Programmatically create array from common cluster items inside array of clusters

    I have seen many questions and responses on dealing with arrays of clusters, but none that discuss quite what I am looking for. I am trying to programmatically create an array from common cluster items inside array of clusters. I have a working solution but looking for a cleaner approach.  I have an array of clusters representing channels of data.  Each cluster contains a mixture of control data types, i.e.. names, types, range, values, units, etc. The entire cluster is a typedef made up of other typedefs such as the type, range and units and native controls like numeric and boolean. One array is a “block” or module. One cluster is a channel of data. I wrote a small vi to extract all the data with the same units and “pipe” them into another array so that I can process all the data from all the channels of the same units together.  It consists of a loop to iterate through the array, in which there is an unbundle by name and a case structure with a case for each unit.  Within a specific case, there is a build array for that unit and all the other non-relevant shift registers pass through.  As you can see from the attached snapshots, the effort to add an additional unit grows as each non-relevant case must be wired through.  It is important to note that there is no default case.  My question:  Is there a cleaner, more efficient and elegant way to do this?
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    NI_Chan units to array_1.png ‏35 KB
    NI_Chan units to array_2.png ‏50 KB

    nathand wrote:
    Your comments made me curious, so I put together a quick test. Maybe there's an error in the code (below as a snippet, and attached as a VI) or maybe it's been fixed in LabVIEW 2013, but I'm consistently getting faster times from the IPE (2-3 ms versus 5-6ms for unbundle/index). See if you get the same results. For fun I flipped the order of the test and got the same results (this is why the snippet and the VI execute the tests in opposite order).
    This seems like a poster child for using the IPES!  We can look at the index array + replace subset and recognize that it is in place, but the compiler is not so clever (yet!).  The bundle/unbundle is a well-known "magic pattern" so it should be roughly equivalent to the IPES, with a tiny penalty due to overhead.
    Replace only the array operation with an IPES and leave the bundle/unbundle alone and I wager the times will be roughly the same as using the nested IPES.  Maybe even a slight lean toward the magic pattern now if I recall correctly.
    If you instantly recognize all combinations which the compiler will optimize and not optimize, or you want to exhaustively benchmark all of your code then pick and choose between the two to avoid the slight overhead.  Otherwise I think the IPES looks better, at best works MUCH better, and at worst works ever-so-slightly worse.  And as a not-so-gentle reminder to all:  if you really care about performance at this level of detail: TURN OFF DEBUGGING!

  • Adding the date/time stamp to videos already created

    We have someone using Elemets 8
    They need to add in the date/time stamp to video's that are already created.
    The camcorder we have does record this information but doesn't allow that information to be put onto the screen its a Canon HD HF200
    We were told by Adobe support we can do this but they wanted $39 plus $39 an hour.
    Anyone out there able to tell me how we can get this done for free?

      Try the Premier Elements forum for video questions. You will get better advice over there. Good luck.
    http://forums.adobe.com/community/premiere_elements

  • Shopping Cart workflow retrigger for changes done to SC already created

    Hi all,
    A shopping cart is created and later on in "Check Status" when the shopping cart is opened in change mode and any changes are made to the shopping cart either header or item level, the whole approval workflow is retriggered and the approvers are determined again.
    We have a scenario where for a particular account assignment category the approvers are added manually - ad hoc approvers through the "Add Approver" in "Approval Preview". For these shopping carts with manual approvers when in "Check Status" any changes are done to header or items of the shopping cart, the whole approval workflow is retriggered and the manual approvers previously added are refreshed as per standard SAP.
    I have to put a check in DOC_CHECK badi for the existence of approvers. If no approvers found an error message has to be thrown for adding the approvers manually. I am doing this by reading the approvers from the container for a cart created already. But when changes are made and the workflow is retriggered, the workflow container contains only the previous approvers and not the refreshed ones. So this is not captured in DOC_CHECK badi.
    Is there any way to capture the retriggering of workflow in DOC_CHECK badi, so that the check for approvers works fine even after a change being done to a shopping cart which is already created.
    Thanks and Regards,
    Asha

    Try this FM BBP_PDH_WFL_APPROVAL_SIMULATE
    Regards, IA

  • SSRS 2008 Work order Report , when added item descriotion , somehow costgroup id is not working , donot know why, ( need help)

    SSRS 2008 Production orders created report, when I added item description some how cost group id is not working ,
    my costgroup id did not break into labor , only Mat Cost showed in the total,
    my query is as below,  did I link the wrong field,   I want to show Labor total also
    can some one suggest what I did wrong .
    any advise will be great
    SELECT        PRODTABLE.PRODID, PRODCALCTRANS.COSTGROUPID, PRODTABLE.QTYCALC, PRODTABLE.PRODSTATUS, PRODCALCTRANS.COSTAMOUNT,
                             PRODCALCTRANS.COSTMARKUP, PRODCALCTRANS.REALCOSTAMOUNT, PRODCALCTRANS.CALCTYPE, PRODTABLE.DATAAREAID, PRODCALCTRANS.KEY3,
                             PRODCALCTRANS.CONSUMPVARIABLE, PRODCALCTRANS.REALCONSUMP, PRODTABLE.ITEMID, PRODTABLE.SCHEDDATE, PRODTABLE.FINISHEDDATE,
                             PRODCALCTRANS.KEY1, PRODCALCTRANS.TRANSDATE, PRODCALCTRANS.QTY, PRODCALCTRANS.KEY2, PRODCALCTRANS.COLLECTREFLEVEL,
                             PRODCALCTRANS.LINENUM, INVENTTABLE.ITEMNAME, INVENTTABLE.ITEMID AS Expr1, PRODTABLE.INVENTTRANSID
    FROM            PRODTABLE INNER JOIN
                             PRODCALCTRANS ON PRODTABLE.PRODID = PRODCALCTRANS.PRODID AND PRODTABLE.DATAAREAID = PRODCALCTRANS.DATAAREAID INNER
    JOIN
                             INVENTTABLE ON PRODCALCTRANS.DATAAREAID = INVENTTABLE.DATAAREAID AND PRODCALCTRANS.KEY1 = INVENTTABLE.ITEMID
    WHERE        (PRODTABLE.PRODSTATUS = 7) AND (PRODTABLE.DATAAREAID = N'AR1') AND (PRODTABLE.ITEMID = @itemid) AND
                             (PRODTABLE.FINISHEDDATE >= @Paramfromdate) AND (PRODTABLE.FINISHEDDATE <= @Paramtodate) AND (PRODCALCTRANS.COLLECTREFLEVEL
    = 1) AND
                             (PRODCALCTRANS.CALCTYPE >= 0)

    Hi Bitia,
    As per my understanding, after you add Item field to the report, it does not calculate total of matl group, right? If that is the case, please refer to the following steps to troubleshoot the problem:
    Modify the dataset used to retrieve data, delete the fields will not be used in the report.
    Run the query in SQL Server Management Studio (SSMS) to make sure that there is data for matl cost group.
    Make sure that row group and totals are correctly added.
    In addition, do you want to add Finished date to page header? If that is the case, we can use ReportItem to achieve the goal. Please refer to the following steps:
    In design surface, right-click the report and click Insert, then click Page Header.
    Drag Text Box from Toolbox to page header.
    Right-click inside of Text Box, then click Expression.
    In the expression text box, type the code like below:
    =ReportItems!FinishedDate.Value
    If the problem remain unresolved, please provide the screenshot of the report in design view, the following screenshot is for your reference:
    Reference:
    ReportItems Collection References
    Adding Grouping and Totals
    Thanks,
    Wendy Fu

  • PO item level validation if create with ref to contract

    Hi
    Pl help me to fulfill the following client requirement:
    When user create the PO with ref to contract , system fetch the all data from the contract to PO at line item level, but in the PO, user is able to change the contract line item rate.
    Now contract line item rate is already fixed with vendor & PO creator should not allowed change this rate.
    Could you provide the any standard configuaration or development to restric the user to chage the PO line item rate if created with ref to contract
    Pl give me replay as soon as possible as it is very urgent
    Rgds
    Nishit

    Hi,
    First you have to create a separate document type which is to be used for creation of PO referring a contract . Than define functional authorisation to buyers going by the menupath -Materials management > Purchasing > Authorisation management > Define function authorisations for buyers-Function Authorizations: Purchase Order. Here enter the field selection key of the new PO document type you created . Than check the box "Display Prices" . Uncheck all other boxes .You can check reference to Contract against possible reference Objects. Than save . Than in the User id enter the User parameter EFB and allocate the aparameter to the user . Also remove other document types of POs except the newly created document type in user authorisations. This will prevent change of price field in the specific document type.
    Dhruba

  • Problem - Adding item using wwsbr_api.add_item

    Hi, I´m using portal 10.1.2.0.2 and when I try to add an file using wwsbr_api.add_item, it returns me the following error "ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException"
    But It happens only when the file name has special caracter.
    Anybody has any idea how to solve it?

    You mentioned at the top of the thread that the region type had not been defined. I have not tried this in 10.1.4, but I know in previous versions if you programmatic ally added a item to an undefined region it didn't show up until that region was manually configured as an item region. The symptoms were as you describe -- nothing showed up in edit or view mode. As soon as the region was setup as a item region, the items appeared.
    Roche's suggestion will establish if the item is even being created at all.
    Rgds/Mark M.

  • Pre-populating a date/time column with the value entered in the last added item

    I have a list with a column called "expected finish date". Whenever the user adds the very first item in a list, he/she should have to enter a value for this column.
    I want to make all new item entries to pre-poplate this field with the value entered in the previously added item. This way, he/she wont have to re-enter the date every time (which rarely changes). How can this be done?

    could create a second list ("state") with column ("default finish date")...
    create a workflow on main list... if column is blank/empty, pull from second list... otherwise, update second list with the value that was entered.
    Or, customize the form (InfoPath or JavaScript)
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Is there a Button menu option that will allow one view the names of all the buttons already created?

    Is there a Button menu option in InDesign CS 5.5 that will allow one view the names of all the buttons already created?

    Thanks for your prompt feedback! However, this option does not work for me -- and I'm not sure exactly why.
    Originally, when I tried your suggestion, I got the unsatisfactory result illustrated in the following help request: https://support.mozilla.com/en-US/questions/758172
    Now I am in the process of testing several new add-ons to fix this problem, and I am getting a very different (and even more unsatisfying) result illustrated in the attached image -- so I realize the problem may now be compounded by one or more of the new add-ons.
    (See the attached image that illustrates what happens now when I click on the MyDocs URL after is has been added to my Bookmarks tree.)
    UPDATE: I'm going to try the LocalLinks add-on to see if this will help me open local links using my FireFox bookmarks: https://addons.mozilla.org/en-US/firefox/addon/locallink/
    Will let you know if it works....

Maybe you are looking for