What I'm needing to do it this: |
Re: Can I display the code behind a layout dxl column?
The following code is a snippet from somthing else I had - this will go through all views in the current module, identify which columns are DXL layout, put the DXl layout code into a buffer and then print the code.
Module m = current
string vName, dxlCode
string colTitle
int count = 0
Buffer dxlBuffer = create
ViewDef v
Column c
for vName in views m do {
load view vName
Column c
for c in m do {
if ((null attrName(c)) && (!main(c))) { //if no attr associated with col and is not a MAIN col, then must be DXL Layout col
dxlCode = dxl(c)
dxlBuffer = dxlCode
colTitle = title c
print "View Name [Column Title]: " vName " ["colTitle"]\n\n"
print dxlBuffer "\n*********************************************************\n\n"
setempty(dxlBuffer)
}//ENDOF if ((null attrName(c)) && (!main(c)))
}//ENDOF for c in m do
}//ENDOF for vName in views m do
Paul Miller
|
Re: Can I display the code behind a layout dxl column? SystemAdmin - Mon Mar 08 18:35:18 EST 2010
The following code is a snippet from somthing else I had - this will go through all views in the current module, identify which columns are DXL layout, put the DXl layout code into a buffer and then print the code.
Module m = current
string vName, dxlCode
string colTitle
int count = 0
Buffer dxlBuffer = create
ViewDef v
Column c
for vName in views m do {
load view vName
Column c
for c in m do {
if ((null attrName(c)) && (!main(c))) { //if no attr associated with col and is not a MAIN col, then must be DXL Layout col
dxlCode = dxl(c)
dxlBuffer = dxlCode
colTitle = title c
print "View Name [Column Title]: " vName " ["colTitle"]\n\n"
print dxlBuffer "\n*********************************************************\n\n"
setempty(dxlBuffer)
}//ENDOF if ((null attrName(c)) && (!main(c)))
}//ENDOF for c in m do
}//ENDOF for vName in views m do
Paul Miller
|