Can I display the code behind a layout dxl column?

What I'm needing to do it this:

I have a dxl that lists all attributes, types and any enumerations and a few other things (colors, defaults, etc.). In this dxl I can get the actual code for any dxl attributes and any includes with no problems.

I also am writing a dxl that will list all of the views with their attributes and column titles. I can indicate whether or not the column is a layout dxl column, but I need to display the code that runs the layout dxl column and I can't seem to do this.

Can anyone help?

The current view code is attached.
lnorton - Mon Mar 08 18:05:10 EST 2010

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

 

 

Re: Can I display the code behind a layout dxl column?
lnorton - Tue Mar 09 15:47:24 EST 2010

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

 

 

Perfect, thanks!