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
$(document).ready(function(){ | |
$('textarea').each(function(index, obj){ | |
$wrapper = $(obj).closest('.input-control.text-input'); | |
var width = $wrapper.width(); | |
$wrapper.css('width', ''); | |
$(obj).css('width', width + 'px'); | |
$(obj).resizable(); | |
}); | |
}); |
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
//You need to do the following for the code to work: | |
//1. Add Literal datalabel to the list view and call it 'dlblScript'. | |
//2. Add a new column into the list view, add literal datalabel there and add a piece of the following html inside: | |
<input type="checkbox" class="custom-box"/> | |
//3. Add the following js into the dlblScript: | |
<script> | |
var contentTable = $("span[name='dlblScript']").closest('.grid').find('.grid-content-table')[0]; | |
var observer = new MutationObserver(function(mutations){ | |
$(contentTable).find('.custom-box').each(function(i, val){ | |
if ($(this).prop('checked')){ |
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
<style> | |
div[name="viewTestVerticalColumnHeader"] .grid-column-header-table tr { | |
height: 100px; /* This value defines the height of your header*/ | |
white-space: nowrap; | |
} | |
div[name="viewTestVerticalColumnHeader"] .grid-column-header-table .grid-column-header-cell { | |
transform: | |
translate(25px, -5px) /* This numbers you have to change to move the header after rotation*/ | |
rotate(315deg); /* This defines the angle of rotation. - 45 is really 360 - 45 */ | |
width: 140px!important; /* This value defines if you see all the text or some of the characters*/ |
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
Function Update-Folio ([int]$procInstId, [string]$folio){ | |
if(-not($procInstId)) { Throw "You must supply a value for -procInstId" } | |
if(-not($folio)) { Throw "You must supply a value for -folioName" } | |
Add-Type -AssemblyName ('SourceCode.Workflow.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=16a2c5aaaa1b130d') | |
$k2con = New-Object -TypeName SourceCode.Workflow.Client.Connection | |
$k2con.Open("localhost") | |
$procInst = $k2con.OpenProcessInstance($procInstId); | |
$procInst.Folio = $folio; | |
$procInst.Update() |
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
# Remove the existing K2 Blackpearl Server service | |
sc.exe delete "K2 blackpearl Server" | |
# 2. Run nssm configuration | |
C:\NSSM\win64\nssm.exe install "K2 blackpearl Server" |
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
var headerClick = function(self) { | |
if(self){ | |
$(self.currentTarget).find('a').click(); | |
} | |
}; | |
$('.grid-header').click(headerClick); |
OlderNewer