Friday, 2 October 2020

 

Day wise count of current Month

Description:

In this example we explain that how to get all date of the current month like 1 oct, 2 oct… 31 oct etc.. Using SQL Query. Or how to get download count per day of the current month day wise using SQL Query.

We have requirement like display day wise download application count in website. So achieve this below is the SQL Query that will helpful for you to get daily date wise download count.

 

How to get all dates in the current month with download count using SQL Query

 

Day wise count of current Month

Description:

In this example we explain that how to get all date of the current month like 1 oct, 2 oct… 31 oct etc.. Using SQL Query. Or how to get download count per day of the current month day wise using SQL Query.

We have requirement like display day wise download application count in website. So achieve this below is the SQL Query that will helpful for you to get daily date wise download count.

 

This entry was posted in :

Thursday, 6 August 2020

 

Description:

In this example we explain that how to store binary Image in Database in Asp.Net Core. or how to store image in database using .Net Core. So how to save Images to database using Asp.Net Core.

So here we demonstrate that how to upload file and save file n a binary format in database using Asp.Net Core. Below is the code that will help you to save or upload file in database in .net core.

How to upload a file and save in binary format in Asp.net Core

 

Description:

In this example we explain that how to store binary Image in Database in Asp.Net Core. or how to store image in database using .Net Core. So how to save Images to database using Asp.Net Core.

So here we demonstrate that how to upload file and save file n a binary format in database using Asp.Net Core. Below is the code that will help you to save or upload file in database in .net core.

This entry was posted in :

Wednesday, 5 August 2020

Description:

In this example we explain that how to retrieve the current user logged in to Dynamic 365 CRM.or how to retrieve or get the Logged In user security Role Name in Dynamic 365 using JavaScript. Or how to get User security role name from context in Dynamic 365 using JavaScript. Or get security role name of the Logged In user using JavaScript.


So below is the JavaScript code that will help you to get the current Logged In user security role name in Dynamic 365.or how to get All Security Role Names of the Logged In User in Dynamic 365 using JavaScript.

 

Code :

function GetLoggedInUserSecurityRoleNames() {

 // Get Logged In User Context

 var userSettings = Xrm.Utility.getGlobalContext().userSettings;

 // Get Logged In User Security Roles

 var loggedInUsersecurityRolesGuidArray = userSettings.securityRoles;

 var totalSecurityRolesArray = new Array();

 var allRolesName = "";

 

if (loggedInUsersecurityRolesGuidArray.length > 0) {

 Xrm.WebApi.retrieveMultipleRecords("roles", "?$select=name,roleid").then(

 function success(result) {

 if (result.entities.length > 0) {

 // Push Role Names and Role Ids to Array

 for (var rolesCount = 0; rolesCount < result.entities.length; rolesCount++) {

 totalSecurityRolesArray.push({ RoleName: result.entities[rolesCount].name, RoleId: result.entities[rolesCount].roleid });

 }

 

allRolesName = userSettings.userName + " has the below Security Roles\n------------------------------------\n";

 

// Compare the User Security Roles with Total Security Roles

 for (var userSecurityRolesCounter = 0; userSecurityRolesCounter < loggedInUsersecurityRolesGuidArray.length; userSecurityRolesCounter++) {

 for (var totalsecurityRolesCounter = 0; totalsecurityRolesCounter < totalSecurityRolesArray.length; totalsecurityRolesCounter++) {

 if (totalSecurityRolesArray[totalsecurityRolesCounter].RoleId.toLowerCase() == loggedInUsersecurityRolesGuidArray[userSecurityRolesCounter].toLowerCase()) {

 allRolesName += totalSecurityRolesArray[totalsecurityRolesCounter].RoleName + "\n";

 break;

 }

 }

 }

 }

 

// Show User Roles

 Xrm.Utility.alertDialog(allRolesName, null);

 },

 function (error) {

 // Show error

 Xrm.Utility.alertDialog(error.message, null);

 });

 }

}


