Jump to content

Multiple External Data Files


Fellsway

Recommended Posts

I am wondering if you could have more then one External Data file in a OnJobStart rule and if so what is the limit. I was able to link to one "test1.txt" using a sample I found in the forums (below), but how would I add two files "test1.txt" and "test2.txt"?

 

 

//Link to the external data file.

//The '\t' is used to indicate TAB delimited data in this external data file

externalDF = new ExternalDataFileEx('test1.txt', '\t');

 

if(externalDF.valid != true)

{

Print('Failed to link to the external data file in OnJobStart');

}

Link to comment
Share on other sites

I've never tried this (and even as I'm typing this I still haven't tried my solution to see if it works – so I'm sorry if it doesn't!) That being said, my guess would be that you'd just define a second data file like so:

 

//Link to the 2nd external data file. 
//The '\t' is used to indicate TAB delimited data in this external data file
SecExternalDF = new ExternalDataFileEx('test2.txt', '\t');

if(SecExternalDF.valid != true)
{
Print('Failed to link to the second external data file in OnJobStart');
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...