December 10, 200322 yr I would like to import some records and at the end of the script tell the user how many records were imported. I know I could show a layout with that information , but I would like to use the show message script step, is it possible ? how ?
December 10, 200322 yr With the simple Show Message script step this won't be possible. You need the Show Custom Dialog step, which is only available in FMP 6. Then I think you should be able to this with the status functions: Status (CurrentRecordCount) gives you the total number of records in the database. Create a calculation field
December 10, 200322 yr Hi LVA, If you can use Custom Dialog, you actually only need one global text field and a Set Field[] script-step. It would look something like this: Import Records you will end up with a found set of imported records. Then immediately... Set Field [GlobalText, "You have imported " & Status(CurrentFoundCount" & " records." Show Custom Dialog ... When defining your Custom Dialog, only have an OK default button, Dialog Title text with "Import Result" and Dialog Message from field value and select your global text field. LaRetta
December 23, 200322 yr At the end of your script, go to another layout, then pause. Design this layout to look like a dialog box with your custom message & an OK button. Attach a "resume script" or "go to layout" step to the OK button, which returns the user to wherever they should be... and voila! cheers, Wendy
December 23, 200322 yr Or, they could just look at the current found count to know how many were imported
Create an account or sign in to comment