Giter Site home page Giter Site logo

getorglimits's Introduction

GetOrgLimits Lightning Components

Get org wide usage/limit using System.OrgLimits.getMap() then show them with progress bar.

Usage

Put Aura Component or LWC on Lightning Page or UtilityBar.

Included components

  • Apex class: GetOrgLimits.cls
    Server side controller for both aura and Lightning Web Component.
  • Aura Component: orgLimits_aura
  • Lightning Web Component: orgLimits_lwc

Note: Both Aura Component and LWC work as same. You don't have to install both.

How to install

Besides installing by metadata api / sfdx command, you can install them as an unlocked package;

  • sfdx force:package:install --package 04t0I000000jDz4QAE

or

Issues

Sometimes System.OrgLimits.getMap() failes with Insufficient Privilege.


Japanese explanations

System.OrgLimits.getMap() を使用して組織レベルの制限と現在の使用量をバーチャートで表示します。

使用法

AuraコンポーネントもしくはLightning WebコンポーネントをLightningページもしくはユーティリティバーに配置してください。

含まれるコンポーネント

  • Apex class: GetOrgLimits.cls
    aura/LWC共通のサーバサイド・コントローラ
  • Auraコンポーネント: orgLimits_aura
  • Lightning Webコンポーネント: orgLimits_lwc

Note: auraコンポーネントとLWCの機能は全く同じですので、両方を使用する必要はありません。

インストール方法

git cloneしてmetadata api/sfdxコマンドでインストールする以外にロック解除済パッケージとしてインストールすることができます。

  • sfdx force:package:install --package 04t0I000000jDz4QAE

あるいは

Screen Shot 2019-12-12 at 14 05 19

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.