Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
Did you check https://sealreport.org/demo/WebInterfaceSamples.htmlHere is the JavaScript to do it: Code: $("#execute2_button")
.click(function () {
$("#execute2_label").text("Executing 'Search - Orders' with custom restrictions...");
var form = $('<form method="post" target="_blank"/>').appendTo('body');
form.attr('action', sealServer + "SWExecuteReport");
form.append($('<input />').attr('name', 'path').attr('value', "\\Search - Orders.srex"));
form.append($('<input />').attr('name', 'r0_name').attr('value', "Quantity"));
form.append($('<input />').attr('name', 'r0_operator').attr('value', "Between"));
form.append($('<input />').attr('name', 'r0_value_1').attr('value', "34"));
form.append($('<input />').attr('name', 'r0_value_2').attr('value', "123"));
form.append($('<input />').attr('name', 'r1_name').attr('value', "Category"));
form.append($('<input />').attr('name', 'r1_operator').attr('value', "Equal"));
form.append($('<input />').attr('name', 'r1_enum_values').attr('value', "2,3,4,7"));
form.append($('<input />').attr('name', 'r2_name').attr('value', "Order Date"));
form.append($('<input />').attr('name', 'r2_operator').attr('value', "Equal"));
form.append($('<input />').attr('name', 'r2_value_1').attr('value', "19940809 00:00:00"));
form.append($('<input />').attr('name', 'r2_value_2').attr('value', "19940810 00:00:00"));
form.append($('<input />').attr('name', 'r2_value_3').attr('value', "19940811 00:00:00"));
form.append($('<input />').attr('name', 'r2_value_4').attr('value', "19940812 00:00:00"));
form.append($('<input />').attr('name', 'r3_name').attr('value', "Customer Contact"));
form.append($('<input />').attr('name', 'r3_operator').attr('value', "Contains"));
form.append($('<input />').attr('name', 'r3_value_1').attr('value', "ar"));
form.children('input').attr('type', 'hidden');
form.submit();
});
Edited by user Saturday, May 12, 2018 7:10:44 AM(UTC)
| Reason: Not specified
|
1 user thanked epf for this useful post.
|
|