Community
Showing results for 
Search instead for 
Do you mean 
Reply

how do i get current username and password and current pad file ?

Avid Listener
Posts: 83
Country: Malaysia

Re: how do i get current username and password and current pad file ?

hi Tdavis,

 

hehe thanks so much . I had solved it by using this code.

 

 private void LoadGridData()
        {
            string fName = string.Empty;
            string Customer_id;
           
            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();

 

Thanks,

Jeff.

Tuned Listener
Posts: 4
Country: United States

Re: how do i get current username and password and current pad file ?

hi,

 

can you send me thecomplete code, of how to create the plugin and how to refernce in my application

Avid Listener
Posts: 83
Country: Malaysia

Re: how do i get current username and password and current pad file ?

Hi ,

 

may i have your email address ?

and better you tell me where you stuck ?

 

Thanks,

Jeff.

Tuned Listener
Posts: 4
Country: United States

Re: how do i get current username and password and current pad file ?

Hi,

 

my email address is saifud75@hotmail.com

 

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.

 

Thanks,

Saifee.A

 

Highlighted
Avid Listener
Posts: 83
Country: Malaysia

Re: how do i get current username and password and current pad file ?

Hi Saifeea,

 

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();

ContactList cList;

cList = ActFwk.Contacts.GetContacts(null);

 

i`m not infront of my laptop, but if not mistaken should have method to get currentcontact.

 

Thanks,

Jeff.

Nickel Super Contributor
Posts: 441
Country: UK

Re: how do i get current username and password and current pad file ?

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.)

 

Tom