Development kits

Staff view - Activities recording

Client has a need to record the activity author against the activity, when adding an activity via staff view.
When adding an activity via Desktop, the author is by default entered into the SOURCE_CODE field, but not so when adding an activity via staff view.
Has anyone got a solution? Or a workaround?

SOLVED: Why does Asi.dll always register message: "The type or namespace name 'Asi' could not be found (are you missing a using"

I have a number of iParts... when I move them into a development environment Asi.dll always says "The type or namespace name 'Asi' could not be found (are you missing a using directive or an assembly reference?)"

I remove the reference and replace it and everything looks find until I compile...then the message is thrown. Why is the Asi.dll always problematic this way? I suspect it has to do with versions, but I make certain it matches the version in the manifest...

SmartControls with SOA?

Lately I've been updating code from iBO.Net, SQL and Business Objects to SOA. One of the techniques I have often used in my DCIs (iParts) is to load a business object, set it as the AtomObject and make use of the smart controls. It's elegant, quick and with custom BOs quite configurable through the BOD.

The EntityDefinitionData object returned from EntityManager.FindMetadataForEntity() method appears to contain the information necessary to bind to a smart control ie. control type, caption, etc...

How to find where a Customer Service Alert (CSA) is used?

Hi all,

We have a couple of CSAs which use a certain stored procedure; the SP has to change, so I'll need to test the CSAs.
How can I find out which pages the CSAs are used on? I don't see anything helpful in the ASI Content Browser or Query Browser.

Details:

What the stored proc does is to count the number of committees the current user is on, and, if none, create a link with description "Link to join a committee page", Action Text = "~/blah/pagename.aspx?ID=" + @ID... etc, nothing too interesting.

SOA - Post Order with Paypal payment

I am tyring to complete an order using Paypal/Paypal Express and can't seem to figure out what is wrong.

here is a Unit test I have to set the payment method of a cart order to PPE and get the Paypal payment url:

public void SetPaypal()
        {
            var userData = memMan.FindUserByUserName(UserName);
            Assert.IsNotNull(userData);

            var partyData = (PersonData)memMan.FindPartyById(userData.Party.Id);
            Assert.IsNotNull(partyData);

            cartMan.Cart.ComboOrder.Payments = new RemittanceDataCollection() {
                new RemittanceData() {
                    PaymentMethod = new PaymentMethodData { PaymentMethodId = "PPE"
                    },                   
                    Amount = new MonetaryAmountData(cartMan.Cart.ComboOrder.Order.OrderTotal.HasValue ? cartMan.Cart.ComboOrder.Order.OrderTotal.Value.Amount  :
                        0, cartMan.Cart.ComboOrder.Order.Currency),
                        ReferenceNumber = "1"
                }
            };

            cartMan.SaveCart();
            cartMan.ForceReload();

            PayPalExpressPaymentRequest request = new PayPalExpressPaymentRequest() {
                CancelUrl = "http://localhost:52546/",
                ReturnUrl = "http://localhost:52546/",
                ComboOrder = cartMan.Cart.ComboOrder
            };

            var result = em.Execute(request);

            Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
        }

NetTcp endpoint no longer works after iMIS20.2 upgrade

I. I had the following C# code working with the NetTcp endpoint in iMIS 20.1, but after the 20.2 upgrade it stopped working.

new EntityManager(new Uri("net.tcp://MASHTUN:808/IMIS20/NetTcp"), "MANAGER", "xxxx", Asi.Soa.ServiceModelEx.EndpointType.NetTcp);

After the 20.2 upgrade I got an error:
"there is no endpoint listening at..."

II. So I tried using a path recommended by the 3rd-party vendor that sold us iMIS:

iMIS 20.2 Rise | Edit text/label during Create Account

Hi,
Wondering where could I edit the text about the password strength in RiSE site.

At the bottom of a 'Create Account' page (Create_Account_no_Sign_In.aspx) and CreateAccount iPart, down the very bottom, there is a piece of text 'The password must be at least 7 characters long'. Wondering where to edit them to include 'The password must be at least 7 characters long and at least one number'?

Join now: how can I make a member pay for multiple years for a billing cycle via SOA?

Hi,

I have a piece of code which puts a dues product into a cart. By setting the QuantityData it acutally does a multiple year renewal.

But this only works for existing subscriptions.

How do I create a new subscription with SOA in the first place?

Or is it possible to run a billing cycle for multiple years?

Any pointers into the right direction are much appreciated.

iMIS 20.2 REST API Examples

As many of you may already be aware, iMIS 20.2 comes equipped with a built-in REST API layer that allows developers to communicate with the SOA API via the URL using REST.

This feature is not yet supported or documented by ASI, but seems to be working really well so far, so I have started a blog post with some example queries. If anyone has any sample queries they would like to add, or if you would like to request additional examples, feel free to leave a comment on the blog post.

Using Step-Through Debugging in Visual Studio when IMIS is involved. How To?

When I try to run an application in the Visual Studio Debugger, it fails (trace below). I have never been able to debug anything where the ASI security is in place. Can someone tell me their experience and/or how to use Visual Studio to attach and step through my custom code, when the Asi.ContentManagerNet.SessionState.get_IsLoggedIn() is called?

I assume since I am starting the app without moving through IMIS Authentication (essentially skipping it), then the objects for security are not created.