mspasiano
(Marco Spasiano)
28 Aprile 2022, 7:34am
119
Ma già avete dei bandi in produzione? Perchè se non è cosi potresti cancellarli tutti per poi disattivare il modello, per poi procedere con la modifica. In alternativa puoi prima eseguire questo script dalla console dell’applicazione:
var nameSpacePrefix;
model.status = "ok";
try {
nameSpacePrefix = cnrutils.executeStatic('org.alfresco.service.namespace.QName.createQName', "{http://www.cnr.it/model/jconon_call/cmis}jconon_callModel");
cnrutils.getBean("dictionaryDAO").removeModel(nameSpacePrefix);
} catch (err) {
model.status = "ko";
model.error = err.toString();
}
Poi dovresti anche fare l’override di questo file per cambiare la property nullable:
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<bulkInfo xmlns="http://www.cnr.it/schema/BulkInfo_v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" cmisQueryName="jconon_call:aspect_gu" cmisTypeName="P:jconon_call:aspect_gu" longDescription="Aspect Gazzetta Ufficiale" shortDescription="Aspect Gazzetta Ufficiale" xsi:schemaLocation="http://www.cnr.it/schema/BulkInfo_v2 BulkInfo_v2">
<fieldProperty class="input-large" inputType="TEXT" label="label.jconon_call_numero_gu" name="numero_gu" nullable="false" property="jconon_call:numero_gu"><jsonvalidator required="true"/></fieldProperty>
<fieldProperty inputType="TEXT" label="label.jconon_call_data_gu" name="data_gu" nullable="false" property="jconon_call:data_gu_index" widget="ui.datepicker"><jsonvalidator requiredWidget="true"/></fieldProperty>
<formFieldProperty name="numero_gu"/>
<formFieldProperty name="data_gu"/>
<columnFieldProperty name="numero_gu" property="jconon_call:aspect_gu.jconon_call:numero_gu"/>
<columnFieldProperty name="data_gu" property="jconon_call:aspect_gu.jconon_call:data_gu_index"/>
<findFieldProperty name="numero_gu"/>
1 Mi Piace