Activities of "thanhlg"

Thank you very much.

Could you please clarify if it is possible to filter data when retrieving a list of EntityChanges using ExtraProperties? I would like to retrieve a list of data where ScreenUrl in ExtraProperties is equal to the URL of the currently opened page. Additionally, I need to filter multiple EntityIds within the same page. How can this be achieved? Could you provide me with some suggestions?

Hi, I apologize for the complexity of my question. I want to add ScreenUrl and UserId to ExtraProperties of EntityChanges (currently only possible to store in the ExtraProperties of AuditLogs), and I would like to be able to retrieve more than 1000 records because the current MaxResultCount limit is 1000.

Hi Abp Support Team, How can I retrieve more than 1000 records with MaxResultCount and... I added ScreenUrl to AuditLogs like this: I want to add ScreenUrl and CurrentUser.Id to EntityChanges. How can I do that? Is there any way to retrieve multiple EntityIds on the same page? For example, I have a Customer page. The page has one EntityId of the Customer table, which I have set as DocId in the code. Inside the page, I have a grid that stores data for the CustomerABC table, which will have another EntityId. I have added ScreenUrl to AuditLogs to retrieve the information of the page where the changes were made, but when there are more than 1000 records, retrieving the data is not accurate. I have switched to filtering EntityIds based on the DocId of the currently opened page to narrow down the data. However, using this approach, if the page contains child tables with different entities, I cannot retrieve the data of those tables. Could you provide an example of how to handle this request? Thanks,

I sent the project

thanhlg@xxxx.com.vn

It worked. Thank you very much.🌻

hi

Can you create a new template project?

The project you shared uses the DevExpress and database migrations are incorrect.

Thanks.

I have updated the new version for the source link. I have also tested running the migration again, and it is working fine. Please review it again. Thanks.

Hi maliming,

I have sent you an email, please check and assist me. Thanks.

I have deleted it.

When I use the "Url", it shows a mandatory error message.

When I try to fix it to the "url", the update method doesn't work at all.

Hi Anjali, I have tried multiple approaches, including the one you suggested, but it still doesn't work.

How can I use getting and setting ExtraProperties in a Blazor page? Can you provide an example?

Hi Anjali,

Thank you for the information. It worked! Could you please tell me how to get and set the values for ExtraProperties in the FMFileDescriptor table of the File Management Module? I want to use FMFileDescriptor to store additional properties like DocId and Url, which are intended for managing the saving and retrieval of multiple images for a page.

Here is the code I'm using to upload files and save the images:

private CreateFileInputWithStream EditingImageFile { get; set; }

private async Task OnFileSelection(InputFileChangeEventArgs e)
{
    var files = e.GetMultipleFiles();
    foreach (var file in files)
    {
        var resizedFile = await file.RequestImageFileAsync(file.ContentType, 500, 500);

        var buffers = new byte[resizedFile.Size];
        string imageType = resizedFile.ContentType;
        using (var stream = resizedFile.OpenReadStream())
        {
            await stream.ReadAsync(buffers);
        }

        EditingImageFile = new CreateFileInputWithStream
        {
            Name = resizedFile.Name,
            File = new RemoteStreamContent(
                        stream: new MemoryStream(buffers),
                        fileName: resizedFile.Name,
                        contentType: imageType,
                        disposeStream: true
                    )
        };

        var image = await FileDescriptorsAppService.CreateAsync(directoryId, EditingImageFile);
        await GetFileContent();

        await OnImageUploaded.InvokeAsync(image.Id);
        StateHasChanged();
    }
}

ABP Framework version: v7.3.2

TemplateType: Module Template (ABP Suite)

UI Type: Blazor WASM

Database System: EF Core (PostgreSQL)

Showing 41 to 50 of 51 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13