Get the Logged In User Security Role Names using JavaScript in Dynamics 365

Description:

In this example we explain that how to retrieve the current user logged in to Dynamic 365 CRM.or how to retrieve or get the Logged In user security Role Name in Dynamic 365 using JavaScript. Or how to get User security role name from context in Dynamic 365 using JavaScript. Or get security role name of the Logged In user using JavaScript.


So below is the JavaScript code that will help you to get the current Logged In user security role name in Dynamic 365.or how to get All Security Role Names of the Logged In User in Dynamic 365 using JavaScript.

 

Code :

function GetLoggedInUserSecurityRoleNames() {

 // Get Logged In User Context

 var userSettings = Xrm.Utility.getGlobalContext().userSettings;

 // Get Logged In User Security Roles

 var loggedInUsersecurityRolesGuidArray = userSettings.securityRoles;

 var totalSecurityRolesArray = new Array();

 var allRolesName = "";

 

if (loggedInUsersecurityRolesGuidArray.length > 0) {

 Xrm.WebApi.retrieveMultipleRecords("roles", "?$select=name,roleid").then(

 function success(result) {

 if (result.entities.length > 0) {

 // Push Role Names and Role Ids to Array

 for (var rolesCount = 0; rolesCount < result.entities.length; rolesCount++) {

 totalSecurityRolesArray.push({ RoleName: result.entities[rolesCount].name, RoleId: result.entities[rolesCount].roleid });

 }

 

allRolesName = userSettings.userName + " has the below Security Roles\n------------------------------------\n";

 

// Compare the User Security Roles with Total Security Roles

 for (var userSecurityRolesCounter = 0; userSecurityRolesCounter < loggedInUsersecurityRolesGuidArray.length; userSecurityRolesCounter++) {

 for (var totalsecurityRolesCounter = 0; totalsecurityRolesCounter < totalSecurityRolesArray.length; totalsecurityRolesCounter++) {

 if (totalSecurityRolesArray[totalsecurityRolesCounter].RoleId.toLowerCase() == loggedInUsersecurityRolesGuidArray[userSecurityRolesCounter].toLowerCase()) {

 allRolesName += totalSecurityRolesArray[totalsecurityRolesCounter].RoleName + "\n";

 break;

 }

 }

 }

 }

 

// Show User Roles

 Xrm.Utility.alertDialog(allRolesName, null);

 },

 function (error) {

 // Show error

 Xrm.Utility.alertDialog(error.message, null);

 });

 }

}


Thursday, 28 November 2019

3 elements per row for wrapping flexbox : css

Description:

In this example we explain that how to display three items per row using CSS.or how to display three items or three Checkboxes per row in Checkbox List using CSS.or how I can show three column per row that’s type of question was raised by many developers.

So in this scenario we have a requirement like Checkbox List contains 50 items and we have to display three items per row.

So to achieve this below is the code to display 3 items per row or per line using CSS.

how to display three items per row using CSS

3 elements per row for wrapping flexbox : css

Description:

In this example we explain that how to display three items per row using CSS.or how to display three items or three Checkboxes per row in Checkbox List using CSS.or how I can show three column per row that’s type of question was raised by many developers.

So in this scenario we have a requirement like Checkbox List contains 50 items and we have to display three items per row.

So to achieve this below is the code to display 3 items per row or per line using CSS.

Sunday, 3 November 2019

Get Total Count of records in CRM

Description:


In this example we explain that how to count number of records in Dynamic CRM and display it in a form or entity. In this example we explain that how to get total number of contacts in Dynamic CRM.so to get total count records below is the code for that

How to get the total record count from an entity in Dynamic CRM

Get Total Count of records in CRM

Description:


In this example we explain that how to count number of records in Dynamic CRM and display it in a form or entity. In this example we explain that how to get total number of contacts in Dynamic CRM.so to get total count records below is the code for that
This entry was posted in :

Thursday, 30 May 2019

how to read resource file in .Net core


Description:

