Auto submit off in pentaho cde - pentaho

I am new to pentaho CDE. I have created pentaho CDE dashboard in 6.1v with few filters and charts.
I need to turn off the auto submit when I click on filters, and need to add a "submit" button which refreshes the chart with filter values.

On your chart, turn the property 'Execute at start' to false.
Your chart should listen to a parameter (e.g. param_refresh)
Add a button and, in the click action do :
function() {
Dashboards.fireChange('param_refresh',somevalue);
}
The value by itself is not so important : fireChange, by modifying param_refresh, will trigger the execution of your chart.

Related

Choose one result in Splunk table Query

I would like to add radio button / any way to select - one of the results of my below REST query search,
QUERY : |rest /services/data/ui/views | table id label updated "eai:userName" "eai:data" "eai:appName"
Dashboard showing the results
This Query search is saved as a dashboard (auto-refresh) and I have added few text boxes (User Name, Commit Branch, User Token) as show in the attached image. These text boxes will be manually filled by user.
Use Case: I need to choose any one row via radio button (or any other technical way) and then click on the SUBMIT button to send the selected row data and text box (manually entered by user) data to my custom python script.
What is the way to achieve this use case in Splunk, Any help on this is appreciated.
If you want to pass results of a Dashboard elsewhere, you need to use a drilldown
See the Dashboard XML reference for more
Splunk will only send to a URL, however - so if you want it to go to a "custom python script", it will need to be accessible via URL
What does your "custom python script" do?

How to get an export value of the radio button group in acroforms using javascript?

I am making a fillable pdf for a questionnaire in pdf. I have to use radio buttons in the questionnaire. I used the below code snippet to get the value of the radio button group, but it gives me either a null exception or return blank.
I tried a simple code in a blank pdf with just one group of radio buttons with two options and a button.
The code is shown below, where "Group1" refers to the radiobutton group:
var choiceVAL = this.getField("Group1").value; app.alert(choiceVAL);
On clicking the button, the code keeps giving me an exception. I checked all the forums, and this is the code snippet that is used everywhere. I have set the export value to "Y" and "N" respectively.
Can anyone help me with this??

Passing data from wizard page to wizard in eclipse Swt

I have a check box on my wizard page.On selection of a checkbox i need to send the selection value to wizard.
Please suggest me best approach to do the same.
In your wizard page you can call
IWizard wizard = getWizard();
The wizard value you get will be your wizard class (say it is called MyWizard), so you call do:
if (wizard instanceof MyWizard) {
MyWizard myWizard = (MyWizard)wizard;
myWizard.setXXXX(value);
}
where setXXXX is some method you write in the wizard to accept the selection value.

Asp net mvc 4 Kendo dropdownlist

I have a kendo drop down list it binds on page load.
I have a filter section and I filter one drop down list and I click the submit button and its submitting the page.
When I am clicking the submit button I validates the drop down list whether the user selects the valid input or user types invalid data.
When I clicking the submit button, I save the valid data in hidden field and assigns the value to model property.
After submits the page the selected value(before submits) is selected in dropdownlist.
If now I submit the page once again the drop down list selected index comes as -1.
How to validate this drop down list in the above scenario?
You need to set it's value from model when rendering the page again.
You can easily set by following way using jquery:
$(document).ready(function(){
var dropdownlist = $("#movies").data("kendoDropDownList")
dropdownlist.value($("#value").val());
});

Domino designer display field after click

In form I have button, i want display field "Price" after button "Save" click, it's possible ?
Or can be solution to add to field HTML atribute "readonly".
In your form, enable option "Generate HTML for all fields" (check the image below):
It will generate html for all fields, even for hidden ones.
Add field price to the form and hide id by paragraph hide formulas according to your requirements.
When you have saved your form, add a flag to your document, that turns the hide formula for price field to false, and invoke the command:
#Command( [RefreshHideFormulas] );
It will make your price field visible.