Developing for iMIS

Modify the event grid (for Event List) - ASPX/IMIS Newbie

Hello Everyone, it's the Newbie again.

I want to alter the appearance of the event grid found in Courses/Core/Events/Events.aspx  => ie. asiweb:Lister2 id="EventsGrid"

but I am a complete newbie to all things iMIS and ASPX etc.  Where do I find a list of avaliable asiweb objects (ie. Lister2)? And any tips / references on getting started with aspx etc?  I love the forum but many of the questions/discussions are over my head right now....

getting and inserting cash accounts

For automated tests, I need to get CCashAccounts from the database and insert CCashAccounts into the database.  How can I do this?  Is there some parent object I need to use to obtain or insert CCashAccounts?

NullRef on ContentItem.ContentItemName

I'm working on a general library to use in all my iParts.  As part of that, I want to be able to log not only which iPart had an error, but which specific content item experienced a problem.

So the constructor for my library class looks like:

public MyLibrary(Asi.Business.ContentManagement.ContentItem ci)
{
    string s = ci.ContentItemName;
    ...
}

CPayment unexpected exceptions and workaround

The following NUnit-driven demos demonstrate that setting CPayment's CashAccountCode before setting the CreditCardNumber will lead to unexpected errors:

    [TestFixture, Explicit("demos")]   
    public class UnexpectedExceptions
    {
        [TestFixtureSetUp]
        public void TestFixtureSetUp()
        {
            iboAdmin.InitializeSystem(ConfigurationManager.ConnectionStrings["DataSource.iMIS.Connection"].ConnectionString);
        }

        [Test]
        [ExpectedException(typeof(ArgumentOutOfRangeException))]
        public void Demo_Setting_CreditCardNumber_After_CashAccountCode_CausesUnhandledException_1()
        {
            var payment = new CPayment(CStaffUser.GetDefaultStaffUser())
            {
                CashAccountCode = cashAccountCode,
                CreditCardNumber = "4007000000027"  // VISA test number, eh?
            };
        }

        [ExpectedException(typeof(Asi.iBO.InvalidCardNumberException))]
        public void Demo_Setting_CreditCardNumber_After_CashAccountCode_CausesUnhandledException_2()
        {
            var payment = new CPayment(CStaffUser.GetDefaultStaffUser())
            {
                CashAccountCode = cashAccountCode,
                CreditCardNumber = "011201539123"   // it's irrelevant how I came up with this number.
            };
        }  
    }

Broken Publishing Server

I have a publishing server that is throwing an error when I try to 'show all' errors in the error log.  I can not delete any errors for this particular server because the buttons do not display.  The error is below. 

The publishing is still working to the web server that this publishing server is dedicated to.  I have restarted the service and both my app server and web server but no change.

Error adding a new contact through iBO

Hi,

I am having difficulty adding a new contact through the CContact iBO. I am initializing a new contact by calling new CContact(user) then setting some properties. When I call CContact.Save() I'm getting a stackoverflow error:

EventType clr20r3, P1 aspnet_wp.exe, P2 2.0.50727.3053, P3 4889ded7, P4 asi.ibo, P5 15.0.3.2396, P6 49a781d8, P7 847, P8 1, P9 system.stackoverflowexception, P10 NIL.

Creating custom page

I have created custom pages in iMIS but without being able to incorporate the master pages inherent in the template (1600).  I have tested by creating aspx pages using all the master pages available (a search on the Net folder shows only master pages in templates/masterpages.

I would like to create custom pages that incorporate the template masters.  How do I do this -- it seems like it should be simple.

Reducing version dependencies?

So I've got these iParts, see?  They have references to several ASI dlls, typically Asi, Asi.Business.ContentManagement, Asi.iBO, Asi.Web, Secure and Telerik.Web.UI.  I have those files in my project folder, it builds my dlls just fine and works great...until the client upgrades.  At that point, my code refuses to run because it can't find the file it was compiled against.  Telerik is the most common offender.  Moving from 15.1.1 to 15.1.2 required a new dll even though I was using only features available in both flavors.

iMIS 15 and SQL Server

Hello,

There was a thread on this forum from last September about compatibility of iMIS 15 with SQL Server 2008. The message wasn't a good one ("failed miserably" was once phrase used). Has anyone tried or have there been any updates since that post? We're really hoping to upgrade to SQL Server 2008 and iMIS compatibility is a big obstacle.

Thank you!

ASIUtil requirements?

Back in the iMIS 4/iMIS 10 world, ASIUtil.dll required ASIDBUtil and ASIDBUpgrade.  I can tell that the .NET parts of iMIS use Secure.dll instead of ASIUtil, and I know some things changed in 15.1.2 for the Advanced PCI support.

Does ASIUtil 15.1.2 still require either ASIDBUtil or ASIDBUpgrade?

Is ASIUtil 15.1.2 different enough from previous versions that I would need a new Interop?