Inserting/Updating Activity Records

I have what I hope if is a fairly simple project to "cut my teeth on".  I need to develope a page for a customer to allow members to insert and/or update an Activity Record (user defined Activity Type).  They are currently on 15.0.3 and I have been through a lot of the samples and docs here, but am still a bit stumped.  Does anyone have a basic code sample for displaying, and adding/updating activities based upon the current web users iMIS ID?  Also, where might one find iBO.NET help files? 

Thanks!

Steve Russell

GI Solutions, Denver CO.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

We've already built one

We built a complete Activity add/edit component as an iPart (to enable Casual users to work with Activity records the same way on the web as in Full iMIS) and are planning to release it as a product very shortly.  We found the Activity BO was sufficient for parts of the process, but had to write some direct SQL as well.

My suggestion would be to upgrade first to 15.1.1.x, where a few of the iParts-related features are fixed.  The iParts examples, while not fully documented down to the lines of code, are working examples that show the principals and mechanisms involved.  They've been a good start for us.

--
Bruce Wilson
Director, Technical Services
RSM McGladrey, Inc.

Thanks Bruce.  Taking them

Thanks Bruce.  Taking them to 15.1.1 is not an option at this point even though I know that would make my life easier.  So I a going to have to do what I can for them in 15.0.3.  This was functionality they had in eSeries and they just discovered they don't have it in Public Views so I am scrambling to pull something together for them this week.  I don't have the luxury of doing it they way I would like.  I have to plug the whole in the dyke and then go back and revisit later.  If I knew how to pull the current member ID I can get something together for them by the end of this week since this is the time frame where their members are desperately trying to get CE Credits entered. 

A third party module for CE Viewing and Inputting

Steve,

Thsi shoudl be straightforward using the .NET IBO's. If it helps we have a third party module that puts credit hours directly into iMIS as activities just as you mention. It also lets you display them. It uses the .NET IBO's so it will work with iMIS 10.x and 15.x. You need the ecustomer license.

here is a link to the page for the CE Viewer/Input Module with a full demo and a glossy flyer!

http://www.atsol.org/products.aspx?tab=3#tab_linkshttp://www.atsol.org/ats/pdf/CEViewer_Module.pdf

Thanks,

Randy

Thanks for the posts/offers

Thanks for the posts/offers of products, but as an AiSP and developer with nearly half our customer base on 15 now, I am looking for two things:  1.  To satisfy my customer's needs and 2.  Learn iBO.NET.  I am just really looking for a little help to get me started in the right direction.  Maybe this was the wrong blog to post in for that type of help.

Sorry about that

Randy and I seem to have gone a little too heavy on the commercial side of things.

I think the snippets of code you're looking for are below.  These are shamelessly stolen (uh, "borrowed", "excerpted") from iParts_Release_01.zip > ContentType. Profile\SourceCode\WebPart.UserStatus\FullProfilePropertyPage.cs > GetLoggedinIMISID() and GetSelectediMISID().

Currently logged in ID:

        if (Asi.Security.AppPrincipal.CurrentIdentity.IsAuthenticated && Asi.Security.AppPrincipal.CurrentIdentity.ContactMaster != "")
        {
                _id = Asi.Security.AppPrincipal.CurrentIdentity.ContactMaster;
        }

 

Currently selected ID:

        if (_Request.Cookies["UserID"] != null)
        {
                _id = _Request.Cookies["UserID"].Value;
                Secure _tool = new Secure();
                _id = _tool.Decrypt(_id);
                if (_id == null)
                        _id = "";
        }

 

--
Bruce Wilson
Director, Technical Services
RSM McGladrey, Inc.

Bruce, I need to create an

Bruce,

I need to create an ipart used for creating new activity records . Can you help me in getting  the sample code for inserting activity record  using ibo? 

Thanks,

Narsa

Thanks Bruce.  This is

Thanks Bruce.  This is exactly what I was looking for.