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
[ExtensionOf(classStr(FormRun))] | |
public final class FormRun_Class_Extension | |
{ | |
/// <summary> | |
/// This allows unencrypted setting of the recordContext via the q querystring parameter: | |
/// q={"Parameters":[{"DataSource":"CustTable","FieldValues":[{"Field":"AccountNum","Value":"C123456789"}]}]} | |
/// </summary> | |
/// <param name = "_recordContext"></param> | |
/// <returns></returns> | |
public boolean applyRecordContext(str _recordContext) |
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
private static str lastUniqueReference; | |
/// <summary> | |
/// Get a unique numerical reference | |
/// </summary> | |
/// <returns>Unique numerical reference</returns> | |
public static str getUniqueReference() | |
{ | |
str nextUniqueReference; | |
int retryCount = 0; |
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
public class wwReportExampleTest extends SysTestCase | |
{ | |
[SysTestMethodAttribute] | |
public void TestReport() | |
{ | |
//Arrange | |
wwSysUserRoleInfoReportPage report = | |
wwSysUserRoleInfoReportPage::construct(); | |
//Pass arguments here if the report has a contract |
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
public class wwSysUserRoleInfoReportPage extends wwBaseReportPage | |
{ | |
protected void new() | |
{ | |
this.parmReportName(ssrsReportStr(SysUserRoleInfo, Report)); | |
} | |
public static wwSysUserRoleInfoReportPage construct() | |
{ | |
return new wwSysUserRoleInfoReportPage(); |
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
public void run() | |
{ | |
//Configure the SrsReportRunController controller | |
controller.parmReportName(reportName); | |
controller.parmShowDialog(false); | |
controller.parmLoadFromSysLastValue(false); | |
controller.parmReportContract().parmReportServerConfig(SRSConfiguration::getDefaultServerConfiguration()); | |
controller.parmReportContract().parmReportExecutionInfo(executionInfo); | |
//Associate the Rdp contract with prepopulated values if we have one |
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
protected XmlDocument xmlDocument; | |
protected Object contract; | |
protected str reportName; | |
protected SRSReportRunService srsReportRunService = new SrsReportRunService(); | |
protected SRSReportExecutionInfo executionInfo = new SRSReportExecutionInfo(); | |
protected SRSReportRunController controller = new SRSReportRunController(); | |
public void run() | |
{ |
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
public boolean elementExists(str elementName, str attributeName, str attributeValue) | |
{ | |
XmlNodeList nodes = xmlDocument.GetElementsByTagName(elementName); | |
XMLNodeListIterator iterator = new XMLNodeListIterator(nodes); | |
while (iterator.moreValues()) | |
{ | |
XmlElement e = iterator.value(); | |
str val = e.getAttribute(attributeName); |
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
[SubscribesTo(classStr(MyDelegateClass) delegateStr(MyDelegateClass, myDelegate))] | |
public static void delegateExample_myDelegate(real a, real b, EventHandlerResult result) | |
{ | |
real total = a+b; | |
result.result(total); | |
} |
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
void myMethod() | |
{ | |
EventHandlerResult result = new EventHandlerResult(); | |
this.nydelegate(1, 2, result); | |
var total = result.result(); | |
} | |
delegate void myDelegate(real parm1, real parm2, EventHandlerResult result) | |
{ |
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
[DataEventHandler(tableStr(FMVehicle), DataEventType::ValidatedWrite)] | |
public static void FMVehicle_onValidatedWrite(Common sender, DataEventArgs e) | |
{ | |
ValidatedEventArgs validateArgs = e as ValidatedEventArgs; | |
FMVehicle vehicle = sender as FMVehicle; | |
boolean result = validateArgs.parmValidateResult(); | |
if (vehicle.NumberOfCylinders == 0) | |
{ | |
result = checkFailed('Invalid number of cylinders.'); |
NewerOlder