April 23, 2021

Published April 23, 2021 by

Eclipse JGit : Basic authentication using a password to Git is deprecated and will soon no longer work

 I have recently received an email from GitHub saying :

You recently used a password to access the repository at [my GitHub repo] with git using JGit/5.3.0.201903130848-r.

Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.

I got this because I allowed JGit plugin of Eclipse to access my GitHub repo using password. To resolve this I need to configure Eclipse JGit to use token instead of password.

Here how it is done.

1) Go to New personal access token (github.com) and generate a new token with required scopes.





2) In Eclipse | [Your Project] go to Repositories View




3) Go to Remotes | Origin | Right click on the URL | Change Credentials



Now set the token instead of password in the password field.

That's all.

Read More

February 16, 2021

Published February 16, 2021 by

DevExpress XtraReport : Text Expression for Concatenation of Date Range with Date Format and other String

This code example provides a way of concatenation of multiple fields/parameters/other string in a single control.

Here, startDate and endDate are two parameters of a Date Range.

We want to display these two parameters in a single XRLabel. The dates should be formatted as MMMM d, yyyy. It needs to concatenate two string "From" and "Through" so that it is displayed like this:

From January 1, 2021 Through January 31, 2021.

So what is the text expression?

Concat('From ' , FormatString('{0:MMMM d, yyyy}',?startDate), ' Through ', FormatString('{0:MMMM d, yyyy}',?endDate))




Read More

January 07, 2021

Published January 07, 2021 by

InvalidOperationException: Object of type 'DevExpress.Blazor.Reporting.DxReportDesigner' does not have a property matching the name 'ReportUrl'

This is the code I wrote seeing a sample code.

@page "/reportdesigner"

<DxReportDesigner ReportUrl="HelloWorld" Height="1000px" Width="100%" AllowMDI="true">
   <DxReportDesignerWizardSettings UseFullscreenWizard="true" />
</DxReportDesigner>

This code throws an internal server error in Version 20.2 of DevExpress Blazor Reporting.

InvalidOperationException: Object of type 'DevExpress.Blazor.Reporting.DxReportDesigner' does not have a property matching the name 'ReportUrl'. Microsoft.AspNetCore.Components.Reflection.ComponentProperties.ThrowForUnknownIncomingParameterName(Type targetType, string parameterName)

To get rid of this problem 'ReportUrl' should be replaced by 'ReportName'

Correct Code

@page "/reportdesigner"

<DxReportDesigner ReportName="HelloWorld" Height="1000px" Width="100%" AllowMDI="false">
    <DxReportDesignerWizardSettings UseFullscreenWizard="false"/>
</DxReportDesigner>
Read More