Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
XIB 2.1.1: Keep filename when receiving a file with XFB Connector
walles
post Nov 11 2009, 03:31 PM
Post #1


Contributor
**

Group: Members
Posts: 12
Joined: 6-November 08
Member No.: 77


Hello

I'm retreiving a file in Gateway and routing it to XIB, XIB receives it with the XFB Connector.
When the file is received in XIB the filename has changed from the "real" filename, I can see that it is available in the attribute, but is it really necessary to write an MBC that sets the filename from the attribute?

Are there any settings in Gateway that keeps the original filename?
Go to the top of the page
 
+Quote Post
Rhenus ICT Servi...
post Nov 11 2009, 03:41 PM
Post #2


Regular Contributor
***

Group: Members
Posts: 31
Joined: 6-November 08
Member No.: 82


QUOTE (walles @ Nov 11 2009, 05:31 PM) *
Hello

I'm retreiving a file in Gateway and routing it to XIB, XIB receives it with the XFB Connector.
When the file is received in XIB the filename has changed from the "real" filename, I can see that it is available in the attribute, but is it really necessary to write an MBC that sets the filename from the attribute?

Are there any settings in Gateway that keeps the original filename?


Hi Walles,

As far as I know you have to write an MBC that extracts the filename from the attribute

CODE
$xfbAllAttribute = TA_XFB.UnpackAllReceiveInfoAttribute($AttributeValue);
$Filename = $xfbAllAttribute.$FileName;


and then set, for example, the following attribute:

CODE
# Set the filename for outgoing FTP Transfers
$ftpOverrideAttribute.$Use_RemoteFilename = $TRUE;
$ftpOverrideAttribute.$RemoteFilename     = $Filename;



I hope this helps.

Greetings,
Rob
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins