on 06-19-2007 3:14 PM
Hi,
I am a newbie to WebDynpro (ABAP).
I have to create a component that sends an Email, so that it can be used in other components. The requirement is like,
The parent component using this, should be able to send the mail automatically with/without displaying any view/pop up.
For this I am creating a component controller that has context interface with node EMAIL, fields TO, SUBJECT, MESSAGE, SEND_AUTO (Boolean)
The controller provides a method SEND_MAIL in the interface. This method when called by the parent controller, the field SEND_AUTO is checked and if it is true, the mail shud be sent automatically to the mail ID mentioned in the TO Field.
Now if this field is not true, I should display a pop-up window with a View providing the TO, SUBJECT, MESSAGE with a send button.
User can now press on Send button, to send the mail.
The problem I am facing is,
How to desing the window and view for this, so that from the controller method SEND_MAIL, I can display the view in a new pop up window.
I hope, I am clear about the requirement. Any help in this regard will be highly appreciated.
Thanks,
Anand
Thanks Anzy,
But could you please provide the link for ABAP.
Regards,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
There is PDF document available in SDN , where the complete implementation is mentioned which meets your requirements . (Mail functionality )
This implements whatever mentioned in your post.
Thanks
Anzy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand,
I would say, that you are not able to open a new window or trigger a navigation
from the component controller thru a call from anaother component.
So the descision whether to show the view or to send directly must be done by the
using component.
The EMAIL component provides the view which you can embedd in the using component in a new window or just a simple view (ViewContainerUIElement).
The using component then decides whether it should call the method directly, or navigates to the view which contains the interface view of the EMAIL component.
Hope this helps,
Sascha
Message was edited by:
Sascha Dingeldey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.