Bookshelf Home | Contents | Index | PDF |
Oracle CRM On Demand Desktop Customization Guide > Adding Custom Fields to Oracle CRM On Demand Desktop > Process of Adding Book Support to a New Top-Level Object > About Book PrefillingPrefilling is the process of automatically assigning predefined values to certain fields when a new record is created. Default values or functions that calculate default values must be linked to the fields that users want to have prefilled when they create a new record. This linking is specified in the business_logic.js file. In this example, the Book Name field is automatically prefilled with the value The following line links the BookId field with the prefill_book function that returns the ID of the book to prefill the field. scheme.objects.get_object("TypeName").get_field("BookId")["initial_value_fn"] = prefill_book; The algorithm implemented in the function is as follows:
To set up default book prefilling, see Prefilling the Default Book on New Records. |
Oracle CRM On Demand Desktop Customization Guide, Version 5.2 Revision B | Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |