Sorry, but what are the arguments ?
private readonly IDynamicEntityPropertyValueAppService _dynamicValues;
var listdynamic = _dynamicValues.GetAllDynamicEntityPropertyValues(Person);
??
Should the service be called in a Js view like CreateorEdit.js for my entity an example would be welcome
I tried with this method in PersonController :
``[AbpMvcAuthorize(AppPermissions.Pages_Contacts_Create, AppPermissions.Pages_Contacts_Create)]
public async Task<ActionResult> CreateOrEdit(int? id)
{
GetPersonForEditOutput getPersonForEditOutput;
if (id.HasValue)
{
getPersonForEditOutput = await _personsAppService.GetPersonForEdit(new EntityDto { Id = (int)id });
}
else
{
getPersonForEditOutput = new GetPersonForEditOutput
{
Person = new CreateOrEditPersonDto()
};
getPersonForEditOutput.Person.Intitule = "A DEFINIR";
getPersonForEditOutput.Person.Source = ListSource.BackOffice;
getPersonForEditOutput.Person.Statut = ListeStatutPerson.ColdLead;
getPersonForEditOutput.Person.DateNaissance = DateTime.Now;
}
getPersonForEditOutput.Person.TypePerson = TypePerson.Physique;
getPersonForEditOutput.Person.ProfilPhysique = ListeProfilPhysique.Contact;
var allDynamicProperties = (await _dynamicPropertyAppService.GetAll()).Items.ToList();
var definedPropertyIds = (await _dynamicEntityPropertyAppService.GetAllPropertiesOfAnEntity(new DynamicEntityPropertyGetAllInput() { EntityFullName = "Person" }))
.Items.Select(x => x.DynamicPropertyId).ToList();
var viewModel = new CreateOrEditPersonViewModel()
{
Person = getPersonForEditOutput.Person,
PersonIntitule = getPersonForEditOutput.PersonIntitule,
DynamicProperties = allDynamicProperties.Where(x => !definedPropertyIds.Contains(x.Id)).ToList()
};
return View(viewModel);
}
Is it right ? I don't know how display Values in View
Hi Ismail
Thks 👍
Thks Ismail !
Hi Thanks 🙏
Hi Ismail Thank you so much 😊
Hi Ismail,
The solution here https://support.aspnetzero.com/QA/Questions/10352/Elsa-2-Integration-with-AspNetZero-103 works fine
Another solution is to add the cdn live link
I think you should update your documentation to follow this process.
Sorry , this line was missing
_optionsAccessor = optionsAccessor;
Hi Thks for answer 🙂