Community
Showing results for 
Search instead for 
Do you mean 
Reply

APFW ActSessionManager

Bronze Super Contributor
Posts: 1,231
Country: USA

APFW ActSessionManager

Can you get the ActSessionManager in Javascript?

 

Is there example code?

 

THanks

-- Jim Durkin

Bronze Elite Contributor
Posts: 2,545
Country: New_Zealand

Re: APFW ActSessionManager

Jim,

Unless you have a lot of time on your hands, or you are able to employ the original developers of 10 years ago ... our experience with Javascript and APFW GUI is as frustrating as you are possibly finding.   

Graeme Leo
Xact Software - consultants and developers
Follow us on Twitter and check out our Blog


Bronze Super Contributor
Posts: 1,231
Country: USA

Re: APFW ActSessionManager

[ Edited ]

Frustrating is a .NET guy writing java code Smiley Happy  After I found a good IE debugger it's getting easier.

 

Doubly frustrating is the lack of support from the current development team.

 

When the team makes a conscious choice not to answer support questions it does not bode well for the current APFW or for future version of products from Swiftpage. As a 3rd party development shop we NEED support. If it does not happen from Swiftpage it will happen from many of the other CRM companies.

 

I pay a lot of money to be a developer for SP per year. These payments get me extended access to THIS hidden support forum.  When my questions go unanswered it's a bit of a sham to continue to charge 3rd party developers wouldn't you say? 

 

-- Jim Durkin

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: APFW ActSessionManager

[ Edited ]

I'll answer my original post "Can you get the ActSessionManager in Javascript?"

 

The answer is no. Not because of APFW architecture but becuase javascript can not access Session directly. Blame Mr. Ellison for that.

 

Now I can see another reason why the world went ajax. Last month I was completely lost when I first saw $.ajax. Now having my head wrapped aound js and ajax this is the code i am writing.

 

 

   function contactsChanged() {
        try {
            var PAGE = AppPath + 'plugins/DurkinGetValues.aspx';
            PAGE += "?SubEntityID=" + document.getElementById('CustomSubEntityID').value;
            var retval;
            // This needs to be done in JS so the value will be placed
            // in data then returned via retval 
            $.ajax({
                type: "POST",
                url: PAGE,
                async: false,
                success: function (data, status) {
                    retval = data;
                }
            });
            //alert("retval="+retval);
            return retval
        }
        catch (err) {
            alert("contactsChanged() " + err.message);
        }
    }

 

The code above hooks me into many of the native ACT! dialog boxes such as the "Select Contacts" shown below.

 

2015-06-05_9-17-57.jpg

 

Hope this helps

-- Jim Durkin

 

Bronze Elite Contributor
Posts: 2,545
Country: New_Zealand

Re: APFW ActSessionManager

Jim,

Not Larry's issue, it's a different language, just looks the same.

We don't pay as third party developers and never have, no point, SP have nothing to sell. I'd bet that the current dev team have absolutely no clue on how APFW works.   

Graeme Leo
Xact Software - consultants and developers
Follow us on Twitter and check out our Blog