Community
Showing results for 
Search instead for 
Do you mean 
Reply

Contact Web Context Browser

New Member
Posts: 10
Country: United States

Re: Contact Web Context Browser

May call them Contact Web Context Browser Custom URL's.  Keeps the context of the control in the Thread for continuity and extends the usage of the Control by clearly differentiating the Thread.

 

Sounds like you may also need to repost an updated version of the Company Web Context Browser Control for ACT 2010 Ver 12 also?

 

Full documentation of any non standard or non delivered fields is definitely a must.  The good news is that any misconfiguration appears to simply allow the call to fail and doesn't appear to wreak any havoc on the ACT DB since its just pulling fields.

 

By the way...  The new Contact Web Context Browser for ACT 2010 Ver 12 works Great.

 

Thank you a million times over.

Tuned Listener
Posts: 9
Country: United States

Re: Contact Web Context Browser

Could we get source code for the MutableEntity version of the Contact Web Browser control for Act 2010? Was going to convert the old one myself, but since you've already done it...

 

Thanks in advance.

Tuned Listener
Posts: 9
Country: United States

Re: Contact Web Context Browser

For anyone who's interested, I've modified the older non mutable entity source code to the Act 2010 compatible version. The changes required are given here in a unified diff:

 

--- C:/Users/chris/AppData/Local/Temp/AnkhSVN/3e22/ContactWebContextBrowser.BASE.cs Tue May 11 15:34:55 2010
+++ C:/Users/Chris/Documents/Visual Studio 2008/Projects/ContactContextBrowser/ContactWebContextBrowser/ContactWebContextBrowser.cs Tue May 11 15:30:43 2010
@@ -49,7 +49,7 @@
     ]
     // we implement the IContactListBoundControl interface for a contact bound control
     // This is only needed for a control that will be used in Layout Designer
-    public class ContactWebContextBrowser : Panel, IContactListBoundControl
+    public class ContactWebContextBrowser : Panel, IMutableEntityListBoundControl
     {
         private string m_TargetURL = "www.act.com";
         private string m_DefaultURL = "about:blank";
@@ -65,7 +65,7 @@
         private string resolvedURL = "";
 
         // Will use these when we're a custom control hosted in a layout
-        private ContactListComponent contactDataSource;
+        private MutableEntityListComponent contactDataSource;
         private CurrencyManager listManager;
 
         // the current contact
@@ -234,32 +234,31 @@
             System.ComponentModel.DefaultValue(null) // no code gen/ serialization if null
         ]
 
-        public ContactListComponent ContactListComponent
-        {
-            get { return contactDataSource; }
-            set
-            {
-                // detach from last event && listen for the OnConnected, which is when we're bound to contacts
-                if (contactDataSource != null)
-                    contactDataSource.Connected -= new ContactListComponent.ConnectedHandler(OnConnected);
+        //public ContactListComponent ContactListComponent
+        //{
+        //    get { return contactDataSource; }
+        //    set
+        //    {
+        //        // detach from last event && listen for the OnConnected, which is when we're bound to contacts
+        //        if (contactDataSource != null)
+        //            contactDataSource.Connected -= new ContactListComponent.ConnectedHandler(OnConnected);
 
-                contactDataSource = value;
-                if (contactDataSource != null)
-                {
-                    contactDataSource.Connected += new ContactListComponent.ConnectedHandler(OnConnected);
-                }
-            }
-        }
+        //        contactDataSource = value;
+        //        if (contactDataSource != null)
+        //        {
+        //            contactDataSource.Connected += new ContactListComponent.ConnectedHandler(OnConnected);
+        //        }
+        //    }
+        //}
 
         private void OnConnected()
         {
             // we're bound to contacts
             GetListManager();
 
-            if (this.ContactListComponent != null && this.ContactListComponent.FrameworkComponent != null
-                    && this.ContactListComponent.FrameworkComponent.Framework != null)
+            if (this.ListComponent != null && this.ListComponent.FrameworkComponent != null)
             {
-                framework = ContactListComponent.FrameworkComponent.Framework;
+                framework = ListComponent.FrameworkComponent.Framework;
             }
         }
 
@@ -271,7 +270,7 @@
             {
                 try
                 {
-                    ContactList cl = contactDataSource.ContactList;
+                    ContactList cl = (ContactList)contactDataSource.MutableEntityList ;
                     if (cl != null)
                     {
                         if (listManager != null)
@@ -333,7 +332,28 @@
             }
         }
 
+        public MutableEntityListComponent  ListComponent
+        {
+          get
+          {
+            return this.contactDataSource;
+          }
+          set
+          {
+            if (this.contactDataSource != null)
+            {
+              this.contactDataSource.Connected -= new MutableEntityListComponent.ConnectedHandler(this.OnConnected);
+            }
+            this.contactDataSource = value;
+            if (this.contactDataSource != null)
+            {
+              this.contactDataSource.Connected += new MutableEntityListComponent.ConnectedHandler(this.OnConnected);
+            }
+          }
+        }
+
 
+
         #endregion
 
         private void GetURL()

New Member
Posts: 10
Country: United States

Re: Contact Web Context Browser

Hi,

Having a problem pulling Last Edited By, Record Creator, and Record Manager into the string.  Other fields are working correctly, just these are experiencing the problem.  The values are present in ACT, but don't get passed to the URL string and appear as "" (NULL/BLANK).

 

Is there something special that needs to be done to pull these fields?  I'd swear they were working in the past?

 

a={Contact.Last Edited By}&b={Contact.Record Creator}&c={Contact.Record Manager}

Nickel Elite Contributor
Posts: 937
Country: USA

Re: Contact Web Context Browser

Could you post what version of ACT! you are using?
New Member
Posts: 10
Country: United States

Re: Contact Web Context Browser

ACT! by Sage Premium 2010 Version 12.1.181.0, Hot Fix 1
New Member
Posts: 10
Country: United States

Re: Contact Web Context Browser

Looks like {Contact.Owner} is also having an intermitent problem?

Some records are pulling it, some are not.

Nickel Elite Contributor
Posts: 937
Country: USA

Re: Contact Web Context Browser

Looks like we'll need to run a debug against the code on a ACT! 12.1 install.  The earliest I can get to this is next week (I'm attending Insights at the moment).  Can someone with source code for an updated browser control recompile against the 12.1 ACT! assemblies and see if these problems continue?

 

 

New Member
Posts: 5
Country: United States

Re: Contact Web Context Browser

I have the updated control. I can email it, I don't see a way to attach anything to this post except a link.

 

Also, I have modified the control to no longer need the "replace spaces" feature and works with *all* non URL friendly characters.

 

Chris

New Member
Posts: 5
Country: United States

Re: Contact Web Context Browser

It could be that the problem you're having is the one I've fixed with this control.

 

The contact variable's contents must be encoded for a URL. If one of the fields you are passing has a character that needs special URL encoding to be passed correctly, then the one from Act will fail, and your web page will only get a partial URL.

 

Example of characters that would have a problem are: &, #, etc. The Act control only replaces spaces with the character you specify like +.

 

Chris