cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve text view names which are not aligned to any context

praveenkumar_kadi
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

praveenkumar_kadi
Active Contributor
0 Kudos

Hi,

Thanks for your options. one of the option was worked partially.

How to format the same in different style like person name text will be required to be in green or bold or may be in a table.

Any options to change the same ?

Thanks

Praveen

Former Member
0 Kudos

Hi praveen,

Change the properties of textview.

To make bold Put design property as emphasized

to make Green change semantic color property as positive.

hope it hepls..

Regards,

Rohit

praveenkumar_kadi
Active Contributor
0 Kudos

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