...
Note |
---|
Users will only see the button if they have access to the specified Apex class |
Making a custom button available on mobile
Click on Setup and search for Custom Settings
Click on Manage next to Custom Buttons
Click New
Fill in an appropriate Name and Label
Set the Show On Mobile field to true
Click Save
The button will now be visible on the Salesforce Mobile application. On click, it will perform the logic specified.
Note |
---|
Buttons configured for use in the web application may function differently in the Salesforce mobile application. See Salesforce’s mobile docs for guidance on how to adjust custom button solutions for the mobile use case. |
Implementing the B25.ExecutableCustomButton interface
...
The ExecutableCustomButtonContext object contains the following data:
Name | Type | Description |
---|---|---|
reservation | B25__Reservation__c | The Reservation open on the Reservation Form |
isRecurring | Boolean | If the Reservation is recurring |
recurringReservation | B25__Recurring_Reservation__c | The Recurring Reservation object that belongs to the recurring series of this Reservation, if the Reservation is recurring |
dimensionJunctions | Map<String, List<SObject>> | A map of any Dimension Junction objects. Mapped by the API name of the Dimension Junction Object |
serviceReservations | List<B25__Service_Reservation__c> | The ServiceReservation currently on the form |
The SObjects passed to this method are the SObjects used to render the form and save the data to the database. Any changes made to the objects are propagated to the Reservation Form. If any errors are thrown in the implementation on update, they are shown to the user as a page message. However a failed update does not update the Reservation Form back to its original values, that is the responsibility of the implementation.
...
Filter by label (Content by label) | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | ||
---|---|---|
| ||
|
...