| new field for file upload transaction [message #2557] |
Thu, 24 June 2010 22:02  |
edortizq Messages: 30 Registered: August 2008 Location: Ecuador |
Member |

|
|
|
Is there a way to add a new field to file upload transacction screen and then use it as parameter for processing this file??
[Updated on: Thu, 24 June 2010 22:07]
|
|
|
|
|
|
|
|
|
|
|
| Re: new field for file upload transaction [message #2566 is a reply to message #2565] |
Sun, 27 June 2010 04:45   |
AJM Messages: 1206 Registered: April 2006 Location: Surrey, UK |
Senior Member |
|
|
The fileupload screen is for the uploading of files only, which may be any type of file, not just data. It has no provision for any additional fields which are not connected to the upload.
If you are uploading a data file which needs to be imported into the database, then the import has to be a performed in a separate task. This import task should then read records from the data file and update the database with whatever logic you specify. All the data required by this import task should be available either in the data file or in the database.
If this data file is provided by a third party, but it has "missing" data, then this data should be inserted into the file before it is uploaded. You could even put this missing data into a second file which you can upload, then have the import task read both files.
It is not possible to modify the upload task in order to specify values which are missing from the data file.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
| Re: new field for file upload transaction [message #2568 is a reply to message #2567] |
Sun, 27 June 2010 06:10   |
AJM Messages: 1206 Registered: April 2006 Location: Surrey, UK |
Senior Member |
|
|
It is not possible to modify the upload task so that you can specify data which is missing from the file being uploaded.
If the file supplied by a third party does not contain all the data that you need before it can be added to the database then that is an application issue, not a framework issue.
Instead of uploading this "missing" data via the upload task, why can't you add this data to a database table which you can then access within the task which processes the file after it has been uploaded?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|