[FX.php List] editing portals
david weiner
1265 at lucerneblvd.org
Tue Nov 4 15:46:45 MST 2008
Thanks Dale,I'll probably resort to doing this with the child records, but
I'm giving this a try to see if I can get it to work and have the option of
doing it both ways. Since this would be most useful if I can present the
option to edit all portal rows as needed it seems like a sisyphean job, but
whatever . . .
Thanks to your pointer to the right section of the functions pdf I see how I
can return the data correctly but I think you are right that I'd need
a separate input field for all fields. I've got it echoing out the field
data and portal row ID and can stick some kind of a delimiter in there if
needed - but if you've got a good idea for how to iterate out input fields
I'd like to know about it.
- David
2008/11/3 Dale Bengston <dbengston at tds.net>
> Hi David,
>
> I too would stay away from editing portal rows, but that advice doesn't
> really help solve your problem tonight. Without your FX call, it's hard to
> know what's causing a 102 (field is missing) error. If you're trying to edit
> the field RoomSecond, it doesn't exist as far as FileMaker is concerned.
> It's actually called __peoplePOSITIONS_HR::RoomSecond.
>
> If you're editing more than one portal row (same field, many rows), take a
> look at the section on SetPortalRow() on page 7 of the FXFunctions.pdf
> document included with FX. It will help you figure out how to structure the
> user input to be saved to portal row(s) via FX. If this is the case, you'd
> need a separate text input for each row, right?
>
> Hope this helps,
> Dale
>
>
>
>
> On Nov 3, 2008, at 4:59 PM, david weiner wrote:
>
> Hi everyone,
>> I'm hoping someone can help me out here. I have a portal in Filemaker with
>> a couple of fields that I'd like to have editable via php.
>>
>> If I create a table in PHP and display the portal info using:
>>
>> <tr><td>Room Second</td><td><input name="RoomSecond" type="text"
>> id="RoomSecond" value="<?php
>> $prow = 0;
>> while($searchData['__peoplePOSITIONS_HR::RoomSecond'][$prow]) {
>> echo $searchData['__peoplePOSITIONS_HR::RoomSecond'][$prow];
>> $prow++;
>> }
>> ?>
>> ">
>> </td></tr>
>>
>> I get the data but I get a 102 error on editing and I assume it's because
>> Filemaker doesn't know which portal row to apply the edit to.
>>
>> What's the right way to do this?
>>
>> Thanks,
>> David
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20081104/1178c7ae/attachment.html
More information about the FX.php_List
mailing list