How add number to item of Field from another
Posted: Fri May 25, 2012 2:44 pm
Hi all,
I have a stack with a table field "List" where I have a material list with quantities and a table field "Price List" where I have to add the amount in Item 6 from Item 2 of field "List"
I created this script but it does not work:
Thanks in advance
I have a stack with a table field "List" where I have a material list with quantities and a table field "Price List" where I have to add the amount in Item 6 from Item 2 of field "List"
I created this script but it does not work:
Code: Select all
on mouseUp
put field "List" into theList
put field "ListPrice" into theListPrice
set itemDel to tab
repeat for each line theLine in theList
repeat for each line theLine1 in field "ListPrice"
add 1 to tCounter
if item 1 of theLine = item 1 of field "ListPrice" then
add item 2 of theLine to item 6 of field "ListPrice"
next repeat
end if
end repeat
end repeat
end mouseUp