cancel
Showing results for 
Search instead for 
Did you mean: 

Want to disable a field (1..unbounded) at target side dynamically.

Former Member
0 Kudos

Hello,

I want to disable a field (1..unbounded) at target side dynamically in message mapping on the basis of a condition.

Please help me out. I serached in existing threads but culdnt find it.

regards,

Rahul

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

I want to disable a field (1..unbounded) at target side dynamically in message mapping on the basis of a condition

You can't really disable it using normal mapping because at least it will occur once. What you can do is to change the occurrence to 0..unbounded or use XSLT/Java Mapping.

Hope this helps,

Mark

Former Member
0 Kudos

Thanks for the reply.

It is the target XSD structure which is the standard one. So i cant change any thing into this.

Is there any other way?

Regards

Rahul

Former Member
0 Kudos

You can't really disable it.

Use mapwithDefault fn to populate a blank value based on your condition.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

It is the target XSD structure which is the standard one. So i cant change any thing into this.

You can actually edit the occurrence in your external definition and then reload it. Are you sure that the third-party will not complain if they notice the mandatory field missing?

Hope this helps,

Mark

Former Member
0 Kudos

Hello,

I have decided to send the Default value 'NA'. Because i didnt find any way to disable field at run time.

But thanks for the reply every one.

Regards,

Rahul Gupta

Answers (0)