![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to add a sendmail script using repeating field(x3). The text calculation is used to generate the body text of a quote via email. Every part of the calculation works fine except for the repeating fields. I can not get a simple result (example shown below) out of two repeating field. Qty U PROD COST 100 lbs Sugar .25 250 lbs Sugar .22 500 lbs Sugar .20 Q_Qty is a repeating field x3 Q_Cost is a repeating field x3 Unit and Product are both text fields Any help with this script would be appreciated. Carl |
#3
| |||
| |||
|
|
Carl Mittler <cmdesk (AT) optonline (DOT) net> wrote: I want to add a sendmail script using repeating field(x3). The text calculation is used to generate the body text of a quote via email. Every part of the calculation works fine except for the repeating fields. I can not get a simple result (example shown below) out of two repeating field. Qty U PROD COST 100 lbs Sugar .25 250 lbs Sugar .22 500 lbs Sugar .20 Q_Qty is a repeating field x3 Q_Cost is a repeating field x3 Unit and Product are both text fields Any help with this script would be appreciated. Carl Hi Carl, Calculation: "Qty U PROD COST¶" & GetRepetition(Q_Qty; 1) & " " & Unit & " " & Product & " " & GetRepetition(Q_Cost; 1) & "¶" & GetRepetition(Q_Qty; 2) & " " & Unit & " " & Product & " " & GetRepetition(Q_Cost; 2) & "¶" & GetRepetition(Q_Qty; 3) & " " & Unit & " " & Product & " " & GetRepetition(Q_Cost; 3) You will have to experiment with the number of spaces to get a proper formatting of the output. You could use a tab character. Implement that by having a global field 'gTab' in which you paste a 'tab' character. Calculation: "Qty" & gTab & "U" & gTab & "PROD" & gTab & "COST¶" & GetRepetition(Q_Qty; 1) & gTab & Unit & ... (etc). Note that not all mail-clients support the tab-character. Success! -- Henk B |
![]() |
| Thread Tools | |
| Display Modes | |
| |