Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 12th, 2022, 09:26 AM
ThePorge ThePorge is offline
Regular Contributor
 
Join Date: Aug 2011
Location: Georgia
Posts: 88
Default Missing Field handling error

I get data files that sometimes have and ID. If this ID exists it will be what I need to use. However if no ID is in the data file it won't even have the field for the ID data. I then have to generate an ID based on the input file name. Is there a way to handle a field name not being present in the data file without throwing an error?
I get these data files all the time and I have to link up to the new file and output a pdf. Right now it looks like the only solution is to put the field name in the data, but that's a hassle with the frequency of doing this.
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.