Base solution for your next web application

Activities of "Siyeza"

https://dev.azure.com/msinsureserve/_git/insureserve

try login with your email to this above

[email protected], added please check

https://dev.azure.com/msinsureserve/_git/insureserve?version=GBphase_one_13_Oct

this one above

That is very strange, let me pull a clean version of this branch again later and see if I dont get any issues.

I did a clean pull on a different machine, all seems good. this is very strange though. I am going to get the clean pull again and see.

Question

I create an entity with just two properties Id & Name, creating & listing is working fine BUT 'edit' is failing on this line (this is happening to all of these entities)

var output = new GetTitleForEditOutput { Title = ObjectMapper.Map<CreateOrEditTitleDto>(title) };

Answer

exception below

AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

Mapping types: Title -> CreateOrEditTitleDto insureserve.GenericLookups.Title -> insureserve.GenericLookups.Dtos.CreateOrEditTitleDto at lambda_method(Closure , Title , CreateOrEditTitleDto , ResolutionContext ) at lambda_method(Closure , Object , Object , ResolutionContext ) at AutoMapper.Mapper.AutoMapper.IMapper.Map[TDestination](Object source) in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 212

Answer

got it, had to do the ReverseMappings()

Answer

closed

Question

I have two linked entities 'Policy Holder' which can have multiple 'Policies'. I have generated both entities using the power tools (added PolicyHolder as one of the navigations for Policy). I want to open the 'Create Policy' from the 'Policy Holder' Grid see below pic

how do I pass the PolicyHolderId to this dialog?

text: 'Add - Policy',
                                visible: function () {
                                    return _permissions.create;
                                },
                                action: function (data) {
                                    debugger
                                    _createOrEditPolicyModal.open({ id: data.record.policyHolder.id });
                                }

this above doesnt seem to work

Showing 11 to 20 of 113 entries