in Education by
I'm making a checklist for people to do tasks on our company website. The feature I'm working on right now is that once they complete a task and mark it as done, I want our sharepoint webpart to send an email to them containing a list of what they still need to finish. Since the powers that be want to be able to add and subtract items to the list at will, it needs to be modular, therefore checking the list needs to be modular and written in modular terms as well. The problem that I have is that all the tasks are stored in a SPList on the existing code. I'm not exactly sure how to iterate over the list to find out whether that person has the done the following task already. I'm not seeing any next, previous, head or tail operations (as I would expect from a list). Since indexing uses a string, it behaves more like an associative data structure (map) or primary key from a DB. Help please and thanks everyone! Cheers, -Jeremiah Tantongco JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
A SharePoint list is not a list in the Computer Science way, but is what an End-User would expect a list to be: a listing of things You should more look at a list as being similar to a database table. If you want to find records (Items) in a table (List) based on conditions then you should use a query. So the right way to find SPListItems in a SPList is to use an SPQuery where you specify your criteria in a nice XML syntax (CAML), then pass the SPQuery to SPList.GetItems and thereby get a collection of SPListItems back. This should give you some terms to google for. If you need more help with the syntax of the query then use U2U Caml Query Builder or give us some more specific infomations.

Related questions

0 votes
    I store all of the Google Maps marker objects in a single array. Right now I am trying to set up ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 30, 2022 in Education by JackTerrance
0 votes
    I need to iterate through the elements in a numpy array so I can treat any zero elements separately. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I need to iterate through the elements in a numpy array so I can treat any zero elements separately. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I'm Running Ubuntu 16.04 LTS with Python 3.6.8 and I have the following code that allows me to ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 8, 2022 in Education by JackTerrance
0 votes
    I'm attempting to build an email scraper that takes in a csv file of urls, and returns them with ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 14, 2022 in Education by JackTerrance
0 votes
    When I iterate over the values or keys are they going to correlate? Will the second key map to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 12, 2022 in Education by JackTerrance
0 votes
    Which is better in terms of performance for iterating an array? (a) for(int i=0; i=0; i-) (c) ... Autoboxing & Miscellaneous of Java Select the correct answer from above options...
asked Feb 23, 2022 in Education by JackTerrance
0 votes
    I am a bit puzzled by the following code: d = {'x': 1, 'y': 2, 'z': 3} for key in d: print key ... Python? Or is it simply a variable? Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    Which is better in terms of performance for iterating an array? (a) for(int i=0; i=0; i-) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Control of the users’ access to network resources through charges is the main responsibility of ________. ... Fault Management C. Security Management D. Accounting Management...
asked Feb 14, 2023 in Technology by JackTerrance
0 votes
    What are the Methods to move data through a network of links and switches? A. Packet switching and Line ... switching and Circuit switching D. Line switching and bit switching...
asked Jan 6, 2023 in Education by JackTerrance
0 votes
    Through ChatOps, communication can be bi-directional, that is, users can submit commands from the chat room to the bots, ... status to the chat room directly. A. True B. False...
asked Dec 23, 2022 in Technology by JackTerrance
0 votes
    When you upload a CSV file through UI or External Data API, it is recommended to provide the metadata in the format of __________. A. CSV B. JSON C. XML...
asked Nov 1, 2022 in Education by JackTerrance
0 votes
    The process by which you become aware of messages through your sense is called ____________ (a) Organization (b) ... -Evaluation (d) Perception Please answer the above question....
asked Oct 22, 2022 in Education by JackTerrance
0 votes
    Can data be stored through weights? (a) yes (b) no This question was posed to me by my school ... Feedback Neural Networks of Neural Networks Please answer the above question....
asked Sep 3, 2022 in Education by JackTerrance
...