08-04-2009 02:25 AM
hehe thanks so much . I had solved it by using this code.
private void LoadGridData()
string fName = string.Empty;
DBFieldDescriptor fRay = _actApplication.ActFramework.Contacts.GetFieldDescriptors();
foreach (DBFieldDescriptor fd in fRay)
if (fd.DisplayName == "Cust_id")
fName = fd.Name;
Contact cContact = _actApplication.ApplicationState.CurrentContact;
ContactFieldDescriptor cField = _actApplication.ActFramework.Contacts.GetContactFieldDescriptor(fName) ;
object oValue = cField.GetValue(cContact)?? string.Empty ;
Customer_id = oValue.ToString();
09-06-2009 09:53 AM
my email address is firstname.lastname@example.org
This is what my exact scenario is:
I have a desktop application developed in c#.
In Act Application, On contact detail, I created a custom icon of my application.
On clicking of that icon, my desktop application is opened.
This is what I require, when my deskop application is opened, I want to display the current contact fromthe Act application.
Kindly help me how to achieve this.
09-06-2009 11:29 AM
I never done this before. i just install plugin to ACT application. And my customer using ACT application.
But if i want get data from ACT apps from my desktop application.
here is the code:
Act.Framework.ActFramework ActFwk = new Act.Framework.ActFramework();
cList = ActFwk.Contacts.GetContacts(null);
i`m not infront of my laptop, but if not mistaken should have method to get currentcontact.
09-07-2009 01:49 AM
You would also need to log on (Actfwk.Logon(Pad,user,pass)). Have a look at the marshalling data sample in the v8/9 SDKs. Or Middleware for ACT! (search for it on these forums, its written by a person called Kevin Ritch.)