© 2011 planet technologies, inc. using spd and sql stored procedures patrick curran, mct august 12,...
TRANSCRIPT
![Page 1: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/1.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Using SPD and SQL Stored ProceduresPatrick Curran, MCT
A U G U S T 1 2 , 2 0 1 1
![Page 2: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/2.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Patrick Curran
MCT, MCITP, MCTS, MCP SharePoint Architect for Planet Technologies. Working with SharePoint since 2003.
– Administrator / Developer– Architect / Implementer– Troubleshooting / Branding – Motto: Why code when SharePoint will do it OTB
PCfromDC.blogspot.com
@PCfromDC
![Page 3: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/3.jpg)
Agenda1. Review the SQL Tables and Stored Procedure.
2. Use SharePoint Designer 2010 to create a page, and add content.
3. Use SharePoint Designer 2010 create a database connection (Demo).
4. Insert a Data Source, add a GridView control and attach the data source to the GridView.
5. Clean up the Grid, and verify page (Demo).
![Page 4: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/4.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Objective
Pass In and Out dates to a SQL stored procedure, review a list of free resources, then send selected resource an email.
Let’s get started!
![Page 5: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/5.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Quick Review of SQL…
Let’s take a look at the databases.
![Page 6: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/6.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Quick Review of SQL…
Our resources, roles, and email addresses:
![Page 7: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/7.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Quick Review of SQL…
The resource’s current schedule:
![Page 8: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/8.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Quick Review of SQL…
The stored procedure:
![Page 9: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/9.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Let’s Get Started…
Let’s open up Designer and create a page to hold our information.
1- Open your site.2- Select Master Pages.3- Select the v4.master4- Right click and select New from Master Page.
![Page 10: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/10.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create A Page…
I hope these guys stop looking over my shoulder soon.
1- Save Page.
2- Ignore warning and click Yes
![Page 11: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/11.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create A Page…
1- Within the PlaceHolderMain, select the Common Content Tasks.2- Click Create Custom Content
![Page 12: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/12.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Organize Content…
1- Click inside of the PlaceHolderMain.2- Insert a 2x4 Table.
![Page 13: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/13.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Insert Calendars…
1- Find the 1st column, 2nd row cell of the table.2- Drag a Calendar control into the cell.3- Drag another Calendar control into the 2nd column, 2nd row cell.
![Page 14: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/14.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Insert Calendars…
Should look something like this:
![Page 15: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/15.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Rename The Calendars…
1- Rename Calendar1 to “indate”2- Rename Calendar2 to “enddate”
![Page 16: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/16.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create the Data Source…
1- Click Data Sources2- Add a Database Connection.
![Page 17: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/17.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create the Data Source…
1 2
![Page 18: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/18.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create the Data Source…
3 4
![Page 19: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/19.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create the Data Source…
5 6
![Page 20: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/20.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create the Data Source…
Connection Created!
![Page 21: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/21.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Create More Content…
Insert our new Data Source!
![Page 22: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/22.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure Data Source…
![Page 23: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/23.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure Data Source…
1 2
![Page 24: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/24.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure Data Source…
3 4
![Page 25: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/25.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure Data Source…
5 6
![Page 26: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/26.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure Data Source…
7 8
![Page 27: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/27.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure Data Source…
9
![Page 28: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/28.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure GridView…
Can you believe the cat is actually playing the piano?
Let’s merge the 3rd row of cells.
2- Ignore warning and click Yes
![Page 29: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/29.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure GridView…
Grab the GridView data control and drag it into the 3rd row of our table.
![Page 30: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/30.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure GridView…
Select the appropriate Data Source
![Page 31: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/31.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Configure GridView…
Our SQL stored procedure columns!
![Page 32: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/32.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Our GridView .aspx
![Page 33: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/33.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Tweak Our GridView…
Enable Paging and Sorting
Paging Sorting
![Page 34: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/34.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Tweak Our GridView…
1- Edit GridView Columns 2- Remove Resource_ID Field
![Page 35: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/35.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Tweak Our GridView…
3- Clean up Header Text 4- Hide email_address field
![Page 36: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/36.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Tweak Our GridView…
Since we want Resource_Full_Name to be a Hyperlink for email, we must convert it to a Template Field.
![Page 37: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/37.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Our Tweaked GridView .aspx
![Page 38: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/38.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Our Tweaked GridView .aspx
Now we can email!
![Page 39: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/39.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Tweak The Table…
![Page 40: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/40.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Tweak The Table…
![Page 41: © 2011 PLANET TECHNOLOGIES, INC. Using SPD and SQL Stored Procedures Patrick Curran, MCT AUGUST 12, 2011](https://reader038.vdocuments.mx/reader038/viewer/2022110101/56649ec85503460f94bd585d/html5/thumbnails/41.jpg)
© 2011 PLANET TECHNOLOGIES, INC.
Thank You!!!
Email: [email protected]
Blog: PCfromDC.blogspot.com
Twitter: @PCfromDC