User bio
404 bio not found
Member since Aug 1
Posts:
Replies:
Also, is it possible to add a dropbox in the cells in the CoConsultant column to allow user to choose a CoConsultant. The data will be retrieved from a table. And the 'Include' column is to indicate whether the user wants to include the row of data in the data that will be placed in the table. In the documentation I saw a reference to selected row which used a checkbox fair;ly far down on this page; https://docs.intersystems.com/ens201817/csp/docbook/Doc.View.cls?KEY=GZC.... It had a picture of a data grid with checkboxes in the second column.
Thank you.
Robert, I finally got this figured out. I posted my complete solution. I use a Zen Page and a Zen standard Dialog.
Thanks for your time
Certifications & Credly badges:
David has no Certifications & Credly badges yet.
Global Masters badges:
David has no Global Masters badges yet.
Followers:
David has no followers yet.
Following:
David has not followed anybody yet.
For now I am skipping trying to get the column widths from the zen page property, columnWidths. I am hard coding the values in the dgRender method. I am using the below to change the column widths but the alerts are showing me that the first 3 columns are set but then dgRender (which is the target of the onrender property of the dynaGrid) is being called again. Not sure why this is happening.
ClientMethod dgRender(pGrid) [ Language = javascript ]
{
var colWidths = [300,110,110,200,160,60,300,100,50,60];
var dataSet = pGrid.getDataSet();
var maxrows = dataSet.getDimSize(1);
var maxcols = dataSet.getDimSize(2);
alert('dgRender:\n\n colWidths = ',colWidths);
for (var col=0; col<maxcols; col++) {
alert('dgRender:\n\n col = '+col+'\n colWidth = '+colWidths[col]);
pGrid.setColumnProperty(col, "columnWidth", colWidths[col]);
}
}
Thank you for your time.