- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2017 01:37 PM
its my mistake sanjivmeher .. let me explain.. the below part of the code is sufficient.. Hw to modify it?
our input : 'sn.te,sn1.mac,sn3.xlsm'
sn1.mac and sn3.xlsm are already available in the table. so when we try to insert them, we will get error(due to unique key) and in this case id will be null. Hence that value wont be seen in the "List"
Ideally what i want to see in the List is, sn1.mac and sn3.xlsm.. These are the two valid entries.. sn.te will not get inserted into the reference table due to the business rule.. and it shouldnt be displayed on the form "List" as well.
if (!filenameRec.next()){
filenameRec.file_name=filenameArr[i];
filenameRec.active='true';
id = filenameRec.insert();
valid.push(filenameArr[i]);
}