Mar 26, 2014

WSO2 Con 2014

wso2con-asia-2014-inner-logo
Picture Courtesy: http://asia14.wso2con.com/ 

I’ve participated to WSO2 CON 2014 conference, 2nd time, held in Colombo. The theme for the conference is “Connected Business”. This is the current trend in the industry.

Interesting 5 keynotes by 5 experts, took my attention.

Everybody will be there in the Cloud after next 5 years. During this cloud transition period, businesses will evaluates the technologies. Being a open source company WSO2 provides complete middleware product stack to achieve “Connected Business”.

How to Display Loading Image with AJAX-Auto Complete

After long time I had a chance to update my Blog.

In this post I’m going to show you how to display data fetching progress with AJAX Auto Complete extender.

image

This is very simple.

  1. Add ASP Text box to the page (ID=TextBox1)
  2. Add AJAX AutoCompleteExtender
  3. Insert following javascript code to the web page
    <script type="text/javascript">
        function ShowImage() {
            document.getElementById('TextBox1')
                 .style.backgroundImage = 'url(images/loader.gif)';
     
            document.getElementById('TextBox1')
                               .style.backgroundRepeat = 'no-repeat';
     
            document.getElementById('TextBox1')
                               .style.backgroundPosition = 'right';
        }
        function HideImage() {
            document.getElementById('TextBox1')
                                 .style.backgroundImage = 'none';
        }
    ript>



  4. Set OnClientPopulating=ShowImage and OnClientPopulated=HideImage events of AutoCompleteExtender. Complete markup as below.



    <asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server"  
        DelimiterCharacters="" Enabled="True" ServicePath="WebService1.asmx" TargetControlID="TextBox1"
        ServiceMethod="GetCompletionList" MinimumPrefixLength="2"
        OnClientPopulating="ShowImage" OnClientPopulated="HideImage"  />

Jun 19, 2013

HTTPTimeOutException in ASP.net application

ASP.net application will throw HttpTimeOutException, if it’s request executing more than 100 seconds.

If you need execution time more than that, set following setting in web.config file.

<system.web>
<!-- in seconds-->
<httpRuntime executionTimeout="300"/>
</system.web>

Feb 11, 2013

Convert a Double to String : M3

Since M3 java code is similar to RPG and use MvxString rather than String, here it is the code to convert/format numeric value to alpha value in M3.

   1:  this.PXNUM = dSUM;
   2:  this.PXALPH.clear();
   3:  SRCOMNUM.COMNUM();
   4:  WQT[tempIdx].moveRight(this.PXALPH);



In line number:


1. assign double value which is to be converted.
2. clear any previous value of PXALPH.
3. actual conversion . The SRCCOMNUM is an object of cSRCOMNUM class declared in mvx.app.util
4. gets converted alphanumeric value.


Let, dSUM= 38.05580 and if we want



  • to display dSUM with 2 decimal:

   1:  this.PXNUM = dSUM; 
   2:  this.PXALPH.clear();   
   3:  this.PXDCCD = 2; // setting number of decimals.
   4:  SRCOMNUM.COMNUM(); 
   5:  WQT[tempIdx].moveRight(this.PXALPH);




Output> 38.05






  • to display negative value: Here we have a option, to which character to be used for negative representations. (i.e. –38.05, (38.55), 38.05- etc)

   1:  this.PXNUM = dSUM; 
   2:  this.PXALPH.clear();   
   3:  this.PXDCCD = 2; 
   4:  SRCOMNUM.PXPNVB='('; // Left character if negative
   5:  SRCOMNUM.PXPNVA=')'; // Right character if negative
   6:  SRCOMNUM.COMNUM(); 
   7:  WQT[tempIdx].moveRight(this.PXALPH);






Output> (38.05)

Jan 24, 2013

Move to Movex (M3)

From 2012-12-10, I’ve engaged with M3 , development. Now, I’m playing Senior Technical Lead role.  But I’m still interesting .net development which is my core strength.

What is M3

It is an ERP (Enterprise Resource Planning) solution for, specially, the fashion industry known as Movex. Originally it was developed by Intentia, a Sweden company and somewhere around 2008 it was acquired by Lawson. In late 2012, Infor1 has acquired M3.

Technology

To discuss about the technology, it will take pages. In this post, I’m only going to talks about briefly.

  1. M3BE (M3 Business Engine) is the core component in M3. It is Java. It’s encapsulates ERP functionalities and Data Access Layer. Main data base is DB2, but new versions supports multiple data sources, including MS SQL server.
  2. ISO (Infor Smart Office)- is the front end for the users and client based application. It is WPF  (Microsoft Presentation Foundation) client application.

ISOFigure 1: Infor Smart Office

Mar 22, 2012

Enable PING in Windows 2008 R2

In MS Windows 2008R2 ping command dose not working unless you configure the inbound rule in Windows Firewall.

Steps

  1. “Start” –> “Administrative Tools” –> “Windows Firewall with Advanced Security”
  2. “Inbound Rules”-> “New Rule”
  3. image
  4. image
  5. Select “Allow the connection” –> [Finish].

Oct 31, 2011

Enterprise Single Sign-On Service Error:0x80131700

ESSO service cannot start and giving  error message,
Windows could not start the Enterprise Single Sign-On Service service on 
Local Computer.
Error 0x80131700: 0x80131700 


This is happens after installing .net 4.0 framework. This is known known issue and there is a hotfix to install.

The URL* is, Update for Microsoft Enterprise Single Sign-On v4 (KB2252691)


* last access: 2011-10-31 11:45AM

For more details
http://support.microsoft.com/kb/2252691