on 09-20-2011 6:56 PM
Hi All,
I have a requirement where i need to generate Blank Tags if there is not value from MDM.
Ex: A fieldhas no values init in MDM.
Now when i map this field to the XSD in Syndicator, I dont see this tag to be generated. As there is no value in this field.
If i set this field as mandatory in XSD, then i can see
<Material_Number/>
I wish to see it as ..
<Material_Number><Material_Number/>
Is it possible by any setting in Syndicator.. which provides the Output XML as <Material_Number><Material_Number/>
when a field is blank.
Kind Regards
Eva
Hi Eva,
Is it possible by any setting in Syndicator.. which provides the Output XML as <Material_Number><Material_Number/>
when a field is blank.
As per your requirement, you can use Destination Properties of the target field in Destination tab where you can set default text as space using space bar of your keyboard which would give you output as <Material_Number> <Material_Number/>
Note: Static text property is quite risky as even if you have some value coming up from source (MDM system), static will overwrite that existing value of MDM which is not the right way. So using default text property makes sense as it will not overwrite but for only Null(empty value) records it will use space.
Kindly revert with result.
Regards,
Mandeep Saini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Yes, as correctly stated by abhishek above, use / in the static text property.
Note: this will not give you blank xml Tags , instead it will override any other value present in MDM for that field and will give
you a tag like <Material_Number>/<Materiial_Number>.
/ is interpreted as 'do not update existing values'. so your material number in the target system will not change and remain as it is.
Regards
Hi Eva,
As rightly mentioned in above post this can be achieved by filling in a dummy value in that field which can be interpreted as no value in the target system.If this is to be done for many fields then you can do this with help of conditional assignments,filling dummy value in the empty fields.You can also achieve this by sending in static values from syndicator,so that everytime dummy value is sent in that tag from MDM.
Thanks,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
It is not possible to generate empty tag.
The system that reads the syndicated xml file should update the field as blank in case there is no tag.
Otherwise populate a actual value like "null" by default in the syndicated file from MDM.
This value "null" in target system should be interpreted as blank. So there needs to be a value mapping defined between systems.
Thanks,
Shambhu.
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 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.