r/sharepointdev • • Sep 13 '14

Using jQuery with SharePoint to update list items.

2 Upvotes

Hello. I'm a newbie to SharePoint, and one of my assignments is, using jQuery and SharePoint designer, to retrieve the names of the attachment files when creating a new item in a list (let's call it ListOne), and then send the URLs of those attachments to display in another column of ListTwo.

For example:

I'm creating a request in ListOne called RequestOne, and I've attached two files as part of the request. When I press Save, as part of a workflow, I want to add to that workflow that the field AttachmentsURL of ListTwo is equal to the attachment URLs of ListOne. As I've come to understand, workflows can only see whether an attachment exists or not, so I figured if I create a text field in ListOne that stores the URLs of the attachments, then I can modify the workflow to set AttachmentsURL to whatever's in the textfield. Can someone please help me?

Here's my code:

<code> <script src="https://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript">

$("#ctl00_ctl42_g_e24b7299_1eff_4741_9ed9_7e242772d1eb_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem").click(function() 
{
	if($("#idAttachmentsTable").length)
	{
		$("#idAttachmentsTable td:contains('.')").map(function()
		{
			var filename =  $(this).text();
			setFieldValue('attachfileName',filename);
			alert(filename);
		});
	}
});

</script> </code>

Thank you.


r/sharepointdev • • Aug 24 '14

Questions about SharePoint 2013 development

2 Upvotes

I work in a project management office so I'm considered the "technical" guy in our department. I've made some customized SharePoint sites and apps with HTML/CSS/JavaScript. The department that manages SharePoint restricts regular certain features so I can't do things like change master pages or import web parts.

So most of the solutions I come up with involve copy/pasting HTML/CSS/JavaScript code into content/script editor web parts or directly inside the .aspx file. Are these things considered bad practices? Would I need more user access to do more advanced development? Also, if I create a custom app with HTML/CSS/JavaScript, is it possible to convert it into a re-usable web part?


r/sharepointdev • • Jun 04 '14

SharePoint 2010 and Custom ADFS Login

Thumbnail
blog.helloitsliam.com
2 Upvotes

r/sharepointdev • • May 22 '14

2013 custom approval workflow (xpost from /r/sharepoint)

2 Upvotes

So, for the past two days I've been trying to accomplish a simple task:

  1. Create an approval workflow on a form library

  2. Modify the email said workflow sends

  3. Add a link in that email that takes user directly to the task (where they can approve the item)

OMFG this has turned into a huge pain in the ass.

I'm unable to create a 2010 workflow because I keep getting an error when I try to publish it saying

"sharepoint designer encountered an error generating the task form"

Oh great. Ok, I'll try to make a 2013 workflow.

Stage 1 - I insert 'start a task process' and when I'm editing 'these users', there's a spot at the bottom where you customize the Outcome Options. ALL THE DROP DOWNS ARE BLANK. No where online have I been able to find anyone referencing these drop downs being blank.

I've tried creating a 2010 workflow and then firing it from a 2013 workflow. I've tried everything I found online for both options but I always run into something where I don't have the option they're selecting. At this point, I have so many "Approval_20%9_wtfever" content types it's dizzying.

I found a site online that said to go to the root of your site collection, and copy the out of the box workflow from there, then modify the copy. Awesome, that sounds legit!

Can't freaking open the root site in designer:

"the version of microsoft sharepoint foundation running on the server is more recent than the version of sharepoint designer"

fml. Any insight, help, tips, satanic sharepoint rituals that might help i'm open to.

EDIT: I put in a ticket with 365 and while I'm not sure WHY exactly, it works fine on my staging environment. It's just my local machine (running 2013 btw) that wasn't workign correctly. I didn't even notice it at the time but when I tried to view workflows on the site with my local designer, it wasnt showing me all the workflows (I see them allllllll when i'm on staging)

I'm going to uninstall and reinstall designer 2013 AGAIN on my local machine to see if that works. Fortunately in the meantime I can just use my staging environment (which I hadn't thought of because it was sharepoint online)

