How to see only those records that are assigned to you in a Forms view in Groove (922152)



The information in this article applies to:

  • Groove Virtual Office 3.1 Professional Edition
  • Groove Virtual Office 3.1 Project Edition
  • Groove Virtual Office 3.0 Professional Edition
  • Groove Virtual Office 3.0 Project Edition
  • Groove Workspace 2.5 Professional Edition
  • Groove Workspace 2.5 Project Edition

INTRODUCTION

This article provides a sample filter code. This code filters Forms records so that you see only those records that are assigned to you in a Forms view in Groove Workspace and in Groove Virtual Office.

MORE INFORMATION

To use this sample code, make sure that the following conditions are true:
  • You have a field for a drop-down list of members. This field is called PickAMember.
  • You have a hidden field that will contain the contact URL. This field is called PickAMemberURL.
Apply your view filter {UserName} by using the PickAMemberURL field.
function PickAMember_OnChange()
{
    // Set a flag to signal update is needed before data is submitted.
    g_PickAMemberChanged = true;
}

// This is needed in the OnBeforeDataSubmit.
// If member field was updated, update the hidden PickAMemberURL field.
if (!g_PickAMemberChanged)
    return;
var PickAMember = GetHTMLFieldValue("PickAMember");
var MemberNameURLEnum = GetApp().CreateMemberNameURLEnum();
while(MemberNameURLEnum.HasMore())
        {
                var Pair = MemberNameURLEnum.OpenNextPair();
                if (PickAMember == Pair.First)
                {
                        SetHTMLFieldValue("PickAMemberURL", Pair.Second);
                            break;
                    }
            }

Modification Type:MajorLast Reviewed:7/25/2006
Keywords:kbhowto kbExpertiseInter KB922152 kbAudKnowledgeWorker