[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: When you ask a webservice in JSON, what do you probably get back ?



   Hi, last time I was on that projects homepage, there was
   no JSON reading support, so sorry - there is a way to read
   JSON then.
   To answer some of the other questions ...
   There is a lot of web services that returns JSON, here is
   one of them ...
   http://code.google.com/intl/da/apis/maps/documentation/services.html
   Why didn't I use the mentioned tool in my work ? There is
   a simple explanation, I use CGIDEV2 and today I live in
   a WEB 2.0 world where huge complex HTML pages (with very
   little HTML) has to be constructed on the fly and with
   lees tha 10 minutes of programming.
   These includes HTML, JAVASCRIPT and JSON mixed together and
   requires CGIDEV2 template support and a lot of special API
   support that writes to the CGIDEV2 Responce object to be
   efficient.
   So I have to switch between HTML, JAVASCRIPT and JSON that
   all has different encodings and roules but the same hiracical
   structure.
   Construction of methods that combines it all is a
   challenge, here is a little example that combines
   JAVASCRIPT, JSON with included and internationalized
   translated HTML:
   echo('var jsonstore = {');
    jsonNode('*array':'data');
      jsonNode('*array');
        jsonNode('*string':'value':'sw');
        jsonNode('*string':'html'
          :htmlNode('p':'':i18n('Smith & Wesson':'en')));
      jsonEndNode();
      jsonNode('*array');
        jsonNode('*string':'value':'co');
        jsonNode('*string':'html'
          :htmlNode('p':'':i18n('Colt':'en')));
      jsonEndNode();
      jsonNode('*array');
        jsonNode('*string':'value':'re');
        jsonNode('*string':'html'
          :htmlNode('p':'':i18n('Remington':'en')));
      jsonEndNode();
      jsonNode('*array');
        jsonNode('*string':'value':'wi');
        jsonNode('*string':'html'
          :htmlNode('p':'':i18n('Winchester':'en')));
      jsonEndNode();
    jsonEndNode();
   echo('};');
   var jsonstore = {
   "data":[
           [
                   "value":"sw"
                   ,"html":"<p>Smidth &amp; Wesson</p>"
           ]
           ,[
                   "value":"co"
                   ,"html":"<p>Colt</p>"
           ]
           ,[
                   "value":"re"
                   ,"html":"<p>Remington</p>"
           ]
           ,[
                   "value":"wi"
                   ,"html":"<p>Winchester is a smoking gun, and this is
   translated by i18n support</p>"
           ]
   ]
   };
   To give you an idear of what a modern WEB 2.0 web page looks
   like I enclose an example page that has been generated by my
   API's by the following RPGLE statements:
   // Create Function
   setContent();

   echoExtHTML(pExtFunction:'start');
   setExtConfig('window.height':'650');
   setExtConfig('cgi.lib':'pextcgi');
   setExtConfig('cgi.db2rpc':'pxsvpxxr');
   echoExtConfig(pExtFunction);
   echoExtGrid(pExtFunction);
   echoExtForm(pExtFunction);
   echoExtHTML(pExtFunction:'end');

   // Send and Exit
   echoToClient();
   return;
   You should open the file in wordpad or notepad++ before it
   makes sence
   Regards
   Henrik

   "Schmidt, Mihael" <Mihael.Schmidt@xxxxxxxxxxx>
   Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx

   15-10-2009 08:11

                             Please respond to
        HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>

                                                                       To

   "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>

                                                                       cc

                                                                  Subject

   RE: When you ask a webservice in JSON, what do you probably get back ?

   Who says there is no way to read JSON on the i? Ever looked at
   http://rpgnextgen.com/index.php?content=json ?
   Example:
   http://rpgnextgen.com/downloads/json_par01.rpgle
       /**
        * \brief JSON Parser example
        *
        * Parses a JSON string and generates from the JSON object a new
        * JSON string.
        *
        * <br><br>
        *
        * The parser is quite tolerant. It accepts = instead of : .
   Quotes
   can be
        * either single or double quotes. ; is also accepted instead of ,
   .
        *
        * <br><br>
        *
        * <code>
        * { "Product number" : 186189 ,
        *   "Product description": "After Eight 200gr" ,
        *   "In stock" : 52455 ; ' +
        *   "Distribution lock" : False ,
        *   "Cost" = 1.235 ,
        *   "Supplier" = 358 ,
        *   "Category" = { "Id" : 15 , "Description": "Sweets"},
        *   "Product line" : [
        *       {"Sweets" = "120.1.1." } ,
        *       {"Chocolate" = "120.1.2" } ] ,
        *   "Assigned stocks" = [ ] ,
        *   "Assigned display" = {}
        *   }
        * </code>
        *
        * \author Mihael Schmidt
        * \date   13.03.2009
        */
       H dftactgrp(*no) actgrp(*caller)
       H bnddir('QC2LE')
   *---------------------------------------------------------------------
   --
   -
        * Prototypes
   *---------------------------------------------------------------------
   --
   -
        /copy JSON_H
        /copy JSON_C
   *---------------------------------------------------------------------
   --
   -
        * Variables
   *---------------------------------------------------------------------
   --
   -
       D json            S               *
       D string          S          65535A
       D json_string     S          65535A
        /free
         string = '{ "Product number" : 186189 , ' +
                    '"Product description": "After Eight 200gr" , ' +
                    '"In stock" : 52455 ; ' +
                    '"Distribution lock" : False , ' +
                    '"Cost" = 1.235 , ' +
                    '"Supplier" = 358 , ' +
                    '"Category" = { "Id" : 15 , "Description": "Sweets"},
   ' +
                    '"Product line" : [ ' +
                       '{"Sweets" = "120.1.1." } , ' +
                       '{"Chocolate" = "120.1.2" } ' +
                     '] , ' +
                    '"Assigned stocks" = [ ] ,' +
                    '"Assigned display" = {}  ' +
                    '} ' + x'00';
         json = json_parse(%addr(string));
         json_string = %str(json_toString(json));
         dsply %subst(json_string : 1 : 50);
         dsply %subst(json_string : 51 : 50);
         dsply %subst(json_string : 101 : 50);
         dsply %subst(json_string : 151 : 50);
         dsply %subst(json_string : 201 : 50);
         dsply %subst(json_string : 251 : 50);
         dsply %subst(json_string : 301 : 50);
         dsply %subst(json_string : 351 : 50);
         json_dispose(json);
         *inlr = *on;
         return;
        /end-free
   -----Original Message-----
   From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
   hr@xxxxxxxxxxxx
   Sent: Wednesday, October 14, 2009 10:30 PM
   To: HTTPAPI and FTPAPI Projects
   Subject: When you ask a webservice in JSON, what do you probably get
   back ?
   JSON ;-)
   and there is no way to read JSON on an iSeries,
   so I'm working on a new method that is able to
   convert a recieved JSON object to a XML document
   in the CGIDEV2 Responce Object ....
   Input:
   json = '{'
   + 'data:['
   + '[select:"Y",display:"Y - Yes"]'
   + '  ,[select:"N",display:"N - No"]'
   + ' ] }';
   Output:
   <tree1 type="object">
   <data type="array">
    <tree3 type="array">
     <select>Y</select>
     <display>Y - Yes</display>
    </tree3>
    <tree3 type="array">
     <select>N</select>
     <display>N - No</display>
    </tree3>
   </data>
   </tree1>
   It's a little bit tricky because JSON comes back
   in many formats and not always up to the standards
   descibed.
   But it can be done in rather few statements, and
   here is a first shot that in the end will be packed
   into PXAPICGI in a single method like
   convertJSONtoXML(addr:length);
    buffaddr = bufAddr();
    buffsize = bufSize();
   // do whatever you like
   First shot code:
   /free
    clearSrvPgm();
    setContent('*none');
    json = '{'
     + 'data:['
     + '[select:"Y",display:"Y - Yes"]'
     + '  ,[select:"N",display:"N - No"]'
     + ' ] }';
    // packed in method
    nodeDepth = 1;
    nodeLength = 256;
    for i = 1 to NodeLength;
      cPrev = c;
      c = %subst(json:i:1);
      if nodeOpen = *off;
        select;
          when c = *blank;
          when c = '"';
          when c = '{';
            nodeAttr = 'tree'+%char(nodeDepth);
            nodeArray(nodeDepth) = nodeAttr;
            xmlNode(nodeAttr:'type="object"');
            nodeAttr = '';
            nodeDepth += 1;
          when c = '}';
            nodeDepth -= 1;
            xmlEndNode();
          when c = '[';
            nodeAttr = 'tree'+%char(nodeDepth);
            nodeArray(nodeDepth) = nodeAttr;
            xmlNode(nodeAttr:'type="array"');
            nodeAttr = '';
            nodeDepth += 1;
          when c = ']';
            nodeDepth -= 1;
            xmlEndNode();
          when c = ':';
            nodeOpen = *on;
          when c = ',';
          other;
            nodeAttr += c;
        endsl;
      else;
        select;
          when nodeOpenC = *on;
            select;
              when c = '"' and cPrev = '\';
                nodeData += c;
              when c = '\' and cPrev = '\';
                nodeData += c;
              when c = '"'
               or c = ' ' and nodeOpenB = *on
               or c = ',' and nodeOpenB = *on;
                xmlNode(nodeAttr:'':nodeData);
                nodeAttr = '';
                nodeData = '';
                nodeOpen = *off;
                nodeOpenC = *off;
                nodeOpenB = *off;
              other;
                nodeData += c;
            endsl;
          when c = *blank;
          when c = '"';
            nodeOpenC = *on;
          // number, true, false, null
          when c >= '0' and c <= '9'
           or c = '-'
           or c = '.'
           or c = 't'
           or c = 'f'
           or c = 'n';
            nodeData += c;
            nodeOpenC = *on;
            nodeOpenB = *on;
          when c = '{';
            nodeArray(nodeDepth) = nodeAttr;
            xmlNode(nodeAttr:'type="object"');
            nodeAttr = '';
            nodeDepth += 1;
            nodeOpen = *off;
          when c = '}';
            nodeDepth -= 1;
            xmlEndNode();
          when c = '[';
            nodeArray(nodeDepth) = nodeAttr;
            xmlNode(nodeAttr:'type="array"');
            nodeAttr = '';
            nodeDepth += 1;
            nodeOpen = *off;
          when c = ']';
            nodeDepth -= 1;
            xmlEndNode();
          when c = ':';
          when c = ',';
          other;
        endsl;
      endif;
    endfor;
    // back on the outside again
    buffaddr = bufAddr();
    buffsize = bufSize();
    dsply result;
    echoToStmf('/json.xml':1252);
    *inlr = *on;
    return;
   /end-free
   ----------------------------------------------------------------------
   -
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   http://www.scottklement.com/mailman/listinfo/ftpapi
   ----------------------------------------------------------------------
   -
