Base solution for your next web application

Activities of "avanekar02"

Hello on clicking createnew i wish to pass some default data from the parent page to the create uimodal

do you have a workaround for this

Hello

i want to create a advanced search like the one in users but i donot undeerstand what the <div class="form-group"> <role-combo selected-role="vm.requestParams.type" empty-text="@L("FilterByType")"></role-combo> </div>

where is the data loaded for this and where is the tag <role-combo defined, can you point me to a example

i want to create a advanced search for type Live or Recorded which comes from a table

thanks Anwar

Answer

i changed the statement

public virtual Educator educator { get; set; }

to

public virtual EducatorListDto educator { get; set; }

replacing the entity with a

[AutoMapFrom(typeof(Educator))] public class EducatorListDto : FullAuditedEntityDto { public virtual string Salute { get; set; } public virtual string Name { get; set; } public virtual string Qualification { get; set; } public virtual int Experience { get; set; } public virtual string ARName { get; set; } public virtual string ARQualification { get; set; } public virtual string Image { get; set; } public virtual int Ratings { get; set; } }

i get the folowing error

An exception of type 'AutoMapper.AutoMapperMappingException' occurred in Abp.dll but was not handled in user code


can you please tell me how to address this brother

Question

hello

i have the following table structure

  1. Course |________CourseDetails |_____________________Educators

earlier i created a service to get course with coursedetails works fine but when i added the Educators as a collection in coursedetails the program stops saying internal server error

my

function

in the interface ListResultDto<CourseListDto1> GetCourse(GetCoursesInput input);

in the service inheriting the interface public ListResultDto<CourseListDto> GetCourseNoEdu(GetCoursesInput input) { var courses = _courseRepository .GetAll() .Where(p => p.Type == CourseType.Live) .Include(p => p.CourseDetails) .WhereIf( !input.Filter.IsNullOrEmpty(), p => p.Name.Contains(input.Filter) ) .OrderBy(p => p.Name) .ToList();

        return new ListResultDto&lt;CourseListDto&gt;(courses.MapTo&lt;List&lt;CourseListDto&gt;>());
    }

my dto for course

[AutoMapFrom(typeof(Course))] public class CourseListDto1 : FullAuditedEntityDto {

    public string Name { get; set; }
    public string CourseDesc { get; set; }
    public string ARName { get; set; }
    public string ARCourseDesc { get; set; }

    public virtual ICollection&lt;CourseDetailListDto&gt; CourseDetails { get; set; }
}

My DTO for CourseDetail

public class CourseDetailListDto : FullAuditedEntityDto { public int CourseId { get; set; } public string Title { get; set; } public string CourseDesc { get; set; } public string CourseDetDesc { get; set; } public string Requirement { get; set; } public string Image { get; set; } public string ARTitle { get; set; } public string ARCourseDesc { get; set; } public DateTime StartDate { get; set; } public int Duration { get; set; } public string DurationUnit { get; set; } public int HrWeek { get; set; } public decimal Price { get; set; } public int CountReg { get; set; } public string CourseUrl { get; set; }

    public virtual Educator educator { get; set; }

}

and my call in index.js

vm.courses = [];

function getCourse() {
            courseService.getCourse({}).success(function (result) {
                vm.courses = result.items;
            })
        
            ;
        }

gives internal server error data

if i comment the public virtual Educator educator { get; set; } in the coursedetails it work fine , if i uncomment it fails

please tell me how to define vm.course in index to recieve multi level

In the frontend i wish to add a page called readmore and on click of link from homepage 'read more' i want to call this page can you please tell me how

I created a details.cshtml page in home directory and put a href in read more to this page it does not load i even tried defining the detail page in the frontendnavigationprovide and PageNames.Frontend.CourseDtl,

it still does not work

Thanks Anwar

Showing 311 to 315 of 315 entries