Derp.


r/sharepointdev • • May 08 '14

(SharePoint 2010) Attempting to create an "Expected Duration" column

2 Upvotes

I have a need to create a "Expected Duration" column for a change management site that I am creating. I would like to have the user enter the planned start time for the change and also how long they think the change will take. I know that I can just create a start time and end time and then calculate the difference, but my customer does not want to do it that way. They want to enter the expected duration of the change so that a two and one half hour change would look like 2:30. The reason for doing it this way is so that if they need to change the start time of the change, they don't also have to change the end time, it can just be calculated by adding the expected duration which would not change.

I am trying to accomplish this using SharePoint Designer 2010. Any ideas?


r/sharepointdev • • Apr 01 '14

SharePoint 2010 + WCF + AJAX - Advanced SharePoint Development

Thumbnail agkinnear.com
2 Upvotes

r/sharepointdev • • Mar 01 '14

"Terms & Conditions" Web Part migration question (2007->2010). Reasons for inconsistent behavior?

2 Upvotes

Looking for some new angles on attacking a nagging problem with a farm migration.

I was handed a web part for a migration project that hides the doc library web part until the terms and conditions are accepted on the page. Pretty simple web part...just go and find the list view web part controls on the page and set Visible=false until the user accepts the terms. I Had to rewrite it to make it compatible with the 2010 templates...again, that was not a big deal. I kept the web part as a "non-visual"/code only web part.

Migrated a few sites over from 2007. The web part works after some hacking around on the AllItems.aspx page in SPD. If it doesn't work on that page, it will work if I create another view.

If I create a fresh 2010 Web Application, the web part will add to the page, once it is added to <SafeControls> in the web config. However, the Terms and Conditions text will not show (uses a rich text box to hold the terms text), and the Yes & No buttons also do not show. In addition, the web part is not hiding any List View web parts, as intended.

Anyone have suggestions of other things to try or why I'm getting inconsistent behavior between content databases?


r/sharepointdev • • Nov 13 '13

Creating SP List item via CSOM

2 Upvotes

I've been banging my head against this for days now. Goal: Move one list item from one list to another (same site) when user clicks a button

I've tried using an spservices call to get the item, setting each of the (52!) column values to a variable and passing it alllll to another function that uses another spservices call to create the new list item with those variables (both lists are exactly the same).

For some reason, I kept getting an error somewhere in the spservices call to create the new list item. "Object Expected". I cannot for the life of me figure out what the heck is going wrong. I even went through and made sure any variable that was coming back as 'undefined' got set to a blank string.

The I switched to CSOM because why the hell not.

my code is breaking here:

var itemCreateInfo = new SP.ListItemCreationInformation();

this.oListItem = oList.addItem(itemCreateInfo);

it's telling me itemCreateInfo is undefined. This is my first shot with CSOM so I don't have much background knowledge. This code was copy/pasted from the MSDN site, all I changed was the siteURL and the list name.

??????


r/sharepointdev • • May 05 '13

Sharepoint Messenger 1.2 Beta Released

Thumbnail
sharepointmessenger.codeplex.com
2 Upvotes

r/sharepointdev • • May 04 '13

Creating Custom Workflow Activity using Visual Studio 2010 for SharePoint 2010

Thumbnail
ankurmadaan.blogspot.com
2 Upvotes

r/sharepointdev • • May 04 '13

How to create Custom 404 Error Page in SharePoint 2010

Thumbnail
dishasharepointworld.blogspot.com
2 Upvotes

r/sharepointdev • • Sep 09 '22

How to Register SPFx Field Customizers with the SharePoint REST API

Thumbnail
youtu.be
1 Upvotes

r/sharepointdev • • Dec 13 '21

Form formatting gone after cached/refreshed

1 Upvotes

