on 12-04-2008 7:43 AM
Hi,
The following is the output screen in WDA.
Confirmation page:
Person name: XYZ
Person Org : ABC
In the above output XYZ and ABC have been populated from context.
Person name and Person Org are the UI elements:Text View names
Now after the output screen, I am able to send XYZ and ABC in an email but not unable to send those text views together for more readability.
My present Email looks to be
XYZ
ABC
How to send it as
Person name: XYZ
Person Org : ABC (I mean in how to retrieve those text view names ?as they are not set to any context, just UI element names)
Any ideas will be rewarded soon
Thanks
Praveen
hi,
don't hard code the text for your text views eg: Person name etc.
bind the text file of your text view to an attribute. set it at run time and pass that attribute to your email.
i hope helps
regards
arjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Praveen ,
In the method WDDOMODIFY of your view , you will have two importing parameter
FIRST_TIME and VIEW .
you can check for the first time and then call the following methods to read the text of UI element
data : lo_ui_elem type ref to CL_WD_UIELEMENT.
lo_ui_elem ?= view->get_element( <element _id> ) . " element id is the id of ui element
lo_ui_elem->GET__DDIC_PROPERTY( ). " Assuming that the label are coming from data element
you can also look for some another mehtod . If you have hardcoded the text for the label .. Then I will suggest you to bind a node attribute to the Label text . It will be more easier .
Regards
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Get the attribute in a string variable then concatenate 'Person Name:' with that string in the following way.
suppose u r getting ur attribute value in lv_string variable.
data : lv_string type string.
concatenate 'Person Name:' lv_string into lv_string seperated by spaces.
I hope it works.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
How to change through coding or may be using below line for Person Name as it's hardcoded here and it's not a UI element so that we can change it's easily..
concatenate 'Person Name:' lv_string into lv_string seperated by spaces
How to put them in a table in email message..?
Thanks
Praveen
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.