cancel
Showing results for 
Search instead for 
Did you mean: 

value mapping to constant parameters

Former Member
0 Kudos

hello to all XI experts

I am looking for an option in the XI to define constant parameters mapping, meaning for example if I recieve a file with attribute 'Gender' and value is '1', I would like the XI automatically translate it to be 'Male'.

for example:

Request

<header>

<Gender>1</Gender>

Response

<header>

<Gender>Male</Gender>

the thing is, I might have a lot of elements with the same attribute and I would like to make a constant settings of the mapping to be good for all the scenarios, and not do the mapping for each scenario and Message Mapping all over again. I would like to save time.

Thanks for your help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I am kind of new. what exactly do you mean?

where can I find it?

Thanks

Kfir

Former Member
0 Kudos

Hi Kfir,

you will find the value mappings in graphical mapping. Have a closer look in the available functions on the lower left dropdown-box.

Regards Mario

nikhil_bose
Active Contributor
0 Kudos

1. Goto message mapping in the repository

2. double click on the target element (gender), will be now in graphical editor.

3. click on the source (gender)

4. now, below graphical map editor, there is a tool bar where from we can take in-built functions or can create our own.

5. select function category ->> Value mapping

6. choose Fixed mapping, which will be available now in the mapping editor

7. double click to get the properties of the function. and assign the mappings key 1: value male key 0: value female

regards,

nikhil

**reward if helpful

Former Member
0 Kudos

this was very helpfull, thans.

but this is just one function, and I wonder if there is something that I can do mapping for every scenario that I have, with out needing to map each function.

meaning, that I wont have to map each element that include "gender", but every time that I will get element "gender", I will know to map automatically if it is 1 to put male, and if it is 2 to put female.

this suppose to be something in the system level, and not each interface level.

Thanks

Kfir

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can find out the Beloow mentioned BLOG

/people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool

Regards

Seshagiri

former_member192892
Active Contributor
0 Kudos

Use Value mapping STD funcion

Thanks

Varun