Articles on Trending Technologies

Technical articles with clear explanations and examples

How to filter object array based on attributes in jQuery?

David Meador
David Meador
Updated on 13-Mar-2026 2K+ Views

To filter object array based on attributes in jQuery, use the map() method with JSON. The $.map() function creates a new array with the results of calling a provided function on every element in the calling array. Example You can try to run the following code to learn how to filter object array based on attributes in jQuery. This example filters department data based on employee count and shares criteria − ...

Read More

What is the difference between Grep and Filter in jQuery?

David Meador
David Meador
Updated on 13-Mar-2026 1K+ Views

The grep() method finds elements in an array based on a filter function, while the filter() method returns DOM elements from a jQuery selection that match specific criteria. jQuery grep() Function The jQuery grep() function is used to filter elements from an array. It searches through array elements and returns a new array containing only elements that pass the test function. Example The following example demonstrates how to use grep() to filter array elements − jQuery grep() function div { ...

Read More

What is the difference between .closest() and .parents() methods in jQuery?

Amit D
Amit D
Updated on 13-Mar-2026 1K+ Views

The jQuery closest() and parents() methods are used to traverse up the DOM tree to find ancestor elements. While both methods search for ancestors, they differ in their search behavior and return values. Let's explore the key differences between these two methods. jQuery closest() method The closest() method begins with the current element itself and travels up the DOM tree to find the first ancestor that matches the specified selector. This method returns a jQuery object containing zero or one element. Key characteristics of closest() The closest() method − Starts from ...

Read More

What is the difference between jQuery add() & jQuery append() methods in jQuery?

Amit D
Amit D
Updated on 13-Mar-2026 443 Views

The jQuery add() and jQuery append() methods serve different purposes in jQuery. The add() method is used to combine elements into a single jQuery selection, while the append() method is used to insert content inside existing elements. jQuery add() Method The add() method adds elements to an existing group of elements, creating a combined selection. This allows you to apply the same operation to multiple different elements at once. Example You can try to run the following code to ...

Read More

Getting error- Hard-coded logon parameters not allowed when using a Destination Configuration while connecting to SAP server dynamically

Priya Pallavi
Priya Pallavi
Updated on 13-Mar-2026 673 Views

The "Hard-coded logon parameters not allowed when using a Destination Configuration" error occurs when you attempt to pass connection parameters directly to the SAP RFC destination while also using a custom destination configuration. This conflict arises because SAP.NET Connector expects either hard-coded parameters or a destination configuration, but not both simultaneously. Solution The solution is to implement the IDestinationConfiguration interface and register it with the RfcDestinationManager. This approach centralizes connection parameters and eliminates the conflict with hard-coded values. Complete Working Example Below ...

Read More

Specified cast not valid for datetime while using SAP RFC

Prabhas
Prabhas
Updated on 13-Mar-2026 259 Views

When working with SAP RFC connections in .NET applications, you may encounter the "Specified cast not valid for datetime" error. This typically occurs when trying to convert SAP date/time formats to .NET DateTime objects due to format mismatches. Understanding the Issue SAP systems often use different date and time formats than what .NET expects by default. The most common SAP date format is dd.mm.yyyy or variations with time components. When .NET tries to automatically parse these values, it fails because it cannot recognize the format. Solution Using ParseExact Method The best approach is to use the ...

Read More

Change leaves duration from hours to days in SAP Fiori app

varun
varun
Updated on 13-Mar-2026 261 Views

In general, customizing Fiori applications involves customizing the parent SAP application. So, if in the application, it defaults to hours then the Fiori app will also inherit the default behavior and show it in hours. Go ahead and change it to days, it will impact your Fiori app and the app will also start showing in days. In case you cannot afford to make a change in SAP application, then you need to handle it in a custom manner which will require you to ...

Read More

Implementing tree structure in Sapui5 and restricting parent property

Nikitha N
Nikitha N
Updated on 13-Mar-2026 764 Views

Note that sap.ui.model.ClientTreeBinding which is used by TreeTable in JSONModel or XMLModel supports the parameter arrayNames. You need to pass an array of the model property names to create a sublevel. This parameter tells the TreeTable which properties in your data contain child nodes, enabling the hierarchical tree structure. Implementation Methods XML View Implementation In XML view, you can bind the TreeTable rows using the following approach − JavaScript Controller Implementation ...

Read More

While using SAP .NET connector, I am an getting error: Could not load file or assembly 'sapnco' or one of its dependencies.

Srinivas Gorla
Srinivas Gorla
Updated on 13-Mar-2026 2K+ Views

When working with the SAP .NET connector, you may encounter the error "Could not load file or assembly 'sapnco' or one of its dependencies." This typically occurs due to platform architecture mismatches or incorrect IIS configuration. You can try any of the below fixes − Solution 1: Enable 64-bit IIS Express This solution addresses architecture compatibility issues by enabling 64-bit support in IIS Express − Go to Run → Regedit Navigate to "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1X.0\WebProjects" Change Use64BitIISExpress from 0 ...

Read More

ABAP constants with %_ as prefix

Nancy Den
Nancy Den
Updated on 13-Mar-2026 456 Views

The constants with a value of %_ as prefix are defined in ABAP for its internal use of the system. These need to be used as such and cannot be modified by the user. Understanding %_ Prefixed Constants In ABAP, constants that begin with %_ are system-reserved constants used internally by the SAP system. These constants serve specific purposes within the ABAP runtime environment and various system components. Key Characteristics The %_ prefixed constants have the following important characteristics − Read-only − They cannot be modified or redefined by developers ...

Read More
Showing 24341–24350 of 61,297 articles
Advertisements