<html>
<head>

<title id="page-title">Central Metadata Model</title>

	<link rel="stylesheet" type="text/css" href="/ExtJs/ext-2.3.0/resources/css/ext-all.css" />
	<link rel="stylesheet" type="text/css" href="/ExtJs/ext-2.3.0/resources/css/xtheme-slate.css" id="theme" />

	<script src="/ExtJs/ext-2.3.0/adapter/ext/ext-base.js"></script>
	<script src="/ExtJs/ext-2.3.0/ext-all.js"></script>
	<script src="/ExtJs/ext-2.3.0/source/locale/ext-lang-en.js"></script>

	<script src="/powerEXT/powerExtUtil.js"></script>
	<script src="/powerEXT/pext-lang-en.js"></script>
	<script src="/powerEXT/pxStandardGridForm.js"></script>
	
	<script src="/ExtJs/ux/Ext.ux.form.XDateField.js"></script>

<script type="text/javascript">

// ------------------------------------------
// Inserted by powerEXT method: echoExtConfig
function pExtConfig(property,pdefault) {
	switch (property) {
		// Program Properties
		case 'window.height' : return 650;
		case 'cgi.lib' : return 'pextcgi';
		case 'cgi.db2rpc' : return 'pxsvpxxr';
		
		// System Properties
		case 'cgi.title' : return 'Central Metadata Model';
		case 'cgi.name' : return 'PXWKPXXR';
		case 'cgi.ses' : return '17247961601034483220091552571860';
		case 'cgi.req' : return '01285125121035424820091553571812';
		
		// Return Default Value
		default : return pdefault;
	}
}

