This is a sample application for a jMeter test. The application comes with a very limited UI that allows the user to insert a value from a dropdown list using a popup. To install the application, use the attached EAR file. [1]
After deploying the ear, start the WDJ application by opening the URL in the browser: http://server:port/webdynpro/resources/demo.sap.com/tobias~jmeter~wdj/JMeter
Selecting the button “Select value” opens a popup:
Select a value from the dropdown list.
Clicking the select button closes the popup. In the main window the value changes accordingly to the selected value. As you can see, nothing special.
Action for button Select value
public void onActionOpenPopup(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopupWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
window.setWindowPosition(WDWindowPos.CENTER);
window.setTitle("Select value popup window");
window.show();
wdContext.currentContextElement().setPopup(window);
}
Values is bound to attribute days
Attribute days is a Java Dictionary Type (simple type)
The views share the same context attribute days. So when it is changed in one view, the new value is also valid in the other view.
[1] While SCN Jive allows you to attach files to documents, there is a rather silly restriction regarding the file extension. EAR is on the blacklist, so I had to add .txt to be able to upload it, and in the end Jive zips it (???). You'll have to execute the steps in reverse order to get the ear (unzip, rename).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
36 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |