Newbies nathan zhao Posted August 5, 2008 Newbies Posted August 5, 2008 hi, I am very new to filemaker, and I am so glad that I found this community for help. Anyways, we recently switched over from filemaker 6 to filemaker 9, and right now some of us are trying to convert the old .lasso files over to PHP. Repeating field became a challenge for us because there is such a limited information out there regarding such matter. I am wondering if anyone can help me implement repeating fields. I am not sure if it has ANYTHING to do with the repetition part of the setField function, since the file I am working on right now creates a new record in the database. Thank you in advance.
Newbies nathan zhao Posted August 5, 2008 Author Newbies Posted August 5, 2008 oh yea, I don't think I was being clearly enough, but as of right now, I am working on .lasso to .php file conversions, and I ran into repeating fields. On this form I am working on, the user can input 3 different IDs, which are being posted into the same field "stu_id". I looked though the web and John Stark's book and coudln't realy find anything very helpful, or at least in languages that I would understand at this level. the function I am using right now to post the data is setField Thank you once again! =)
joannadarling Posted August 7, 2008 Posted August 7, 2008 On the layout you will need to be sure that all repetitions that you want to write to are displayed in order to insert into them through php. When setting the field in php, start at 0. For example.. $result = $request->setField('stu_id', $firstvalue, 0); If your repeating field only has 3 repetitions, then you will only go up to 2 using setField. Hope that helps! I just had the same question and had it answered yesterday, so I thought I'd pass on the knowledge.
Recommended Posts
This topic is 6012 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