Passing data from wizard page to wizard in eclipse Swt - eclipse-plugin

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.

Related

How to get value of field from wizard to qweb odoo?

I have defined a model to display a wizard which holds one many2one field and one selection field. This wizard will be displayed in inventory while clicking a custom defined menu comes under reporting menu. I created a button in wizard to print qweb.
What i need to do is, to fetch the value of that selection field in qweb.
Could anyone please help me to fetch value of fields from wizard in qweb odoo14?
Thanks in advance.
You have to use "context"
Here is an explanation:
https://www.odoo.com/es_ES/forum/ayuda-1/what-s-the-context-2236

odoo button definition not working before setting value to a mandatory field

I have a button say 'calc_val' when I click on the button I had to pass values to a mandatory field.But my button definition is not working while the mandatory field is empty.Only if I put some values to the mandatory field and after when I click on the button , the button works.The whole thing is in a 'wizard'
Please help.Thanks in advance.
Because in odoo after clicking on any button create or write function called before executing the working function of your button and for create and write you have to fill mandatory fields thats why you have to fill mandatory fields before executing any button functionality.
Hello, vbt
You have to set some default value in that specific field.
After set default value, you can use that button behavior.
And if you want to change that value, they can change also.
May Help this answer.
Thank you.
I have done this by removing the mandatory field and then adding a validation while clicking on the final button in the wizard (For not keeping the mandatory field empty).
If any other answers are available,feel free to post.Thanks

Auto submit off in pentaho cde

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.

Microsoft Dynamics 2013 OnChange Script For Lookup Field

I'm currently working in Microsoft Dynamics CRM 2013. I'm trying to get a script to run on the OnChange event of a lookup field and it is not working. I noticed that when you make a selection, even when a script is not bound, it kind of refreshes the page and takes you back to the top. Any ideas?
function currentlyAssignedOnChange() {
alert ("TEST ON CHANGE FIRING 3!!!");
var dateAssigned = Xrm.Page.getAttribute("new_dateassigned");
dateAssigned.setValue(new Date());
if (dateAssigned.getIsDirty()) {
dateAssigned.setSubmitMode("always");
Xrm.Page.data.entity.save();
}
}
Ok. So the field in question was the "Assigned To" field. This field had a workflow associated with it that seemed to be blocking the script. I decided to just add the logic to the workflow instead.

Work with second opened broser

I am new to selenium i have a problem with.
I am working with one form at that when I click the "Report" it
launches the new browser with some data. I want to work with data.
How to get that data and verify that data
Launching and opened browsers are Fire fox browser
Please share your experience.
Assuming this is Java you are talking about - using the getting started with selenium framework.. your test would look like this.
#Config(url="http://mysite.com", browser=Browsers.FIREFOX)
public class MyTest extends AutomationTest {
#Test
public void myTest() {
click(By.linkText("Report"))
.waitForWindow("The Report") // specify what title or url the window is to be
.click(By.linkText("something in the new window"))
.validatePresent(By.cssSelector("div#content")); // validate whatever you need.
}
}
If you are choosing to not use a framework, then you will have to use the WebDriver#switchTo()#window() method to switch to the window.
Also, disambiguate selenium-rc and selenium2. They are both completely different software packages.
This is with related to selenium rc
Consider the case where I have 2 forms or window:
Currently I am at 1st form where Report button is present when I click the button it opens another form or window.
Below code is to select the 2nd form or window and maximizing it...
Please give the title of the window..(in my exmaple i have title of 2nd form as 'Terms & Conditions | Photojaanic').
selenium.selectWindow("title=Terms & Conditions | Photojaanic");
selenium.windowFocus();
selenium.windowMaximize();
Below code is to return to original form where Report button is present.
selenium.selectWindow("null");
selenium.windowFocus();