0

Looking for options:

I want to set it up so that when a person attaches a document to an event of a calendar list that the title of said event will be modified with an indicator to show that a file has been attached. Any ideas are appreciated.

TIA

2 Answers 2

0

I'm not sure, but can you try to use this technic to customize view?

1
  • The SharePoint calendars are built with JavaScript, not xslt.
    – Christophe
    Nov 2, 2011 at 3:39
0

I ended up creating a column called attached indicator that was set through a workflow that had the following code in the onWorkflowActivated_Invoked

private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
    {
        SPListItem item = workflowProperties.Item;

        if (item.Attachments.Count > 0)
        {
            item["AttachmentIndicator"] = "inline";
        }
        else
        {
            item["AttachmentIndicator"] = "none";
        }
        item.Update();
    }

The value of the AttachmentIndicator was used in a calculated column called Display with an tag. It set the display CSS style on the tag.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.