Salesforce quickly views the components that are introduced into the package

Source: Internet
Author: User

When a new version of the Salesforce package is generated, it is often necessary to check which new components will be introduced into the packages, This in the case of a number of components will be a little dazzling, in order to facilitate, I want to use JS to the package has been introduced to filter out, so there is the following JS fragment, recorded, easy to use in the future!

 

1. First, first, the introduction of jquery, because the pure JS code is not how to write, or jquery convenient

if (typeof jQuery = = ' undefined ') {
  &nbs P var e = document.createelement (' script ');
    E.SRC = '//code.jquery.com/jquery-1.11.2.min.js ';
    E.type = ' text/javascript ';
    document.getElementsByTagName ("Head") [0].appendchild (e);
}

 

2. Then get the list of components on the page and hide the lines of the components that have been introduced

var j$ = jquery.noconflict ();

var $compTbody = j$ (document.getElementById ("Viewallpackage:theform::p ACKAGECOMPONENTTABLE:TB"));

$compTbody. Find (' tr '). each (function () {
    var $tr = j$ (this);

    if ($tr. Find (' Td:eq (6) '). Text ()! = ") $tr. Hide ();
});

 

As Salesforce progresses, this code may fail, but it's just a matter of changing the JS code.

Salesforce Quick view of the components introduced into the package

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.