cancel
Showing results for 
Search instead for 
Did you mean: 

instruction to view the value of a tag

Former Member
0 Kudos

Hi all

We need to evaluate the value of a tag to validate if we can create on register into a table. Ex.:

<MATRIAL_TYPE>ERSA<\MATERIAL_TYPE>

In this case we need to create this value in a table, otherwise we don't create it.

BR

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Satish

I send iu the specific problem that we have

Family_code&#8594;

Concat(*)&#8594;

Line_code&#8594; Concat(*)&#8594;

Category &#8594; Concat(*) &#8594;Idiomas&#8594;Item

Ginco_code&#8594;

I need to add this operation

Material_type_code --&#8594; concat(*) &#8594; Idiomas &#8594; Item,

only if Material_type_code = “ERSA”

otherwise leave it as original

Where Idiomas:

public void Idiomas(String[] idiomas,ResultList result,Container container){

//write your code here

String[] var = idiomas[0].split("
*");

for (int i = 0; i < var.length; i++) {

result.addValue(var<i>);

}

Former Member
0 Kudos

Jose,

Truly speaking I am unable to understand what you are saying. Can you be more specific and also if possible send us an example of what you are trying to do?

---Satish

Former Member
0 Kudos

Hi Satish

Colud you give me your e-mail adrees to send you the complete overview about my problem.

BR.

prabhu_s2
Active Contributor
0 Kudos

Jose,

<b>>>>Material_type_code --&#8594; concat(*) &#8594; Idiomas &#8594; Item,

only if Material_type_code = “ERSA”</b>

do u want to concatenate material type code with somevalue and map to target. if then u need to use if..else condfition in graphical mapping. the mapping will be like: Material_type_code <u><b>equals</b></u> "ERSA" then u concatenate node and link to THEN part of IF. The other end of IF mapped to the target item.

Note: Equals, concatenate are all std nodes available. for ERSA u need to use a constant node and hardcode the value.

Former Member
0 Kudos

You can see it in my Business card. Anyway it is satishguntaka@gmail.com

---Satish

Former Member
0 Kudos

Jose,

As I understood if you have the value ERSA as material type you want to create the value else nothing to be done.

If it is yes then use the standard function If-then-else.

So if exists then you create else you dont.

---Satish