En la pantalla de la sustituciones temporales el cliente desea agregar nuevos motivos de sustitución (como por ejemplo 'Ascenso Interino', 'Permiso sin goce de sueldo', 'Traslado'). El problema es que el fuente no permite enviarle un nuevo motivo de la lista 'MotivosSustitucionTemporal'. El error es el siguiente:

Se ha producido un inconveniente...
La acción 'Create' del controlador 'SustitucionTemporal' ha lanzado la excepción 'ArgumentException' con el mensaje: The parameters dictionary contains a null entry for parameter 'motivoSustitucion' of non-nullable type 'Aseinfo.VH4.Data.MotivoSustitucionTemporal' for method 'System.Web.Mvc.ActionResult Create(Aseinfo.VH4.Data.SustitucionTemporal, System.Nullable`1[System.Boolean], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32], Aseinfo.VH4.Data.MotivoSustitucionTemporal, System.DateTime, System.DateTime)' in 'Aseinfo.VH4.Acciones.Controllers.SustitucionTemporalController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Nombre del parámetro: parameters

asked 05 Jan '17, 08:32

Jimy%20Tobar's gravatar image

Jimy Tobar ♦♦
(suspended)
accept rate: 56%


Se creó un Issue (EVO-3002) para analizar si es posible hacer el cambio con la menor afectación a las instalaciones que ya están en producción.

El problema sería que al hacer un upgrade a la versión 1.10.2, si se agrega un catálogo y se asocia a la tabla, ¿que se le pondría a los registros ya existentes?

Si solamente se libera del Enum, y la lista de valores envía los valores, el usuario final no puede agregar elementos a la lista de manera simple.

link

answered 05 Jan '17, 18:53

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

edited 05 Jan '17, 18:57

Lo que se necesita es que el catálogo ya existente (Motivo de sustitución temporal) permita agregar nuevos items a la lista con eso no habría conflicto con los ya existentes.

(06 Jan '17, 08:19) Jimy Tobar ♦♦ Jimy%20Tobar's gravatar image

Como regla general no agregamos catálogos con llave 'string', por eso es que no es simplemente agregar más valores y usar la columna que ya existe del motivo

(06 Jan '17, 09:32) Fernando Paz ♦♦ Fernando%20Paz's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×3
×3
×2
×2
×1

Asked: 05 Jan '17, 08:32

Seen: 1,105 times

Last updated: 06 Jan '17, 09:32

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática