Newbies chacabuco Posted October 1, 2008 Newbies Posted October 1, 2008 Hi, This is probably very basic, but I can't figure out how to add text (.jpg) to a field in multiple records while retaining the original text in that field. Is there a way to do this? Thanks
mr_vodka Posted October 1, 2008 Posted October 1, 2008 You can use a replace field contents on your found set. Replace Field Contents [ YourField; Case ( not IsEmpty ( YourField ); YourField & "(.jpg)" ) ] I wasnt sure if you wanted the parentheses or not so I left them in.
Lee Smith Posted October 1, 2008 Posted October 1, 2008 You can do this via a Script. Do a Find for the records you wish to change "Found Set" Back up your File, before you try it. Go to Record/Request/Page [First] Loop Set Field [YourField; YourField & ".jpg"] Go to Record/Request/Page [Next, Exit after last] End If End Loop Lee
Mike J Posted October 2, 2008 Posted October 2, 2008 That is one method, but what Mr Vodka suggested is using the go to related records script step. This uses the power of FMP and it's relationships. You can isolate the "found set" by the relationship by selecting the option show only related. Once your in that table with the isolated records, you can use the script step called replace field contents instead of looping. He suggests using a case function to ask whether your field has any data, if it doesn't then you don't have the extension ".jpg" added. If it does have data, then the case function takes your field and adds ".jpg" to it. Hope this expands a little more. Mr Vodka, never thought about the case function in your suggestion..thanks for throwing that out there. Mike
Recommended Posts
This topic is 5956 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