![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FMP 10: I have a found set of line items I want to invoice them. I go to the the invoice table, create a new invoice, grab the key, return to my found set of line items and use the recplace command to put the invoice key in the appropriate field. If one of the line item record is blocked by another user, the script can't put the invoice number in. This line item does not make it on to the invoice, but all the others do. What do you do to address this problem: loop through the line items first, open them and check for errors? But every record will get closed as soon as you move to the next record, so we're still at risk here? Loop through the records when putting the invoice key in? Write invoices at three in the morning only? |
#3
| |||
| |||
|
|
FMP 10: I have a found set of line items I want to invoice them. I go to the the invoice table, create a new invoice, grab the key, return to my found set of line items and use the recplace command to put the invoice key in the appropriate field. If one of the line item record is blocked by another user, the script can't put the invoice number in. This line item does not make it on to the invoice, but all the others do. What do you do to address this problem: loop through the line items first, open them and check for errors? But every record will get closed as soon as you move to the next record, so we're still at risk here? Loop through the records when putting the invoice key in? Write invoices at three in the morning only? -- http://clk.ch |
#4
| |||
| |||
|
|
FMP 10: Loop through the records when putting the invoice key in? Write invoices at three in the morning only? |
#5
| |||
| |||
|
|
FMP 10: I have a found set of line items I want to invoice them. I go to the the invoice table, create a new invoice, grab the key, return to my found set of line items and use the recplace command to put the invoice key in the appropriate field. If one of the line item record is blocked by another user, the script can't put the invoice number in. This line item does not make it on to the invoice, but all the others do. What do you do to address this problem: loop through the line items first, open them and check for errors? But every record will get closed as soon as you move to the next record, so we're still at risk here? Loop through the records when putting the invoice key in? Write invoices at three in the morning only? |
#6
| |||
| |||
|
|
Don't use the same line items for the different purposes. |
#7
| |||
| |||
|
|
But you don't use a join-table? Or is your line-item table a join table? |
#8
| |||
| |||
|
|
I test the records at the start of the script (attempt to open the records and evaluate for error), ( a status evaluation is better; Get ( RecordOpenState )) then open the records (to the user). |
#9
| |||
| |||
|
|
Lynn Allen <lynn (AT) NOT-semiotics (DOT) com> wrote: [invoicing order line items] Don't use the same line items for the different purposes. Are there other reasons for this than the record locking issue? I try to avoid redundant data (second normal form and all that). -- http://clk.ch |
#10
| |||
| |||
|
|
105<cortical (AT) internode (DOT) on.net> wrote: I test the records at the start of the script (attempt to open the records and evaluate for error), ( a status evaluation is better; Get ( RecordOpenState )) then open the records (to the user). I found that Get (RecordOpenState ) and its counterpart for the number of open records in the found set do not report an open record if the reord is open in a different window. I concluded it wouldn't tell me if record is locked by a different user Haven't tested that, though. |
![]() |
| Thread Tools | |
| Display Modes | |
| |