× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Okey joe,

here is a simple number of parameters to a singe method/subprocedure in OO
javascript that defines a grid:

Do you wish to pass them to a subprocedure in RPGLE ?


// extTemplate: /powerEXT/STD/comboRPC.asp Tag: comboRPC_ExtJS3_grid
{header:"Field Name"
,width:65
,dataIndex:"XRXRID"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Application Id."
,width:97
,dataIndex:"XRXAID"
,align:"center"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/checkbox.asp Tag: checkbox_ExtJS3_grid
{header:"DB Field"
,width:60
,dataIndex:"XRXRDB"
,align:"center"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Description"
,width:200
,dataIndex:"XRFLDD"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/numeric.asp Tag: numeric_ExtJS3_grid
{header:"Field Length"
,width:78
,dataIndex:"XRFLDL"
,align:"right"
,sortable:true
,renderer:function(v)
{return Ext.util.Format.formatNumber(v,{
decimalSeparator:"."
,decimalPrecision:0
,groupingSeparator:","
,groupingSize:3
,currencySymbol:""
})}
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Field Type"
,width:65
,dataIndex:"XRFLDT"
,align:"center"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/numeric.asp Tag: numeric_ExtJS3_grid
{header:"Dec"
,width:30
,dataIndex:"XRFLDP"
,align:"center"
,sortable:true
,renderer:function(v)
{return Ext.util.Format.formatNumber(v,{
decimalSeparator:"."
,decimalPrecision:0
,groupingSeparator:","
,groupingSize:3
,currencySymbol:""
})}
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Edt Cd"
,width:40
,dataIndex:"XRFLDE"
,align:"center"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Editword"
,width:208
,dataIndex:"XRFLDW"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Field Date Format"
,width:110
,dataIndex:"XRFLDF"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Date Sep"
,width:110
,dataIndex:"XRFLDH"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Field Time Format"
,width:110
,dataIndex:"XRFLDG"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Time Sep"
,width:110
,dataIndex:"XRFLDI"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Heading 1"
,width:130
,dataIndex:"XRFLD1"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Heading 2"
,width:130
,dataIndex:"XRFLD2"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Heading 3"
,width:130
,dataIndex:"XRFLD3"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"UI Standard Template"
,width:136
,dataIndex:"XREXTT"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/checkbox.asp Tag: checkbox_ExtJS3_grid
{header:"UI Use Default Template"
,width:156
,dataIndex:"XREXTD"
,align:"center"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"UI Grid Header"
,width:325
,dataIndex:"XREXTG"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/numeric.asp Tag: numeric_ExtJS3_grid
{header:"UI Grid Width (pixels)"
,width:149
,dataIndex:"XREXTW"
,align:"right"
,sortable:true
,renderer:function(v)
{return Ext.util.Format.formatNumber(v,{
decimalSeparator:"."
,decimalPrecision:0
,groupingSeparator:","
,groupingSize:3
,currencySymbol:""
})}
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"UI Grid Edit Code"
,width:117
,dataIndex:"XREXTE"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"UI Grid Align"
,width:91
,dataIndex:"XREXTA"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"UI Form Text"
,width:325
,dataIndex:"XREXTP"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/numeric.asp Tag: numeric_ExtJS3_grid
{header:"UI Form Field Width (pixels)"
,width:188
,dataIndex:"XREXTQ"
,align:"right"
,sortable:true
,renderer:function(v)
{return Ext.util.Format.formatNumber(v,{
decimalSeparator:"."
,decimalPrecision:0
,groupingSeparator:","
,groupingSize:3
,currencySymbol:""
})}
}
,
// extTemplate: /powerEXT/STD/numeric.asp Tag: numeric_ExtJS3_grid
{header:"UI Form Key Field Width (pixels)"
,width:188
,dataIndex:"XREXTR"
,align:"right"
,sortable:true
,renderer:function(v)
{return Ext.util.Format.formatNumber(v,{
decimalSeparator:"."
,decimalPrecision:0
,groupingSeparator:","
,groupingSize:3
,currencySymbol:""
})}
}
,
// extTemplate: /powerEXT/STD/numeric.asp Tag: numeric_ExtJS3_grid
{header:"UI Form Field Hight (pixels)"
,width:188
,dataIndex:"XREXTS"
,align:"right"
,sortable:true
,renderer:function(v)
{return Ext.util.Format.formatNumber(v,{
decimalSeparator:"."
,decimalPrecision:0
,groupingSeparator:","
,groupingSize:3
,currencySymbol:""
})}
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"UI Form xType"
,width:130
,dataIndex:"XREXTX"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"UI Form vType"
,width:130
,dataIndex:"XREXTV"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Program name"
,width:78
,dataIndex:"XREXTZ"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Minimum value"
,width:97
,dataIndex:"XRVMIN"
,align:"right"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Maximum value"
,width:97
,dataIndex:"XRVMAX"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Field Name Override/Alias"
,width:65
,dataIndex:"XRXROV"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Intialize value"
,width:97
,dataIndex:"XRVINZ"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Insert value"
,width:97
,dataIndex:"XRVINS"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/alpha.asp Tag: alpha_ExtJS3_grid
{header:"Update value"
,width:97
,dataIndex:"XRVUPD"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Grid Value Reference Field"
,width:65
,dataIndex:"XRXRCB"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/checkbox.asp Tag: checkbox_ExtJS3_grid
{header:"Default Searchable"
,width:156
,dataIndex:"XRXRSA"
,align:"center"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/checkbox.asp Tag: checkbox_ExtJS3_grid
{header:"Default CSV Output"
,width:156
,dataIndex:"XRXRCS"
,align:"center"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Grid Default Type"
,width:97
,dataIndex:"XRXGTY"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/combo.asp Tag: combo_ExtJS3_grid
{header:"Form Default Type"
,width:97
,dataIndex:"XRXDTY"
,align:"left"
,sortable:true
}
,
// extTemplate: /powerEXT/STD/checkbox.asp Tag: checkbox_ExtJS3_grid
{header:"Form Default Mandatory"
,width:97
,dataIndex:"XRXDMA"
,align:"left"
,sortable:true
}

On Tue, Apr 5, 2011 at 8:54 PM, Joe Pluta <joepluta@xxxxxxxxxxxxxxxxx>wrote:

Henrik, I've kind of lost track of this conversation, although I
continue to read it because I love running across nuggets like this
one. I must admit that I can see how the prefixed commas are much more
readily identifiable than postfixed ones, and I'm pretty sure I
assimilate them better. Now, to be honest I'm not sure I care how
readable my JSON code is - I would hope that I don't have to read JSON
regularly - but this was definitely a nifty revelation and I'll bet I
will find a place to apply this knowledge at some point.

Joe

,resizable:true
,store:new Ext.data.SimpleStore({
fields:["XALNGC","select"]
,data:[
["da","da - Danish"]
,["de","de - German"]
,["en","en - English (US)"]
,["en_GB","en_GB - English (UK)"]
,["es","es - Spanish"]
,["fr","fr - French"]
,["it","it - Italian"]
,["nl","nl - Dutch"]
,["pt","pt - Portugese"]
]
})
,mode:"local"
,editable:true
,forceSelection:true
,hiddenName:"XALNGC"



<...>

Mihael, you may think I'm crazy bringing in LEAN psycologist into
programming, but just notise the "commas"
that is set in the front instead of the back in the above code - the
human
brain processes these commas in a
rate 3 times faster than if it was in the end of the statement if the
code
is hirachical structured - in 10 statements
you cannot hardly measure the diffence - but programmers during years has
to
read million of statements and suddenly
the time to mindmapping to code makes a difference.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.