Adding to JList Issues

I'm trying to make a class that will add objects to a JList by reading out of a text file at the punch of a button.
This is what I came up with:
public void importAction() {
        try {
            FileReader fileReader = new FileReader("children.txt");
            File file = new File("children.txt");
            BufferedReader buff = new BufferedReader(fileReader);
            int childrenInFile = Integer.parseInt(buff.readLine());
                for (int childrenOnList = 1; childrenOnList < childrenInFile; childrenOnList++ ) {
                    jList1 = new JList(listmodel);
                    listmodel.addElement(buff.readLine());
        } catch (IOException ex) {
    }...but obviously that didn't work for me.
It compiled correctly but when I pressed the import button in the applet, nothing happened.
I have googled this issue thoroughly.

Let's say you have 100 child elements. Then that one statement assigns a class variable called jList1 to 99 different JList objects (discarding them all) before settling down with the 100'th JList object. You then proceed to not actually do anything with this new JList component - like add it to a visible hierarchy. You can delete the statement all together.
Assuming that listmodel is the actual model of the JList you are trying to change, and that JList is already visible, then what you have here
listmodel.addElement(buff.readLine()); should be sufficient to see a some sort of change. Because you don't see any change, then the next question is what is "listmodel"? Is it the model of a JList in a visible hierarchy?

Similar Messages

  • Error Code "-5002" While adding a Goods Issue Document

    Hi,
    While adding a goods issue document for only a specific combination of items I get "Internal Error (-5002) occured" message.
    The scenario is i am adding 5 rows with following specification
    Row1- Serial Managed Item
    Row2- Batch Managed Item
    Row3- Managed by none
    Row4- Batch Managed Item
    Row5- Serial Managed Item

    Hi I had the same Issue,
    What my problem solved was setting the baseline number for each serial and batch number on each specific line to the line number of that specific line.
    like this:
    doc.Lines.SerialNumbers.SetCurrentLine(doc.Lines.SerialNumbers.Count - 1);
    doc.Lines.SerialNumbers.InternalSerialNumber = 2;
    doc.Lines.SerialNumbers.BaseLineNumber = doc.Lines.SerialNumbers.Count - 1;
    Regards

  • Event Receiver:Item is Being Adding Event Recevier Issue

    Hi All,
     * I had written Simple event receviers(Item is Being Adding) to a site at FarmLevel(Farm Solution) and below is the code for it.
    * In below code I am adding the List name to a Column called "Name" ,when Item is being adding the code is getting loop and inserting unwanted data and updating Column "Name" with it instead of updating when item is added
    *Below if u see there is no value in Column "Name" when I insert values "Mark Devis"(Title) and "In Meeting"(Body) columns
    Can any one help me how can I solve the issue
           Code:
    string listitle = properties.List.Title + "" + "is List Name";
    string siteurl = http://sp2010:8080/personal/Sample/;
    using (SPSite mysite = new SPSite(siteurl))
    using (SPWeb myweb = mysite.OpenWeb())
    SPList mylist = myweb.Lists["Announcements"];    
    SPListItem newitem = mylist.Items.Add();
          newitem["Name"] = listitle.ToString();
          newitem.Update();
    Result:
    Samar

    Hello Samar,
    Try to use before/after properties to update item in list on ItemAdding event.
    http://sarveshspn.blogspot.in/2010/05/using-itemadding-and-afterproperties-to_08.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1ed217b1-9441-4fe1-b3aa-68b2768bdfc7/updating-list-item-value-on-the-itemadding-event-handler-of-an-item-receiver-class?forum=sharepointdevelopmentlegacy
    Also make sure that you have at least contributor right in list to edit data.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • "Most Recently Added" Playlist syncing issue

    I add music to my iTunes library pretty slowly, so I created this smart playlist to replace the default Recently Added playlist:
    http://www.cubeupload.com/files/45a800smartplaylist.png
    In iTunes, this shows me the the 90 most recent Music items I added to my library. On my iPod Touch 2nd Gen, however, it shows me a seemingly random list of songs in my library which were synced to the iPod.
    Any ideas?
    Message was edited by: Corey Csuhta

    Hi Corey,
    Welcome to Apple Discussions.
    The conditions for your Smart Playlist are specific to the following:
    iTunes will pick "90" items, with the parameter of *"most recently added"* - the "most recently added" condition is based of date, too my knowledge it does not encompass time though. - So, if you added more than 200 items and they all share the same date, then iTunes will choose 90 of those 200 items randomly.
    Other than that, there may be a metadata error in your files which is causing this issue.
    Regards,
    Peter.

  • Programmatically Added Web Part Issues - Powershell

    Hello!
    I have been doing quite a bit of research on this for the last few days but so far to no avail. What I am trying to do is use a powershell script to create a Content Editor Web Part on a basic sharepoint site created using the Team Site template. 
    The issue I'm running into is when I use the script I have to add a new web part to the "wpz" zone. The webpart gets created properly and exists in the webparts collection however it does not show up on the page. I can bind to the webpart through
    powershell and can see that the visible property is set to true while the hidden property is false. The webpart is not closed it simply doesn't show up. 
    When I add the webpart to another zone it shows up properly however as soon as you edit the page the webpart disappears. However this only happens while the page is in edit mode. As soon as you save the page the programmatically added webpart immediately
    shows back up in the zone it's supposed to be in. 
    I was wondering if anyone else had ever experienced this specific issue and if there is anything I can do to fix it.
    The environment is a development box running Microsoft Server 2012 and is hosting Sharepoint 2013. 
    Thanks!

    Hello Patrick,
    Thanks for your response. The script I am using is in the following code block:
    $SiteUrl = "http://maddevsp01.btdev.net/my/personal/14736"
    $WebUrl = "http://maddevsp01.btdev.net/my/personal/14736"
    function main() {
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $OpenWeb = Get-SPWeb $WebUrl
    $OpenSite = Get-SPSite $SiteUrl
    $file = $OpenWeb.GetFile("$WebURL/SitePages/Home.aspx")
    $WebPartManager = $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
    Add-ContentEditorWebPart "$WebURL" "$WebURL/SitePages/Home.aspx" "wpz" 12 "Test" "Test webpart"
    $OpenWeb.Dispose()
    function Add-ContentEditorWebPart($SiteURL, $pageUrl, $webpartzone, $index, $title, $content)
    $site = new-object Microsoft.SharePoint.SPSite($SiteURL)
    $web=$site.OpenWeb()
    $webpartmanager = $web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
    $webpart = new-object Microsoft.SharePoint.WebPartPages.ContentEditorWebPart
    $webpart.ChromeType = [System.Web.UI.WebControls.WebParts.PartChromeType]::Default;
    $webpart.Title = $title
    $docXml = New-Object System.Xml.XmlDocument
    $contentXml = $docXml.CreateElement("Content");
    $contentXml.set_InnerText($content);
    $docXml.AppendChild($contentXml);
    $webpart.Content = $contentXml;
    $webpartmanager.AddWebPart($webpart, $webpartzone, $index);
    $web.Close()
    $site.Close()
    function Get-SPSite([string]$url) {
    New-Object Microsoft.SharePoint.SPSite($url)
    function Get-SPWeb([string]$url) {
    $SPSite = Get-SPSite $url
    return $SPSite.OpenWeb()
    $SPSite.Dispose()
    main
    I was investigating further after posting yesterday and used powershell to bind to a webpart created by the script and a webpart I created using the sharepoint interface. Then I exported all the properties and their values to two different text files and
    used winmerge to compare the differences to see if there was a setting I was missing in the script or something akin to that. However when I did the comparison the only differences between the two were the following values: Title, Description, PartOrder, ID,
    StorageKey, EffectiveTitle, DisplayTitle, ZoneIndex, ClientID, and UniqueID. All of which you would expect to be different. All other settings are exactly the same on both webparts.
    I am at a complete loss as to what this issue might be.
    Kindest Regards,
    -Zach

  • Dual Layer DVD with added ROM folder issue

    When I burn dual layer discs with an added ROM folder I add the ROM folder along with the TS folders at the root level in Toast, and they burn just fine. For replicated discs I've always sent the files to a company in Boston to put on LTO for the replicator. Now a client's replicator wants the files as DDP 2.0, on discs, and I can create a standard DVD Video without issue in DVDSP, except, I'm having issues with adding ROM material. Obviously, I have to add the ROM folder within DVDSP and not Toast, since it gets built in to the DDP file. The trouble I'm having is when I add the ROM material within DVDSP, with ROM selected and Joliet enabled.
    DVDSP creates the DDP files, and at the same time, it creates a TS file too, so I can burn that to see if the files are correct. But in the TS version there is no ROM folder. I only create one folder, named Extras. I've read here in this forum about the need to create a folder within a folder because of the way DVDSP reads and includes the folder. Is that still the case? Do I need to put my Extras folder inside another folder, select that folder, and DVDSP will put the Extras folder on the DVD? And finally, I don't have a lot of confidence now in what's actually on the DDP disc. Is there any way a mere mortal can confirm the contents of a DDP file?
    Ed

    I just wanted to make sure you are aware that there is no reliable way to acess ROM content outside of the user navigating to the root level of the disc. The technology was abandoned at least 6 years ago. Most people just have a menu that give the user direction on how to navigate to the root level of the DVD but in my experience this only applies to single layer discs.
    I haven't ever been able to burn successful dual-layer discs in programs outside of DSP. DSP does something in the burn process that Toast and others is unable to do so that the second layer can be read.
    I do not believe that the DDP can create/show ROM content for a dual layer disc.
    The reason being that layer 0 always has to be bigger than layer 1(second layer) and authoring of the layers doesn't allow for a xtra folder of ROM content in the DDP format.
    If these are being replicated I would check with the replicator and inquire if they have made a DL disc with ROM content. Possibly they could add the folder before the glass master is made but I believe it is unlikely.

  • JList issues...

    I am working on a project, and it involves making a frame and adding JList components to it. In my constructor, I make the frame, and add the components to it.
    Later in my code, I try to add items to a JList. From what I have seen, in order to change the data in a JList, you basically have to create a new JList. So, I used something like:
    lstCourses = new JList(data);
    where lstCourses was the JList that I added to the frame, and data is some array of data, in this case a String[]. In the debugger, I can see this new JList being made, and everything looks correct, but the JList does not change on the frame. I even tried using repaint to update the frame, but to no avail.
    Is there some concept behind Java GUIs that I am not taking into consideration?
    Thanks,
    JZ

    jzimmerman2011 wrote:
    I am working on a project, and it involves making a frame and adding JList components to it. In my constructor, I make the frame, and add the components to it.
    Later in my code, I try to add items to a JList. From what I have seen, in order to change the data in a JList, you basically have to create a new JList. So, I used something like:
    lstCourses = new JList(data);
    where lstCourses was the JList that I added to the frame, You've added a Component to your GUI, and kept a reference to that Component. Later on, you change the contents of that reference, that is, which Object the reference points to. You're not changing the UI in any way. Just the reference. Read up on the difference between Objects and variables.
    To have your new JList appear in the UI, you'd have to reproduce the steps that made the first one get there originally: add the Object to a Component hierarchy.
    However, as was already pointed out, you don't need to do that. Just modify the JList's model (maybe read up on MVC).
    Try for instance using a DefaultListModel. You can modify its contents as you fancy. It will take care of causing the changes to propagate to the UI.

  • Adding a JList to a JScrollPane

    Searching through the archives, this appears to be a pretty frequent question, but so far, none of the answers have worked for me. Behold, what I have:
    Filelist = new JList(Filelistmodel);
    FilePane = new JScrollPane();
    FilePane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    FilePane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    FilePane.setMaximumSize(new Dimension(650,150));
    FilePane.setMinimumSize(new Dimension(650,150));
    FilePane.setPreferredSize(new Dimension(650,150));
    FilePane.setBounds(150, 0, 650, 150);
    FilePane.setViewportView(Filelist);
    panel.add(FilePane);     Message was edited by:
    break_the_chain

    Ok, here's the context. It's not exactly simple, but it should compile and the rest of the code is more or less outside of the problem.
    package formshow;
    //import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.util.*;
    public class Sync extends JApplet
         JButton bttn1;
         JComboBox Cbox_drives, Cbox_folders;
         JPanel panel;
         JFrame aframe;
         JScrollPane FilePane;
         DefaultListModel Filelistmodel;
         JList Filelist;
         class OnlyPRE implements FilenameFilter
           Vector PRE;
           public OnlyPRE(Vector PRE)
           {this.PRE = PRE;}
           public boolean accept(File dir, String name)
                              boolean accept = false;
              for (int i=0; i<PRE.size(); i++)
              if (name.startsWith((String)PRE.get(i)))
              accept = true;
           return accept;
         public void init()
              //applet listener
              this.addFocusListener( new FocusListener()
                public void focusGained(FocusEvent evt)
                                   getContentPane().invalidate();
                   getContentPane().validate();
              public void focusLost(FocusEvent evt)
                 getContentPane().invalidate();
                 getContentPane().validate();
                             //this applet
              this.setSize(800,150);
              //jpanel
              panel = new JPanel(null);
              //Button init stuff
              bttn1 = new JButton("Get Files");
              bttn1.setSize(150,50);
              bttn1.setLocation(0,100);
              bttn1.addActionListener( new ActionListener()
                 public void actionPerformed(ActionEvent evt)
                 {PopList();}
              panel.add(bttn1);
              //Cbox_drives init stuff
              int offset = 'a';                    
              Cbox_drives = new JComboBox();
              for (int i=0; i<26; i++)
              Cbox_drives.addItem((char)(offset+i)+":\\");               
              Cbox_drives.setSize(150,50);
              Cbox_drives.setLocation(0,0);
                              Cbox_drives.addActionListener( new ActionListener()
                public void actionPerformed(ActionEvent evt)
                   try                                  {
                    getPatFolders();
                  catch (Exception e)Cbox_drives.setBackground(Color.RED);}
              panel.add(Cbox_drives);
              //Cbox_folders init stuff
              Cbox_folders = new JComboBox();
              Cbox_folders.setLocation(0,50);
              Cbox_folders.setSize(150,50);
              Cbox_folders.addItem("Pick the drive letter you have mapped to 1416_a");
              panel.add(Cbox_folders);
              //Filelist init stuff
              Filelist = new JList();
              Filelist.setVisibleRowCount(5);
              //FilePane init stuff
              FilePane = new JScrollPane(Filelist);
              FilePane.setLocation(150,0);
              FilePane.setSize(650,150);
              panel.add(FilePane);
              getContentPane().add(panel);                              
              private int getPatFolders () throws Exception
                   String drive = (String) Cbox_drives.getSelectedItem();
                   String files[];
                   Vector prelist = new Vector();
                   prelist.addElement("PAT");
                   prelist.addElement("REL");
                   prelist.addElement("EME");
                   FilenameFilter onlyget = new OnlyPRE(prelist);
                   Cbox_folders.removeAllItems();
                   try{
                   File rootFolder = new File(drive);
                   files = rootFolder.list();
                   catch (Exception E)
                   files = new String[]{"Error Here"};
                   for (int i=0; i<files.length; i++)
                        Cbox_folders.addItem((String)files);               
                   return (1);
              private int PopList()
                   File StartFolder = new File(((String)Cbox_drives.getSelectedItem())+
    (String)Cbox_folders.getSelectedItem()));
                   PopList(getFiles(StartFolder));
                   Filelist.removeAll();
                   Filelist = new JList(Filelistmodel);
                   FilePane = new JScrollPane();
                   FilePane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                   FilePane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                   FilePane.setMaximumSize(new Dimension(650,150));
                   FilePane.setMinimumSize(new Dimension(650,150));
                   FilePane.setPreferredSize(new Dimension(650,150));
                   FilePane.setBounds(150, 0, 650, 150);
                   FilePane.setViewportView(Filelist);
                   panel.add(FilePane);     
                   getContentPane().invalidate();
                   getContentPane().validate();
                   return(1);
              private int PopList(Vector transmute)
                   Filelistmodel = new DefaultListModel();
                   for (int i=0; i<transmute.size(); i++)
                        Filelistmodel.addElement(transmute.elementAt(i));
                   return(1);
              private Vector getFiles(File ThisPath)
                   Vector ThisLevel = new Vector();               
                   String FileList[] = ThisPath.list();
                   for (int i=0; i<FileList.length; i++)
                             File afile = new File(ThisPath.getAbsolutePath()+"\\"+FileList[i]);
                             if (afile.isFile())
                                  ThisLevel.addElement(afile.getAbsolutePath());
                             else
                                  append(ThisLevel,getFiles(afile));                              
                   return ThisLevel;
              private Vector append(Vector Left, Vector Right)
                   for (int i=0; i<Right.size();i++)
                        Left.addElement(Right.get(i));
                   return Left;
    Ok, basically this is for windows users. Pick a drive letter, then pick a folder from the next combo box.
    Hit the button and a list of all of the files in the folders and subfolders shows up in the JList on the right.
    DO NOT try this when the second list box is pointing to something like windows or program files.
    I'd recommend creating your own folder that goes maybe one or two levels deep with just a bunch of empty text files.
    I will <3 anyone that can help me with this forever and bestow upon them rediculous numbers of dukestars.
    Message was edited by:
    break_the_chain

  • Adding the Goods Issue Date

    Hi,
    On the Sales order screen in VA01, there is a tab at item level called Shipping. The dates that can be changed here are the delivery date, Material Availability date and Loading Date. From here we would also like to be abe to change the Goods Issue Date.
    Do you know if it is possible to add this date to the screen?
    Thanks in advance,
    Finbarr

    Hi Mahesh,
    I checked but copy control does not add the Goods Issue date to the screen.
    Hi Rajesh,
    Would like to add the Goods issue Date and not change the Delivery date.
    Thanks,
    Finbarr

  • Internal error (-2014) Goods Issue with Batch Items added through UI

    Hello Experts,
    I've added a button to my Production Order screen labeled 'Issue Components' that is meant to streamline the process, and it works, except when the ProdOrder has Batch controlled items on it. When that happens it returns Internal error (-2014)<br><br>
    I've tried stepping through the code and it doesn't error until the final Add
    Here is my function, Thanks for the Help!<br><br>
    I'm using CitiXSys Inventory Pro and am pulling the items from the Picked table, that's what that sQuery does. It returns correctly. I've also set everything to 'Manual' instead of 'Backflush'<br><br><br>
    <pre>
    Private Sub IssueComponents(ByVal iDocNum As Integer)
            Try
                'Declaring the needed variables'
                Dim oRec As SAPbobsCOM.Recordset
                Dim oGoodsIssue As SAPbobsCOM.Documents
                Dim bIssueLineAdded As Boolean = False, sQuery As String = "", x As Integer = 0, iCode As Long = 0, sErrorMessage As String = ""
                Dim tmpLot As String = ""
                'Instanciating the Goods Issue'
                oGoodsIssue = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
                'Initialzing the SBO object'
                oRec = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                'Assing the header of the Goods Issue'
                oGoodsIssue.DocDate = Date.Now
                oGoodsIssue.DocDueDate = Date.Now
                'Getting the entire "Manual" components for this production order to issue them'
                sQuery &= "Select PK1.U_DocNo, KI.U_ItemCode, KI.U_BseLnNo, OW.DocEntry, KI.U_Quantity, KI.U_WhsCode, KI2.U_BatSrlNo, KI2.U_LotNo from [OWOR] OW (NOLOCK) INNER JOIN [@ctx_pkin] PK ON OW.DocNum = PK.U_BaseDoc," & vbNewLine
                sQuery &= "[@ctx_PKIN] PK1 (NOLOCK) INNER JOIN [@CTX_KIN1] KI (NOLOCK) ON PK1.U_DocNo = KI.U_DocNo," & vbNewLine
                sQuery &= "[@ctx_KIN1] KI1 (NOLOCK) INNER JOIN [@CTX_KIN2] KI2 (NOLOCK) ON KI1.U_DocNo = KI2.U_DocNo and KI1.U_BseLnNo = KI2.U_BseLnNo" & vbNewLine
                sQuery &= "where OW.DocNum = '" & iDocNum & "' and PK.U_BaseType = 202 and PK1.U_DocNo = PK.U_DocNo and KI1.U_DocNo = PK.U_DocNo and KI1.U_BseLnNo = KI.U_BseLnNo" & vbNewLine
                'Executing the query'
                oRec.DoQuery(sQuery)
                'Looping through the "Manual" components'
                For x = 0 To oRec.RecordCount - 1
                    'Prompting the user'
                    oAppl.StatusBar.SetText("Issuing Components...(" & x + 1 & " of " & oRec.RecordCount & ")", SAPbouiCOM.BoMessageTime.bmt_Long, SAPbouiCOM.BoStatusBarMessageType.smt_Warning)
                    'Adding the previous line if applicable'
                    If bIssueLineAdded Then
                        oGoodsIssue.Lines.Add()
                    End If
                    'Filling the line information'
                    oGoodsIssue.Lines.WarehouseCode = oRec.Fields.Item("U_WhsCode").Value 'dIssueComponents(x).Item("WhsCode")
                    'oGoodsIssue.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntComplete
                    oGoodsIssue.Lines.BaseEntry = oRec.Fields.Item("DocEntry").Value 'oProductionOrder.AbsoluteEntry
                    oGoodsIssue.Lines.BaseType = 202                                          'Production Order Type'
                    oGoodsIssue.Lines.BaseLine = oRec.Fields.Item("U_BseLnNo").Value 'GetBaseLine(oProductionOrder.AbsoluteEntry, dIssueComponents(x).Item("Component"))
                    'oGoodsIssue.Lines.ItemCode = oRec.Fields.Item("U_ItemCode").Value
                    oGoodsIssue.Lines.Quantity = oRec.Fields.Item("U_Quantity").Value 'Math.Round(oRec.Fields.Item("U_Quantity").Value, 2) 'dIssueComponents(x).Item("PlanQty")
                    'Checking if the item is neither lot or serial controlled item'
                    If oRec.Fields.Item("U_BatSrlNo").Value = "" And oRec.Fields.Item("U_LotNo").Value = "" Then
                        'Nothing controlled item'
                    ElseIf oRec.Fields.Item("U_BatSrlNo").Value <> "" Then
                        'Lot controlled item'
                        tmpLot = oRec.Fields.Item("U_BatSrlNo").Value
                        'oAppl.MessageBox("Lot: " & tmpLot & ", whs: " & oRec.Fields.Item("U_WhsCode").Value & ", qty: " & oRec.Fields.Item("U_Quantity").Value)
                        oGoodsIssue.Lines.BatchNumbers.Add()
                        oGoodsIssue.Lines.BatchNumbers.BatchNumber = oRec.Fields.Item("U_BatSrlNo").Value
                        oGoodsIssue.Lines.BatchNumbers.Quantity = oRec.Fields.Item("U_Quantity").Value 'Math.Round(oRec.Fields.Item("U_Quantity").Value, 2)
                        'Else
                        'Serial controlled item'
                        'oGoodsIssue.Lines.SerialNumbers.SystemSerialNumber = oRec.Fields.Item("").Value
                    End If
                    'Setting the line to be added'
                    bIssueLineAdded = True
                    'Movoing to the next record'
                    oRec.MoveNext()
                Next x
                'Checking if there was any component or not'
                If bIssueLineAdded Then
                    'Adding the Goods Issue'
                    iCode = oGoodsIssue.Add
                    If iCode <> 0 Then
                        oCompany.GetLastError(iCode, sErrorMessage)
                        oAppl.MessageBox("Goods Issue Production Order: " & iDocNum & " didn't get created for the following reason: " & serrormessage)
                    Else
                        oAppl.StatusBar.SetText("Components were issued successfully.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                        'TODO: add to ProdOrder remarks field
                    End If
                End If
            Catch ex As Exception
                oAppl.MessageBox("IssueComponents() " & ex.Message)
                oAppl.StatusBar.SetText("Error in IssueComponenets() : " & ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
            End Try
        End Sub
    </pre>
    Edited by: Rob Daniels on May 30, 2011 10:33 PM

    Please use the latest upgrade of Inventory Pro from CitiXsys.
    If you are using SAP Business One 2007; use Inventory Pro 5.6 series
    For SAP Business One 8.8 and up; use Inventory Pro 6.6.1 and up

  • Why are my videos showing up in "Recently Added" but not in TV Shows or Movies?

    I didn't have a problem adding videos to iTunes for several months, but now videos are not appearing in the right places. For some reason, they appear in the Recently Added playlist, but they are not showing up in the Movies section (which is where they had all gone before). The video plays fine if I play the file from Recently Added.
    The files are mp4 format converted with Handbrake, which I have used for a long time without issue.
    2011 iMac OSX 10.7.3 & iTunes 10.6.1 (7)
    My research into the issue has found that some users experience metadata info missing from files. I ran some of the recommended programs that automatically add metadata to videos, but still had no luck adding. The issue is with every single mp4 file I add, and it just suddenly started.
    If I click "Get Info" on a file, they are listed as being sorted as a Movie. If I change it to TV Show or Music Video then click OK, no changes are saved and file goes no where.
    I get no Error Message when adding to iTunes.
    I hope I have provided enough information. I'm eager to hear your answers!

    Update:
    Still having issues getting new videos to show in the "Movies" or "TV Shows" categories of iTunes. However, last night I discovered that Home Sharing on my iPad lists the newly imported videos in the Movies category (iPad & Video app). So, the files aren't corrupt or anything like that. It just seems like I need to 'refresh' the Movies page. Is that possible?
    Since I can see the files on the iPad now, I want to remove the extra copies of movies I imported. But, since I can only find them in Playlists, how can I delete them?

  • TableAdapter Configuration Wizard gives error when adding new TableAdapter

    Hi,
    I recently downloaded and installed the ODT for visual studio on my computer. I am running VS2008 on Windows 7 64-bit. I am able to create an ODP.NET connection to the Oracle XE 10.2g instance that is running on my computer with no problems and use that connection to browse the database. When I add a DataSet to my project, and start adding TableAdapters to the DataSet, I am getting errors. In an attempt to figure out what the problem is, I have followed various scenarios. I will describe each scenario, and what the end result is, and then after I have described them all, I will explain what I think the problem might be. Here are the different scenarios I have used:
    Scenario 1:
    From the Server Explorer, highlight ALL of the tables in my schema and drag them to the designer (all table adapters are added with no issues). I can add additional queries to each of the TableAdapters and then change the additional queries by right clicking and choosing "Configure". This all works with no issues. However, on certain TableAdapters, if I try to modify the primary query (Fill,GetData()), I can open the query editor just fine, change various settings, etc, but when I click on "Finish" I get the following error:
    Configure TableAdapter TABLENAME failed.
    Index was outside the bounds of the array.
    Scenario 2:
    From the Server Explorer, drag tables from my schema onto the designer one at a time. Some tables get added just fine, but for the rest of them, I get the following error:
    Failed to merge object(s).
    Index was outside the bounds of the array.
    Scenario 3:
    On the Dataset Designer, add tables one at a time by right clicking and choosing "Add -> TableAdapter" and then using SQL to define the query for each table. Some tables get added just fine, but for the rest of them, I get the following error:
    Failed to add TableAdapter.
    Index was outside the bounds of the array.
    Ok... now that I have described all of the different scenarios, I will explain what I think the problem is, and why. Based on my research, I believe the underlying problem has to do with Foreign Key Constraints on the various tables. While working on Scenarios 2 & 3, the same exact tables worked just fine in both scenarios. When I started looking at the definitions for the tables in my schema, it turns out that all of the tables that failed had foreign key constraints defined. When I remove the FK constraints from a table, I am then able to add it to my dataset and change the default query with no problems. My original application used the System.Data.OracleClient provided by Microsoft. When adding my tableadapters using the microsoft data provider, the FK relations are automatically generated for me in the designer, but not with the Oracle Data Provider
    I would be happy to provide you with the DDL that I used for creating my schema (it is not very big) if needed.
    Thanks,
    Jim

    Sorry let me clarify some of the config a little more.
    MAIL101 - Exch 2013
    MAIL102 - Exch 2013
    AP104 - Witness (strictly a witness nothing else on this machine)
    EDGE01 - Exch 2007 Edge
    CAS01 - Exch 2007 Hub/CAS load balancer for CAS02/03
    CAS02 - Exch 2007 Hub/CAS
    CAS03 - Exch 2007 Hub/CAS
    MBOX01 - Exch 2007 Mail cluster
    MBOX02 - Exch 2007 Mail cluster node
    MBOX03 - Exch 2007 Mail cluster node
    RDC01, RDC02, RDC03 - all 2008 R2 root domain controllers for rootdomain.rootdomain
    DC01, DC02, DC03, DC04 - all 2008 R2 domain controllers for us.rootdomain.rootdomain
    All DCs are Global Catalogs.
    I can ping all DCs and root DCs fromboth MAIL101 and 102
    The Exchange Replication service is running on both MAIL101 and 102.
    DC03 is in the same site as the MAIL101/102 servers so I'll run all replication tests from here.
    DCDIAG comes back with all tests passed.
    repadmin /replsum comes back with 0 fails and no errors largest delta for any intersite communication is 13min.
    When I run Test-ReplicationHealth -Identity MAIL101 and also 102 they both come back as everything passed.  No errors.

  • Goods Issue with cost

    Hello
    I am trying to make a goods issue to adjust the inventory, but i want to make it with the real cost of the product.
    I have just made a formated search to get the cost of the product, the problem is that if i select the last purchase price list, i update this price with the cost, and i dont want to update the last purchase price.
    If i choose another list, for example price list 01, this list doesnt get update with the cost?
    Thanks
    Jacobo

    Hi,
    The price list in goods issue document is defaulted the 'last purchase
    price', and you could manually change it by select from the drop down
    list before you add the document.And you could also manually change the info price column.
    However the price list and price in the document is only informative. From the testing we could see that the item's cost will always be
    used to calculate released stockvalue and create journal postings.
    The item cost and last purchase price will not be affected by adding the
    goods issue document.
    Best Regards
    Helen Sun

  • ITunes shows added music but won't play

    Hi,
    I recently started having problems with newly added mp3's to my iTunes library.  iTunes appears to have added the song to my library, as it shows up in the recently added playlists and music tab, however when I click to play the song, it skips to the last song that was successfully added.  The issue is not limited to just a single mp3, it's won't allow me to properly add any new music at all now.  I checked for software updates, and I'm running the latest version.  I have also restarted iTunes, my Macbook Air and attempted adding new music with iTunes Match turned off without any success.  Anyone else experiencing this problem?
    Thanks!

    I bought my wife a iPod Nano. It was sent back to Apple. I visited Aplle Store Genius' multiple times, and even got it exchanged, giving up the oringinal engraved one. Yes, it has the problem of not playing purchased Itunes songs, but it will work for while, then start skipping those purchased songs, then for no reason, starts working again! No one has any idea what to do. It has to be something with the software since this is Nano #2. I've tried everything that has been recommended. The fact that it is intermittant is the bigget mystery of all. I just turned it on and its working. When we try it later, it may not. Any ideas that any one has will be appreciated. Thanks

  • JScrollPane now showing up with JList using TableLayout

    Hi,
    I have JFrame using TableLayout. On this JFrame I have added a JPanel that uses TableLayout too. Now this panel is divided into 4 cells. One each cell I am adding a JList. ALl the lists show up fine on the appropriate cells on the panel, but they don't hav any scroll bars. Below is the code.
    Please help.
    Thx, Sid.
    DefaultListModel listModel = new DefaultListModel();
    JList list = new JList(listModel);
    list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    list.setVisibleRowCount(-1);
    listScroller = new JScrollPane(list);
    listScroller.setPreferredSize(new Dimension(250, 80));
    listScroller.setVerticalScrollBarPolicy(
         JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    listScroller.setHorizontalScrollBarPolicy
         (JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    panel.add(list, new TableLayoutConstraints(2*itr1, 0, 2*itr1, 0, 
                        TableLayout.FULL, TableLayout.FULL));
    lg.getListModel().addElement("Element1");
    lg.getListModel().addElement("Element2);
    .

    Okay, I think I know what I am doing wrong. I need to add the JScrollPane to the panel and not the JList!

Maybe you are looking for

  • Why is it that when i sign into apple i get "cannot connect to iTunes store"?

    I have a problem and i need help. So my email address got hacked which is the same email i use for my apple ID. I got back the account and changed the email used for it and also the password and was succesfull. i was able to sign in and out on my pc

  • How can I get credit in Mac App Store for software installed from CD?

    So I have purchased iLife '11 and iWork '09 disks.  I have had them installed on my MacBook Pro since 2010.  The Mac App Store has happily been updating the all the apps for as long as I can remember.  However, the MAS doesn't recognize the iLife and

  • What does 'filter failure' mean when my epson will not print?

    I recently responded to a Software Update for my Epson Stylus TX610FW Printer. It has crashed constantly since. It will print a Nozzle Check but whenever I attempt to print a document in any Application the printer crashes. I have replaced Mountain L

  • FM to get product guid from serial no.

    Hi,                I have serial number of a product. I want to get the product guid. Is there any FM for this. I can get the product guid from serial no from this table by select statement but I was searching for any FM which I can use it directly.

  • Case-insensitive Search-Highlighting doesn't work..

    Hi, I've got a poblem using the character-highlighting in report regions... There are some html-tags in the searched data, perhaps this can cause some problems? They work, but they don't highlight case-insensitive... Where could be the error? Message