Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 25, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: ItemQuantity & ItemTotalAmount fields in ItemActivityItem table
Paul Zelinski
Posts: 17
 
ItemQuantity & ItemTotalAmount fields in ItemActivityItem tableYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Aug 08 9:20 AM
I added the ItemQuantity and ItemTotalAmount columns in the layout for the grid portion of the Add/Edit Ticket Activity plug in. To facilitate the calculation of the total ItemAmount immediately after entering a value in the ItemQuantity field I have the following cod snippet added:

Function grdPartsEdited(Sender, PrimaryKeyValue, FieldName, Value)
If Value <> gStrPartsEdited Then
gBlnPartsEdited = True
End If

Dim dblPrice
Dim dblQty
Dim dblTotalAmt

If FieldName = "A1.ITEMQUANTITY" Or FieldName = "A1.ITEMAMOUNT" Then

dblQty = 0
dblPrice = 0

If FieldName = "A1.ITEMQUANTITY" Then

dblQty = CDbl(Value)
dblPrice = CDbl(grdParts.GetFieldValue(PrimaryKeyValue, "ITEMAMOUNT"))

End If

If FieldName = "A1.ITEMAMOUNT" Then

dblQty = CDbl(grdParts.GetFieldValue(PrimaryKeyValue, "ITEMQUANTITY"))

dblPrice = CDbl(Value)

End If

dblTotalAmt = dblQty * dblPrice

grdParts.SetFieldValue PrimaryKeyValue, "ITEMTOTALAMOUNT", dblTotalAmt, False

End If

End Function

The problem I am having is when i save the data to the database the value that is in ItemTotalAmount does NOT get inserted into the table.
However when i enter the Itemtotalamount Manually the value does get saved.

Any suggestions on how to rectify this?
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/25/2025 1:07:52 AM