This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In order to make it work you need to replace YourControlName with the name of your dropdown. | |
//This piece of code assumes, that you have only 1 dropdown on the form with this name. In any case only the first instance will be taken. | |
var dropdownControlPath = "Controllers/Controller/Controls/Control[@Name='YourControlName']"; | |
var dropDownControlControl = $sn($xml(__runtimeControllersDefinition), dropdownControlPath); | |
var contrId = dropDownControlControl.getAttribute('ID'); | |
var ddl = $('#' + contrId + '_DropDown'); | |
var items = $(ddl).dropdown('option', 'items'); | |
for( var i = 0; i < items.length; i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Deploy-SSRSProject([string]$ssrsServer, [string]$rdlPath, [string]$ssrsFolder, [string]$schema = "https"){ | |
#Set variables with configure values | |
$reportPath ="/" # Rool Level | |
$DataSourcePath = "/Data Sources" #Folder where we need to create DAtasource | |
$DataSet_Folder = "/Datasets" # Folder where we need to create DataSet | |
$IsOverwriteDataSource = 0 | |
$IsOverwriteDataSet = 1 | |
$IsOverwriteReport = 1 | |
$webServiceUrl = $schema + "://$ssrsServer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Open Developer tools and run this in the Console | |
document.getElementsByClassName("onp-sl-outer-wrap")[0].remove(); | |
document.getElementsByClassName("onp-sl-blur-area")[0].style.filter = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Adds the PowerShell Deployment snapin. | |
add-pssnapin SourceCode.Deployment.PowerShell | |
#Scripts the deployment of a package | |
Deploy-Package $(System.DefaultWorkingDirectory)/K2-CI-Demo-CI/$(Build.BuildNumber)/ExpenseClaim.kspx $(System.DefaultWorkingDirectory)/K2-CI-Demo-CI/$(Build.BuildNumber)/ExpenseClaim.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Converting the 'text' into '{text}' for the Email Templating placeholders | |
var dragListBox = function(ev) { | |
ev.dataTransfer.setData("text",'{' + ev.srcElement.text + '}'); | |
}; | |
//Adding html attributes to make the inner items draggable | |
$('div[name="NameOfYourListBox"]') | |
.find('.optionwrapper') | |
.find('.option') | |
.attr('draggable', 'true') | |
.attr('ondragstart', 'dragListBox(event)'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([string]$appName, [string]$categoryPath) | |
if(-not($appName)){ Throw "You must provide the name for your application"} | |
if(-not($categoryPath)){ Throw "You must provide the path for your application category"} | |
#01. Create a folder for the output | |
New-Item -ItemType Directory -Force -Path $PSScriptRoot\PND | |
#02. Create a package | |
Import-Module $PSScriptRoot\Assemblies\K2Field.Powershell.Module.dll -Verbose -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Insert the snippet below in a Literal Datalabel --> | |
<style type="text/css"> | |
div[name="View Name"] .grid-body tbody td:nth-child(%ColumnNumber%) { | |
background: #FFFACD !important | |
} | |
</style> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using DocumentFormat.OpenXml.Packaging; | |
using DocumentFormat.OpenXml.Spreadsheet; | |
public static string GetCellValue(string fileName, string sheetName, string addressName) | |
{ | |
string value = null; | |
using (SpreadsheetDocument document = SpreadsheetDocument.Open(fileName, false)) | |
{ | |
WorkbookPart wbPart = document.WorkbookPart; | |
Sheet theSheet = wbPart.Workbook.Descendants<Sheet>().Where(s => s.Name == sheetName).FirstOrDefault(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Checked --> | |
<label class="input-control checkbox checked" data-defaultvalue="false"> | |
<span class="input-control-img"></span> | |
</label> | |
<!-- Not checked --> | |
<label class="input-control checkbox" data-defaultvalue="false"> | |
<span class="input-control-img"></span> | |
</label> |
OlderNewer