Siebel CRM Desktop for IBM Notes Administration Guide > Administering Siebel CRM Desktop > Controlling How Siebel CRM Desktop Handles CRM Data >
Controlling the Maximum Size of an Attachment
You can control the maximum size of an attachment that Siebel CRM Desktop allows the user to attach to an object. The example in this topic sets the maximum size of an account attachment to 1 MB. To control the maximum size of an attachment
- (Optional) Set the maximum size of a file that CRM Desktop can attach to a specific object type that it synchronizes from the client to the Siebel Server:
- Use an XML editor to open the connector_configuration.xml file.
- Locate the following tag:
type id="Attachment"
Make sure you locate the tag that includes child collection container_type tags. This tag is typically the second instance of the type id="Attachment" tag in the connector_configuration.xml file.
- Modify the FileSize attribute of one of the child tags of the tag you located in Step b.
For example, to modify the maximum size for an account attachment, you modify the value type="integer" tag that the Account collection container contains. You use the following code. Bold text indicates the code you must change:
<type id="Attachment"> <group link="or"> <collection container_type="Account" foreign_key="ParentId"> <primary_restriction> <group link="and"> <binary field="FileSize" condition="le"> <value type="integer">1048576</value> </binary>
where:
- 1048576 is the number of bytes in 1 MB.
- Save your changes and then close the Ln_connector_configuration.xml file.
- (Optional) Set the maximum size of an attachment that CRM Desktop can synchronize from the Siebel Server to the client:
- Use an XML editor to open the siebel_meta_info.xml file.
- Set the value for the max_out_obj_size tag.
The max_out_obj_size tag sets the maximum size of an attachment for any object that CRM Desktop synchronizes from the Siebel Server to the client. If CRM Desktop encounters an attachment that is larger than the value you specify, then it displays an error message. For example, the following code sets this maximum size to 1 MB:
ErrMsg="#out_object_too_big_err_msg">1048576</max_out_obj_size>
where:
- Save your changes and then close the siebel_meta_info.xml file.
- Open IBM Domino Designer, and then locate the SBL.BusinessLogic Script Library.
For more information, see Opening IBM Domino Designer.
- Open the GetAttachementOptions function.
- Locate the following code:
Set Options = New AttachmentOptions("Name", "Body", CLng(max_file_size), ATTACHMENT_DUPLICATE_ACTION_NUMERATE, "", "")
where:
- max_file_size is an integer that specifies the maximum size of an attachment, in megabytes, that CRM Desktop allows the user to attach to an object, such as an account. CRM Desktop comes predefined with CLng(5). For more information, see the topic about the CLng function at the Domino Designer documentation web site at http://www.ibm.com/developerworks/lotus/documentation/dominodesigner/.
- For example, you can use the following code:
Set Options = New AttachmentOptions("Name", "Body", CLng(1),ATTACHMENT_DUPLICATE_ACTION_NUMERATE, "", "")
where:
- CLng(1) specifies a maximum file size attachment of 1 megabyte.
- Save your changes and then close the SBL.BusinessLogic Script Library.
Opening IBM Domino Designer
This topic describes how to open IBM Domino Designer. To open IBM Domino Designer
- In IBM Notes, click Open, click Applications, and then click Workspace:
- Right-click a database that contains the object types that Siebel CRM Desktop uses, and then click Open in Designer:
|