Genetic Details Page / Deciphering Audit trail

LabKey Support Forum (Inactive)
Genetic Details Page / Deciphering Audit trail Ben Bimber  2011-01-21 07:12
Status: Closed
 
one follow up:

detailsQueryRow appears to work on all types of queries; however, different queries have different names for their PK (at least with hard tables). I might suggest that instead of using the name of the PK field in the URL (ie. lsid, rowId, etc), support a generic URL param name like 'pk', 'key', etc. it might allow

would also be useful is this supported a 'viewName' param.

finally, the following code is from queryController.java. it seems to be determining whether to display the 'edit' button. is there any sort of flag that would prevent the edit button from showing up? if i read this correctly, it checks whether the user has permissions, whether and update URL exists, and if both are true, it shows the edit button.


                if (getViewContext().hasPermission(UpdatePermission.class))
                {
                    StringExpression updateExpr = _schema.urlExpr(QueryAction.updateQueryRow, _form.getQueryDef());
                    if (updateExpr != null)
                    {
                        ActionURL updateUrl = new ActionURL(updateExpr.eval(tableForm.getTypedValues()));
                        ActionButton editButton = new ActionButton("Edit", updateUrl);
                        bb.add(editButton);
                    }
                }