Object array - how to add items?

Hello!
I have little problem, how to add item to array, to get something like this:
Object[][] someObject = {
{"1", "2"},
{"4","5"}
};From this:
Object[][] someObject = {
{"1", "2"}
};? Thanks in advance!

Once you allocate an array like that, you can't
resize it.
Object[][] someObject = {
{"1", "2"}
};creates an array with size [1][2]. You can't makeit
any larger. You can create a new Object[][]
with the new size, copy the elements into the new
array, then add your new objects in the newposition.
or even better use arraylistExcept that he's using this for a JTable, so the best he could do is a Vector. Yuck. :)

Similar Messages

  • DataGrid - Create at runtime - How to Add Items??

    I create a DataGrid at runtime and then and columns to it as need be. How Can I add items with the correct dataField if I don't if I don;t know this till runtime? In other word I'm having trouble constructing the Object to send to AddItem becase the dataField Name needs to be hard coded...
    Below does not work for me because if I have more than one column then I can seem to figure out out to create  ItemObjFinal dynnamically.
    var ItemObjFinal:Object = {ThisNameNeedsToBeDynamic: "text", ThisNameNeedsToBeDynamic: "value" };
    I also tried creating an array of Objects like this:
    var ItemObjFinal:Object = new Object;
    var obj:Object= dgc.dataField;
    ItemObjFinal [0] = {(obj.valueOf()):  dgc.headerText };
    ItemObjFinal [1] = {(obj.valueOf()):  dgc.headerText };
    =========================================================================================
                  ac.addItemAt(dgc, int(ac.length));
                  dataGrid_preview.columns = ac.toArray();
                  var obj:Object= dgc.dataField;
                  var ItemObjFinal:Object = {(obj.valueOf()):  dgc.headerText };
                  var obj2:Object= dgc.dataField;
                  var ItemObjFinal2:Object = {(obj2.valueOf()): dgc.headerText};
                  //K Now add it!
                  //IList(dataGrid_preview.dataProvider).removeAll();
                  IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal,0);
                 //IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal2,1);

    Ahh answered my own question:
                 ac.addItemAt(dgc, int(ac.length));
                  dataGrid_preview.columns = ac.toArray();
                  var ItemObjFinal:Object = new Object;
                  var ItemObjFinal2:Object = new Object;
                  for each(var col:DataGridColumn in ac)
                    ItemObjFinal[col.dataField] = col.headerText;
                    ItemObjFinal2[col.dataField] = col.headerText;
                  ItemObjFinal[dgc.dataField] = dgc.headerText;
                  ItemObjFinal2[dgc.dataField] = dgc.headerText;
                  //K Now add it!
                  if(IList(dataGrid_preview.dataProvider).length > 1)
                      IList(dataGrid_preview.dataProvider).removeItemAt(0);
                      IList(dataGrid_preview.dataProvider).removeItemAt(1);
                  IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal,0);
                  IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal2,1);
    This code may still need some tweaking as I get an RTE at  "IList(dataGrid_preview.dataProvider).removeItemAt(1);"   but at least I'm able to solve my original question. Thanks Alex!

  • How to add item to a List with a bounded wildcard

    Hi,
    Is there a way to add a subtype instance to a List with a bounded wildcard? For example, say I have an
    abstract class called Car. Then I have 2 concrete subclasses--Ford and Toyota. Now say I have another
    class that contains a prepopulated list and is wildcard bounded like this: List<? extends Car> carList. I
    want to add a method where I pass in a Car subtype as a parameter and then add it into this list, e.g:
    public void addCar(Car car) {
    carList.add(car);
    Trying this, I keep getting "cannot find symbol" compilation errors. When I went back to read the Generics
    tutorial by Bracha, he mentions that explicitly adding a subtype, e.g. carList.add(new Ford()), can not be
    done. But here I'm adding the "upper bound" of the wildcard, i.e. the Car type. Therefore there should be no
    discrepancy between supertype and subtype an thus the carList.add(car) should be ok, IMO.
    Am I misunderstanding something with this logic? Also, if carList.add(car) can not be done, then how can
    I go about doing something similar which will allow me to add subtypes to a "generic" list?
    Thanks in advanced!
    -los

    I get a compilation error expecting an Object instead of a Car. Of course you did. List<? super Car> is a list into which you can put cars -- and possibly other stuff. List<? extends Car> is a list out of which you can get cars (possibly of different makes).
    Do you need a list that you can put cars in and get cars out? That's List<Car>
    This isn't a linguistic problem you are having; this is a design problem. If you have a function that takes an argument which is a list that you can put any kind of car into and be sure of getting a car out of, it isn't reasonable to pass in a List<Ford> (because the function might put in a Chevy) or a List<Object> (but there might be motorcycles already in there). By the requirements you have, you need a List<Car> and nothing else.
    Yes, you could use a cast, but all you are doing is circumventing the type system by saying "I know this List<Object> only has Cars in it."

  • How to add item in column header

    How can i add an messageStyled item(or any item) in column header? if so how can i do this

    Standard framework feature allows to add only a sortable header bean in a column header which holds some of the UI and runtime properties for that column.
    If you can explain your requirement, we can suggest the way to achieve that.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to add items into giftlist

    hi all please give me the solutions and code

    Hi,
    Several servlet beans are provided to support gift list and wish list functionality. These servlet beans can be used with forms to look up gift lists and gift items, as well as to perform actions, such as removing or purchasing items from a gift list, adding gift lists to a profile, and removing gift lists from a profile.
    You can look at Pioneer Cycling Store as an example  in  /atg/commerce/gifts/GiftlistFormHandler component in the product display page with an option for the customer to pick a list for the selected item.
    <code>
    <dsp:form action="<%=form24%>" method="post">
         <input name="id" type="hidden" value='<dsp:valueof param="id"/>'>
         <input type="hidden" name="itemType" value="product">
         <input name="itemId" type="hidden" value='<dsp:valueof
                      param="Product.repositoryId"/>'>
         <dsp:input bean="GiftlistFormHandler.addItemToGiftlistSuccessURL"
              type="hidden" value="../user/lists.jsp"/>
         <dsp:input bean="GiftlistFormHandler.addItemToGiftlistErrorURL" type="hidden"
              value="../user/lists.jsp"/>
         <dsp:input bean="GiftlistFormHandler.productId"
              paramvalue="Product.repositoryId" type="hidden"/>
         <%/*Display any errors that have been generated during Cart operations: */%>
         <dsp:include page="../../common/DisplayGiftlistFormHandlerErrors.jsp"
              flush="true"></dsp:include>
         Add <dsp:input bean="GiftlistFormHandler.quantity" size="4" type="text"
                  value="1"/>
         <dsp:select bean="GiftlistFormHandler.catalogRefIds">
         <dsp:droplet name="/atg/dynamo/droplet/ForEach">
           <dsp:param name="array" param="Product.childSKUs"/>
           <dsp:param name="elementName" value="sku"/>
           <dsp:param name="indexName" value="skuIndex"/>
           <dsp:oparam name="output">
         <dsp:getvalueof id="option59" param="sku.repositoryId"
              idtype="java.lang.String">
    <dsp:option value="<%=option59%>"/>
    </dsp:getvalueof><dsp:valueof param="sku.displayName"/>
           </dsp:oparam>
         </dsp:droplet>
         </dsp:select>
         <BR>
         to
         <dsp:select bean="GiftlistFormHandler.giftlistId">
           <dsp:getvalueof id="option73" bean="Profile.wishlist.id"
                idtype="java.lang.String">
    <dsp:option value="<%=option73%>"/>
    </dsp:getvalueof>My Wishlist
           <dsp:droplet name="/atg/dynamo/droplet/ForEach">
             <dsp:param bean="Profile.giftlists" name="array"/>
             <dsp:param name="elementName" value="giftlist"/>
             <dsp:oparam name="output">
             <dsp:getvalueof id="option83" param="giftlist.id"
                  idtype="java.lang.String">
    <dsp:option value="<%=option83%>"/>
    </dsp:getvalueof><dsp:valueof param="giftlist.eventName">Undefined</dsp:valueof>
             </dsp:oparam>
            </dsp:droplet>
         </dsp:select>
         <dsp:input bean="GiftlistFormHandler.addItemToGiftlist" type="submit"
              value="I Want It"/>
        </dsp:form></dsp:getvalueof>
    </code>

  • How to add item in advnace search LOV  of OA frame work ?

    HI,
    I have one requirement to add one new item in existing lov of advance search of vertical view in OA framework which is seeded.Through the Form personalisation
    I have created Criteria Row: (MscCreationdate_row) in which i have given ID value as MscxcreationDate
    and applied it then it get created. then created Message Lov Input only (and not able to create messageStyledText)
    as Level =Site Item ,Style =Message Lov Input
    there is lot of properties but i have filled only data type,promt I am not sure rest of the properties that what values should be there
    like Access Key,Attribute Set,View Attribute,View innstance etc...
    After that i have applied and found a option to create Lov Map: (MSCX_CREATION_DATE) and i mapped but there was also a lot of properties to fill
    like LOV Region Item,Return Item,Attribute Set,
    I have given LOV Region Item=MSCX_CREATION_DATE and same as return item.
    Could you please suggest me what values are needed in these properties here to add on field on advance search.
    when i open the advance search lov i found the creation date there and that get added in form also but when click in search button for value it threw the error:
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND-INVALID APPLICATION. Tokens: APPL = null;
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:2011)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND-INVALID APPLICATION. Tokens: APPL = null;
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:981)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND-INVALID APPLICATION. Tokens: APPL = null;
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:981)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Can anybody suggest me what are the only steps need to follow?
    Thanks,
    Edited by: user10980325 on 30 Mar, 2012 11:44 PM

    Hi!
    For existing entries, you can use the SAVE_TEXT function module.
    You just have to pass the right key to the function element.
    Regards
    Tamá

  • How to add items dynamically to the DropDown Ring control in Web UI Builder

    Hi All,
    Is there any way to add the item names to DropDown Ring Control in Web UI Builder?
    Or
    Is there any other control available to make selection in the Front Panel which can be dynamically loaded?
    Thanks,
    Alagar

    DiyaDiya  
    We do not currently have a solution for populating the items in a ring dynamically. 
    Thanks for the clarification.
    Seems incredible after all these years that such functionality (dynamically populating a ring control) is still beyond Labview. I must be missing something.
    However, I'd suggest a combobox is closer than a listbox as a workaround.
    [edit]
    nevermind, it actually can be done (well, maybe not in the webUI), I found the explanation here http://digital.ni.com/public.nsf/allkb/FB0409491FAB16FA86256D08004FCE7E

  • [SOLVED]how to add items in gnome 3 file manager

    Added an illustrating picture describing what I want to do. It wont let me just drag them there, any suggestions?
    Last edited by Crypz (2011-10-01 17:52:12)

    rogue wrote:Is that Nautilus file manager? If so I think you use the bookmarks to add things to the places menu.
    Figured it out.
    Tried that bookmark thing earlier too but it didnt react/do anything.
    now i tried "edit bookmarks" and somehow managed to get the bookmark option activated. Bookmarks appeared on the left and can now drag items there.

  • [SOLVED] How to Add Items in the Awesome Menu?

    I hate to ask, but I've gotta say I've read the manuals extensively, and can't figure out certain things in awesome... I want to purchase a lua programming manual to have around, but in the meantime... I'm hoping one of you guys can throw me a bone here and help me figure out this one thing...
    I've added firefox to my awesome menu so now it's like awesome > open terminal > firefox. However, nothing happens when I select firefox, and here's my code:
    -- {{{ Menu
    -- Create a launcher widget and a main menu
    myawesomemenu = {
       { "manual", terminal .. " -e man awesome" },
       { "edit config", editor_cmd .. " " .. awesome.conffile },
       { "restart", awesome.restart },
       { "quit", awesome.quit }
    mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
                                    { "open terminal", terminal },
                    { "firefox", awful.util.getdir("config") .. "/firefox.png" }
    mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
                                         menu = mymainmenu })
    -- Menubar configuration
    menubar.utils.terminal = terminal -- Set the terminal for applications that require it
    Anyone know what I'm doing wrong?
    Last edited by w201 (2013-03-02 04:49:11)

    The syntax for adding a menu item to awesome goes like this:
    mywebmenu = {
    {" Chromium", "chromium-browser", beautiful.chromium_icon},
    {" Dropbox", "dropbox", beautiful.dropbox_icon}
    or
    mysettingsmenu = {
    {" WICD", "urxvt -x wicd-curses", beautiful.wicd_icon}
    As you can see, the first item in the list is the name of the menu item, the second is the command to be run, and the third is the icon to be displayed. If there's no third field, no icon is displayed.
    Your code for adding firefox to your menu will correctly show "firefox" as the menu name being displayed, since that's the first field you added, but will attempt to execute "awful.util.getdir("config") .. "/firefox.png"  when you click the menu item, since that's what you provided as the second argument. Since that's not an executable command, nothing happens.
    Since the "awful.util..." bit seems to be you trying to get the proper icon for firefox, I suggest adding an element to the list between the two you already have that is just "firefox". This will ensure that when you click on "firefox" in your menu, the command that is run is "firefox", which should launch your browser.
    Last edited by dcalacci (2013-03-01 21:21:01)

  • How to add selected values from table(selected using checkbox)to table?

    Hi All,
    i have created simple page with search panel with table in table i have created one column as check box for selecting.
    here what my requirement is i need to do search multiple times to add some roles to from some different categories.here whenever i searched i ll get some roles into table there i ll select some role and i ll click add buttion. whenever i click add i need to add those roles into some other table finally i ll submit added roles.
    here i followed one link http://www.oracle.com/technetwork/developer-tools/adf/learnmore/99-checkbox-for-delete-in-table-1539659.pdf
    i used same code and able to see selected row in console, as object array how to add these into table.
    please help me out
    Thanks in advance
    siva shankar

    Thank you for a quick reply
    i used the same thing before i go for table check box concept.here what i observed is when i search i am getting some results i am able to shuttle.but if i search again the shuttle is refreshing with new values even not available list its refreshing selected list. IF dont want refresh selected ones.
    my usecase after make some searches I will select some roles from different categories at finally i ll submit.
    i hope you understand me requirement. please suggest me is this requirement is possible in shuttle component? if yes please guide me.
    thanks
    Siva Sankar

  • Add items in jlist

    hi
    im a bit confused as to how to add items to a jlist during runtime
    could someone please show an example

    Hi,
    Maybe this will help:
    http://www.exampledepot.com/egs/javax.swing/list_ListAddRem.html?l=rel

  • How To Load SINGLE CELL Value as Object - In 2D Object Array - InvalidCastException

    Setup: ---- VB.net - Visual Studio 2010 - Excel Version 2010 - Option Strict ON
    The following WORKS FINE all day long for loading MULTIPLE range values IE: ("F2:F5") or more into a 2D Object Array... No problem... as in the following..
    Dim myRangeTwo As Range = ws.Range("F2:F5")  ' MULTIPLE CELL RANGE     
    Dim arr2(,) As Object = CType(myRangeTwo.Value(XlRangeValueDataType.xlRangeValueDefault), Object(,))
    The ws.range("F2:F5") values are stuffed into the myRangeTwo range variable as 2D Objects and then those are easily stuffed into the 2D object array...
    But this does not work for a SINGLE cell range...
    Dim myRangeTwo As Range = ws.Range("F2:F2")    ' SINGLE CELL RANGE F2 ONLY            
    Dim arr2(,) As Object = CType(myRangeTwo.Value(XlRangeValueDataType.xlRangeValueDefault), Object(,))
    This triggers an Invalid Cast Exception error on trying to load into the arr2(,).. because the ws.range("F2:F2") is stuffed into the myRangeTwo variable as a "string"
    not as an object therefore is not possible to stuff it into an Object Array and so correctly causes the Invalid Cast Error...
    How do you handle this seemingly ridiculously simple problem ??
    thanks... Cj

    Hello,
    Simply answer, you need to determine if the range is a single cell or multiple cells. So the following is geared for returning a DataTable for a start and end cell addresses that are different, granted there is no check to see if the cells are valid i.e.
    end cell is before start cell i.e.
    Since B1 and B10 is a valid range we are good but if we pass in F1:F1 or F10:F10 we must make a decision as per the if statement at the start of the function and if I were expecting this to happen I would have another function that returned a single value.
    Option Strict On
    Option Infer On
    Imports Excel = Microsoft.Office.Interop.Excel
    Imports Microsoft.Office
    Imports System.Runtime.InteropServices
    Module ExcelDemoIteratingData_2
    Public Sub DemoGettingDates()
    Dim dt As DataTable = OpenExcelAndIterate(
    IO.Path.Combine(
    AppDomain.CurrentDomain.BaseDirectory,
    "GetDatesFromB.xlsx"),
    "Sheet1",
    "B1",
    "B10")
    Dim SomeDate As Date = #12/1/2013#
    Dim Results =
    From T In dt
    Where Not IsDBNull(T.Item("SomeDate")) AndAlso T.Field(Of Date)("SomeDate") = SomeDate
    Select T
    ).ToList
    If Results.Count > 0 Then
    For Each row As DataRow In Results
    Console.WriteLine("Row [{0}] Value [{1}]",
    row.Field(Of Integer)("Identifier"),
    row.Field(Of Date)("SomeDate").ToShortDateString)
    Next
    End If
    End Sub
    Public Function OpenExcelAndIterate(
    ByVal FileName As String,
    ByVal SheetName As String,
    ByVal StartCell As String,
    ByVal EndCell As String) As DataTable
    If StartCell = EndCell Then
    ' Decide logically what to do or
    ' throw an exception
    End If
    Dim dt As New DataTable
    If IO.File.Exists(FileName) Then
    Dim Proceed As Boolean = False
    Dim xlApp As Excel.Application = Nothing
    Dim xlWorkBooks As Excel.Workbooks = Nothing
    Dim xlWorkBook As Excel.Workbook = Nothing
    Dim xlWorkSheet As Excel.Worksheet = Nothing
    Dim xlWorkSheets As Excel.Sheets = Nothing
    Dim xlCells As Excel.Range = Nothing
    xlApp = New Excel.Application
    xlApp.DisplayAlerts = False
    xlWorkBooks = xlApp.Workbooks
    xlWorkBook = xlWorkBooks.Open(FileName)
    xlApp.Visible = False
    xlWorkSheets = xlWorkBook.Sheets
    ' For/Next finds our sheet
    For x As Integer = 1 To xlWorkSheets.Count
    xlWorkSheet = CType(xlWorkSheets(x), Excel.Worksheet)
    If xlWorkSheet.Name = SheetName Then
    Proceed = True
    Exit For
    End If
    Runtime.InteropServices.Marshal.FinalReleaseComObject(xlWorkSheet)
    xlWorkSheet = Nothing
    Next
    If Proceed Then
    dt.Columns.AddRange(
    New DataColumn() _
    New DataColumn With {.ColumnName = "Identifier", .DataType = GetType(Int32), .AutoIncrement = True, .AutoIncrementSeed = 1},
    New DataColumn With {.ColumnName = "SomeDate", .DataType = GetType(Date)}
    Dim xlUsedRange = xlWorkSheet.Range(StartCell, EndCell)
    Try
    Dim ExcelArray(,) As Object = CType(xlUsedRange.Value(Excel.XlRangeValueDataType.xlRangeValueDefault), Object(,))
    If ExcelArray IsNot Nothing Then
    ' Get bounds of the array.
    Dim bound0 As Integer = ExcelArray.GetUpperBound(0)
    Dim bound1 As Integer = ExcelArray.GetUpperBound(1)
    For j As Integer = 1 To bound0
    If (ExcelArray(j, 1) IsNot Nothing) Then
    dt.Rows.Add(New Object() {Nothing, ExcelArray(j, 1)})
    Else
    dt.Rows.Add(New Object() {Nothing, Nothing})
    End If
    Next
    End If
    Finally
    ReleaseComObject(xlUsedRange)
    End Try
    Else
    MessageBox.Show(SheetName & " not found.")
    End If
    xlWorkBook.Close()
    xlApp.UserControl = True
    xlApp.Quit()
    ReleaseComObject(xlCells)
    ReleaseComObject(xlWorkSheets)
    ReleaseComObject(xlWorkSheet)
    ReleaseComObject(xlWorkBook)
    ReleaseComObject(xlWorkBooks)
    ReleaseComObject(xlApp)
    Else
    MessageBox.Show("'" & FileName & "' not located. Try one of the write examples first.")
    End If
    Return dt
    End Function
    Private Sub ReleaseComObject(ByVal sender As Object)
    Try
    If sender IsNot Nothing Then
    System.Runtime.InteropServices.Marshal.ReleaseComObject(sender)
    sender = Nothing
    End If
    Catch ex As Exception
    sender = Nothing
    End Try
    End Sub
    End Module
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • How to add a default value in a site column for every item in a document library

    HI
    i created a content type with some site columns ,
    and included in a Document library.
    Process ( content type)
    -ProcessNo
    -ProcessName
    after that i uploaded 100 Documents but not  added value in a site column process name.
    now  how i add a default value in a site column for every document in a document library 
    adil

    HI
    i get below error when i change the script 
    PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
    Cannot index into a null array.
    At C:\Scripts\updatedefaultvalue.ps1:8 char:7
    + IF($i[ <<<< "Title"] -eq $null)
        + CategoryInfo          : InvalidOperation: (Title:String) [], RuntimeExce
       ption
        + FullyQualifiedErrorId : NullArray
    $web = Get-SPWeb http://tspmcwfe:89/
    $list = $web.Lists["test"]
    $item = $list.Items | Where { $_["Name"] -eq "Emc" }
    foreach($i in $items)
    IF($i["Title"] -eq $null)
             $i["Title"] = "test"
           $i.Update()
    adil
    Why are you piping a where in the items? Do you only want to add the "test" to ones matching
    a name?
    If you have ISE installed on your server I recommend you put your code in there and debug it. 
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • How to add a container object in a station globals

    Hi,
    How to add a container object in a station globals

    Hi radlou,
    This might be what you're looking for:
    NewSubProperty Method
    Syntax
    PropertyObject.NewSubProperty ( lookupString, ValueType, asArray, typeNameParam, options)
    Purpose
    Creates a new subproperty with the name the lookupString parameter specifies.
    Parameters
    lookupString As String
    [In] Pass the lookup string for the new subproperty to be created. If you pass a lookup string with multiple levels (such as "x.y.z"), this method creates all of the necessary intermediate container objects. Refer to lookup string for more information about the strings you can use.
    ValueType As PropertyValueTypes
    [In] Pass the type of value you want the new subproperty to store.
    asArray As Boolean
    [In] Pass True to make the new subproperty an array whose elements are of the type you specify in valueType.
    typeNameParam As String
    [In] Pass the name of an existing type if you want to create the new subproperty as an instance of a named type. Otherwise, pass an empty string. If you pass a type name, you must pass PropValType_NamedType for the ValueType parameter. Refer to NamedPropertyTypes for a list of built-in named types.
    options As Long
    [In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options. You do not need to pass the InsertIfMissing option to create the new subproperty. Pass DoNothingIfExists if you want the method to not report an error if the subproperty already exists.

  • HOW TO ADD A NEW ITEM ON CREDIT MEMO REQUEST DETAILS PAGE?

    Dear friends,
    Please help me to do this by personalization or extension. This is very important for sustaining in my job. Please post your thoughts as soon as possible.
    Thanks so much for your help and support.
    Here is the scenario:
    In credit memo request page, I need to add a new item.
    In the 'About this page', I checked for the view objects CMRequestVO and CMRequestLinesVO but the item is not available in the view objects.
    There is an item called Requestor Comments shown on this page. The item to be added is the Approver Notes. These 2 columns are populated through the workflow.
    How to find about the Requestor Comments item? If we know this then the Approver Notes item can be easily added to this page, I think.
    Also I enabled the FND_PERSONALIZATION_REGION_LINK profile option so that
    I can create a new item using personalization. But I could not see the create item icon in the create item field.
    Can adding the Approver Notes be achieved by personalization?
    EAGERLY WAITING FOR YOUR HELP.
    CK.

    Hi VK,
    You need to look at both VO's and see where to add the credit memo field.
    To extend the VO object...you have to use Jdeveloper.
    Check the below this site for the details steps:
    http://apps2fusion.com/apps/oa-framework/14-fwk/119-oa-framework-faq-extending-view-objects
    After extending the, you need to copy your objects under webserver and the bounce the apache.
    Then you need to do personalization..
    Here are the steps for personalization:
    Click Personalize page and click "Expand All" under Personalization Structure..
    Go to the corresponding Advance Table and Click on Create Item. This will create a Column Field
    1) Enter Unique ID-- ex; CreditMemoEx
    2) Rendered -- True
    3) Click Apply
    In the advance table search the newly created "CreditMemoEx"
    Click on the Create Item field again.
    1) Select Item Style " Message Styled Text"
    2) Data Type -- Varchar2
    3) Enter the Prompt = "Credit Memo"
    4) Scope -- Enter the full path of VO object...ex: /xx.../oracle/apps/...
    5) View Attribute -- Enter Exact name the attribute defined in the VO object.
    6) Enter other attributes required for Business.
    7) When Finished Click Apply.

Maybe you are looking for

  • Error (-9812) ?

    im trying to purchase a song from the music store and keep getting this error message. it completey reads "iTunes could not connect to the Music Store. An unknown error occurred(-9812). Make sure your connection is active and try again." well my conn

  • Exit for changing Pricing Conditions with change in Ship to party

    Hi All, In transaction VA01/ VA02 the pricing conditions are getting calculated with respect to the Sold-to-party no.. Instead I wanted it to get calculated with respect to the Ship-to-party. Please guide me with an Exit that i can use, or any other

  • Will my new iMac come with Leopard or Tiger?

    Hi, I'm going to Uni on Monday and want to finally purchase my Mac now that Leopard has been released. My question is: If I order my new Mac on Monday, will it come with Leopard or Tiger? In the online store it still states that it will come with Tig

  • APPLICATION created in Admin BPC client can't see in Office BPC client

    `Hello Gurus, I am an SAP BI Consultant and having around 4 years of experience. I have started to work on BPC 7.5. I have created dimensions and APPLICATION as well successfully. however when i try to open my Microsoft office BPC client, i am able t

  • Receive mail with POP3 and saving to file using XI

    Hello! I'm new to XI, could you help me with this "simple" task: Receive mail with POP3 and saving to file. Thanks!