on 05-20-2010 3:49 PM
Hi All,
Does anyone have any experience of changing the output order of TextView Fields in a form, as supplied from a connected BAPI model, dynamically under certain circumstances.
We are outputting Address input fields to the View but have been asked that the order is presented differently depending on Country/Company.
For example:
Where Country/Company 1
House Number
Street
City
Country
Post Code
Where Country/Company 2.
Post Code
Country
City
Street
House Number
Anyone know if/how this can be accomplished?
Thanks,
Steve.
Hi Steve,
three way to solve this.
1.make a form
With some labels and inputfields, you can set your label text, and bind your inputfileds to context manually using webdynpro codes according to you condition.
2.make several forms
FORM 1,2,3... (all in one view)
[code]
if (Country/Company 1)
set form1 "visible";
set else none;
else if (Country/Company 2)
set form2 "visible";
set else none;
....
3.make a table
the table has two columns, "attribute", "value".
Whatever "county" "city" "PostCode", add them to the table one by one as you like.
Maybe you need to change the style of the table.
Hope this can help you.
Regards!
Fisher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
Try to use dynmic programming for the screen attribute and manage as per your requriement.
OR play with Visibility. Create two transparent container and add the attributes as want and depend on the 'Country/Company' visible/invisible transparent container.
Hope it will helps
Regards
Arun Jaiswal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If the BAPI is returning the output in the sorted order, this can be easily achieved. your ABAP er shuld be able to provide you with a sorted output table.
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
Try to use TextView property textDirection and hAlign.
Hope this may help you.
Deepak!!!
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 | |
9 | |
7 | |
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.