// //==================================================================================================== // public override void OpenLayout(string layoutRecordNameOrGuid) { try { accum = ""; LayoutModel layout; if (layoutRecordNameOrGuid.isNumeric()) { // // -- recordId layout = DbBaseModel.create <LayoutModel>(cp, GenericController.encodeInteger(layoutRecordNameOrGuid)); } else if (GenericController.isGuid(layoutRecordNameOrGuid)) { // // -- record guid layout = LayoutModel.create <LayoutModel>(cp, layoutRecordNameOrGuid); } else { // // -- record name layout = LayoutModel.createByUniqueName <LayoutModel>(cp, layoutRecordNameOrGuid); } if (layout != null) { accum = layout.layout.content; } } catch (Exception ex) { LogController.logError(cp.core, ex); throw; } }