on 11-01-2016 6:39 AM
Hi,
We are working on scenario jdbc to sftp where requirement is generate a file name dynamically with extension .xml where file name receiving from the db in one field named as MESSAGEID in which i used dynamic configuration udf and enabled asma respective file name is generating.
But required file name with extension .xml how to in add in .xml to the field MESSAGE ID in the udf.
Please suggest
Regards Pavan
Hello Pavan,
In the UDF you can hardcode in the code +".xml"+ if the requirement like hardcoding .xml.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavan!
You should set path to field inside your target structure as variable value.
For structure like:
<MT_Message>
<Header>
<Field1>value 1</Field1>
<Field2>Filename</Field2>
</Header>
</MT_Message>
variable value should be set like this:
MT_Message,1,Header,1,Field2,1
where the number after element name is the index of element in structure tree.
You do it for target structure.
No other actions like writting UDF required in this case.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pavan,
You hsould either of this not both.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Thanks for ur reply it has been resolved in udf function i have added '.xml'
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
In this case do i need to use dynamic file configuration
Do we need to give sender message type or receiver message type in reference tab.
I have given receiver message type and got error.
Regards
Pavan
Hi Pavan,
Use below reusable function library for dynamic configuration without writing every time.
Reuse FunctionLibrary for DynamicConfiguration and Message Header Attributes
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.