Oracle CRM On Demand Desktop Administration Guide > Customizing Oracle CRM On Demand Desktop > Performing Typical Customization Work >
Adding a Default Value to a Field in Oracle CRM On Demand Desktop
This topic describes how to configure Oracle CRM On Demand Desktop to add a default value to a field when the user creates a new record. To add a default value to a field in Oracle CRM On Demand Desktop
- Use a JavaScript editor to open the business_logic.js file.
- Locate the following function:
create_ondemand_meta_scheme2
- Add the following string to the create_siebel_meta_scheme2 function:
scheme.objects.get_object("Service_Request").get_field("Status")["initial_value"] = "Open"
where:
- Service_Request is the TypeId of the object. If you want to identify the TypeId, then you can locate the corresponding type description in the od_basic_mapping.xml file. The id attribute of the type element is the TypeID.
- Status is the name of the field in which Oracle CRM On Demand Desktop adds a default value. If you want to identify the name of the field, then you can locate the corresponding type description and field element inside the type element in the od_basic_mapping.xml file. The id attribute of the corresponding field element is the name of the field.
- Save the business_logic.js file, and then test your work.
|