Best Practices to Improve jQuery Selector Performance

Amit D
Updated on 09-Dec-2019 06:48:46

2K+ Views

To enhance the performance of jQuery selector, you need to perform optimization. Here are some of the techniques:Cache SelectorCaching enhances the performance of the application. Cache your jQuery selectors for better performance. This can be done using the ID as your selector. For example, this caches the selector and stores it in variable.var $elm = $("#elm");Instead of using the jQuery ID selector, use the $elm variable:var $elm = $("#elm"); $elm.addClass(‘example’);Use ID selectorjQuery is a JavaScript library. In JavaScript, document.getElementById() is used to select the HTML element, which is the fastest way. Since jQuery is written on top of JavaScript, it ... Read More

Calling External Programs Using SAP Connector

Daniol Thomas
Updated on 09-Dec-2019 06:46:49

320 Views

Yes, it is possible to address or call an external program using SAP connector SDK. From ABAP, you can reference external program by SAP’s RFC protocol.There are various SAP connector available for various programming languages. Few of them areJCo is the SAP Java connectorNCo is the .NET SAP connectorNW RFC SDK is the SAP NetWeaver RFC SDK for C/C++

Get Class of Given Method Using T-Code SE80 in SAP

Rishi Rathor
Updated on 09-Dec-2019 06:34:59

3K+ Views

You would require calling transaction SE80 and then looking into Repository info system. Under that go to the class library and then to methods. You can specify selection criteria under standard selections.

Using AND and OR in SELECT in ABAP

Vrundesha Joshi
Updated on 09-Dec-2019 06:32:33

10K+ Views

You can use the following query:SELECT * FROM my_table WHERE condition 1 AND condition 2 AND ( id EQ '2' or id EQ ‘3’ ).Note: There should be space after and before bracket.Alternatively you can use IN statement as below:SELECT * FROM my_table WHERE condition 1 AND condition 2 AND EQ IN ('2', ‘3’ ).

Deleting Subsequent Heading from Report in SAP System

Jennifer Nicholas
Updated on 09-Dec-2019 06:31:44

123 Views

You need to add “NO STANDARD PAGE HEADING” as followsREPORT l_report MESSAGE-ID l_message NO STANDARD PAGE HEADING.

Remove DOM Elements in jQuery

Amit D
Updated on 09-Dec-2019 06:30:41

507 Views

The empty( ) method remove all child nodes from the set of matched elements whereas the method remove( expr ) method removes all matched elements from the DOM.ExampleYou can try to run the following code to learn how to remove DOM elements in jQuery:Live Demo           jQuery Example                              $(document).ready(function() {             $("div").click(function () {                $(this).remove( );             });          });                              .div{ margin:10px;padding:12px; border:2px solid #666; width:60px;}                             Click on any square below:                                            

Capacity of a SortedList in C#

AmitDiwan
Updated on 09-Dec-2019 06:27:26

182 Views

To get the capacity of a SortedList, the code is as follows −Example Live Demousing System; using System.Collections; public class Demo {    public static void Main(String[] args){       SortedList sortedList = new SortedList();       sortedList.Add("A", "1");       sortedList.Add("B", "2");       sortedList.Add("C", "3");       sortedList.Add("D", "4");       sortedList.Add("E", "5");       sortedList.Add("F", "6");       sortedList.Add("G", "7");       sortedList.Add("H", "8");       sortedList.Add("I", "9");       sortedList.Add("J", "10");       Console.WriteLine("SortedList elements...");       foreach(DictionaryEntry d in sortedList){       ... Read More

Load Data from SQL Server to SAP BW Using SSIS

Krantik Chavan
Updated on 09-Dec-2019 06:24:34

478 Views

I am wondering why you are planning to opt for SSIS for this. It would not be that easy and compatible. Instead, I will suggest you to for any of the below two optionsUse SAP BW standard anyDB source systemBO Data servicesBoth of the options are well compatible and do the data load well and in a native manner.

Check Unicode Character as Separator in C#

AmitDiwan
Updated on 09-Dec-2019 06:24:15

273 Views

To check whether the Unicode character is a separator character, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main(){       bool res;       char val = ', ';       Console.WriteLine("Value = "+val);       res = Char.IsSeparator(val);       Console.WriteLine("Is the value a separator? = "+res);    } }OutputThis will produce the following output −Value = , Is the value a separator? = FalseExampleLet us now see another example − Live Demousing System; public class Demo {    public static void Main(){       ... Read More

Convert Decimal to Equivalent 8-Bit Unsigned Integer in C#

AmitDiwan
Updated on 09-Dec-2019 06:21:28

323 Views

To convert the value of the specified Decimal to the equivalent 8-bit unsigned integer, the code is as follows −Example Live Demousing System; public class Demo {    public static void Main(){       Decimal val1 = 6.59m;       Decimal val2 = 30.12m;       Decimal val3 = 69.34m;       Console.WriteLine("Decimal 1 = "+val1);       Console.WriteLine("Decimal 2 = "+val2);       Console.WriteLine("Decimal 3 = "+val3);       byte res1 = Decimal.ToByte(val1);       byte res2 = Decimal.ToByte(val2);       byte res3 = Decimal.ToByte(val3);       Console.WriteLine("Byte value1 (Decimal ... Read More

Advertisements