Custom iterator for custom list.
I'm trying to write a custom iterator for custom linked list. What I don't understand is, whether the iterator should be in the link(node) inner-class or in the linked-list outer-class.
I seem to be getting errors in the outer-class, but in the inner-class it compiles fine. Whether or not it works is another story.
The code below is without errors in eclipse, however it doesn't make much sense to me to have the next() and hasNext() methods in the Node when the Iterator needs to iterate the list.
import java.util.*;
public class OctoList<T> extends AbstractCollection<T> implements Iterable<T>
// Inner Class
private class Octo<E>
// Octo will be a Node with 8 elements not including size, and links.
public Octo<T> next()
if (!hasNext())
throw new NoSuchElementException();
current = current.next();
return current;
public boolean hasNext()
return (current.next() != null);
// outer class
private Octo<T> head;
private Octo<T> tail;
private Octo<T> current = head;
private final int ARRAY_SIZE = 8;
@Override
public Iterator<T> iterator()
return null;
@Override
public int size()
return 0;
@Override
public boolean isEmpty()
return size() == 0;
}
Gcampton wrote:
I'm trying to write a custom iterator for custom linked list. What I don't understand is, whether the iterator should be in the link(node) inner-class or in the linked-list outer-class.In the list class. After all, you're iterating a list, not a node.
I seem to be getting errors in the outer-class, but in the inner-class it compiles fine. Whether or not it works is another story.Then you'll have to fix those errors so it both compiles and works as intended.
You can create the iterator as an inner class in the list.
Similar Messages
-
Custom iterator for custom list. ClassNotFoundException()
I'm not sure what it is I'm doing wrong in this assignment We are to create a linked list with each node containing a fixed size array [8]
At the moment when running the speed test class (speed test tests arraylist, collection and the chunklist) my class is simply causing an infinite loop. (i think, nothing seems to be happening anyway)
when debugging if I try to step into certain things I get a ClassNotFoundException(); for example. the constructor for the list.
ChunkList()
if (head == null)
head = new Chunk<T> (head);
tail = new Chunk<T> (head);
}the line head = new Chunk<T>(head) causes this exception, however if I step over it in Eclipse it works fine, and seems to add data provided by the speed test. The same is happening with my iterator. When stepping over this however in the over-ridden Iterator it does not seem to be returning a ChunkItr
import java.util.AbstractCollection;
import java.util.Collection;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class ChunkList<T> extends AbstractCollection<T>
private final int ARRAY_SIZE = 8;
private Chunk<T> head;
private Chunk<T> tail;
private int numOfElements;
@SuppressWarnings("hiding")
private class Chunk<T>
public Object[] data = new Object[ARRAY_SIZE];
public Chunk<T> link;
public int chunkSize = 0;
@SuppressWarnings("unused")
public Chunk()
data = null;
link = null;
public Chunk(Chunk<T> link)
this.link = link;
public boolean equalsChunk(Chunk<T> c)
if (c == null)
return false;
else if (this.chunkSize != c.chunkSize)
return false;
else if (this.link != c.link)
return false;
else
Chunk<T> otherChunk = (Chunk<T>)c;
for(int i=0; i<ARRAY_SIZE; ++i)
if (!(this.data.equals(otherChunk.data[i])))
return false;
return true;
}// end of Chunk<T>
@SuppressWarnings("hiding")
private class ChunkItr<T> implements Iterator<T>
public Chunk<T> currentChunk;
public Chunk<T> previousChunk;
public Chunk<T> nextChunk;
public int currentElement;
@SuppressWarnings("unchecked")
public ChunkItr()
currentChunk = (Chunk<T>) head;
previousChunk = null;
nextChunk = (Chunk<T>) head;
currentElement = 0;
@Override
public boolean hasNext()
if (currentChunk != null)
if (currentElement < currentChunk.chunkSize)
return true;
return (nextChunk != null);
@SuppressWarnings("unchecked")
@Override
public T next()
if (!hasNext())
throw new NoSuchElementException();.
T elementToReturn = null;
while (elementToReturn == null)
if (currentChunk != null)
elementToReturn = (T) currentChunk.data[currentElement];
if ((currentElement == ARRAY_SIZE-1) ||
(currentElement == currentChunk.chunkSize))
previousChunk = currentChunk;
currentChunk = currentChunk.link;
currentElement = -1;
if (currentElement == 0)
nextChunk = nextChunk.link;
++currentElement;
else
break;
return elementToReturn;
@SuppressWarnings("unchecked")
@Override
public void remove()
if (currentChunk == null)
throw new IllegalStateException();
else if (currentChunk.data[currentElement] == null)
throw new IllegalStateException();
else
int move = currentChunk.chunkSize - currentElement;
for (int i=currentElement;i<move;++i)
currentChunk.data[i] = currentChunk.data[i+1];
// let gc do its work
currentChunk.data[currentChunk.chunkSize] = null;
--currentChunk.chunkSize;
--numOfElements;
} // did we just null first element?
if (currentChunk.chunkSize < 0)
if (currentChunk.equalsChunk((Chunk<T>) tail))
tail.link = tail;
//tail = (Chunk<T>) previousChunk;
} // re-link
currentChunk = currentChunk.link;
previousChunk.link = currentChunk;
} // end ChunkItr
public ChunkList()
head = null;
tail = null;
numOfElements = 0;
public void addNewChunk()
if (head == null)
head = new Chunk<T>(head);
tail = new Chunk<T>(head);
else
tail = new Chunk<T>(tail);
@Override
public boolean add(T t)
try
if (head == null)
addNewChunk();
tail.data[tail.chunkSize] = t;
++numOfElements;
if (tail.chunkSize == ARRAY_SIZE-1)
addNewChunk();
else
++tail.chunkSize;
return true;
catch(Exception e)
return false;
@Override
public Iterator<T> iterator()
return new ChunkItr<T>();
@Override
public int size()
return numOfElements;
public int numOfChunks()
int count=0;
Chunk<T> position = head;
while (position != null)
count++;
position = position.link;
return count;
// EOFI should ask this: What would be a better way to go about debugging this, besides the Eclipse debugger? because that just seems to give me runtime exceptions in places where it shouldn't.
speedtest
package chunklist;
//ChunkSpeed.java
This is a little class with a main() that runs some timing tests on
ArrayList, LinkedList, and ChunkList.
-- it's just static functions.
import java.util.*;
public class ChunkSpeed
// number of elements
public static final int MAX = 200000;
public static String FOO = "Foo";
Times a fixed series of add/next/remove calls
on the given collection. Returns the number
of milliseconds the operations took.
public static long test(Collection<String> coll)
long start = System.currentTimeMillis();
// Build the thing up
for (int i=0; i<MAX; i++)
coll.add(FOO);
// Iterate halfway through
Iterator<String>it = coll.iterator();
for (int i=0; i<MAX/2; i++)
it.next();
// Delete the next tenth
for (int i=0; i<MAX/10; i++)
it.next();
it.remove();
// Iterate over the whole thing (read-only) 5 times
int count = 0;
for (int i = 0; i<5; i++)
for (String s: coll)
if (s != null) count++;
long delta = System.currentTimeMillis() - start;
return(delta);
Runs the time test on the given collection and prints the result,
including the class name (cute use of getClass()).
public static void printTest(Collection<String> c)
long time = test(c);
System.out.printf("%s %d\n", c.getClass().toString(), time);
//////////////////////////////MAIN METHOD//////////////////////////////
public static void main(String[] args)
for (int i=0; i<5; i++)
printTest(new ArrayList<String>());
printTest(new LinkedList<String>());
printTest(new ChunkList<String>());
}//end main method
}//end class ChunkSpeedEdited by: Gcampton on Sep 2, 2010 8:57 PM -
Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data
Expected output in Xml:
<?xml version="1.0" encoding="utf-8" ?>
- <TopRoot>
- <Root id="1" Name="Department">
- <Type id="2" Name="IT">
- <SubType id="3" Name="Technology">
<SubSubType id="4" Name="Sharepoint" />
<SubSubType id="5" Name="ASP.NET" />
<SubSubType id="6" Name="HTML 5" />
</SubType>
</Type>
</Root>
</TopRoot>
List Details:
list details for storing category / sub category data and code to build tree structure for the same.
1.Create Custom List named “CategoryDetails”:
2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
3.Create column “Parent Category” of type lookup. under Additional Column Settings.
Get information dropdown, select “CategoryDetails”.
4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
In this column dropdown, select “Category Name”:
Referance:
http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data -fine but don't want tree view just generate xml string
i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
Expected Result:
My ultimate goal is to generate xml string like above format without building tree view.
I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
I developed some code but its not working to generate xml /string.
My modified Code:
public const string DYNAMIC_CAML_QUERY =
"<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
"<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack)
string TreeViewStr= BuildTree();
Literal1.Text = TreeViewStr;
StringBuilder sbRoot= new StringBuilder();
protected string BuildTree()
SPList TasksList;
SPQuery objSPQuery;
StringBuilder Query = new StringBuilder();
SPListItemCollection objItems;
string DisplayColumn = string.Empty;
string Title = string.Empty;
string[] valueArray = null;
try
using (SPSite site = new SPSite(SPContext.Current.Web.Url))
using (SPWeb web = site.OpenWeb())
TasksList = SPContext.Current.Web.Lists["Service"];
if (TasksList != null)
objSPQuery = new SPQuery();
Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
objSPQuery.Query = Query.ToString();
objItems = TasksList.GetItems(objSPQuery);
if (objItems != null && objItems.Count > 0)
foreach (SPListItem objItem in objItems)
DisplayColumn = Convert.ToString(objItem["Title"]);
Title = Convert.ToString(objItem["Title"]);
int rootId=objItem["ID"].ToString();
sbRoot.Append("<Root id="+rootId+"
Name="+Title+">");
string SRAndSUBSRTpe = CreateTree(Title, valueArray,
null, DisplayColumn, objItem["ID"].ToString());
sbRoot.Append(SRAndSUBSRTpe);
SRType.Clear();//make SRType Empty
strhtml.Clear();
SRType.Append("</Root>");
catch (Exception ex)
throw ex;
return SRType.ToString();
StringBuilder strhtml = new StringBuilder();
private string CreateTree(string RootNode, string[] valueArray,
List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
try
strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
catch (Exception ex)
throw ex;
return strhtml;
StringBuilder SRType = new StringBuilder();
private string GetSRType(string RootNode,
string[] valueArray, List<SPListItem> objListItemColn)
SPQuery objSPQuery;
SPListItemCollection objItems = null;
List<SPListItem> objNodeListItems = new List<SPListItem>();
objSPQuery = new SPQuery();
string objNodeTitle = string.Empty;
string objLookupColumn = string.Empty;
StringBuilder Query = new StringBuilder();
SPList objTaskList;
SPField spField;
string objKeyColumn;
string SrTypeCategory;
try
objTaskList = SPContext.Current.Web.Lists["Service"];
objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
Query.Append(String.Format
(DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
objSPQuery.Query = Query.ToString();
objItems = objTaskList.GetItems(objSPQuery);
foreach (SPListItem objItem in objItems)
objNodeListItems.Add(objItem);
if (objNodeListItems != null && objNodeListItems.Count > 0)
foreach (SPListItem objItem in objNodeListItems)
RootNode = Convert.ToString(objItem["Title"]);
objKeyColumn = Convert.ToString(objItem["ID"]);
objNodeTitle = Convert.ToString(objItem["Title"]);
SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
if(SrTypeCategory =="SRtYpe")
SRType.Append("<Type id="+objKeyColumn+" Name="+RootNode+ ">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SRSubTYpe")
SRType.Append("<SRSubType id="+objKeyColumn+" Name="+RootNode+
">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SubSubTYpe")
SRType.Append("<SubSubType id="+objKeyColumn+" Name="+RootNode +"
></SubSubType");
SRType.Append("</SubType>");
SRType.Append("</Type>");
catch (Exception ex)
throw ex;
return SRType.ToString();
// Call method again (recursion) to get the child itemsHi,
According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
For example, to create or delete the ECB menu for a list item in
"Site Content and Structure", we can follow the steps below:
To add the “My Like” menu, we can add the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemLike"
runat="server"
Text="My Like"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickNavigateUrl="https://www.google.com.hk/"
/>
To remove the “Delete” menu, we can comment the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemDelete"
runat="server"
Text="<%$Resources:cms,SmtDelete%>"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickScript="%SmtObjectDeleteScript%"
/>
The result is as below:
More information:
MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
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.
Joohi,
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 -
Appropriate permissions for the custom list
Hi,
Recently
I have taken up SharePoint 2013 exam and I got bit confused for one of the question i.e.
Case Study: Consolidated Messenger
You are the lead architect developer and web administrator of SharePoint 2013 for your company.
Consolidated Messenger is a national company with hundreds of franchises
Consolidated Messenger sells franchises to franchisees. Franchisees have three user types
User and its Role
Franchise Manager- Response for managing the franchise
Franchise Employee- Responsible for managing accounts and setting pick-up and drop-off locations for couriers
Courier- Responsible for picking up and dropping off packages
You need to set appropriate permissions for the franchise employees
customer list and customer sub site access. What should you do?
A) Add franchise employees to the Members group in the CorporateSiteCollection site collection.
Break inheritance at the
franchisee sub site level.
Create a custom role definition at the
franchisee sub site level.
Add franchise employees to the custom role.
B)
Create a custom role definition in the CorporateSiteCollection site collection with the limited access to the customers list.
Add franchise employees to the custom role at the CorporateSiteCollection site collection
Break inheritance at the
sub site level.
Add franchise owners to the Owners group
at the
sub site level.
C)
Create a custom role definition in the CorporateSiteCollection site collection with the limited access to the customers list.
Add franchise employees to the custom role.
Add full inheritance of the role definition and permissions at the site level
D) Add franchise employees to the Visitors group in the CorporateSiteCollection site collection.
Break inheritance at the
franchisee sub site level.
Create a custom role definition at the
sub site level with Full Control permissions.
Add franchise employees to the custom role.
I feel that both options B and C are applicable but I couldn’t come to conclusion.
Please
share your opinion the same.
Regards,
Sudheer
Thanks & Regards, Sudheer@Naga, As per non disclosure agreement that you have signed / agreed with Microsoft, I think you should not share confidential exam questions or answers. That would amount to violation of NDA.
Hope this helps!
MCITP: SharePoint 2010 Administrator
MCTS - MOSS 2007 Configuring, .NET 2.0
| SharePoint Architect | Evangelist |
http://www.sharepointdeveloper.in/
http://ramakrishnaraja.blogspot.com/ -
Adding custom button to Ribbon for custom list definition
I'm trying to add a custom button to the ribbon, specifically for a custom list definition. I have two custom list definitions, one for a document library (Type="11008") and one for a list (Type="10002").
I can use the following CustomAction to successfully add a button to the document library ribbon:
<CustomAction Id="MyCustomAction.DocLib"
RegistrationId="11008"
RegistrationType="List"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Library.Share.Controls._children">
<Button
Id="MyCustomAction.DocLib.Button"
Alt="Help"
Sequence="5"
Command="SayHi"
Image32by32Left="-64" Image32by32Top="-320" Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
Image16by16Left="-64" Image16by16Top="-176" Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
LabelText="Say Hi!"
TemplateAlias="o1"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="SayHi" CommandAction="javascript:alert('Hi!');"/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
If I try to do the same thing for my list, the button does not show up:
<CustomAction Id="MyCustomAction.List"
RegistrationId="10002"
RegistrationType="List"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.List.Share.Controls._children">
<Button
Id="MyCustomAction.List.Button"
Alt="Help"
Sequence="5"
Command="SayHi"
Image32by32Left="-64" Image32by32Top="-320" Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
Image16by16Left="-64" Image16by16Top="-176" Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
LabelText="Say Hi!"
TemplateAlias="o1"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="SayHi" CommandAction="javascript:alert('Hi!');"/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
What am I missing that is keeping me from getting this button to show up in my List ribbon?Well, I debated just deleting my question, but I'll leave it up in case someone else runs into this. My custom list definition for my list had <Toolbar Type="Freeform" />. I don't remember why I changed that, but once I changed
that back to <Toolbar Type="Standard"/> my custom buttons started showing up as expected.
The answer
here pointed me in the right direction. -
How to display all items titles from custom list with checkbox to select for each user
Hi All,
I have a requirement in a sharepoint 2013 development project.
A custom list items will be created by admin with the following columns:
Title
Hyperlink
User business unit (This column which is a metadata will be a userprofile property)
In a page/form I have to display the list of titles with a check box based on each user business unit and each user will be allowed to check the list of titles and hit save. And then have to display the list chosen by the user in a webpart.
If they want to modify their list they have to go to the page/form again and will uncheck the list.
Am not sure whether I can achieve this through sharepoint out of box feature, I have not done any custom development.
Please provide your valuable suggestions/ideas on this. Thanks for looking on this !!!Hi,
Per my knowledge, there are no such OOTB features can meet your requirement, however, there is a workaround that if you can modify your requirement a bit.
Based on your description, you want different users be able to select values from a list and generate a list own by them.
If this is what you mean, we can do it like this:
1. Create another list "Users" which stores the names of every users;
2. Create a list "Result" which will be available for every user to add their own items, this list will have four Lookup columns and they look up to the "Users" list and the
list you mentioned before;
3. Users can add items into "Result" list by selecting the needed values from the other two list, then the items he/she created will be connected to them with the help of the
Lookup column which looks up to the "Users" list.
4. You can take use of the OOTB permission management of list to control the access of each item in the "Result" list, and it will be easier for you to manage and filter the
information you needed.
The links below about Lookup column for your reference:
http://office.microsoft.com/en-us/sharepoint-server-help/create-list-relationships-by-using-unique-and-lookup-columns-HA101729901.aspx
http://www.dummies.com/how-to/content/lookup-columns-in-sharepoint-2010.html
Best regards
Patrick Liang
TechNet Community Support -
Implementing Alerts for a Custom List
Hi,
I have a custom list in our SharePoint 2013 environment. One of the columns is "Contract Expiry Date". We would like to send an automated email to a specific person when the "Contract Expiry Date" is 30 days ahead of time.
I believe there are few ways to implement this in SharePoint. Could you please give me your opinion about how you would implement the above requirement.
Thanks a lot.
DinethHi Dineth,
Thanks for posting your issue, Workflows seem like the right way to do it. you can customize your workflow condition based on your expiry date.
Kindly browse the below mentioned URLs to create workflow to send an email for expiry
http://mysharepointchronicles.wordpress.com/2012/11/05/sharepoint-list-with-workflow-email-reminder-set-to-send-30-days-from-created-date/
http://markeev.com/Articles/item-expiration-reminders-in-sharepoint-using-workflow.aspx
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 -
Standard Report for Customer Listing
Hi Gurus
Is there any standard report available for Customer listing which display customer details.
Points will be rewarded..
Regards
HappyHey Happy,
I think there is no standard report functionality to get the list of the customer but you can get that in this way,
Go to SE16 transaction enter the table KNVV then execute system will give the all customer which are maintaining sales area data.
Take the table KNA1 to get the general data customers list
Take the table KNB1 to the company code data customers list
I hope it will help you
Regards,
Murali. -
How go generate Popularity Trends report for a custom list in SharePoint 2013
Hi,
I want to generate Popularity Trends report for a custom list in SharePoint 2013, is it possible?
Thanks
khadar pashaAccording to
this link you should be able to access this option from the Items tab. for this to work, the Analytics Processing Component needs to be running.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Setting up records management for a custom list in SharePoint 2013
In a workflow 2013, I am planing to 'declare a record' on a custom list. I am doing this since I do not want users to be able to change the custom list once the record is submitted to workflow 2013.
There are options in record declarations settings that I am not certain what to set like what values are appropriate in 'declaration of records can be performed by'.
Since I am my own administrator on my test SharePoint 2013 website, would you tell me what I can do at the administrator's site level to enable the 'mark a record and/or declare a record feature? Basically I would like to know what options to set for a custom
list so the records can not be modified once the custom list has been submitted to the workflow.Hi Wendy,
There are 2 ways either in place records or records archive it will depend on your requirments.
check this article it will guide you about how to configure each way
https://support.office.com/en-nz/article/Implement-Records-Management-0bfe419e-eb1d-421a-becd-5be9fed1e479?ui=en-US&rs=en-NZ&ad=NZ
To decide which one you will choose check the comparison in this link
https://technet.microsoft.com/en-us/library/ee424394.aspx
Kind Regards,
John Naguib
Senior Consultant
John Naguib Blog
John Naguib Twitter
Please remember to mark this as answered if it helped you -
Custom list in Sharepoint 2013 for training booking purpose
Kindly note that I am trying to do custom list in Sharepoint 2013 for training booking purpose
As below :
The user should enter the user name - it works fine
The user should select the data from the choice list
The requirement is , I need to limit in each day of the training 20 seats (20 booking only) only
Can you advise how to do so.
[email protected]
Basilcheck below post and video on how to build the event receivers
http://www.sharepointpals.com/post/How-to-create-a-custom-list-level-event-receiver-in-SharePoint-2013-and-SharePoint-2010
https://www.youtube.com/watch?v=wZf2xvEM5Io
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
Replace Default "New" / "Edit" Forms for Custom List
Having created a web page that is just simple HTML with JScript to bring it "to life" in SharePoint designer, how can I cause SharePoint 2010 to present this page for the "New" action? Or for the "Edit" action?
This page is not associated with the Master Page/Content paradigm. It is at WebSite/Lists/TheTargetList/TheTargetForm.aspx
When I show the list properties tab for this list in Designer, and go to the "Forms" section (subtitled "Forms are used to display and edit data contained within this list"), and click the "New..." button at the right of
that section's title bar and fill in the Title with the title of my file, I cannot add the file. (The bread crumbs at the top say "Site > Lists and Libraries > ListName > ")
Alternately, I go to the bottom of the tab's page, and select the link "Item" under Content Types (the choices being "Item" and "Folder").
Then the bread crumbs say "Site > Lists and Libraries > ListName > Content Types > Item >"
In the "Forms" section, I try to put the fully qualified name of the page I have created (my ..aspx file) in the "New Form:" or "Edit Form:" areas, after having clicked the "<click to enter text>" links.
This lets me save that change, but destroys the web site's ability to show anything when I try to go to New or Edit — essentially "File not found." The same if I provide only the file name,
not fully qualified.
So, if I have "Site/Lists/List/XYZ.aspx," and if that file is like:
<html>
<head>
<script> . . . </script>
</head>
<body> . . . <br /> . . . </body>
</html>
How can I get this file to be opened as the "New" or "Edit" form for the list?Hi BrianWren ,
According to your description, my understanding is that you want to present a web page as the New Form page.
For achieving your demand, you need to create custom form using Visual Studio instead of SharePoint Designer.
Here is a good blog you can have a look:
http://blog.karstein-consulting.com/2010/12/29/walkthrough-create-custom-sharepoint-2010-list-form-for-deployment-in-a-visual-studio-2010-project/
http://www.sharepointblogs.be/blogs/sebastian/archive/2011/02/08/change-the-standard-forms-of-a-list.aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Viewing issues for custom list exported from Excel
Exported a table from Excel to use in our Sharepoint Online site. I am a site owner. The table/list shows up for all owners. When a team site member tries to view the list it only shows the headers and no items. The list is inheriting
the permissions from the site and the members can see other content on the site. I have even stopped the inheritance and set custom permissions for the list but it still only shows for owners. Any ideas? Thanks in advance for the help.Petra,
The Forum isn't really designed as a training system but rather where people can share questions or get a separate pair of eyes to look afresh at issues that aren't working for some reason. This is particularly the case for something which is as important as creating dimensions.
The idea of the SSM Cube Builder/Model Designer was to enable people to build models with their relevant dimensions and metrics for demos and simple initial systems using manual data entry. If you are getting into building dimensions that will be outside BW then you are moving into the implementation arena rather than demo creation and need to work carefully so that things tie up.
I doubt people would expect to be able to set up/implement BW without training and SSM is the same.
If you would like training or would like to collaborate on a first project to enable skills transfer then my colleague Pedro and I would be happy to discuss this. We have done this with other people and it has worked well.
Regards
Colin -
Standard Transactions for looking at Customer list in 4.5 systems
Hi Friends,
I need your help on this issue.
Can anyone provide me the standard transaction for looking at Customer list for a company code and credit limit overview for customers.
Tables are KNKK AND KNB1Thanks buddy for the immediate reply but i want to make this question simple.
I am now trying to pull out is there any Standard transaction code which has been used for the table KNKK AND KNB1.
If so how to find that whether any tcode is associated to find the Customer list for both the tables
Thanks in advance
kishore
Maybe you are looking for
-
How to load ALBPM Project webRoot\webResources files in WebLogic
How do I get the files I've included in the webRoot\webResources as part of my process to load in my WebLogic environment? I can these files are included in the project export but these do not appear to be deployed or are not currently visible to my
-
Working with Pages and Word-questions!
NOTE: Sorry for the similarity of this to my post a few minutes ago titled "Which do I use, Pages or Word)? I learned some things through experimentation and have created subtler and more challenging questions for you. Help me out here (please). I am
-
Can't print exported jpegs at photo printig shops
Hi, I am still using iphoto 2 (just lazy) and every time I export my photos as a jpeg to a cd the machines at the photo stores, kinkos, CVS, etc can't read the files. What am I doing wrong. I thought the jpegs were a universal format? The cd was burn
-
New Password wont let me log in
I had a accident last night. I spilled some water on my Imac Wireless key board (the new one with blue tooth technology). Well thats not the problem the problem arises when I couldnt use one of the keys to type in my password to log into my compute
-
10.2.0.3 Windows 64bits (AMD) CRash
Hi,I found a issue on 10.2.0.3 64 windows. Sometimes if one client 8.0.5 or 8.0.6 try to connect Database , the instance crash. I try to find a solution with Oracle but until now no solution. I have some clients with forms 6i instaled and a 10g clien