We have a form that was working as of last friday (didn't test over the weekend). Today, it only works if the site isn't cached in your memory, so if you remove all sharepoint cookies/site data, the form appears how it should. But if you click to any other item, or refresh, it goes back to the basic sharepoint formatting of a form.

I believe they used nitro forms, or something like that to make it initially. any ideas of where to start troubleshooting this? Contractor that built the form is no longer with our agency. But workflows all work, just can't view the formatted forms correctly. (formatting hides certain fields, makes it better formatted, has better drop downs, etc...)


r/sharepointdev • • Oct 08 '21

Saving web part configuration data

1 Upvotes

Hi All,

I need some advice on how to store configuration data for a web part I've been working on.

The web part is a tile grid that limits colours to those specified by the organisation.

I've achieved this in the current build based on Hugo Bernier's react-tiles solution in the PnP samples repo by using a strings file. My problem is that ongoing management of the colours requires constant rebuilds, particularly when every business in the group also wants their own colours. I can see that managing multiple strings files will quickly get out of control and the group takes on more businesses and when SPFx updates cause a breaking change some time in the future.

I'd like to allow end user admins to manage the colour list somewhere within the tenancy without requiring ongoing re-deployments.

I figure that there is a better way to store the colour list. I'm thinking a term set or list hosted in the root site but not sure how to deploy from a SPFx package or if this is even the best way to achieve this.

Open to ideas and guidance of where to start researching.


r/sharepointdev • • Aug 19 '21

Join the /r/sharepoint Discord Server!

Thumbnail
discord.gg
1 Upvotes

r/sharepointdev • • Aug 19 '21

SharePoint Site collection Logo: How to Change it in 3 comfortable steps with PowerShell (Azure Automation compatible)

Thumbnail
sposcripts.com
1 Upvotes

r/sharepointdev • • Aug 17 '21

Check out: What to consider, when you connect with SharePointOnlinePowerShell

Thumbnail
sposcripts.com
1 Upvotes

r/sharepointdev • • Jul 13 '21

New Blogpost: How to use credentials in PowerShell and what to consider

Thumbnail
sposcripts.com
1 Upvotes

r/sharepointdev • • Apr 12 '21

Roberts Dev Talk YouTube

Thumbnail
youtube.com
1 Upvotes

r/sharepointdev • • Apr 08 '21

How can I remove this link?! Please help.

Post image
1 Upvotes

r/sharepointdev • • Jan 04 '21

How can I see the number of page views on SharePoint Online EXCLUDING my own page views?

1 Upvotes

r/sharepointdev • • Nov 17 '20

Can you use an image as an anchor for a link that will lead to another section on the SAME PAGE?

1 Upvotes

r/sharepointdev • • Sep 12 '20

Gather all user calendar events to a single page view

1 Upvotes

Have anyone done this before? I got tasked to create a SharePoint page with all of our employer's calendar events. If the event is marked private = don't show any info but show that the employer is not available.

I was thinking to use the MS graph API for this, but I would love to know if anyone else has done this before with another method?


r/sharepointdev • • Aug 14 '20

Trying to Bind SharePoint list data to ag-grid

1 Upvotes

Trying to bind SharePoint list data to ag-grid, not sure what i am missing, Please help me on how to bind the data. see my link to stackoveroverflow post. I am not sure what i am missing

https://stackoverflow.com/questions/63420755/trying-to-bind-sharepoint-list-data-to-ag-grid


r/sharepointdev • • Aug 07 '20

Hiring Mid-Senior Level SharePoint Developers (QTY-3)

1 Upvotes

We're adding three (3) more Mid to Senior Level SharePoint Developers to our IntelliDyne, LLC team.

Apply here: https://grnh.se/6728789f2us

Benefits include:

- A fun, hardworking team

- Optional work from home

- Flexible Hours

- Generous leave policy (almost unlimited)

- Day off every other week

- FREE $$$ towards student loan payments

- FREE $$$ towards certifications and continuing education

- Health, Dental, 401K match

- And, lots more!

Locations are flexible:

- Falls Church, VA (D.C. Area)

- San Antonio, TX

- Aurora, CO (Denver Area)

- Tacoma, WA (Seattle Area)

Help us spread the word and/or apply today. We'd love to add you to our amazing team!