on 04-05-2005 4:30 PM
Hi everybody!
I have following problem. I have implemented within a view an interface in a private class. The Interface implements some event handling.
After a special event happens I want to fire a plug. The plug works without any problems in the methods of the view. If I call the plug within the inner class nothing happens.
Do I have to make a refresh or repaint? If yes how can I force the system to make one.
Thanks for your help.
Markus
Hi Markus,
I implemented the same kind of scenario in my component. I didn't face any such problem.
1. Created the interface in the "src/packages"
package com.sap.sample;
public interface FirePlugInterface {
public void firePlug();
}
2. Created a private inner class in the view.
3. Implemented the fire plug in the method.
private class FirePlugClass implements FirePlugInterface{
public void firePlug(){
wdThis.wdFirePlugOUT_SampleViewSetView();
}
}
You don't have to refresh the view.
Regards,
Santhosh.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I try to explain my problem closer.I am trying to implement a login to Lostus notes sametime. For this I am working with the Developer Toolkit. So I build up a view with the login data. After clicking the logon button the system tries to login to Sametime. This works fine and I can see that I am logged into to the Sametime. After a successfull login I get a message back. For this I implemented a inner class. This inner class implements the LoginListener. When I debug I can see that the login is successfull. After this I fire the Outpund plug to the View SuccessfullLoggedIn. But nothing happens. When I click a second time on the Login Button the screen the screen refreshes and I see the correct view. So this is why I think it could be a refresh problem.
I already tried different scenarios but nothing really worked. The <i>wdContext.getContext().reset();</i> doesn't work.
Bye Markus
Message was edited by: Markus Singer
Hi
I am not sure about what you mean by special event.. etc, however, to refresh a view you need to use
wdContext.getContext().reset();
It drops all dynamic nodes / attributes created. Also it invalidates node content (you can use wdContext.getContext().reset(false) to preserve existing data)
(True)value is by default one
Hope this helps
sathyanarayanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.