Code Monkey home page Code Monkey logo

kshitijlawate / timeline-component-lwc Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 13.0 2.04 MB

This component enables timeline view for Salesforce Record history.

Home Page: https://kshitijlawate.com/salesforce-record-history-in-timeline-view-using-a-custom-lightning-web-component-new-managed-package-version/

License: BSD 3-Clause "New" or "Revised" License

ObjectScript 5.73% Apex 77.90% HTML 8.70% JavaScript 7.61% CSS 0.06%
timeline history apex salesforce lwc lightning-web-components

timeline-component-lwc's Introduction

What is timeline-component-lwc?

This post will cover some technical, functional aspects of the component. There are some limitations as well as planned enhancements mentioned below.

How to configure and use?

The component can be added to Lightning Record pages to show history for the record in context or record related to it. The component needs no configuration by default, just drag and drop like other OOB components and you are good to go. You can always customize the component by providing additional 'Timeline Configuration' details. Please visit the link below if you don't want to figure it out on your own. https://kshitijlawate.com/salesforce-record-history-in-timeline-view-using-a-custom-lightning-web-component-new-managed-package-version/

Technical Aspects

  1. It is built with combination of Apex and Lightning Web Components.
  2. Apex Code takes care of fetching the history data, defining & building wrapper structure to show on UI.
  3. Object and Field level access control is handled in the apex code. If the logged in user does not have access to object or field, the component won't show it.
  4. Search functionality is handled completely on client side through JavaScript. There are Search tag arrays built into wrapper to filter records based on User input in text field.
  5. The Apex Code is using few reusable methods from SystemUtilities apex class. These can be used outside the scope of this component.

Limitations

  1. Percent fields are shown without Percent signs. They will show up just like normal number fields.
  2. For Encrypted fields, only the "change" event is shown, not the actual or masked value.
  3. The data does not auto-refresh if the component is open and data changes. The refresh button is available for force manual refresh.

timeline-component-lwc's People

Contributors

kshitijlawate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.