Hello,
I have asp code that is currently loading in a treegrid by calling an asp page that returns XML. My problem is that while it looks great, I need to format some columns by turning one into a link and other into an tag. My understanding is that I can only format the data prior to displaying it by using the beforerender method and that method is only available on the connector object. Are my assumptions correct so far?
If so, I need to totally change my asp code to use the connector object. I tried to use the render_sql method to call an Oracle stored procedure. Then I use the mygrid.loadXML(“mcmgetdata_connector.asp”) method to invoke it. Unfortunately I get an Invalid XML error when I load the page. Here is my mcmgetdata_connector.asp code:
<%
connDataSource=“CMSP”
connUserID=“login”
connPassword=“password”
objConnectionString = “Provider=OraOLEDB.Oracle.1;Password=” & connPassword & “;Persist Security Info=True;User ID=” & connUserID & “;Data Source=” & connDataSource
Dim res, strSQL
Set res = CreateObject(“ADODB.Connection”)
res.ConnectionString = objConnectionString
res.Open
Dim grid
Set grid = new Connector
grid.init TypeTreeGrid, res, “Oracle”, TypeUnspecified, TypeUnspecified
strSQL = “{ CALL bonus_sprocs.SelDirectReports2(50005,‘2010’) }”
grid.render_sql strSQL,“emp_id”,“last_name,first_name,salary_value,bonus_value_usd,bonus_value_usd_prev,direct_reports”,“”,“parentId”
%>
Thank you.
Melissa