Search Knowledge Base by Keyword
-
Introduction
-
Fundamentals
-
Favorites
-
Dashboards
-
Attachments
-
Reports
-
- Available Reports
- All Asset Types
- Application Certification Status
- Application Discovery
- Application Group Analysis
- App Group to SCCM Collection Analysis
- Application Install Count
- Application License Management
- Application Usage
- Asset Column Mappings
- Asset Count by Property
- Asset Links Count by Asset Type
- Build Sheet
- Computer User Assignment
- Delegate Relationships
- ETL Synch Data
- ETL5 Staging Data
- Migration Readiness (Basic)
- Migration Readiness (Complex)
- O365 License Management
- O365 Migration Readiness
- Patch Summary
- SCCM OSD Status
- Scheduled Computers by Wave
- Scheduled Users by Manager
- User Migration Readiness
- VIP Users
- Wave & Task Details
- Wave Group
- Windows 10 Applications
- Show all articles ( 15 ) Collapse Articles
-
Self Service
-
Workflow
-
Assets
-
- View Asset
- Asset Properties
- Images
- Notes
- Waves
- Tasks
- Attachments
- History
- Rationalization
- QR Code
- Linked Assets
- SCCM Add/Remove Programs
- Altiris Add/Remove Programs
- Related Assets
- Relationship Chart
- Permissions
- Show all articles ( 1 ) Collapse Articles
-
Event Logs
-
Users & Groups
-
Asset Types
-
Charts & Dashboards
-
Options
-
- Modules
- Analytics
- Asset Images
- Asset Rationalization
- Asset Rules
- Attachments
- Bulk Edit
- Data Generator
- Data Mapping
- ETL
- Form Builder
- Multi-Factor Authentication
- Relationship Chart
- Reports
- Self Service
- Single Sign-On
- T-Comm
- Show all articles ( 3 ) Collapse Articles
-
Module Settings
-
-
-
- View Connection
- Connection Properties
- Make Into Connector
- Delete Connection
- Inbound Jobs
- Outbound Jobs
- New Inbound Job
- New Outbound Job
- Enable Job
- Disable Job
- Edit Inbound Job
- Edit Outbound Job
- Upload File
- Run Inbound Job
- Run Outbound Job
- Set Runtime to Now
- Reset Job
- Delete Job
- Job Log
- Show all articles ( 4 ) Collapse Articles
-
-
- View Connector
- Connector Properties
- Authentication Methods
- New Authentication Method
- Edit Authentication Method
- Delete Authentication Method
- Fields
- Edit Field
- Inbound Job Fields
- Edit Inbound Job Field
- Inbound Job Templates
- New Inbound Job Template
- Edit Inbound Job Template
- Delete Inbound Job Template
- Outbound Job Fields
- Edit Outbound Job Field
- Outbound Job Templates
- New Outbound Job Template
- Edit Outbound Job Template
- Delete Outbound Job Template
- Show all articles ( 5 ) Collapse Articles
-
-
- ETL5 Connectors
- Absolute
- Azure Active Directory
- Comma-Separated Values (CSV) File
- Generic Rest JSON API
- Generic Rest XML API
- Ivanti (Landesk)
- JAMF
- JSON Data (JSON) File
- MariaDB
- Microsoft Endpoint Manager: Configuration Manager
- Microsoft SQL
- Microsoft Intune
- Oracle MySQL
- PostgreSQL
- Pure Storage
- ServiceNow
- Tanium
- XML Data (XML) File
- Show all articles ( 4 ) Collapse Articles
-
-
API & Stored Procedures
-
Administration
-
FAQs
Update Column Value on Asset
< Back
The Update Column Value on Asset action button updates the column value of an asset type when clicked. There are options that can be configured to show or hide the confirmation modal. The configuration information is outlined below.
Front-End (HTML)
- The HTML in this example is being used to render a confirmation modal (pop-up) before the assets are updated. It is a fail-safe to prevent users from accidentally highlighting a row in the report and clicking the action button without confirmation.
- The confirmation modal can be turned on or off with a JS variable (confirmation_modal)
- There are a number of colors that can be utilized for the confirmation modal. To change the default green color in the example, update the CSS class definition on Line 1. You can also remove the color specific CSS class to get a generic white modal.
- Available colors:
- modal-primary – ReadyWorks Blue
- modal-info – Light Blue
- modal-success – Green
- modal-warning – Amber
- modal-danger – Red
- Available colors:
- If using more than one action button on a report, you will need to make sure the id on Line 1 of the modal div is unique for each modal. In this example, we are using value_change_modal for the id. This is also defined again as a variable on Line 2 in the JS.
- Update the modal-title on Line 7 to the desired text to display at the top title portion of the confirmation modal
Front-End (JS)
- The JS client-side code is being used to interact with the HTML DOM. It has standard code to render the action button on the report, and provide controls and event listeners for the action button.
- Toggle the confirmation_modal variable on Line 1 to true to show the confirmation modal, or false to bypass the confirmation modal
- If changing the modal id from HTML in the step above, then you will need to make sure the same modal id is defined in the modal_id JS variable on Line 2
- Update the action button title text on Line 24 to display the desired text when an end user hovers over the action button on the report
- Update the CSS icon used by the action button on Line 24. For a complete list of available Icon Class names, visit the Icon Library tab.
Backend (PHP)
- Backend server-side processing is handled inside of this PHP space. A few pre-defined variables need to be updated to account for the Asset Type Id, column name, and new value.
- Update the $atype_id variable on Line 21 to the Asset Type Id of the asset type being updated
- Update the $column_name_change variable on Line 22 to the column name of the column being updated inside of the Asset Type Id defined in the previous step
- Update Line 23 to the value that you are assigning to the column in the previous step. For lookup and alias columns, the format of the value is AssetTypeId__AssetId where the AssetTypeId is referencing lookup/alias list asset type Id, and the number after the __ is the asset Id of the lookup value. For non-lookup columns, the actual value can be set to this variable.
- For the values provided in the example:
- The action button is being used to update the Server asset type with an Asset Type Id of 29
- The lu__state lookup column on the Server asset type is being updated
- The State asset type has an Asset Type Id of 3
- The Decommissioned list item inside of the State asset type has an Asset Id of 9. This is how the new column value is set to 3__9.
General Information
- Click the button to choose if the action button supports selection of single or multiple datatable rows. The code inside the action button supports both approaches. If Single Select is selected, then only one record at a time can be updated. If Multi Select is selected, the user can select more than one row to update in bulk.
- Click the button to bring op the Button Properties dialog to assign the action button to a report
- Configure the button properties and then click the Update button. Click the Close button to cancel the operation.
- Name – Name of the action button (required)
- Status – Choose if the action button is enabled (required)
- Apply to Reports – Select report to apply the action button to
NOTE: Action buttons can also be assigned to reports in the Report Builder.
- Configure the button properties and then click the Update button. Click the Close button to cancel the operation.
- Click the button to save the action button