When working with Sitecore, it’s common to need content synchronization across environments. Today, I’ll walk you through the steps to sync content from Production to UAT/TEST and vice versa. Steps to Follow 1. Set Up Your Workspace Create a folder on your computer where you will manage the script files and exported data. Open the folder path in PowerShell to begin scripting. We need to run some scripts in PowerShell to update the folder with the basic requirements for syncing content. PS C:\Soft\ContentSync> dotnet new tool-manifest PS C:\Soft\ContentSync> dotnet nuget add source -n Sitecore https://nuget.sitecore.com/resources/v3/index.json PS C:\Soft\ContentSync> dotnet tool install Sitecore.CLI PS C:\Soft\ContentSync> dotnet sitecore cloud login If the above error occurs, you will need to run a different command to resolve the issue. PS C:\Soft\ContentSync> dotnet sitecore init now, Again run above command to open and authenticate with XM Cloud. It will be there a...
Here , I have created ajax method to call web service and after returning of data from web method i have bind that data into table for more details. please see below code.
$('#submit).click(function () {
$.ajax({
type: "POST",
contentType: "application/json;
charset=utf-8",
url: "details.aspx/Struct",
data: "{}",
dataType: "json",
success: function (data) {
if (data.d.length > 0) {
table = '';
table = "<table id='setnewfee' class='stm'
style='border-collapse:collapse;'><tr
class='stm_head'><td>S.No.</td><td>Fee
Head</td><td>Amount</td><td>Taxable</td></tr>"
for (var i = 0; i
< data.d.length; i++) {
table = table + "<tr><td>"
+ (i + 1) + "</td><td>"
+ data.d[i]["feename"] + "</td><td>" + "<input type='hidden' value='" +
data.d[i]["feeid"] + "' /> <input type='text' id='txtFee'
onkeypress='return noAlphabets(event)' />" + "</td><td>" + data.d[i]["taxapplicable"] + "</td></tr>"
}
table = table + "</table>"
$('#viewcoursefee').html('');
$('#viewcoursefee').append(table);
}
},
error: function (result) {
alertify.error("Error");
}
});
Comments
Post a Comment