// ----------------------------------------
// Inserted by powerEXT method: echoExtGrid
//   design: BASICGRID           
function pExtGrid() {
	return ([
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Field Name"
		,width:65
		,dataIndex:"XRXRID"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/combo.asp  Tag: combogrid
		{header:"Application Id."
		,width:97
		,dataIndex:"XRXAID"
		,align:"center"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Field Description"
		,width:200
		,dataIndex:"XRFLDD"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericgrid
		{header:"Field Length"
		,width:78
		,dataIndex:"XRFLDL"
		,align:"right"
		,renderer:function(v)
			{return Ext.util.Format.formatNumber(v,{
				decimalSeparator:"."
				,decimalPrecision:0
				,groupingSeparator:","
				,groupingSize:3
				,currencySymbol:""
			})}
		}
		,
		// extTemplate: /powerEXT/STD/combo.asp  Tag: combogrid
		{header:"Field Type"
		,width:65
		,dataIndex:"XRFLDT"
		,align:"center"
		}
		,
		// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericgrid
		{header:"Dec"
		,width:30
		,dataIndex:"XRFLDP"
		,align:"center"
		,renderer:function(v)
			{return Ext.util.Format.formatNumber(v,{
				decimalSeparator:"."
				,decimalPrecision:0
				,groupingSeparator:","
				,groupingSize:3
				,currencySymbol:""
			})}
		}
		,
		// extTemplate: /powerEXT/STD/combo.asp  Tag: combogrid
		{header:"Edt Cd"
		,width:40
		,dataIndex:"XRFLDE"
		,align:"center"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Field Editword"
		,width:208
		,dataIndex:"XRFLDW"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/combo.asp  Tag: combogrid
		{header:"Field Date Format"
		,width:110
		,dataIndex:"XRFLDF"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Field Heading 1"
		,width:130
		,dataIndex:"XRFLD1"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Field Heading 2"
		,width:130
		,dataIndex:"XRFLD2"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Field Heading 3"
		,width:130
		,dataIndex:"XRFLD3"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/combo.asp  Tag: combogrid
		{header:"Ext Standard Template"
		,width:136
		,dataIndex:"XREXTT"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/boolean.asp  Tag: booleangrid
		{header:"Ext Use Default Template"
		,width:156
		,dataIndex:"XREXTD"
		,align:"center"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Ext Grid Header"
		,width:325
		,dataIndex:"XREXTG"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericgrid
		{header:"Ext Grid Width (pixels)"
		,width:149
		,dataIndex:"XREXTW"
		,align:"right"
		,renderer:function(v)
			{return Ext.util.Format.formatNumber(v,{
				decimalSeparator:"."
				,decimalPrecision:0
				,groupingSeparator:","
				,groupingSize:3
				,currencySymbol:""
			})}
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Ext Grid Edit Code"
		,width:117
		,dataIndex:"XREXTE"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/combo.asp  Tag: combogrid
		{header:"Ext Grid Align"
		,width:91
		,dataIndex:"XREXTA"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Ext Form Text"
		,width:325
		,dataIndex:"XREXTP"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericgrid
		{header:"Ext Form Field Width (pixels)"
		,width:188
		,dataIndex:"XREXTQ"
		,align:"right"
		,renderer:function(v)
			{return Ext.util.Format.formatNumber(v,{
				decimalSeparator:"."
				,decimalPrecision:0
				,groupingSeparator:","
				,groupingSize:3
				,currencySymbol:""
			})}
		}
		,
		// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericgrid
		{header:"Ext Form Key Field Width (pixels)"
		,width:188
		,dataIndex:"XREXTR"
		,align:"right"
		,renderer:function(v)
			{return Ext.util.Format.formatNumber(v,{
				decimalSeparator:"."
				,decimalPrecision:0
				,groupingSeparator:","
				,groupingSize:3
				,currencySymbol:""
			})}
		}
		,
		// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericgrid
		{header:"Ext Form Field Hight (pixels)"
		,width:188
		,dataIndex:"XREXTS"
		,align:"right"
		,renderer:function(v)
			{return Ext.util.Format.formatNumber(v,{
				decimalSeparator:"."
				,decimalPrecision:0
				,groupingSeparator:","
				,groupingSize:3
				,currencySymbol:""
			})}
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Ext Form xType"
		,width:130
		,dataIndex:"XREXTX"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/combo.asp  Tag: combogrid
		{header:"Ext Form vType"
		,width:130
		,dataIndex:"XREXTV"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Program name"
		,width:78
		,dataIndex:"XREXTZ"
		,align:"left"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Minimum value"
		,width:97
		,dataIndex:"XRVMIN"
		,align:"right"
		}
		,
		// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphagrid
		{header:"Maximum value"
		,width:97
		,dataIndex:"XRVMAX"
		,align:"left"
		}
	]);
}

// ----------------------------------------
// Inserted by powerEXT method: echoExtForm
//   design: BASICFORM
function pExtForm(row, panelId, func) {

// var changeMode = row.data.RRN > 0 ? true : false;

// turn on validation errors beside the field globally
Ext.form.Field.prototype.msgTarget = 'side';

if(func == 'newRow') {
	var form = ([
	{xtype: 'tabpanel'
	,deferredRender: true
	,layoutOnTabChange: true
	,activeTab: 0
	,labelWidth: 200
	,baseCls:"x-plain"
	,defaults: {autoHeight:true,bodyStyle:'padding:10px'}
	,items: [
		{title: 'CDM Identification & DB2 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Name"
				,name:"XRXRID"
				,maxLength:"10"
				,allowBlank:false
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThis is an example on a quicktip"
				}		
			,
			// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Application Id."
				,name:"XRXAIDcombo"
				,width:250
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRXAID","select"]
					,data:[
						["PX","PX - powerEXT Application Framework"]
						,["US","US - Your Application"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRXAID"
				,valueField:"XRXAID"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
			,
			{xtype: 'fieldset'
			,title: 'DB2 Properties'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Description"
				,name:"XRFLDD"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Field Length"
				,name:"XRFLDL"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Field Type"
				,name:"XRFLDTcombo"
				,width:150
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDT","select"]
					,data:[
						["P","P - Packed Decimal"]
						,["S","S - Zoned Decimal"]
						,["A","A - Character"]
						,["D","D - Date"]
						,["Z","Z - Timestamp"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDT"
				,valueField:"XRFLDT"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Field no. of Decimals"
				,name:"XRFLDP"
				,width:16
				,maxLength:3
				,minValue:-99
				,maxValue:99
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Field Edit Code"
				,name:"XRFLDEcombo"
				,width:100
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDE","select"]
					,data:[
						["","No selection"]
						,["1","Editcode 1"]
						,["2","Editcode 2"]
						,["3","Editcode 3"]
						,["4","Editcode 4"]
						,["A","Editcode A"]
						,["B","Editcode B"]
						,["C","Editcode C"]
						,["D","Editcode D"]
						,["J","Editcode J"]
						,["K","Editcode K"]
						,["L","Editcode L"]
						,["M","Editcode M"]
						,["N","Editcode N"]
						,["O","Editcode O"]
						,["P","Editcode P"]
						,["Q","Editcode Q"]
						,["X","Editcode X"]
						,["Y","Editcode Y"]
						,["Z","Editcode Z"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDE"
				,valueField:"XRFLDE"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Editword"
				,name:"XRFLDW"
				,maxLength:"32"
				,width:256
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Field Date Format"
				,name:"XRFLDFcombo"
				,width:200
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDF","select"]
					,data:[
						["","No selection"]
						,["*DMY","*DMY - Day/Month/Year"]
						,["*MDY","*MDY - Month/Day/Year"]
						,["*YMD","*YMD - Year/Month/Day"]
						,["*ISO","*ISO - International Standard"]
						,["*USA","*USA - IBM USA Standard"]
						,["*EUR","*EUR - IBM European Standard"]
						,["*JIS","*JIS - Japanese Industrial Standard"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDF"
				,valueField:"XRFLDF"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThe date type must be specified on L type fields and may be specified on numeric field when the numeric field has a date in it."
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'SQL & Query Heading'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Heading 1"
				,name:"XRFLD1"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Heading 2"
				,name:"XRFLD2"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Heading 3"
				,name:"XRFLD3"
				,maxLength:"20"
				,allowBlank:false
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
			]}
		]}
			,
		{title: 'Ext JS WEB 2.0 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Template'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Ext Standard Template"
				,name:"XREXTTcombo"
				,width:120
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTT","select"]
					,data:[
						["alpha","Alpha"]
						,["numeric","Numeric"]
						,["date","Date"]
						,["textarea","Textarea"]
						,["boolean","Boolean 1/0"]
						,["booleanYN","Boolean Y/N"]
						,["combo","Combo Box"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTT"
				,valueField:"XREXTT"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>The template referres to the standard templates in powerEXT. If you select the Combo Box, you either have to specify the values in powerEXT Combo Values under powerEXT System Management or refer to a program that generates a JSON array with values.\n\n<p>&nbsp;<p><b>Please note:</b><p>\nThe templates is under constant development !\n"
				}
				,
				// extTemplate: /powerEXT/STD/boolean.asp  Tag: booleanmandatory
				{fieldLabel:"Ext Use Default Template"
				,name:"XREXTDcombo"
				,width:80
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTD","select"]
					,data:[
						["1",i18n('1 - True')]
						,["0",i18n('0 - False')]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTD"
				,valueField:"XREXTD"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Grid Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Ext Grid Header"
				,name:"XREXTG"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Grid Width (pixels)"
				,name:"XREXTW"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Ext Grid Edit Code"
				,name:"XREXTE"
				,maxLength:"10"
				,width:80
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Ext Grid Align"
				,name:"XREXTAcombo"
				,width:140
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTA","select"]
					,data:[
						["","No selection"]
						,["left","Left aligned"]
						,["right","Right aligned"]
						,["center","Centered"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTA"
				,valueField:"XREXTA"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Form Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Ext Form Text"
				,name:"XREXTP"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Field Width (pixels)"
				,name:"XREXTQ"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Key Field Width (pixels)"
				,name:"XREXTR"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Field Hight (pixels)"
				,name:"XREXTS"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Ext Form xType"
				,name:"XREXTX"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Ext Form vType"
				,name:"XREXTVcombo"
				,width:160
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTV","select"]
					,data:[
						["","No selection"]
						,["touppercase","Upper Case Only Field"]
						,["tolowercase","Lower Case Only Field"]
						,["alpha","Alpha Only Field"]
						,["alphanum","AlphaNum Only Field"]
						,["email","E-mail Address"]
						,["url","http:// URL Field"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTV"
				,valueField:"XREXTV"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Program name"
				,name:"XREXTZ"
				,maxLength:"10"
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:""
				}		
			]}
		]}
			,
		{title: 'Numeric Check Values'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Numeric Values'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Minimum value"
				,name:"XRVMIN"
				,maxLength:"40"
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Maximum value"
				,name:"XRVMAX"
				,maxLength:"40"
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}		
			]}
		]}
	]}]);
};
if(func == 'edtRow') {
	var form = ([
	{xtype: 'tabpanel'
	,deferredRender: true
	,layoutOnTabChange: true
	,activeTab: 0
	,labelWidth: 200
	,baseCls:"x-plain"
	,defaults: {autoHeight:true,bodyStyle:'padding:10px'}
	,items: [
		{title: 'CDM Identification & DB2 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Name"
				,name:"XRXRID"
				,maxLength:"10"
				,allowBlank:false
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThis is an example on a quicktip"
				}		
			,
			// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Application Id."
				,name:"XRXAIDcombo"
				,width:250
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRXAID","select"]
					,data:[
						["PX","PX - powerEXT Application Framework"]
						,["US","US - Your Application"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRXAID"
				,valueField:"XRXAID"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
			,
			{xtype: 'fieldset'
			,title: 'DB2 Properties'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Description"
				,name:"XRFLDD"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Field Length"
				,name:"XRFLDL"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Field Type"
				,name:"XRFLDTcombo"
				,width:150
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDT","select"]
					,data:[
						["P","P - Packed Decimal"]
						,["S","S - Zoned Decimal"]
						,["A","A - Character"]
						,["D","D - Date"]
						,["Z","Z - Timestamp"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDT"
				,valueField:"XRFLDT"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Field no. of Decimals"
				,name:"XRFLDP"
				,width:16
				,maxLength:3
				,minValue:-99
				,maxValue:99
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Field Edit Code"
				,name:"XRFLDEcombo"
				,width:100
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDE","select"]
					,data:[
						["","No selection"]
						,["1","Editcode 1"]
						,["2","Editcode 2"]
						,["3","Editcode 3"]
						,["4","Editcode 4"]
						,["A","Editcode A"]
						,["B","Editcode B"]
						,["C","Editcode C"]
						,["D","Editcode D"]
						,["J","Editcode J"]
						,["K","Editcode K"]
						,["L","Editcode L"]
						,["M","Editcode M"]
						,["N","Editcode N"]
						,["O","Editcode O"]
						,["P","Editcode P"]
						,["Q","Editcode Q"]
						,["X","Editcode X"]
						,["Y","Editcode Y"]
						,["Z","Editcode Z"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDE"
				,valueField:"XRFLDE"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Editword"
				,name:"XRFLDW"
				,maxLength:"32"
				,width:256
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Field Date Format"
				,name:"XRFLDFcombo"
				,width:200
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDF","select"]
					,data:[
						["","No selection"]
						,["*DMY","*DMY - Day/Month/Year"]
						,["*MDY","*MDY - Month/Day/Year"]
						,["*YMD","*YMD - Year/Month/Day"]
						,["*ISO","*ISO - International Standard"]
						,["*USA","*USA - IBM USA Standard"]
						,["*EUR","*EUR - IBM European Standard"]
						,["*JIS","*JIS - Japanese Industrial Standard"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDF"
				,valueField:"XRFLDF"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThe date type must be specified on L type fields and may be specified on numeric field when the numeric field has a date in it."
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'SQL & Query Heading'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Heading 1"
				,name:"XRFLD1"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Heading 2"
				,name:"XRFLD2"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Heading 3"
				,name:"XRFLD3"
				,maxLength:"20"
				,allowBlank:false
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
			]}
		]}
			,
		{title: 'Ext JS WEB 2.0 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Template'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Ext Standard Template"
				,name:"XREXTTcombo"
				,width:120
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTT","select"]
					,data:[
						["alpha","Alpha"]
						,["numeric","Numeric"]
						,["date","Date"]
						,["textarea","Textarea"]
						,["boolean","Boolean 1/0"]
						,["booleanYN","Boolean Y/N"]
						,["combo","Combo Box"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTT"
				,valueField:"XREXTT"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>The template referres to the standard templates in powerEXT. If you select the Combo Box, you either have to specify the values in powerEXT Combo Values under powerEXT System Management or refer to a program that generates a JSON array with values.\n\n<p>&nbsp;<p><b>Please note:</b><p>\nThe templates is under constant development !\n"
				}
				,
				// extTemplate: /powerEXT/STD/boolean.asp  Tag: booleanmandatory
				{fieldLabel:"Ext Use Default Template"
				,name:"XREXTDcombo"
				,width:80
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTD","select"]
					,data:[
						["1",i18n('1 - True')]
						,["0",i18n('0 - False')]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTD"
				,valueField:"XREXTD"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Grid Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Ext Grid Header"
				,name:"XREXTG"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Grid Width (pixels)"
				,name:"XREXTW"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Ext Grid Edit Code"
				,name:"XREXTE"
				,maxLength:"10"
				,width:80
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Ext Grid Align"
				,name:"XREXTAcombo"
				,width:140
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTA","select"]
					,data:[
						["","No selection"]
						,["left","Left aligned"]
						,["right","Right aligned"]
						,["center","Centered"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTA"
				,valueField:"XREXTA"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Form Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Ext Form Text"
				,name:"XREXTP"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Field Width (pixels)"
				,name:"XREXTQ"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Key Field Width (pixels)"
				,name:"XREXTR"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Field Hight (pixels)"
				,name:"XREXTS"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Ext Form xType"
				,name:"XREXTX"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Ext Form vType"
				,name:"XREXTVcombo"
				,width:160
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTV","select"]
					,data:[
						["","No selection"]
						,["touppercase","Upper Case Only Field"]
						,["tolowercase","Lower Case Only Field"]
						,["alpha","Alpha Only Field"]
						,["alphanum","AlphaNum Only Field"]
						,["email","E-mail Address"]
						,["url","http:// URL Field"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTV"
				,valueField:"XREXTV"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Program name"
				,name:"XREXTZ"
				,maxLength:"10"
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:""
				}		
			]}
		]}
			,
		{title: 'Numeric Check Values'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Numeric Values'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Minimum value"
				,name:"XRVMIN"
				,maxLength:"40"
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Maximum value"
				,name:"XRVMAX"
				,maxLength:"40"
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}		
			]}
		]}
	]}]);
};
if(func == 'cpyRow') {
	var form = ([
	{xtype: 'tabpanel'
	,deferredRender: true
	,layoutOnTabChange: true
	,activeTab: 0
	,labelWidth: 200
	,baseCls:"x-plain"
	,defaults: {autoHeight:true,bodyStyle:'padding:10px'}
	,items: [
		{title: 'CDM Identification & DB2 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Name"
				,name:"XRXRID"
				,maxLength:"10"
				,allowBlank:false
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThis is an example on a quicktip"
				}		
			,
			// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Application Id."
				,name:"XRXAIDcombo"
				,width:250
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRXAID","select"]
					,data:[
						["PX","PX - powerEXT Application Framework"]
						,["US","US - Your Application"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRXAID"
				,valueField:"XRXAID"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
			,
			{xtype: 'fieldset'
			,title: 'DB2 Properties'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Description"
				,name:"XRFLDD"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Field Length"
				,name:"XRFLDL"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Field Type"
				,name:"XRFLDTcombo"
				,width:150
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDT","select"]
					,data:[
						["P","P - Packed Decimal"]
						,["S","S - Zoned Decimal"]
						,["A","A - Character"]
						,["D","D - Date"]
						,["Z","Z - Timestamp"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDT"
				,valueField:"XRFLDT"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Field no. of Decimals"
				,name:"XRFLDP"
				,width:16
				,maxLength:3
				,minValue:-99
				,maxValue:99
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Field Edit Code"
				,name:"XRFLDEcombo"
				,width:100
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDE","select"]
					,data:[
						["","No selection"]
						,["1","Editcode 1"]
						,["2","Editcode 2"]
						,["3","Editcode 3"]
						,["4","Editcode 4"]
						,["A","Editcode A"]
						,["B","Editcode B"]
						,["C","Editcode C"]
						,["D","Editcode D"]
						,["J","Editcode J"]
						,["K","Editcode K"]
						,["L","Editcode L"]
						,["M","Editcode M"]
						,["N","Editcode N"]
						,["O","Editcode O"]
						,["P","Editcode P"]
						,["Q","Editcode Q"]
						,["X","Editcode X"]
						,["Y","Editcode Y"]
						,["Z","Editcode Z"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDE"
				,valueField:"XRFLDE"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Editword"
				,name:"XRFLDW"
				,maxLength:"32"
				,width:256
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Field Date Format"
				,name:"XRFLDFcombo"
				,width:200
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDF","select"]
					,data:[
						["","No selection"]
						,["*DMY","*DMY - Day/Month/Year"]
						,["*MDY","*MDY - Month/Day/Year"]
						,["*YMD","*YMD - Year/Month/Day"]
						,["*ISO","*ISO - International Standard"]
						,["*USA","*USA - IBM USA Standard"]
						,["*EUR","*EUR - IBM European Standard"]
						,["*JIS","*JIS - Japanese Industrial Standard"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDF"
				,valueField:"XRFLDF"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThe date type must be specified on L type fields and may be specified on numeric field when the numeric field has a date in it."
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'SQL & Query Heading'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Heading 1"
				,name:"XRFLD1"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Field Heading 2"
				,name:"XRFLD2"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Field Heading 3"
				,name:"XRFLD3"
				,maxLength:"20"
				,allowBlank:false
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
			]}
		]}
			,
		{title: 'Ext JS WEB 2.0 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Template'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combomandatory
				{fieldLabel:"Ext Standard Template"
				,name:"XREXTTcombo"
				,width:120
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTT","select"]
					,data:[
						["alpha","Alpha"]
						,["numeric","Numeric"]
						,["date","Date"]
						,["textarea","Textarea"]
						,["boolean","Boolean 1/0"]
						,["booleanYN","Boolean Y/N"]
						,["combo","Combo Box"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTT"
				,valueField:"XREXTT"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>The template referres to the standard templates in powerEXT. If you select the Combo Box, you either have to specify the values in powerEXT Combo Values under powerEXT System Management or refer to a program that generates a JSON array with values.\n\n<p>&nbsp;<p><b>Please note:</b><p>\nThe templates is under constant development !\n"
				}
				,
				// extTemplate: /powerEXT/STD/boolean.asp  Tag: booleanmandatory
				{fieldLabel:"Ext Use Default Template"
				,name:"XREXTDcombo"
				,width:80
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTD","select"]
					,data:[
						["1",i18n('1 - True')]
						,["0",i18n('0 - False')]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTD"
				,valueField:"XREXTD"
				,displayField:"select"
				,triggerAction:"all"
				,allowBlank:false
				,qtip:""
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Grid Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Ext Grid Header"
				,name:"XREXTG"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Grid Width (pixels)"
				,name:"XREXTW"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Ext Grid Edit Code"
				,name:"XREXTE"
				,maxLength:"10"
				,width:80
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Ext Grid Align"
				,name:"XREXTAcombo"
				,width:140
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTA","select"]
					,data:[
						["","No selection"]
						,["left","Left aligned"]
						,["right","Right aligned"]
						,["center","Centered"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTA"
				,valueField:"XREXTA"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Form Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphamandatory
				{fieldLabel:"Ext Form Text"
				,name:"XREXTP"
				,maxLength:"50"
				,allowBlank:false
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Field Width (pixels)"
				,name:"XREXTQ"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Key Field Width (pixels)"
				,name:"XREXTR"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericmandatory
				new Ext.form.NumberField(
				{fieldLabel:"Ext Form Field Hight (pixels)"
				,name:"XREXTS"
				,width:40
				,maxLength:6
				,minValue:-99999
				,maxValue:99999
				,decimalPrecision:0
				,allowBlank:false
				,xtype:""
				,vtype:""
				,qtip:""
				})
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Ext Form xType"
				,name:"XREXTX"
				,maxLength:"20"
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combooptional
				{fieldLabel:"Ext Form vType"
				,name:"XREXTVcombo"
				,width:160
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTV","select"]
					,data:[
						["","No selection"]
						,["touppercase","Upper Case Only Field"]
						,["tolowercase","Lower Case Only Field"]
						,["alpha","Alpha Only Field"]
						,["alphanum","AlphaNum Only Field"]
						,["email","E-mail Address"]
						,["url","http:// URL Field"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTV"
				,valueField:"XREXTV"
				,displayField:"select"
				,triggerAction:"all"
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Program name"
				,name:"XREXTZ"
				,maxLength:"10"
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:""
				}		
			]}
		]}
			,
		{title: 'Numeric Check Values'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Numeric Values'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Minimum value"
				,name:"XRVMIN"
				,maxLength:"40"
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}		
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphaoptional
				{fieldLabel:"Maximum value"
				,name:"XRVMAX"
				,maxLength:"40"
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}		
			]}
		]}
	]}]);
};
if(func == 'dltRow') {
	var form = ([
	{xtype: 'tabpanel'
	,deferredRender: true
	,layoutOnTabChange: true
	,activeTab: 0
	,labelWidth: 200
	,baseCls:"x-plain"
	,defaults: {autoHeight:true,bodyStyle:'padding:10px'}
	,items: [
		{title: 'CDM Identification & DB2 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Name"
				,name:"XRXRID"
				,disabled:true
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThis is an example on a quicktip"
				}
			,
			// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Application Id."
				,name:"XRXAIDcombo"
				,width:250
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRXAID","select"]
					,data:[
						["","No selection"]
						,["PX","PX - powerEXT Application Framework"]
						,["US","US - Your Application"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRXAID"
				,valueField:"XRXAID"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			,
			{xtype: 'fieldset'
			,title: 'DB2 Properties'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Description"
				,name:"XRFLDD"
				,disabled:true
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Field Length"
				,name:"XRFLDL"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Field Type"
				,name:"XRFLDTcombo"
				,width:150
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDT","select"]
					,data:[
						["","No selection"]
						,["P","P - Packed Decimal"]
						,["S","S - Zoned Decimal"]
						,["A","A - Character"]
						,["D","D - Date"]
						,["Z","Z - Timestamp"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDT"
				,valueField:"XRFLDT"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Field no. of Decimals"
				,name:"XRFLDP"
				,width:16
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Field Edit Code"
				,name:"XRFLDEcombo"
				,width:100
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDE","select"]
					,data:[
						["","No selection"]
						,["1","Editcode 1"]
						,["2","Editcode 2"]
						,["3","Editcode 3"]
						,["4","Editcode 4"]
						,["A","Editcode A"]
						,["B","Editcode B"]
						,["C","Editcode C"]
						,["D","Editcode D"]
						,["J","Editcode J"]
						,["K","Editcode K"]
						,["L","Editcode L"]
						,["M","Editcode M"]
						,["N","Editcode N"]
						,["O","Editcode O"]
						,["P","Editcode P"]
						,["Q","Editcode Q"]
						,["X","Editcode X"]
						,["Y","Editcode Y"]
						,["Z","Editcode Z"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDE"
				,valueField:"XRFLDE"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Editword"
				,name:"XRFLDW"
				,disabled:true
				,width:256
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Field Date Format"
				,name:"XRFLDFcombo"
				,width:200
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDF","select"]
					,data:[
						["","No selection"]
						,["*DMY","*DMY - Day/Month/Year"]
						,["*MDY","*MDY - Month/Day/Year"]
						,["*YMD","*YMD - Year/Month/Day"]
						,["*ISO","*ISO - International Standard"]
						,["*USA","*USA - IBM USA Standard"]
						,["*EUR","*EUR - IBM European Standard"]
						,["*JIS","*JIS - Japanese Industrial Standard"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDF"
				,valueField:"XRFLDF"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'SQL & Query Heading'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Heading 1"
				,name:"XRFLD1"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Heading 2"
				,name:"XRFLD2"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Heading 3"
				,name:"XRFLD3"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
			]}
		]}
			,
		{title: 'Ext JS WEB 2.0 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Template'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Ext Standard Template"
				,name:"XREXTTcombo"
				,width:120
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTT","select"]
					,data:[
						["","No selection"]
						,["alpha","Alpha"]
						,["numeric","Numeric"]
						,["date","Date"]
						,["textarea","Textarea"]
						,["boolean","Boolean 1/0"]
						,["booleanYN","Boolean Y/N"]
						,["combo","Combo Box"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTT"
				,valueField:"XREXTT"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/boolean.asp  Tag: booleandisplay
				{fieldLabel:"Ext Use Default Template"
				,name:"XREXTDcombo"
				,width:80
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTD","select"]
					,data:[
						["1",i18n('1 - True')]
						,["0",i18n('0 - False')]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTD"
				,valueField:"XREXTD"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Grid Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Grid Header"
				,name:"XREXTG"
				,disabled:true
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Grid Width (pixels)"
				,name:"XREXTW"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Grid Edit Code"
				,name:"XREXTE"
				,disabled:true
				,width:80
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Ext Grid Align"
				,name:"XREXTAcombo"
				,width:140
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTA","select"]
					,data:[
						["","No selection"]
						,["left","Left aligned"]
						,["right","Right aligned"]
						,["center","Centered"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTA"
				,valueField:"XREXTA"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Form Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Form Text"
				,name:"XREXTP"
				,disabled:true
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Form Field Width (pixels)"
				,name:"XREXTQ"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Form Key Field Width (pixels)"
				,name:"XREXTR"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Form Field Hight (pixels)"
				,name:"XREXTS"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Form xType"
				,name:"XREXTX"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Ext Form vType"
				,name:"XREXTVcombo"
				,width:160
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTV","select"]
					,data:[
						["","No selection"]
						,["touppercase","Upper Case Only Field"]
						,["tolowercase","Lower Case Only Field"]
						,["alpha","Alpha Only Field"]
						,["alphanum","AlphaNum Only Field"]
						,["email","E-mail Address"]
						,["url","http:// URL Field"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTV"
				,valueField:"XREXTV"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Program name"
				,name:"XREXTZ"
				,disabled:true
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:""
				}
			]}
		]}
			,
		{title: 'Numeric Check Values'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Numeric Values'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Minimum value"
				,name:"XRVMIN"
				,disabled:true
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Maximum value"
				,name:"XRVMAX"
				,disabled:true
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}
			]}
		]}
	]}]);
};
if(func == 'dspRow') {
	var form = ([
	{xtype: 'tabpanel'
	,deferredRender: true
	,layoutOnTabChange: true
	,activeTab: 0
	,labelWidth: 200
	,baseCls:"x-plain"
	,defaults: {autoHeight:true,bodyStyle:'padding:10px'}
	,items: [
		{title: 'CDM Identification & DB2 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Name"
				,name:"XRXRID"
				,disabled:true
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:"<img src=\"/silk/icons/help.png\" />\n<b>Quick Tip:</b><p>\nThis is an example on a quicktip"
				}
			,
			// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Application Id."
				,name:"XRXAIDcombo"
				,width:250
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRXAID","select"]
					,data:[
						["","No selection"]
						,["PX","PX - powerEXT Application Framework"]
						,["US","US - Your Application"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRXAID"
				,valueField:"XRXAID"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			,
			{xtype: 'fieldset'
			,title: 'DB2 Properties'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Description"
				,name:"XRFLDD"
				,disabled:true
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Field Length"
				,name:"XRFLDL"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Field Type"
				,name:"XRFLDTcombo"
				,width:150
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDT","select"]
					,data:[
						["","No selection"]
						,["P","P - Packed Decimal"]
						,["S","S - Zoned Decimal"]
						,["A","A - Character"]
						,["D","D - Date"]
						,["Z","Z - Timestamp"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDT"
				,valueField:"XRFLDT"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Field no. of Decimals"
				,name:"XRFLDP"
				,width:16
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Field Edit Code"
				,name:"XRFLDEcombo"
				,width:100
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDE","select"]
					,data:[
						["","No selection"]
						,["1","Editcode 1"]
						,["2","Editcode 2"]
						,["3","Editcode 3"]
						,["4","Editcode 4"]
						,["A","Editcode A"]
						,["B","Editcode B"]
						,["C","Editcode C"]
						,["D","Editcode D"]
						,["J","Editcode J"]
						,["K","Editcode K"]
						,["L","Editcode L"]
						,["M","Editcode M"]
						,["N","Editcode N"]
						,["O","Editcode O"]
						,["P","Editcode P"]
						,["Q","Editcode Q"]
						,["X","Editcode X"]
						,["Y","Editcode Y"]
						,["Z","Editcode Z"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDE"
				,valueField:"XRFLDE"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Editword"
				,name:"XRFLDW"
				,disabled:true
				,width:256
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Field Date Format"
				,name:"XRFLDFcombo"
				,width:200
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XRFLDF","select"]
					,data:[
						["","No selection"]
						,["*DMY","*DMY - Day/Month/Year"]
						,["*MDY","*MDY - Month/Day/Year"]
						,["*YMD","*YMD - Year/Month/Day"]
						,["*ISO","*ISO - International Standard"]
						,["*USA","*USA - IBM USA Standard"]
						,["*EUR","*EUR - IBM European Standard"]
						,["*JIS","*JIS - Japanese Industrial Standard"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XRFLDF"
				,valueField:"XRFLDF"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'SQL & Query Heading'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Heading 1"
				,name:"XRFLD1"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Heading 2"
				,name:"XRFLD2"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Field Heading 3"
				,name:"XRFLD3"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
			]}
		]}
			,
		{title: 'Ext JS WEB 2.0 Properties'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Template'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Ext Standard Template"
				,name:"XREXTTcombo"
				,width:120
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTT","select"]
					,data:[
						["","No selection"]
						,["alpha","Alpha"]
						,["numeric","Numeric"]
						,["date","Date"]
						,["textarea","Textarea"]
						,["boolean","Boolean 1/0"]
						,["booleanYN","Boolean Y/N"]
						,["combo","Combo Box"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTT"
				,valueField:"XREXTT"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/boolean.asp  Tag: booleandisplay
				{fieldLabel:"Ext Use Default Template"
				,name:"XREXTDcombo"
				,width:80
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTD","select"]
					,data:[
						["1",i18n('1 - True')]
						,["0",i18n('0 - False')]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTD"
				,valueField:"XREXTD"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Grid Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Grid Header"
				,name:"XREXTG"
				,disabled:true
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Grid Width (pixels)"
				,name:"XREXTW"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Grid Edit Code"
				,name:"XREXTE"
				,disabled:true
				,width:80
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Ext Grid Align"
				,name:"XREXTAcombo"
				,width:140
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTA","select"]
					,data:[
						["","No selection"]
						,["left","Left aligned"]
						,["right","Right aligned"]
						,["center","Centered"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTA"
				,valueField:"XREXTA"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
			]}
			,
			{xtype: 'fieldset'
			,title: 'Ext JS Form Definition'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Form Text"
				,name:"XREXTP"
				,disabled:true
				,width:365
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Form Field Width (pixels)"
				,name:"XREXTQ"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Form Key Field Width (pixels)"
				,name:"XREXTR"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/numeric.asp  Tag: numericdisplay
				{fieldLabel:"Ext Form Field Hight (pixels)"
				,name:"XREXTS"
				,width:40
				,disabled:true
				,xtype:"numberfield"
				,vtype:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Ext Form xType"
				,name:"XREXTX"
				,disabled:true
				,width:160
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/combo.asp  Tag: combodisplay
				{fieldLabel:"Ext Form vType"
				,name:"XREXTVcombo"
				,width:160
				,xtype:"combo"
				,store:new Ext.data.SimpleStore({
					fields:["XREXTV","select"]
					,data:[
						["","No selection"]
						,["touppercase","Upper Case Only Field"]
						,["tolowercase","Lower Case Only Field"]
						,["alpha","Alpha Only Field"]
						,["alphanum","AlphaNum Only Field"]
						,["email","E-mail Address"]
						,["url","http:// URL Field"]
					]
				})
				,mode:"local"
				,editable:true
				,forceSelection:true
				,hiddenName:"XREXTV"
				,valueField:"XREXTV"
				,displayField:"select"
				,triggerAction:"all"
				,disabled:true
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Program name"
				,name:"XREXTZ"
				,disabled:true
				,width:80
				,xtype:""
				,vtype:"touppercase"
				,qtip:""
				}
			]}
		]}
			,
		{title: 'Numeric Check Values'
		,layout:'form'
		,baseCls:"x-plain"
		,defaultType: 'textfield'
		,items: [
			{xtype: 'hidden'
			,name: 'panelId'
			,value: panelId}
			,
			{xtype: 'fieldset'
			,title: 'Numeric Values'
			,autoHeight: true
			,width: getProperty('fieldset.width')
			,defaultType: 'textfield'
			,items: [
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Minimum value"
				,name:"XRVMIN"
				,disabled:true
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}
				,
				// extTemplate: /powerEXT/STD/alpha.asp  Tag: alphadisplay
				{fieldLabel:"Maximum value"
				,name:"XRVMAX"
				,disabled:true
				,width:120
				,xtype:""
				,vtype:""
				,qtip:""
				}
			]}
		]}
	]}]);
};

return(form);
}
	
Ext.onReady(function(){
	Ext.util.CSS.swapStyleSheet('theme', pxGetTheme('/ExtJs/ext-2.3.0/resources/css/'));
	application();
});
	
</script>
</head>
<body>
	     <div id="grid-panel" class="x-grid-xxx" style="border: 0px solid #c3daf9; overflow: hidden;  padding:0 0 0 0;"></div>
</body>
</html>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------