on 12-31-2009 12:00 PM
I have a Interactive form UI on WebDynpro view. On a click of a button inside the Adobe Form, a popup appears. This popup is a webdynpro java popup window.
While the popup is appearing or while closing the Adobe form gets refreshed each time and popup moves to first page of the form and user needs to scroll down the page to where the popup was triggered. Is there anyway I can avoid to the page get refreshed.
I am using NWDS 7.14 and Adobe Version 9.0...
- Akshay
Hello, did you get your answer and sove your problem? If so, please close the thread and please share your solution and experience with us so the other members of the community benefits from that too. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure its a WD Java Popup? To me it should be a JavaScript window if you are opening the popup from Adobe.
Can you post the code for popup to analyse what type pf popup it is and also give some information regarding why does the popup occur say does it occur for errors etc?
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chintan,
Yes...!! it is a WD Java Popup.
The popup is for selection of values. I have added a button in Interactive form. The button is linked to a "Submit" action of form UI element, and it calls WD Java Popup. Popup also appears and i get the selected value, but refreshes the adobe form everytime.
The code for calling popup:-
public void onActionPopup(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionPopupPayMethod(ServerEvent)
IWDWindowInfo winInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("PopupWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
wdContext.currentContextElement().setWindow(window);
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(600, 300);
window.show();
//end
}
Can you please provide some help on the Java Script popup window..??
- Akshay
Edited by: Akshay Khakurdikar on Jan 4, 2010 10:39 AM
Maybe I understand your requirement now. Since you are calling a server side event i.e. to get the data, the page where you are currently gets lost and that's how it should be.
Now as a workaround we can try setting the focus to the particular input field when the page is loaded with the selected value.
1. For this create a boolean atrribute and set it to Y when value from poupwindow is selected.
wdContext.currentContextElement.setPopValSelected("Y");
2. Drag a textfield and bind it to this context. Make the field as invisble from Object palette.
3. Now in the form:ready or layout:ready event of the top level subform write the following JavaScript:-
if(popValSelected.rawValue == "Y")
{
xfa.host.setFocus("TextField1");
}
Chintan
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.