LasseJ Posted March 15, 2007 Posted March 15, 2007 Hi all I import data from an Excel-file into a field, "Status". The data is all in codes, and I would like these codes to be "translated" into a litteral tekst immediately. ex. imported code "1232" is shown as "Member has re-registred" when imported. It seems like a fairly easy script, but I cant make it work. Any help from you guys? Regards Lasse
mr_vodka Posted March 15, 2007 Posted March 15, 2007 How will the translation be determined? Are there numerous amounts of these codes? If so, you might want to have a translation table. The field can be changed automatically when doing the import. Link
LasseJ Posted March 16, 2007 Author Posted March 16, 2007 Hi mr_vodka I'm actually only talking about three different codes. Looking forward to get any input.. Regards Lasse
mr_vodka Posted March 16, 2007 Posted March 16, 2007 If the codes will not change then you can consider hard coding it. You dont have to use a script to do this. You can have the field be auto entered with calculated value Case ( Status = 1232; "Member has re-registred"; Status = 2222; "Member has resigned"; Status = 3333; "Member Initial signup" )
LasseJ Posted March 22, 2007 Author Posted March 22, 2007 Thanks for helping. It works fine! Regards Lasse
Recommended Posts
This topic is 6794 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now