In this example we explain that how to read resource file in .Net core. Or how to read .resx file in .Net Core and MVC.we have requirement like read resource file dynamically and bind it to Dataset in .Net Core 2.1.so here we demonstrate how to reading a file stream from resource file in .Net Core.
Below is the code to demonstrate how to read and write XML or Resource file in .Net Core and bind the result in Dataset Table.

how to read resource file in .Net core

how to read resource file in .Net core


Description:

In this example we explain that how to read resource file in .Net core. Or how to read .resx file in .Net Core and MVC.we have requirement like read resource file dynamically and bind it to Dataset in .Net Core 2.1.so here we demonstrate how to reading a file stream from resource file in .Net Core.
Below is the code to demonstrate how to read and write XML or Resource file in .Net Core and bind the result in Dataset Table.

Monday, 13 May 2019

How to Send Birthday Email to Contacts using Custom Workflow in Dynamic CRM


Description:


In this example, we explain that how to Sending an automated email to a Contact on their birthday, a simple requirement that can be achieved with Dynamics 365 Custom Workflow.
Generally will get the requirement from client to send Birthday emails to their customers. Everyone will suggest going with Console Application schedule to run at the specific time but that is not the best solution so here we demonstrate to how to send Birthday Email to client or customer by using Workflow in Dynamic 365 CRM.

How to Send Birthday Email to Contacts using Custom Workflow in Dynamic CRM

How to Send Birthday Email to Contacts using Custom Workflow in Dynamic CRM


Description:


In this example, we explain that how to Sending an automated email to a Contact on their birthday, a simple requirement that can be achieved with Dynamics 365 Custom Workflow.
Generally will get the requirement from client to send Birthday emails to their customers. Everyone will suggest going with Console Application schedule to run at the specific time but that is not the best solution so here we demonstrate to how to send Birthday Email to client or customer by using Workflow in Dynamic 365 CRM.

Thursday, 21 March 2019

How to hide “Showing 1 of N Entries” with the dataTables.js library

Description:


In this example we explain that how to remove showing 0 to 0 of 0 entries in data table in Grid View using JQuery. Alternatively, how to hide showing 0 to 0 of 0 entries in data table of grid view in JQuery. Alternatively, How to hide “Showing 1 of N Entries” with the dataTables.js library.

Here in our requirement I want to display data table grid but in bottom I do not want to show showing 0 to 0 of 0 entries in data table so to achieve this below is the single line code that will help you to hide or remove showing 0 to 0 of 0 entries in data table  grid.


You have to include like "info":false,

How to hide “Showing 1 of N Entries” with the dataTables.js library

How to hide “Showing 1 of N Entries” with the dataTables.js library

Description:


In this example we explain that how to remove showing 0 to 0 of 0 entries in data table in Grid View using JQuery. Alternatively, how to hide showing 0 to 0 of 0 entries in data table of grid view in JQuery. Alternatively, How to hide “Showing 1 of N Entries” with the dataTables.js library.

Here in our requirement I want to display data table grid but in bottom I do not want to show showing 0 to 0 of 0 entries in data table so to achieve this below is the single line code that will help you to hide or remove showing 0 to 0 of 0 entries in data table  grid.


You have to include like "info":false,

Monday, 25 February 2019

how to remove pagination in datatable

Description:

In this example we explain that how to remove pagination in datatable in GridView using JQuery.or how to hide pagination in datatable of gridview in JQuery.

Here in our requirement I want to display datatable grid but in bottom I do not want to show pagination so to achieve this below is the single line code that will help you to hide or remove pagination in datatable grid.

You have to include like "bPaginate": false,
So here we explain that how to hide jquery datatable pagination.

How to remove Pagination in Data table Grid in .Net Core.

how to remove pagination in datatable

Description:

In this example we explain that how to remove pagination in datatable in GridView using JQuery.or how to hide pagination in datatable of gridview in JQuery.

Here in our requirement I want to display datatable grid but in bottom I do not want to show pagination so to achieve this below is the single line code that will help you to hide or remove pagination in datatable grid.

You have to include like "bPaginate": false,
So here we explain that how to hide jquery datatable pagination.

Thursday, 14 February 2019

pass datatable in stored procedure c#

Description:

In this example we explain that how to send DatatTable as parameter to stored procedure in Asp.Net using C#.or how to pass Data Table as parameter in stored procedure in C#.or passing Data Table to stored procedure as an argument using C#.or how to pass Data Table to stored procedure in asp.net.

Below is the code to how to pass data table in stored procedure in SQL Server using C#.

How to Send (Pass) DataTable as parameter to Stored Procedure in Asp.Net using C#

pass datatable in stored procedure c#

Description:

In this example we explain that how to send DatatTable as parameter to stored procedure in Asp.Net using C#.or how to pass Data Table as parameter in stored procedure in C#.or passing Data Table to stored procedure as an argument using C#.or how to pass Data Table to stored procedure in asp.net.

Below is the code to how to pass data table in stored procedure in SQL Server using C#.

Tuesday, 5 February 2019

SELECT specific columns from DataTable using LINQ in C#

Description:

In this example we explain that how to select certain columns of data table in C#.or how to fetch some specific column from Data Table in C#.or how to get some column from select statement in Data Table using C#.

Here we have one Data Table in which it’s contain many columns but I want to just fetch or retrieve some specific column so to achieve this below is the code foe how to retrieve some specific columns form Data Table in C#.

Select certain columns of a data table using C#.

SELECT specific columns from DataTable using LINQ in C#

Description:

In this example we explain that how to select certain columns of data table in C#.or how to fetch some specific column from Data Table in C#.or how to get some column from select statement in Data Table using C#.

Here we have one Data Table in which it’s contain many columns but I want to just fetch or retrieve some specific column so to achieve this below is the code foe how to retrieve some specific columns form Data Table in C#.

Friday, 25 January 2019

 Handling Multiple Submit Buttons In ASP.NET MVC

Description:
In this example, we explain that how to handle multiple submit button in MVC form in .Net. Or how do you handle multiple submit buttons in Asp.Net MVC Framework. Alternatively, how to handle multiple submit buttons on single View in MVC.

Below is the code that are useful to handle multiple submit button on single form in MVC.

How do you handle multiple submit buttons in ASP.NET MVC Framework?

 Handling Multiple Submit Buttons In ASP.NET MVC

Description:
In this example, we explain that how to handle multiple submit button in MVC form in .Net. Or how do you handle multiple submit buttons in Asp.Net MVC Framework. Alternatively, how to handle multiple submit buttons on single View in MVC.

Below is the code that are useful to handle multiple submit button on single form in MVC.
This entry was posted in :

Sunday, 16 December 2018

get current user of dynamics crm using javascript

Description:

In this example, we explain that how to get users name of logged in user role in Dynamic 365 CRM using JavaScript. Alternatively, how to get current logged in user name using JavaScript in Dynamic CRM.or how to get the Logged in user id from JavaScript in dynamic CRM.

So here in this example we explain that how to get current user ID and Name in Dynamic CRM using JavaScript. Alternatively, how to retrieve current user info using JavaScript in Dynamic 365 CRM.below is the JavaScript code that will helpful you to get user name and id of the current logged in user in Dynamic CRM.

How to get logged-in user Id and name in Dynamic CRM using JavaScript.

get current user of dynamics crm using javascript

Description:

In this example, we explain that how to get users name of logged in user role in Dynamic 365 CRM using JavaScript. Alternatively, how to get current logged in user name using JavaScript in Dynamic CRM.or how to get the Logged in user id from JavaScript in dynamic CRM.

So here in this example we explain that how to get current user ID and Name in Dynamic CRM using JavaScript. Alternatively, how to retrieve current user info using JavaScript in Dynamic 365 CRM.below is the JavaScript code that will helpful you to get user name and id of the current logged in user in Dynamic CRM.