You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Initial beta release of several metadata-driven components
First beta release of 4 components
- sobjectLabel
- fieldLabel
- inputField
- outputField
These are designed to support
- Automatic detection of field type and related metadata (like automatically getting picklist values)
- Automatic detection of sobject-level security and field-level security
- Automatic translation support for sobject labels & field labels
- Overrides and additional options (like additional rendering conditions on inputField) to give developers control when needed
* Feature: Field level security is automatically enforced by default - only fields that the current user has access to read (based on field.isAccessible()) will be returned. When false, all fields specified in the "fields" attribute are returned, regardless of field level security settings.
A collection of custom Salesforce Lightning components that streamline developing in Lightning by automatically applying sobject-level security, field-level security, field types and more.
14
3
15
4
## inputField.cmp
16
-
* Provides a simple way to display an SObject's field that automatically determines the field type, field label, etc. Attributes can be overridden to allow control over the field when needed
5
+
* Provides a simple way to display an SObject's field as an input (editable) that automatically determines sobject-level security, field-level security, the field type, field label, etc. Attributes can be overridden to allow control over the field when needed
*Displays the localized version of the provided field's label
9
+
## outputField.cmp
10
+
*Provides a simple way to display an SObject's field as an output (read-only) that automatically determines sobject-level security, field-level security, the field type, field label, etc. Attributes can be overridden to allow control over the field when needed
Two Apex classes are included in this repo. Future updates will try to keep the number of custom classes to a minumum so this library remains lightweight.
53
-
54
-
## LightningDataController.cls
55
-
Contains methods for accessing and modifying data. All methods are designed to work with any SObject type.
56
-
* createNewRecord(String sobjectName) - returns a new SObject record of the specified type - any default field values are populated on fields that the current user can modify (based on the field describe's isCreateable())
57
-
* queryRecords(String parameterString) - accepts a serialized version of LightningDataController.QueryParameters and returns the SOQL results of the dynamic query
58
-
* insertRecords(List<SObject> records) - inserts & returns the provided records
59
-
* updateRecords(List<SObject> records) - updates & returns the provided records
60
-
* upsertRecords(List<SObject> records) - upserts & returns the provided records
61
-
* deleteRecords(List<SObject> records) - deletes the provided records, no return value
62
-
* hardDeleteRecords(List<SObject> records) - hard deletes the provided records, no return value
63
-
* undeleteRecords(List<SObject> records) - undeletes the provided records, no return value
64
49
65
50
## LightningMetadataController.cls
66
51
Contains methods for describing your orgs metadata and returning the info as aura-friendly objects that can be consumed by Lightning Components
0 commit comments