我们可以在 sharepoint 中设计这个调查吗

发布于 2024-07-27 05:30:03 字数 285 浏览 2 评论 0原文

假设我们有一个具有适用所有者的项目列表

Item  Owner
A1     O1
A2     O1
A3     O2
A4     O4
A1     O2

,即多对多映射。

对于他拥有的每个项目,所有者将回答一组固定的问题。因此,在调查中,O1 将回答 A1 和 A2 的问题,O2 为A3和A1...

  • 没有提问的业主将不允许回答任何问题。

我们如何使用 Sharepoint 2007 设计这样的调查

Suppose we have a list of items with applicable owners

Item  Owner
A1     O1
A2     O1
A3     O2
A4     O4
A1     O2

i.e. a many-to many mapping

For each item owned by him, the owner will answer a fixed set of questions.Therefore, in the survey O1 will answer questions for A1 and A2, O2 for A3 and A1 ...

  • Owner with no questions will not be allowed to answer any questions.

How can we design such a survey using Sharepoint 2007

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光倒影 2024-08-03 05:30:03

您将需要创建一个自定义渲染模板才能使其正常工作。

下面是使其工作的简要步骤:

创建

  1. 基于 SurveyFieldIterator 创建一个类,重写方法 IsFieldExcluded 此方法指示字段是否必须显示在 UI 中或不。 在此方法中,您可以放置​​从列表中读取用户是否有权访问问题的业务逻辑,并根据该结果返回 true 或 false。
  2. 接下来是基于上面的类创建一个自定义渲染模板。
  3. 接下来创建您的自定义调查模板,创建副本
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\FEATURES\SurveysList 文件夹添加到 MySurvey。 在 schema.xml 中,您需要更改 < 的模板 Template="SurveyForm" Forms> 标记出现在文件末尾。
  4. 部署模板、渲染模板和自定义类。
  5. 根据上述模板创建一个调查,并填写您想要的所有可能的问题。

You will need to create a Custom rendering template for getting this working.

Below is the brief steps to get it working :

Create

  1. Create a Class based on the SurveyFieldIterator, override the method IsFieldExcluded this method dictates if the field has to be displayed in the UI or not. Inside this method you place your business logic of reading from the List if the user has access to the question or not and based on that return true or false.
  2. Next is to create a Custom Rendering template based on the above class.
  3. Next Create your custom Survey Template,Create a Copy of
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\FEATURES\SurveysList folder to MySurvey. In the schema.xml you need to change the template Template="SurveyForm" of < Forms> tag present at the end of the file.
  4. Deploy both the Template,Rendering template and custom class.
  5. Create a survey based on the above template and stuff it with all possible question you want.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文