Community
Showing results for 
Search instead for 
Do you mean 
Reply

Bug in 12.0 and 12.1: writing to the current contact

Nickel Contributor
Posts: 231
Country: Canada

Bug in 12.0 and 12.1: writing to the current contact

Writing to the current contact does not work on the MyRecord when you open ACT!. If you move to another contact and come back, it does.
 
Dim f As DBFieldDescriptor = ACTAPPL.ActFramework.Contacts.GetFieldDescriptor("TBL_CONTACT.BUSINESS_LINE2")
If f IsNot Nothing Then
   f.SetValue(ACTAPPL.ApplicationState.CurrentContact, "test")
   ACTAPPL.ApplicationState.CurrentContact.Update()
End If
 
Tested on 12.0 and 12.1.
 
Gilles 
Gilles Cavin
http://www.exponenciel.com
Make sure you check our free Act! add-ons!
Create Web forms in seconds and import form results directly into Act! with Automatic Web Forms
Fill in PDF Forms without retyping data using Act! to PDF Forms
Employee
Posts: 1,163
Country: USA

Re: Bug in 12.0 and 12.1: writing to the current contact

WIthout having tested this myself, the first thing that comes to mind is something similar to the issue with the FieldChanged event not triggering for changes to the first contact until after a refresh has occurred, if your able, try just refreshing the first contact as soon as it comes up and see if it works. 

 

Thanks. 

Matthew Wood
Act! SDK Support
Community Moderator
Nickel Contributor
Posts: 231
Country: Canada

Re: Bug in 12.0 and 12.1: writing to the current contact

It does work indeed. Thanks for the workaround.

I think it should be fixed though and therefore reported as a bug as refreshing sometimes causes other problems.

Gilles Cavin
http://www.exponenciel.com
Make sure you check our free Act! add-ons!
Create Web forms in seconds and import form results directly into Act! with Automatic Web Forms
Fill in PDF Forms without retyping data using Act! to PDF Forms
Copper Elite Contributor
Posts: 95
Country: USA

Re: Bug in 12.0 and 12.1: writing to the current contact

The delayed refresh is designed to workaround other, far more annoying bugs related to data being copied across records.  A current view refresh call is basically required in 12.x, but that's ok, because at least we can control it, and know that it does indeed, work correctly.

 

-Nick

Nick Bohne
Effective Solutions, Inc.
Nickel Contributor
Posts: 231
Country: Canada

Re: Bug in 12.0 and 12.1: writing to the current contact

Actually, refreshing is not an option for me because I am creating a layout control and it triggers the CurrencyManager PositionChanged event.

This is another one of these annoying bugs. 

Gilles Cavin
http://www.exponenciel.com
Make sure you check our free Act! add-ons!
Create Web forms in seconds and import form results directly into Act! with Automatic Web Forms
Fill in PDF Forms without retyping data using Act! to PDF Forms