Note: Nintex Apps data centers are located in West US and Australia (AUS). In-region processing of Nintex Apps data is only available in these regions.
Add a Record-Sensitive Image
Because the Image component is sensitive to record context, it's possible for Nintex Apps for Salesforce users to display an image that is associated with a particular record alongside that record. In this tutorial, we'll use the Image component to display a profile image within a detail drawer that provides additional information to a list of users.
Add an Image to a Detail Drawer
Assumptions
This tutorial assumes that you:
- are using Nintex Apps for Salesforce
- have an app page with a functioning model, in this case, on the User object and on that page, a table listing users by name.
-
In the body of the table, click Add Feature, then click Row Action and edit the Row Action's properties:
- Action label: View user details.
- Action icon: Select an appropriate icon.
-
Then, in the Actions tab, click
Add action four times and configure each action:- First action: Provide a message telling the users what's happening.
- Action type: Show message and block UI
- Message: Working ...
- Second action: Opens the drawer and allows the user to view or edit user information.
- Action type: Open/Close a Drawer
- Third action: Saves changes made in the Drawer.
- Action type: Save model changes
- Models to save: the user model.
- Roll back entire save on any error: Check.
- Fourth action: Unblock the interface.
- Action type: Unblock the UI
- First action: Provide a message telling the users what's happening.
Now it's time to configure the drawer itself.
- Back on the table component, click
- Show drawer icon: Check
at the beginning of the row of fields on the table. This opens the Drawer Properties. Edit: - Click Configure drawer.
- Add a Responsive Grid to the Drawer.
- Click Add division.
- Add a Form to the right side of the Responsive Grid.
Forms are most easily read in Edit mode ( General tab > Default mode ).
- Add fields, such as Full Name, Last Login, and Email to the Form.
- Make any desired adjustments to the component spacing on the Form Properties Styles tab.
-
Add an Image component to the left side of the Responsive Grid and edit the component's properties:
- Connector: Salesforce
- Connection: Your Salesforce connection.
- Image source: URL
Note: For this tutorial, we're using a URL field as our image source, but it is also possible to choose an Attachment field as the image source.
- Image URL: Click the field picker and select URL for full-sized photo, then click Apply.
- Make any desired adjustments to the component spacing on the Image Properties Styles tab.
Note: To have access to the field URL for full-sized photo, you must have Chatter enabled. In Salesforce Setup, navigate to Chatter > Chatter Settings and click Edit. Check the Enable box under Chatter Settings.
View the results
- Click Save and then Preview.
- In the User table, click the row action View user details.
This opens a drawer under the record that displays user details on the right side and (if the user has added a photo to their Salesforce profile) their image on the left.
Note: Since not all users add a photo to their Salesforce profile, you may need to click several users to find a drawer that displays an image.