Results 1 to 1 of 1

Thread: Split and assign value when we import file as CSV

  1. #1
    kodikarthi is offline Senior Member
    Join Date
    Sep 2008
    Posts
    20

    Default Split and assign value when we import file as CSV

    Dear Friends,
    I have four fields in default and existing module. i want set these fields value as 1 or 0 when i import a file. The file has a field like 'business_offering' , it has four values as in array. if the values occur in this fields, then assign the value for corresponding four columns.
    I set this functionality when we create new record for all module. Suppose i import the file i can't assign the values ( 1 or 0 ). Where i will assign the value. I give the code following for create new records. ( but problem comes when i import the file)

    $this->business_offering = explode('^,^', $this->business_offering );
    if(in_array('MS',$this->business_offering)){ $this->ms="1";}
    if(in_array('ME',$this->business_offering)){ $this->me="1";}
    if(in_array('IT',$this->business_offering)){ $this->it="1";}
    if(in_array('ML',$this->business_offering)){ $this->ml="1";}

    Please help me with your Sample Code.

    Thanking You!
    Karthikeyan Thirugnanasambandam
    insoft.com
    karthikeyan.t@insoft.com
    Last edited by kodikarthi; 2009-02-18 at 04:10 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Split Opportunity Values over several months
    By malcolmh in forum Feature Requests
    Replies: 0
    Last Post: 2008-07-05, 08:01 AM
  2. Replies: 2
    Last Post: 2008-01-11, 10:11 PM
  3. Import Leads and assign user
    By ceshine in forum General Discussion
    Replies: 7
    Last Post: 2006-11-30, 05:37 AM
  4. Replies: 4
    Last Post: 2006-08-21, 06:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •