Report definition versioning

1 Answer 26 Views
Report Designer (standalone) Rest Service
Steve
Top achievements
Rank 2
Iron
Steve asked on 06 Feb 2024, 04:17 PM

Hi,

Is there a supported or recommended way to mark/tag a report definition with a version number?

Currently, we use:

  • reports created in the standalone designer, saved to *.trdp
  • ASP.NET Core .NET 6 application, that:
    • hosts the reporting REST service
    • uses EFCore IDefinitionStorage based report storage
    • has functionality to import *.trdp files into the database storage

It will be very useful to be able to automate the report import process on a deployment of the application so that it will only overwrite an existing report in the storage when it is a newer version.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 09 Feb 2024, 11:39 AM

Hello Steven,

Thank you for the provided information!

There isn't a specific setting in the report that can be used for this, I am afraid.

You could try to include the version within the Name property of the report. Alternatively, you may add a new property of the EF Core Report model where you keep the version number, for example:

public class Report
{
    [Column("Id")]
    [Required]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    [Key]
    public string Id { get; set; }

    [Column("Name")]
    [Required]
    public string Name { get; set; }

    [Column("Bytes")]
    [Required]
    public byte[] Bytes { get; set; }

    [Column("CreatedOn")]
    [Required]
    public DateTime CreatedOn { get; set; }

    [Column("ModifiedOn")]
    public DateTime ModifiedOn { get; set; }

    [Column("Size")]
    public float Size { get; set; }

    [Column("ParentUri")]
    public string ParentUri { get; set; }

    [Column("Uri")]
    public string Uri { get; set; }

    [Column("Version")]
    public int Version { get; set; }
}

I hope that those approaches will work for you. Please let me know if I can help with anything else.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Steve
Top achievements
Rank 2
Iron
commented on 13 Feb 2024, 11:15 AM

Thanks Dimitar.

I think I'll have to try a version suffix on the report Name property - and add a version field to the DB model to track what is stored.

Tags
Report Designer (standalone) Rest Service
Asked by
Steve
Top achievements
Rank 2
Iron
Answers by
Dimitar
Telerik team
Share this question
or