Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - russellr

Pages: [1]
Help for ParamQuery Pro / cellBeforeSave or beforeCellSave
« on: October 12, 2017, 11:50:44 pm »
I noticed that the name of cellBeforeSave() has been changed in the V4 Documentation, however the actual function name has not been change in the V4 code.

Which one is correct?   

Help for ParamQuery Pro / Issues with mapIndices
« on: March 10, 2017, 10:35:14 pm »
One problem I notice when using the mapIndices is that even though I am only interested in one value I must define both indies or throws an error.    Example follows.

                   colModel : [
                        { dataType:"string",  dataIndx:"null", editable: false,  hidden:true },
                        { title: "Business Unit", width: "25%", dataIndx: "business_unit_id", editable: true,
                            editor: {
                                type: "select",
                                labelIndx : "name",
                                valueIndx : "id",
                                mapIndices: { "id":"business_unit_id",  "name":"null" },      <--------
                                prepend : {"0":"All Business Units"},
                                options: function (ui){
                                    var filteredList = [];
                                    var colValue = parseInt( ui.rowData['group_id'] );
                                    dataBusinessList.forEach( function(item, index, array) {
                                        if( item.group_id == colValue ) filteredList.push(item);
                                    return filteredList;
                            render: function(ui) {
                                var v = parseInt( ui.rowData['business_unit_id'] );
                                if( v == 0 ) return "All Business Units";

                                var i = jsonQ.index( dataBusinessList, { "id" : v }, true );
                                if( i >= 0 )
                                    return "Invalid Business Unit Id";

This example is part of a cascading set of drop-down list and it works.   However I must specify a (throw away) column to put the unwanted "name" value in or the code will generate an error.   If I just use " mapIndices: { "id":"business_unit_id"} " it will throw an exception.   I wish it would only process the indices defined within the parameter.

I have traced the issue to line 5616 in  "newRow" contains both indices even though I only specified one in mapIndices.    It would be nice, if you specified mapIndices it would only processes the ones you specify.


Help for ParamQuery Pro / Identical Tables Resize differently
« on: August 02, 2016, 11:29:07 pm »
I encounter a problem with the columns of two identical grids not resizing in the same manner.    I found that I can duplicate this using one of the demos on the website.     If you use the example,  duplicate the grid directly below the original.   The top grid will resize differently from the bottom grid any though they are identical when you manually expand or shrink the window.   If you use the selection list to resize them they both resize identically. 

Pages: [1]