[FX.php List] editing portals

Head Honcho headhoncho at customikesolutions.com
Mon Nov 3 18:28:29 MST 2008


Hi David,

On 04/11/2008, at 10:10 AM, Anders Monsen wrote:

> I don't edit through portals either, as I prefer to break down the  
> events into discrete parts.
>
> Create an "Edit" link for each row. Send the child ID with this link  
> to an edit form, plus the parent ID for when you return.
>
> On the edit page display the child data in an editable form. When  
> the user submits the changes, update the child table for that record  
> number (using the -recid). After the edit action succeeds, send the  
> parent ID as part of the redirect so that the user ends up on the  
> original page with a message that the record was updated.

or, using ajax, you can edit just the portal row you are working on  
and have that row edit independent of the rest of the page.

A little trickier to set up, but no need for a page refresh if  
updating just one portal row.

>
>
> Anders
>
> On Nov 3, 2008, at 5:03 PM, Tim 'Webko' Booth wrote:
>
>>
>> On 04/11/2008, at 9:59 AM, 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?
>>
>> One that works ;-)
>>
>> In general, I do not edit through portals - I grab the child  
>> records primary ID and edit directly into the child table.
>>
>> Cheers
>>
>> Webko
>> _______________________________________________
>> 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
>

Regards

Michael Ward
--
Head Honcho
CustoMike Solutions
Member, FileMaker Business Alliance
Member, FileMaker Technical Network
FileMaker 7 Certified Developer
FileMaker 8 Certified Developer
FileMaker 9 Certified Developer
10 Wandoo Crt
Wheelers Hill, 3150
ph 0414 562 501
headhoncho at customikesolutions.com





More information about the FX.php_List mailing list