Build Database Applications for SharePoint

1,923 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,923
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • These days, with everyone under pressure to do more with less and to make shorter and shorter schedules, application generation offers a new option.
  • These days, with everyone under pressure to do more with less and to make shorter and shorter schedules, application generation offers a new option.
  • These days, with everyone under pressure to do more with less and to make shorter and shorter schedules, application generation offers a new option.
  • Build Database Applications for SharePoint

    1. 1. Designer 301 – Advanced Iron Speed Designer Moderator: Jill Giampedraglia Presenter: Razi Mohiuddin We will start momentarily… Audio: Dial-in or use Voice over IP
    2. 2. Etiquette <ul><ul><li>Select Audio Mode </li></ul></ul><ul><ul><ul><li>Use Telephone: Dial local phone number </li></ul></ul></ul><ul><ul><ul><li>Use Speakers: Enable VOIP on your computer </li></ul></ul></ul><ul><ul><ul><li>Ask questions at any time via online Q & A facility </li></ul></ul></ul><ul><ul><ul><li>Moderator will answer directly, or </li></ul></ul></ul><ul><ul><ul><li>We will read aloud and answer </li></ul></ul></ul>
    3. 3. Agenda <ul><ul><li>Iron Speed Designer </li></ul></ul><ul><ul><li>Build data-centric SharePoint applications </li></ul></ul><ul><ul><li>Q&A </li></ul></ul>
    4. 4. Build data-centric SharePoint applications
    5. 5. SharePoint Application <ul><li>Why use Iron Speed Designer </li></ul><ul><li>Features </li></ul><ul><li>Security </li></ul><ul><li>Requirements </li></ul><ul><li>Deployment </li></ul>
    6. 6. Why use Iron Speed Designer? <ul><li>Speed application development </li></ul><ul><li>Cut software development costs </li></ul><ul><li>Reduce testing time </li></ul><ul><li>Simplify maintenance </li></ul>Application generation = acceleration
    7. 7. What does Iron Speed Designer do? <ul><li>Business process automation </li></ul><ul><li>Reporting and tracking applications </li></ul><ul><li>Workflow and scheduling applications </li></ul><ul><li>Rapid prototyping </li></ul>Use Iron Speed Designer for &quot;I can honestly say that Iron Speed Designer does cut your development time by more than half. … That's how productive I think the tool makes our developers.&quot; — Robert Rivera, Development Manager, Los Angeles County Health Department
    8. 8. What does Iron Speed Designer Generate? <ul><li>ASPX pages </li></ul><ul><li>C# and Visual Basic code-behind files </li></ul><ul><li>Data access layer </li></ul><ul><li>Stored procedures </li></ul>Iron Speed Designer generates Web applications… … straight from your database.
    9. 9. Features <ul><li>All features work in SharePoint </li></ul><ul><ul><li>All page types – Show/Edit Table, Show/Edit/Add Record, etc. </li></ul></ul><ul><ul><li>Multi-level menus </li></ul></ul><ul><ul><li>Export & Import </li></ul></ul><ul><ul><li>Ajax: Popups, Update Panels, Auto-typeahead </li></ul></ul><ul><ul><li>Formulas </li></ul></ul><ul><ul><li>Inline or Stored Procedures </li></ul></ul><ul><ul><li>Security </li></ul></ul><ul><ul><li>Same code model </li></ul></ul><ul><ul><li>Everything! </li></ul></ul>
    10. 10. Security <ul><li>Can use </li></ul><ul><ul><li>SharePoint Groups </li></ul></ul><ul><ul><li>Database </li></ul></ul><ul><li>SharePoint Groups </li></ul><ul><ul><li>Use Web Services or Database </li></ul></ul><ul><ul><li>Web Services </li></ul></ul><ul><ul><ul><li>No Administrative access to Database required </li></ul></ul></ul><ul><ul><ul><li>Requires URLs for all site collections </li></ul></ul></ul><ul><ul><li>Database </li></ul></ul><ul><ul><ul><li>Direct connection </li></ul></ul></ul><ul><ul><ul><li>Can see all web applications at once </li></ul></ul></ul>
    11. 11. Security <ul><li>Uses SharePoint Groups as roles </li></ul><ul><li>Groups are specific to Site Collection </li></ul><ul><li>User role is a pairing of site collection and group </li></ul><ul><li>Can be specific to </li></ul><ul><ul><li>Web Application / Site Collection / Group </li></ul></ul><ul><li>Common to all web applications </li></ul><ul><ul><li>Site Collection / Group </li></ul></ul>
    12. 12. Web Application 1 ID={1B24-… -1111} Site Collection 1 (Site) URL: spserver:80/sc1 Webs: Site1 Site2 Groups: group1 group2 group3 Site Collection 2 (Site) URL: spserver:80/sc2 Webs: Site1 Site2a Groups: group1 group2 group5 Web Application 2 ID={AD34-… -2222} Site Collection 1 (Site) URL: WA2/sc1 Webs: Site1 Site2 Groups: group1 group2 group3 Site Collection 3 (Site) URL: WA2/sc3 Webs: Site1 Site2a Groups: group1 group2 group5 Web Application Specific roles examples: {AD34-… -2222}/sc1/group2 {1B24-… -1111}/sc1/group2 Web Application Invariant roles examples: /sc1/group1 /sc2/group2
    13. 13. Requirements <ul><li>SharePoint 2007, 2010, WSS 3.0 or WSS 4.0 </li></ul><ul><li>Uses SharePoint theme </li></ul><ul><li>Development Machine </li></ul><ul><ul><li>Must NOT be a SharePoint / WSS site </li></ul></ul><ul><ul><li>Must have Microsoft.SharePoint.DLL in GAC </li></ul></ul><ul><ul><ul><li>(can be copied from any SharePoint server) </li></ul></ul></ul><ul><ul><ul><li>Drag and drop DLL into C:WindowsAssembly folder in Windows Explorer. Automatically registers. </li></ul></ul></ul><ul><li>Deployment Server </li></ul><ul><ul><li>SharePoint or WSS </li></ul></ul><ul><ul><li>No need for Iron Speed Designer </li></ul></ul>
    14. 14. Requirements – Application <ul><li>.NET 3.5; VB.NET or C# </li></ul><ul><li>SharePoint Inherited Page Style </li></ul><ul><li>Microsoft Access not recommended </li></ul><ul><ul><li>Have to enable File Operations and OLEDB </li></ul></ul><ul><ul><li>Microsoft Access does not work on 64-bit servers </li></ul></ul><ul><li>ASP.NET Development Server preferred </li></ul><ul><ul><li>Using IIS has image problems </li></ul></ul><ul><li>During development, application simulates SharePoint environment </li></ul><ul><ul><li>Simulates SharePoint Master Page </li></ul></ul><ul><ul><li>SharePoint security configured, not enabled </li></ul></ul>
    15. 15. Deployment <ul><li>Use Deployment Wizard to create WSP </li></ul><ul><ul><li>Copying folder does not work </li></ul></ul><ul><li>Deployment Wizard </li></ul><ul><ul><li>Changes application from simulator to SharePoint enabled </li></ul></ul><ul><ul><li>Creates WSP for installation </li></ul></ul>
    16. 16. Deployment Hierarchy <ul><li>Farm </li></ul><ul><ul><li>Server </li></ul></ul><ul><ul><ul><li>Web Application </li></ul></ul></ul><ul><ul><ul><ul><li>Site Collection </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>Site </li></ul></ul></ul></ul></ul>
    17. 17. Server 1 Content DB 1 Content DB 2 Server 2 Content DB 3 Services DB1 Server 3 Apps DB 1 Content DB 4 SharePoint Farm (SPFarm_admin) Web Application1 (wa1_admin) <ul><li>Site collection1 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul>Web Application2 (wa2_admin) <ul><li>Site collection2 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Site collection </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul><ul><li>Site collection3 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul>Web Application3 (wa3_admin) <ul><li>Site collection1 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul><ul><li>Site collection3 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul><ul><li>Site collection2 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul>Web Application4 (wa4_admin) Web Application5 (wa5_admin) <ul><li>Site collection1 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul><ul><li>Site collection </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul><ul><li>Site collection2 </li></ul><ul><li>Group1 </li></ul><ul><li>Group2 </li></ul><ul><li>Group3 </li></ul><ul><li>-Group4 </li></ul>
    18. 18. IIS Application Pools: WA1_AppPool (wa1_admin) WA2_AppPool wa2_admin WA3_AppPool wa3_admin Central_Admin_AppPool (SpFarm_admin) C:InetpubwwwrootwssVirtualDirectories 2133 80 App_GlobalResources App_Themes bin web.config WA2 App_GlobalResources App_Themes bin web.config 23713 App_GlobalResources App_Themes bin web.config C:Program FilesCommon Files Microsoft SharedWeb Server Extensions12TEMPLATE LAYOUTS MyApp1 MyApp2 MyApp3 IIS C:InetpubwwwrootwssVirtualDirectories C:Program FilesCommon Files Microsoft SharedWeb Server Extensions12TEMPLATE LAYOUTS MyApp4 MyApp5 MyApp6 _layouts _layouts _layouts
    19. 19. Deployment Steps <ul><li>Create WSP </li></ul><ul><li>Copy WSP and Batch files to SharePoint server </li></ul><ul><li>Add solution to solution store – by running Batch file </li></ul><ul><li>Deploy solution via Central Admin </li></ul><ul><li>Activate feature </li></ul><ul><ul><li>Updates web.config on the Farm </li></ul></ul><ul><ul><li>Activates for whole web application, not just particular site collection </li></ul></ul><ul><li>Navigate to default page to access application </li></ul>
    20. 20. Deployment Steps - Updating <ul><li>Updating requires uninstalling and then reinstalling </li></ul><ul><li>Uninstall: </li></ul><ul><li>Run Remove Solutions Batch file </li></ul><ul><ul><li>Uninstalls feature </li></ul></ul><ul><ul><li>Retracts the solution </li></ul></ul><ul><ul><li>Deletes the solution </li></ul></ul><ul><li>Delete the Features folder </li></ul><ul><li>Delete the Application folder </li></ul><ul><li>Removed shared DLL’s is no longer needed </li></ul>
    21. 21. Future Plans <ul><li>Lists </li></ul><ul><li>Web Parts </li></ul>
    22. 22. Questions?

    ×