jsutherlin Posted January 28, 2003 Posted January 28, 2003 Hello all. I've been trying to create a repeating field that starts off with a default value of "yes" in all the repeating fields but I've had no luck. Only the first "cell" of all the repeating field has "yes" as a default value the rest have nothing in them when the record is created. Anyone know how to set all the "cells" in a repeating field to a default value. Thanks for the help.
CobaltSky Posted January 28, 2003 Posted January 28, 2003 I suggest that you look at limiting the menu options for your users (via access privileges) so that the only way new records can be created is via a script and button you provide. Then, you will be able to include some steps in the script which, after creating a new record, populate each of the repetitions of your field with 'yes' values.
jsutherlin Posted January 28, 2003 Author Posted January 28, 2003 I'm not sure how to access each "cell" in the repeating field but I'll bang away at it and see what I can do. thanks for the suggestion.
Razumovsky Posted January 28, 2003 Posted January 28, 2003 in the set field script step, when you specify the field, you can also specify the repition (bottom left in field dialog box).
jsutherlin Posted January 29, 2003 Author Posted January 29, 2003 Thanks!!! That worked like a charm.
djgogi Posted January 30, 2003 Posted January 30, 2003 Or you could define an global repeated field gRep with as many reps that you need and an ConstanSelf relationship constOne-->constOne where constOne is calculated as 1. First populate the global with values that you need and than set auto enter option for your field as look up from filed gRep from relationship ConstantSelf Dj
Newbies Dania Posted January 30, 2003 Newbies Posted January 30, 2003 It is strange that auto entry options do not seem to allow you to specify what to do about the field repetitions - except mybe the lookups that dj has said. This seems the design limitation with the repeating fields. And maybe is other reason not to use them, really?
Razumovsky Posted January 30, 2003 Posted January 30, 2003 Or you could define an global repeated field gRep with as many reps that you need and an ConstanSelf relationship constOne-->constOne where constOne is calculated as 1. First populate the global with values that you need and than set auto enter option for your field as look up from filed gRep from relationship ConstantSelf I like this idea better, but have a question: Would you need the relationship at all? I would think you could just auto enter the Global repeating field into the text repeating field on creation. Perhaps globals are only visible to each new record after the auto-enter commands have been completed? Havent tried, but curious.
djgogi Posted January 30, 2003 Posted January 30, 2003 Too bad that it will fill only the first rep. The problem is that in auto enter calculation box is lacking option "calculated result is an repetition field" as in standard define calculation box. Dj
Razumovsky Posted January 30, 2003 Posted January 30, 2003 Aha. Good to know if I ever need a repeating field. I assume that lookups circumvent this problem then. Thanks!
Recommended Posts
This topic is 8038 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