Sharepoint学习笔记—习题系列--70-576习题解析 -(Q36-Q39)

Question 36
You are designing a SharePoint 2010 application. You need to design the application so that it meets the following requirements:
.Content authors must be allowed to create product pages.
.Content authors also must be able to add Web Parts to customize the page.
.Product pages must allow the content author to select a value from a Product Type field as defined in an existing site column.
 Which approach should you recommend?
A. Create an application page that includes the Product Type field and Web Part zones.
B. Create a page layout that includes the Product Type field and Web Part zones.
C. Create a static page that includes the Product Type field and Web Part zones.
D. Create a Web Part page that includes the Product Type field and Web Part zones.


解析:
 本题要求你设计一个SP2010应用程序,要求如下:
要求1.内容编辑人员可以自行创建产品页面
要求2.内容编辑人员具备向上面的产品页面添加Web Parts的能力
要求3.内容编辑人员可以在产品页面上选择此产品属于哪个产品类型(Product Type),这个产品类型的选择是通过Product Type字段实现,而此字段是基于已经存在的网站列创建的。
  根据要求,本题最大的特点就是允许用户动态编辑网站页面,从这个特点出发,首先可以排除选项A与选项C。因为不管是application page还是static page均是静态特征,它们不支持用户在部署后动态修改页面。
  然后就是选项D,这个选项最大的问题就是Web Part Page并不支持内容类型,它主要是用于引用或创建Web Part Control来实现特定的操作功能。所以只有选项B,即通过创建 Page Layout来实现本题目标,因为Page Layout本身就是与内容类型紧密关联的,而且它支持Web Part Zone。
因此本题答案应该选B

参考 
http://msdn.microsoft.com/zh-cn/library/dd583152(v=office.11).aspx
http://msdn.microsoft.com/zh-cn/library/sk23dydw(v=vs.100).aspx
http://msdn.microsoft.com/zh-cn/library/jj862341.aspx


Question 37
You are designing a SharePoint 2010 application. You need to specify that a custom button is defined and added to the SharePoint 2010 ribbon. Which two actions should be performed? (Each correct answer presents part of the solution. Choose two.)
A. Create a new Content Organizer content type that defines the button.
B. Create Feature Definition and Feature Element XML files that define the button.
C. Use the STSADM.EXE utility to deploy the button.
D. Use the Site Collection Features option in the Site Collection Administration group to deploy the button.


解析:
 本题为多选题,要求你在Sharepoint2010的网站上实现把用户定义的Button控件添加到Ribbon中,要求两个选项。
 下面分别分析各备选项:
选项A. Create a new Content Organizer content type that defines the button.
   本选项试图通过创建一个新的内容管理器内容类型来定义此按钮。
SharePoint 2010的内容管理器是用来帮助网站管理员实现自动化的文档路由和存储。在用户将文档上载到网站之后,网站的内容管理器会按照事先设置的规则,自动将文档移动到正确的地方。所以内容管理器是用来管理文档对象,而不是用来部署控件对象或功能对象的。而且内容管理器规则只能处理继承自“文档”内容类型的内容类型,这意味着内容管理器只能管理文件类型的内容,而不能处理其他列表项内容类型。所以本选项应该被排除。

选项B. Create Feature Definition and Feature Element XML files that define the button.
在解决方案中,通过功能定义与功能XML元素来定义Ribbon中的按钮。这是通行的做法,没什么问题。

选项C. Use the STSADM.EXE utility to deploy the button.
在开发了选项B生成的Feature后,当然需要部署此Feature到Sharepoint中。STSADM.EXE提供了灵活的手段来部署你的功能,它有许多参数可供选择。

选项D. Use the Site Collection Features option in the Site Collection Administration group to deploy the button.
   此选项试图通过Site Collection Administration 下的Site Collection Features去部署网站集功能,想让此Ribbon Button只在指定的网站集中生效。而本题显然并没要求此功能只针对网站集范围,且Site Collection Features option in the Site Collection Administration只是用来管理Feature的,不是用来部署的。如果要部署,则需要使用Site Action下的Mange Site Features功能。
因此本题答案应该选 B.C

参考 
http://www.cnblogs.com/wsdj-ITtech/archive/2012/05/06/2483066.html
http://msdn.microsoft.com/zh-cn/library/ff630938(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/ee539395(v=office.14).aspx


Question 38
You are designing a SharePoint 2010 application that allows users to enter contact information into a form. You need to design the application so that it displays a dialog box prompting users to validate their contact information before the data is saved. Which approach should you recommend?
A. Create an application page that calls the SP.UI.ModalDialog class.
B. Create an application page that calls the SP.UI.PopoutMenu class.
C. Create a Web Part that calls the Message Box class.
D. Create a visual Web Part that calls the SP.UI.PopoutMenu class.


解析:
 本题核心是要你跳出一个dialog box以供用户检验他们录入的个人信息,只有信息得到了确认,才能做信息的保存操作。
  这种题对576而言,简单就是送分题目。凡是了解过SP.UI.ModalDialog功能的人几乎都不用考虑其它选项了。
  选项B.D均是关于弹出菜单的,与确认窗口无关。选项C是显示MessageBox,也即Sharepoint的Ribbon下的那个黄颜色动态提示条,它只是信息提示,无法完成用户确认功能。
因此本题答案应该选 A
参考 
http://msdn.microsoft.com/zh-cn/library/ff409127(v=office.14).aspx
http://chakkaradeep.com/index.php/using-the-sharepoint-2010-modal-dialog/

Question 39
You have a sandboxed SharePoint 2010 application for managing sales proposals. The application runs in a hosted environment that does not allow direct access to external services or the installation of proxies or external content types. The account status for your application is contained in a Customer Relationship Management (CRM) system hosted on a separate server. The account status information is exposed via Web services. You need to display account status from the CRM system in the form of dashboards, pie charts, and other reports to the users within your firewall. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. Develop a Silver light component that is responsible for making the Web service call from the client and rendering the returned data.
B. Develop a Web Part that uses AJAX and is responsible for making the Web service call from the client and  rendering the returned data.
C. Develop a Visual Web Part that calls the Web service in the On Load event of the contained ASMX control.
D. Develop a user control that calls the Web service in the OnPreRender event and render the returned data  through XSLT.

解析:
  你有一个管理销售计划的沙盒程序,此程序所寄宿的环境既不允许直接访问外界服务也不允许安装任何代理(应该是指Full trust Proxy)以及外部内容类型。此程序的帐户状态信息由另一个服务器上运行的CRM系统提供,帐户状态信息是通过那台服务器的Web Services开放出来的。现在,你需要通过仪表板,饼图,报表等等多种形式把帐户信息展示给使用者,那么你该如何做呢?[要求选两个答案]
 首先,由于题干部分说明了是”沙盒”方案,所以,直接可以排除选项C,因为沙盒方案是不支持Visual Web Part的。
其次,题目要求” 不允许直接访问外界服务也不允许安装任何代理(应该是指Full trust Proxy)以及外部内容类型”,这里的”直接访问”应该是指不能直接从服务器端访问,由此即可排除选项D,因为选项D通过的是服务器控件直接访问Web Service。
   再结合”多形式表达”能力,剩下的只有通过Silver light或Ajax的丰富控件来实现了。
因此本题答案应该选 A.B

参考 
http://msdn.microsoft.com/zh-cn/magazine/dd148643.aspx
http://msdn.microsoft.com/en-us/library/bb802856(v=office.12).aspx

posted @ 2013-10-06 10:50  wsdj  阅读(474)  评论(0编辑  收藏  举报