Open Closed

UI PICK TYPE: MODAL #6232


User avatar
0
LucasFarias created

Boa tarde, Prezada(o). Espero que esteja bem.

Estou utilizando as propriedades de navegação e o tipo de seleção da UI Modal, porém, -importante ressaltar que não fiz nenhuma alteração, gerei através do Abp Suite- o botão "pick" simplesmente não funciona, não exibe a tabela.

Já debuguei o código, comparei com outro que está funcionando e está exatamente igual, mas não cheguei a nenhuma conclusão.

Detalhe que não apresenta nenhum erro no VSC e Console.

Aguardo o retorno,

Lucas Farias


8 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you write it in English? Thanks.

  • User Avatar
    0
    LucasFarias created

    Good afternoon, Dear. I hope you are well.

    I'm using the navigation properties and the Modal UI selection type, however - it's important to note that I didn't make any changes, I generated them through Abp Suite - the "pick" button simply doesn't work, it doesn't display the table.

    I've already debugged the code, compared it with another one that is working and it's exactly the same, but I haven't come to any conclusions.

    Detail that does not present any errors in VSC and Console.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try your steps in the new project created by the Suite, reproduce the problem, and then share it?

    liming.ma@volosoft.com

  • User Avatar
    0
    LucasFarias created

    Good morning.

    No error is generated.

    I believe that the application is not reaching the block below.

    Below is a video about the "pick" button

    Abp

    rowAction: { element: $("<button/>") .addClass("btn btn-primary btn-sm m-btn--icon") .text(l("Pick")) .prepend($("<i/>").addClass("fa fa-fa-search")) .click(function () { var pickedId = $(this).data().id; var pickedDisplayName = $(this).data().displayName; $('#NavigationPropertyLookupTableModal #CurrentLookupId').val(pickedId); $('#NavigationPropertyLookupTableModal #CurrentLookupDisplayName').val(pickedDisplayName); $('#NavigationPropertyLookupTableModal #CancelButton').click(); })

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The video is zero kb

  • User Avatar
    0
    LucasFarias created

    Good morning.

    Sorry, follow again.

    Abp

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please share a simple/test project to liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Update your src\Arquivar.Web\Pages\Shared\LookupModal.cshtml file as

    Somehow, it misses these codes.

    @page
    @using Microsoft.AspNetCore.Mvc.Localization
    @using Arquivar.Localization
    @inject IHtmlLocalizer<ArquivarResource> L
    @model Arquivar.Web.Pages.Shared.LookupModal
    @{
        Layout = null;
    }
    
    <div id="NavigationPropertyLookupTableModal">
        <abp-modal size="Large">
            <abp-modal-header title="@(L["Pick"].Value)"></abp-modal-header>
            <input hidden id="CurrentLookupId" value="@Model.CurrentId" />
            <input hidden id="CurrentLookupDisplayName" value="@Model.CurrentDisplayName" />
            <abp-modal-body>
                <abp-table striped-rows="true" id="LookupTable">
                </abp-table>
            </abp-modal-body>
            <div class="modal-footer">
                <button id="CancelButton" type="button" class="btn btn-secondary" data-bs-dismiss="modal">@L["Cancel"]</button>
            </div>
        </abp-modal>
    </div>
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35