![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, Anyone have this similar experience? I have customer address table related to customer name related to purchase order table, where the purchase order table holds the shipping address. For convenience, I wrote a script to automatically fill out the address in a purchase order. table & relationship: address ---- customer name-----purchase order many ---to-------one-------to-----many To accomplish this, the script does a Replace Field Content on the purchase order records found set: Replace Field Contents [No Dialog; purchaseorder::street; address::street] etc - many more field replacements What I am seeing is that it doesn't matter if I have one purchase order record or many in the found set, Replace Field Content does a field replacement on all records belonging to the same customer regardless of how many records I have in a found set. What I intend to do is to fill out just one order. Anyone know if this is a bug in filemaker pro 7 v3 or user error? Thanks in advance, Mario ======= |
#3
| |||
| |||
|
|
Anyone know if this is a bug in filemaker pro 7 v3 or user error? User error, although not an obvious behavior. |
|
Workaround: Use a loop around a pasteResult or setField command: This will edit the visible record only, while walking through your set of records. |
#4
| |||
| |||
|
|
much deleted I don't understand your example. What's on your layout? |
#5
| |||
| |||
|
|
My layout is a window which displays a purchase order, the user clicks on a button, it brings up another window with a list of addresses belonging to the customer. The user clicks on an address and the information is copied into the purchase order. ![]() What I need to do a very simple task (at least in any other database). For example: --------------------sql script---------------------------------------------------------- set id1 = 4; // user gets to choose this record using a mouse click set id2 = 23; // user gets to choose this record using a mouse click SELECT name,street,city,state,zip FROM address WHERE id = @id1; UPDATE purchaseorder SET poname=name, postreet=street, pocity=city, postate=state, pozip=zip WHERE id1=@id2 -------------------------------------------------------------------------- -- ----------- "Martin Trautmann" <t-use (AT) gmx (DOT) net> wrote in message news:slrndd0es1.5ca.t-use (AT) ID-685 (DOT) user.individual.de... much deleted I don't understand your example. What's on your layout? |
#6
| |||
| |||
|
|
oops sorry: UPDATE purchaseorder SET poname=name, postreet=street, pocity=city, postate=state, pozip=zip WHERE id=@id2 "Mario Rosario" <mario (AT) webacre (DOT) com> wrote in message news:SbpAe.210$Rv7.194 (AT) newssvr21 (DOT) news.prodigy.com... My layout is a window which displays a purchase order, the user clicks on a button, it brings up another window with a list of addresses belonging to the customer. The user clicks on an address and the information is copied into the purchase order. ![]() What I need to do a very simple task (at least in any other database). For example: --------------------sql script---------------------------------------------------------- set id1 = 4; // user gets to choose this record using a mouse click set id2 = 23; // user gets to choose this record using a mouse click SELECT name,street,city,state,zip FROM address WHERE id = @id1; UPDATE purchaseorder SET poname=name, postreet=street, pocity=city, postate=state, pozip=zip WHERE id1=@id2 -------------------------------------------------------------------------- -- ----------- "Martin Trautmann" <t-use (AT) gmx (DOT) net> wrote in message news:slrndd0es1.5ca.t-use (AT) ID-685 (DOT) user.individual.de... much deleted I don't understand your example. What's on your layout? |
![]() |
| Thread Tools | |
| Display Modes | |
| |