Refresh custom list.

Hi,
I have a PriorityQueue-class that extends ArrayCollection which contains a bunch of Task-objects. The priority is checked from timeLeft(), the method converts _date to seconds.
I also got an ItemRenderer-class that extends UIComponent and contains a few labels. One label is: timeLeftLabel.text = data.timeLeft() + " left";
The thing is that I want to refresh the list every 5 seconds or so, this can be done by using a Timer and then call PriQueue.refresh(), this seems to be the wrong approach since I don't want to refresh the whole list and since im using an ArrayCollection as a data provider, it should work - right?
Thanks!

You may also want to post your question to the Flex forum:
http://forums.adobe.com/community/flex/flex_general_discussion

Similar Messages

  • Infopath to design WYSIWYG Custom List Views on 2013

    We are migrating to SPO 2013.  Playing with InfoPath 2013.
    I know it's dieing, but InfoPath has always frustrated me.  Some much potential yet so out of touch with what users seem to need IMO.  Far from user friendly enough to let users maintain their own forms too IMO.
    But really my biggest gripe with SharePoint in general is that it misses the mark with Custom lists and Views.
    Why doesn't SharePoint and/or InfoPath address the need for more flexibility and Design options in the Custom List View. My users are constantly looking to build View pages that to reflect paper forms they use to have.  They always seem to
    have to settle for the way the list view looks.  InfoPath does not seem to address Read Only Views of List Data ??
    - No List Mode (View vs Edit)
    - No Label control
    - Field Names do not display unless you hover over the control. 
    - No WYSIWYG drag and drop designer - only grid cells.
    - No easy or clear way to get URL Query string values
    - No way to build complex expression fields, say I want to build a URL Link using some list field data and the ID from the URL query string on the form? Possible?
    - Better/easier way to join and bind in multiple Lists and multiple data sources?
    One other challenge we have is that SSRS can't be integrated into SPO and is being dropped from Azure.  The SSRS designer is leaps and bounds better than InfoPaths IMO.
    Considering SPO 2013, might there be another product or IDE coming in (maybe FoSL) that will address all of these? How about Visio, Excel, PDF
    Thank You.

    Thank You for your response.
    A little of both :)   ... But am very interested in hearing about practical development options.  But the catch is that we are waiting to see if something shows up that will enable users to build these views without development.
    I have been seeing new Apps show up on the o365 store that look promising, but none of them are quite there yet IMO ...  like Ninetex forms, Lightning Data Viewer, BlackCompass Data Viewer, List Designer, OData query Builder.  We've
    actually demoed every single one of them.
    We have also been playing with oData Connections from Excel and Visio web Access Web parts.  We can't get Data connections to refresh from Excel apparently unless we buy Power BI and we are still trying to figure out Visio on SPO.
    I know we can create a SharePoint 2013 App that binds in SPO List data and use .NET controls to arrange them on a page.  But that would put a developer and a deployment process in front of that View.  We can also use SSRS and create a one row report
    - but SPO does not support integrated SSRS and we would have to authenticate  on-Prem SSRS against  ADFS which we have not yet configured here.

  • Report for customer list

    Hi,
    Is there any report where if i have a list of customer number and i would like to know each of  the payment term of each customer?
    Or any T-code to display each payment term of each user in a long list?
    thanks.
    Joo

    hi,
    t code for customer lidt is S_ALR_87012179
    /N-->ACCOUNTING>FINANCIAL ACCOUNTING>ACCOUNT RECEIVABLE>INFORMATION SYSTEM>MASTER DATA--
    >CUSTOMER LIST
    IF USEFUL ASSIGN POINTS
    REGARDS,
    SANTOSH KUMAR

  • How to refresh the list of select one choice which is inside a table?

    Hello I am using Jdeveloper Version 11.1.2.1.0.
    The table is a normal table that is made to look like a treeTable.
    For some rows are or can be parents with Parent_vo_group_id = null and other are children with parent_vo_group_id = vo_group_id of the parent...
    If a children changes its parent_vo_group_id to null it can become a parent as well.
    I am having a select one choice inside a table column. The list comes from the same table with column Name:
    <af:table value="#{bindings.VoGroupAdminView2.collectionModel}" var="row"
                                                      rows="#{bindings.VoGroupAdminView2.rangeSize}"
                                                      contentDelivery="immediate"
                                                      visible="#{bindings.VoGroupAdminView2Iterator.currentRow != null}"
                                                      fetchSize="#{bindings.VoGroupAdminView2.rangeSize}"
                                                      partialTriggers="::soc1" styleClass="AFStretchWidth"
                                                      rowBandingInterval="0" editingMode="clickToEdit"
                                                      binding="#{adminGroupManagementBean.groupTable}"
                                                      selectionListener="#{adminGroupManagementBean.groupSelectionListener}"
                                                      rowSelection="single" id="t5">
                                                <af:column sortProperty="#{bindings.VoGroupAdminView2.hints.Name.name}"
                                                           sortable="false" styleClass="columnData"
                                                           headerClass="tableHeader"
                                                           headerText="#{bindings.VoGroupAdminView2.hints.Name.label}"
                                                           id="c1">
                                                    <af:inputText value="#{row.bindings.Name.inputValue}"
                                                                  requiredMessageDetail="Please enter a group name"
                                                                  label="#{bindings.VoGroupAdminView2.hints.Name.label}"
                                                                  required="true" id="it7" immediate="true" autoSubmit="true"
                                                                  columns="#{bindings.VoGroupAdminView2.hints.Name.displayWidth}"
                                                                  maximumLength="#{bindings.VoGroupAdminView2.hints.Name.precision}"
                                                                  shortDesc="#{bindings.VoGroupAdminView2.hints.Name.tooltip}"
                                                                  contentStyle="#{row.ParentVoGroupId eq null? 'font-weight:bold' : 'padding-left:20px'}"
                                                                  valueChangeListener="#{adminGroupManagementBean.groupNameChangeListener}"
                                                                  partialTriggers="soc2">
                                                        <f:validator binding="#{row.bindings.Name.validator}"/>
                                                    </af:inputText>
                                                </af:column>                                   
                                                <af:column sortProperty="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.name}"
                                                           sortable="false" styleClass="columnData"
                                                           headerClass="tableHeader"
                                                           headerText="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.label}"
                                                           id="c4">
                                                    <af:selectOneChoice value="#{row.bindings.ParentVoGroupId.inputValue}"
                                                                        label="#{row.bindings.ParentVoGroupId.label}"
                                                                        simple="true" immediate="true"
                                                                        required="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.mandatory}"
                                                                        shortDesc="#{bindings.VoGroupAdminView2.hints.ParentVoGroupId.tooltip}"
                                                                        id="soc2" autoSubmit="true"
                                                                        unselectedLabel="&lt;null&gt;"
                                                                        valueChangeListener="#{adminGroupManagementBean.parentIdValueChangeListener}"
                                                                        visible="#{row.bindings.ChildrenCount.inputValue eq 0 ? true : false}">
                                                        <f:selectItems binding="#{adminGroupManagementBean.selectOneChoiceList}"
                                                                        value="#{row.bindings.ParentVoGroupId.items}"
                                                                       id="si2"/>
                                                    </af:selectOneChoice>
                                                </af:column>
                                            </af:table> My select one choice uses the same iterator as the table.
    <iterator Binds="VoGroupAdminView2" RangeSize="-1" DataControl="AppModuleDataControl"    id="VoGroupAdminView2Iterator"/>The table uses this view called VoGroupAdminView:
    Select t1.vo_Group_id,     
           t1.name,
           t1.Vehicle_Owner_Id,
           t1.Graphical_Symbol,
           t1.Lm_Comment,
           t1.Parent_Vo_Group_Id ,
           decode (t2.children_count, null, 0, t2.children_count) as children_count
           from
    (SELECT VoGroup.vo_Group_id,     
           VoGroup.name,
           VoGroup.Vehicle_Owner_Id,
           VoGroup.Graphical_Symbol,
           VoGroup.Lm_Comment,
           VoGroup.Parent_Vo_Group_Id
      FROM VO_GROUP VoGroup
    START WITH VoGroup.Parent_Vo_Group_Id IS NULL
    CONNECT BY VoGroup.Parent_Vo_Group_Id = PRIOR VoGroup.Vo_Group_Id
    order SIBLINGS by VoGroup.name) t1,
    (select parent_vo_group_id, count (parent_vo_group_id) as children_count from vo_group
    group by parent_vo_group_id) t2
    where t1.vo_group_id = t2.parent_vo_group_id (+)the ParentVoGroupId attribute has list of values from this view object called VoGroupAdminLov:
    SELECT
        VO_GROUP.NAME,
        VO_GROUP.VEHICLE_OWNER_ID,
        VO_GROUP.PARENT_VO_GROUP_ID,
        VO_GROUP.VO_GROUP_ID
    FROM
        VO_GROUP
    WHERE  VO_GROUP.PARENT_VO_GROUP_ID is null
    and VO_GROUP.VO_GROUP_ID <> ?
    order by  VO_GROUP.NAMEI want to refresh the list of values in the select one choice everytime when i add a new row in the table, delete row in the table or change the value of select one choice component.
    What I have tried:
        public void parentIdValueChangeListener(ValueChangeEvent valueChangeEvent) {
            this.setValueToEL("#{row.bindings.ParentVoGroupId.inputValue}", valueChangeEvent.getNewValue());
            BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
            Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            am.getTransaction().postChanges();
            am.getVoGroupAdminView2().executeQuery(); //refresh the table view object;
            am.getVoGroupAdminLov1().executeQuery(); //refresh the list of values view object
            voGroupAdminIterator.invalidateCache();  //remove the cache of the iterator
            voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true)); // set the selected row again.
            RichSelectOneChoice soc =
                (RichSelectOneChoice)FacesContext.getCurrentInstance().getViewRoot().findComponent(":pt1:t5:soc2");
            AdfFacesContext.getCurrentInstance().addPartialTarget(soc);
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable);    
        }When i am adding a new row to the table its select one choice list is refreshed but only for the new row. The rest rows have not updated list of values for their select one choice components.
        public String addGroupButtonAction() {
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            ViewObjectImpl voGroupAdminView = am.getVoGroupAdminView2();
            Row newRow = voGroupAdminView.createRow();
             newRow.setNewRowState(Row.STATUS_INITIALIZED);
            voGroupAdminView.insertRowAtRangeIndex(0, newRow);
            am.getTransaction().postChanges();
            return "null";
        }Edited by: 897833 on Mar 19, 2012 9:07 AM

    I made a button to refresh the value of select one choice and it doesn't work yet.
    So I just move one of the
        public String refreshParentIdSOCButtonAction() {
            BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding voGroupAdminIterator = (DCIteratorBinding)bc.get("VoGroupAdminView2Iterator");
            Key selectedGroupKey = voGroupAdminIterator.getCurrentRow().getKey();
            AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
            am.getTransaction().postChanges();
            am.getVoGroupAdminView2().executeQuery();
            am.getVoGroupAdminLov1().executeQuery();
            voGroupAdminIterator.invalidateCache();
            voGroupAdminIterator.setCurrentRowWithKey(selectedGroupKey.toStringFormat(true));
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoice);  //refresh the binded SOC as you said
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.parentIdSelectOneChoiceList); //refresh the binded list even
            AdfFacesContext.getCurrentInstance().addPartialTarget(this.groupTable); //refresh the table it is in;
            return null;
        }Edited by: 897833 on Mar 23, 2012 2:58 AM

  • SharePoint 2013 users only see custom list and document lists that they uniquely created

    In my first SharePoint 2013 project, I want to create a view where users can only see their own files that they generated. I think I know how to create this view when the list is associated with the 'Documents; folder. However I have created several custom
    lists where I can only see these items when I am on the navigation pane to the right and the unique custom lists are listed under 'recent'.
    Let me know if you can answer any of the following questions:
    1. When on the main SharePoint website, can lists be displayed in other locations than what I just listed? If so, where would I see these other lists?
    2. I would like to include the custom lists that are located in the 'recent' navigation pane as a view that only I can use. This would be based upon userid. If this is possible,  how would you combine the lists lists in the same view? If this is not possible,
    how would you set a view just for the lists listed under the 'recent' section?
    3. The content approval solution under versioning settings of a library to restrict the documents to only ones that the user created (and also Approver rights).  Then if they create a new view they still won't see the documents that were not created by
    them. What about custom lists that are not in the documents area but are in the 'recent' area? Would this restrict users to see only items that they created?
    4. Item level Permissions in advance settings solve this problem for the list in the document area and the custom list in the recent area? If so, how would you setup these values?

    As it turns out the, setting Item-Level Permissions in a library is fully supported with PowerShell!
    The PowerShell commands for changing this are very simple:
    $web = Get-SPWeb http://YourSite/
    $list = $web.Lists[“Your Document Library Name”]
    $list.ReadSecurity = 2
    $list.Update()
    $web.Dispose()
    Note the 3rd line which is where you determine the value for this setting using the following values:
    1 = “Read all items”
    2 = “Read items that were created by the user”
    If you wish to modify the values for Create and Edit access instead, replace .ReadSecurity with .WriteSecurity with
    the following values:
    1 = “Create and edit All items”
    2 = “Create items and edit items that were created by the user”
    4 = “None”
    For example:
    $web = Get-SPWeb http://YourSite/
    $list = $web.Lists[“Your Document Library Name”]
    $list.WriteSecurity = 2
    $list.Update()
    $web.Dispose()
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Custom list column not showing up in View Order by or Group by dropdown list

    Hi All,
    I have created a custom list with a custom column called "Description". Some items in the list do not have a description. What I wanted to do is create a view where the items with a description show first, and the items with no description are
    at the bottom of the list. I thought I could make a simple view that uses the Order by or Group by on the description column.
    The problem I am having is the description column doesn't show up in the dropdown list for either Order by or Group by within the custom view. Can someone please tell me why this happens and if there is anything I can do to rectify this problem.
    I hope you can help
    Colin

    Hi,
    I believe the "Description" field type is Multiple Lines of Text. Sorting doesn't allow in this field type. In order to do the sorting, you would require to create additional column like single line of text column (note that it supports only 255
    chars and require to truncate the data if more than 255) and update the data using event receiver or workflow. and do the sorting with that column.
    kmhsad

  • SharePoint 2013 witing code to work with a custom list

    I am asking this question since I am new to working with SharePoint 2013, but I have programming experience working with C#.net and VB.NET.
    I have a workflow 2013 that is accessed by a custom list (and updated by Infopath 2013). Once a user has submitted the custom list to the workflow 2013, there will be the 'proper' authorized person in the company that will approve or reject the request.
    Once the user has submitted the request, I do not want them to be able to update the list any more. I want the user to only have 'view' access.
    In workflow 2010, I see that there is the impersonate step that would change the permisisons for me. However I would prefer not to use an older version of the workflow.
    Thus can you show me and/or point me to links that will do the following:
    1. What .net code could I  use that will change the permissions on the custom list I mentioned above. The code can be in either C#.net or VB.net?
    2. If I am able to use the .net code, would you show me how to 'wire together' the .net code with the 2013 workflow? I do know that I would use Visual Studio.net 2012 to write the code. Would you explain, draw a picture, and/or point me to a url that will explain
    to me where to place the .net code so it is connected to the workflow 2013?

    I am going have a large volume of users (about 300 to 500) from my company creating these requests. So you are saying that I should create a subfolder of each request.
    Thus I have the following additional questions:
    1. If I move the requests to subfolders, how will the users be able to able to find their requests when placed into a different subfolder? I have views setup for the users, would I adjust the view for each user? Can you show me in workflow how to move
    the requests to another subfolder?
    2. It sounds like a need a subfolder for each request is that correct? If not, do I move all requests to one subfolder?
    3. Would you show me how you recommend that I change the permissions on the subfolder(s)?

  • How to Retreive data from custom list on specify conditions?

    Hi All,
    I have custom list.And the custom list data contains 100 rows of data.
    my requirement is  how to retrieve custom list data from specific condition like 20-30,50-70.
    Assume that i want to fetch 20 record to 30th record.
    How to use the caml query for the above situation.
    Please assist me.
    Rama

    Hi 
    Thanks for posting your issue, Kindly browse the below mentioned URL to find related the CAML query example
    http://karinebosch.wordpress.com/2012/02/03/caml-and-the-client-object-model/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Error when editing some Items in SharePoint Custom List

    Hello I have a custom list with multiple workflows and a customized infopath form. I am getting an unexpected error on some of the list items when I try to edit them. I can view them just fine but the error is occuring on edit for some items.
    I am also able to edit the same item that I am getting the problem with from the datasheet view but just not with infopath form.
    I use the USL to view the correlation error and it just said leaving monitored scoped.
    I also tried saving the list as a template and creating a new list from the template and then creating a new item in that list and got the same error. Please help.
    04/04/2014 11:07:36.72 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.FlattenXmlToHashtable(String strXml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.DoesWorkflowCancelWhenItemEdited(String associationXml) at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.EnsurePageNotInLockingWorkflowIfInEditMode() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.LoadDataSource() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.... bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.72* w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected ...Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.75 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://mydomain:Port/Site/Lists/Listname/Item/editifs.aspx?List=c15b9e3c%2D2aac%2D4a84%2D8317%2De3f9358f41bc&ID=144&IsDlg=1&Web=b5b749d6%2D0d3c%2D4cb5%2Daf3a%2D819ff5ceb88c)). Execution Time=75.1751473982343 bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.78 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://mydomain:Port/_catalogs/theme/Themed/7D19B0BC/corev4-8A0ABD2F.css?ctag=0))

    here is the result of Merge-Splogfile
    04/04/2014 11:07:36.72 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected System.ArgumentNullException: Value cannot be null. Parameter name: s at System.IO.StringReader..ctor(String s) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.FlattenXmlToHashtable(String strXml) at Microsoft.SharePoint.Publishing.Internal.WorkflowUtilities.DoesWorkflowCancelWhenItemEdited(String associationXml) at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.EnsurePageNotInLockingWorkflowIfInEditMode() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.LoadDataSource() at Microsoft.SharePoint.Publishing.WebControls.ConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource.OnLoad(EventArgs e) at Microsoft.SharePoint.... bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.72* w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Runtime tkau Unexpected ...Publishing.WebControls.PublishingSiteActionsMenuCustomizer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.75 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://mydomain:Port/Site/Lists/Listname/Item/editifs.aspx?List=c15b9e3c%2D2aac%2D4a84%2D8317%2De3f9358f41bc&ID=144&IsDlg=1&Web=b5b749d6%2D0d3c%2D4cb5%2Daf3a%2D819ff5ceb88c)). Execution Time=75.1751473982343 bfecfe90-9ef9-45d4-ae37-355adb4dd2bb
    04/04/2014 11:07:36.78 w3wp.exe (0x1A84) 0x0D3C SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:http://mydomain:Port/_catalogs/theme/Themed/7D19B0BC/corev4-8A0ABD2F.css?ctag=0))

  • Adding items to custom list - performance issues - Request timed out error

    Hi,
    I am using VS 2010, c#.
    I am inserting records from an excel file, which contains 6000 records to a custom list.
    I am using the Visual webpart, and oledb connection. I am not using the openXML format, as i need to use "xls" and "xlsx" type.
    I am doing the below steps currently:
    1) From the file upload control, i am saving the excel to the sharepoint layouts - inside that a custom folder, to keep the records.
    2) Using the oledb connection to read the records and fill it in a datatable.
    3) Inserting the datatable values to a custom list.
    Looping through the datatable and inserting 3000 – 4000 records to List, I am getting the "Request timeout error".
    Below is the sample code, where i am looping the datatable and inserting the record:
    SPList prjCmpList = oWeb.Lists[strListName];
    SPListItemCollection prjCmpListItems = prjCmpList.Items;
    SPListItem prjCmpListItem;
    foreach (DataRow dr in dt.Rows)
    try
    prjCmpListItem = prjCmpListItems.Add();
    prjCmpListItem["Title"] = dr[0];
    prjCmpListItem["FirstName"] = dr[1];
    prjCmpListItem.Update();
    catch (Exception)
    I am using the "using block" for the spsite and web objects. When I see the execution time out in my web.config it is set to 3600.  But I am getting the request time out after 2 mins only.
    I have checked these link's : http://msdn.microsoft.com/en-us/library/aa973248%28v=office.12%29.aspx
    http://www.etechplanet.com/blog/how-to-import-an-excel-spreadsheet-in-sharepoint-and-save-it-as-a-custom-list.aspx
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8664375c-fae0-483a-b43f-ce7d353b896a/importing-3000-records-to-sharepoint-list-causing-requesting-time-out-error?forum=sharepointadminlegacy
    However, I am following the best practices, and also the insertion of records is to be done programmatically.
    Has anyone faced this kind of issue? How to fix this?

    HI,
    Thanks for the reply.
    If the list has custom columns which consists of string and Date types, can the same type be used? Or should the list be an empty list without any columns?
    In the xml if it is put as "onerror= continue", how to fetch the records which error out?
    Also, in the datatable code block, which I had put in the first post, I am also trying as below:
    if(dt[1] != null)
    if(!string.IsNullorEmpty(dt[1].toString())
    prjCmpListItem["FirstName"] = dt[1].toString();
    Can these condition checks be performed with the "processbatchdata" approach?
    Thanks

  • SP Designer 2010 - Saving custom list form impacts other list and other custom list form

    Hi,
    I have a source list, with custom display, edit and new forms all of them created in SP Designer 2010. These do nothing fancy, just for presentation purposes, fields were re-arranged in 2 columns.
    Then I created a target list by saving the source list as template, the template brought over all customizations, all seemed to work fine. So I started to modify the target custom list forms.
    Now here's the problem:
    After a while making changes to the target list I realized that somehow the custom list forms on the source list had been modified... so I opened the source list in designer and noticed that the out of the box forms: NewForm.aspx, DispForm.aspx, EditForm.aspx
    were now the default forms for the source list, and I couldn't pick my custom list forms to be the default forms for the source list anymore, they were not on the listbox. I could still see them by going in designer to All Files > Lists > SourceList
    > and if I previewed them, they were empty. 
    I believe that somehow source and target list are linked, but why would designer allow making changes to the source list? like resetting the default forms, and breaking up the custom list forms that were in place?
    I've verified list id's in the custom list forms of the target list and they belong to the GUID of the target list. I don't see anything else that could potentially point to the source list.
    SharePoint Designer 2010 version: 14.0.7007.1000 SP2 14.0.7015.1000 I don't think this matters much because I've tried with other SP Designer 2010 versions and the error is the same.
    thanks for your reply!

    Hi alec,
    When I create a custom EditForm1.aspx and set as default for a source list, then save this list as a template, then the newly created the target list based off this saved template, the source list still uses the custom EditForm1.aspx form as default
    form, from SharePoint designer, I can see these two lists have different listID, so they have no connection when I edit any one of them.
    Please recreate a new list with custom form page and save as template, then create a new list see if this issue could be reproduced, or we can create a new list instead if it is an isolate issue.
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • How do I import Excel cell data in to an already built custom list.

    I have a custom list that we are using as an End Of Shift Report.
    I would like to expand the list to incorporate some of our process data. (We are a paper mill). We have a data historian, PI Process Book, that has an Excel add-in, that allows us to import the process data in to Excel.
    I am able to do the "import spreadsheet" function and get the data in to a new list. What I can't figure out is either how to import directly in to the custom list I have already created, or how to import from the new list to the custom list.
    I could use the "new list" as a container for several different process points if I could figure out how to load the process data in to the custom list.
    We are currently using WSS3, but are upgrading in either the 4th Q this year, or Q1 2014.
    Any other suggestions on how to display single point data (End of Shift Inventory calculations for example) in a custom sharepoint list are welcome.
    I want to take a tank level reading, which we monitor and multiply it by X gallons per foot, then load the total gallons in to the custom list

    1) Open WSS List, and Export it to Excel
    2) Open the Excel file you want to import
    3) Copy the cells in the source and paste them into the Excel file openned from the WSS List (only highlight one row to paste, it will fill down)
    4) You will see vaildation errors (yellow triangles), if there are any, correct them
    5) In the menubar go Data --> List --> Sync List
    6) You will see a blue status bar fill in the bottom left as data is copied up to the List   
    Or you can try the below tools
    > SharePoint Excel Import 2.5
    http://www.boostsolutions.com/sharepoint-excel-import.html
    > Import Excel data to SharePoint List.
    http://spreadsheet2splist.codeplex.com/
    Regards MuSa

  • Custom List Form creation using Powershell - SharePoint 2013

    Hi,
    I have a custom List called 'IssuesList' with 4 fields - "IssueTitle","IssueID","IssueDesc","Status"
    While displaying display form I should show 3 fields expect Issue ID i.e. IssueID should be hidden.
    and on edit form only Status field should be editable. So using SharePoint designer I created respective Edit form and display forms and changed XSLT to control the display mode on the fields.
    I have everything scripted in powershell till now - creation of custom list, publishing pages, webparts etc. however I am looking for how to provision or associate these 2 list forms with IssuesList after I create the list in new site.
    I have restrictions on using wsp and site/list template due to business needs. So I need to know if there is any way I can upload these 2 files after I create custom list in powershell and associate them as defaultdisplay and defauteditforms?
    Please advise.

    Hi,
    Per my understanding, you might need to apply these custom forms to a list after list creation using PowerShell.
    With PowerShell with SharePoint Object Model, we can hide fields on list forms.
    The similar thread below with code snippet will provide more information about this:
    https://social.technet.microsoft.com/Forums/en-US/ee6fc2eb-197f-4144-94fa-8a4e438675d9/hide-a-field-from-edit-form-list?forum=sharepointgeneralprevious
    If there may be other requirements except for hiding fields, as you have limitation on using custom solution package(which should be preferable in such scenario),
    a workaround I can provide is that, after list creation, you can add Content Editor Web Part contains the CSS style or JavaScript to the form pages of a specific list, it will help you hide/disable the specific elements, this can be achieved programmatically.
    The code below can add a Content Editor Web Part to the DisplayForm of a list(though in C#):
    public static void AddCEWP()
    SPLimitedWebPartManager manager = null;
    SPFile file = null;
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    try
    web.AllowUnsafeUpdates = true;
    file = web.GetFile(web.Url + "/Lists/List018/DispForm.aspx");
    manager = file.GetLimitedWebPartManager(PersonalizationScope.Shared);
    ContentEditorWebPart webPart = new ContentEditorWebPart();
    XmlDocument xmlDoc = new XmlDocument();
    XmlElement xmlElement = xmlDoc.CreateElement("HtmlContent");
    //xmlElement.InnerText = "<strong>Hello World!</strong>";
    //write the custom CSS style or JavaScript here
    string content = "<style>your custom style here...</style>";
    xmlElement.InnerText = content;
    webPart.Content = xmlElement;
    manager.AddWebPart(webPart, "Top", 0);
    manager.SaveChanges(webPart);
    web.Update();
    catch (Exception ex)
    //Utility.SPTraceLogError(ex);
    finally
    if (manager != null)
    manager.Dispose();
    web.AllowUnsafeUpdates = false;
    About how to hide fields on Standard List Forms using jQuery:
    http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
    http://stackoverflow.com/questions/10010405/how-to-hide-a-field-in-sharepoint-display-form-based-on-the-field-name-jquery
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Share Point Custom List - Submit item to folder

    hello,
    I have create a custom list on my SharePoint 2013 site and customized the infopath form. I have disabled the submit/Save buttons on the ribbon and set the Form Submit settings to rules and actions. I have then added "Save" buttons on the form that
    have actions to submit to the list's Main data connection.
    There are three departments that will use this list and users in a department should only be able to see items within their department. So I have created folders for these three departments and defined permissions at the folder level. Now how can I submit
    the infopath form such that the form automatically gets submitted to the respective folder? I am unable to add a submit data connection to a customized list form and the Main data connection is disabled for edit.
    I am however able to achieve this in a document library. But was wondering if there are ways to achieve this with a list since we are almost completed with the development of this functionality using list items.

    Anybody?
    I even tried writing a ItemAdding even reciever that would cause the item to be saved in the respective folder instead of the root. But I am not able to figure out the best way to do this.

  • Infopath 2013 - Values are not appearing in a drop down field referencing site column which uses lookup in custom list

    I have a master custom list that has a set of site columns. For each site column there is a lookup to a custom list with reference data. When I edit the list in data entry view all values in drop down fields work fine, but when I customize the form for
    the master list, no data appears in the drop down fields. I can change the data binding on the form so it references the the correct data and when I preview the form it works. But when I publish it, no data is available in these drop down fields.

    Hi  shakonarson,
    According to your description, I try to reproduce your scenario but the lookup field works fine.
    When we customize the form for the  list  in the InfoPath 2013 , it is by design that the Drop-Down List Box control cannot  display its value.
    For troubleshooting your issue, please take steps as below:
    Go to lookup List Box on your form in  InfoPath 2013 , right click it and choose “Drop-Down List Properties” from the bottom of your field menu.
    Make Sure you select “Get choices from an external data source” and correct Data source.
    Make Sure the Xpath  of Entries is “d:SharePointListItem_RW” under the dataFields.
    Here is a good blog for sorting lookup column DropDown by customizing your list form with InfoPath you can have a  look:
    Sort SharePoint lookup column Dropdown by customizing your list form
    with InfoPath
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • Unit of measure for Stock and Non-stock Item in CJ20N

    When I attach Material to an activity (item Category N   Non-stock item) in Project Builder (CJ20N), It is peaking its Base unit of Measure as unit. Now when I try to change it, it is showing an error Item category N: Only base unit of measure M allo

  • Thunderbird is removing the first 5 characters of the username, causing an error.

    I seem to be having some issues trying to set up the email for a website I recently started on GoDaddy through Thunderbird. I am using Thunderbird 24.4.0 on Windows 8 Server Settings: email address: [email protected] pop3: pop.secureserver.net / 995

  • Ultra Search Configuraiton Assistant Failed

    Hello: This is the error that occurs when I install the 9.0.4 AS into a 10g database. I run the repository CA first to populate the db and then procced to install the infrastructure. It installs and links but when the configuration assistant goes thr

  • Equipmentwise Item codes for mutliple selection

    In IB03, do we have option for multiple equipment selection. We wants to have detail for all equipment in a plant in single report. Also confirm, can we have single report for all BOM type i.e to have report for equipment with equipment/material BOM

  • Variable declaration confusion

    What is difference with the following declaration? String x; String x = new String();The first creates a variable of type String, while the second creates an instance of the String class. Does it mean that the first x do not inherit all the goodies f