Curso_WebDynpro_for_ABAP_Fim_01

download Curso_WebDynpro_for_ABAP_Fim_01

of 8

Transcript of Curso_WebDynpro_for_ABAP_Fim_01

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    1/8

    Componente Standard de Exemplos

    WDR_TEST_EVENTS

    Teste para ambiente Finity, incluir esse texto .finitycons.com.br antes de :8002

    wireless Finity @Finity0411#

    SICF Ativar servios

    Verificar exemplos

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    2/8

    Verificar outros exemplos:

    WDR_TEST*

    Imagem a Aplicao

    MIME sempre em REQUEST

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    3/8

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    4/8

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    5/8

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    6/8

    Ir para o Source da imagem

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    7/8

    Upload

    Grupo

    Caption

    FileUpload

    ZWD_ALUNO99_100 - exemplo

    Tabela para guardar o arquivo do upload ZTFILES

    No contexto da view

    criar node upload

    criar atribuutos

    Criar novo grupo para DOWNOAD

    Criar node download

    Criar tabela para Download

    create BIND com o context

    trs primeiros campos = TextView

    o FILE_CONTENTS esccolher o filedownload e o nome do cara

    Programa o evento do upload

    ao clicar no boto preencher o evento

    na ultima coluna deve permitir down

    ler

    gravar na tabela

    select

    Action

    UPLOAD

    ONACTIONUPLOAD

    ler o contex do upload

    .

    data lo_node_upload type ref to if_wd_context_node.

    Data lo_elem_upload type ref to if_wd_context_element.

    data ls_upload type wd_this->element_upload.

    Data ls_ztfiles type ztfiles.Data lt_download type wd_this->elements_download.

  • 8/3/2019 Curso_WebDynpro_for_ABAP_Fim_01

    8/8

    lo_NODE_upload = wd-context->get_child_node( 'UPLOAD' ).

    if lo_upload is bound.

    lo_elem_upload = lo_node_upload->get_element( ).

    if lo_elem_upload is bound.

    lo_elemt_upload->get-static_attributes(impoting static_attributes = ls_upload ).

    ls_ztfiles-file_name = ls_upload-file_name.

    ls_ztfiles-file_type = ls_upload-file_type.

    ls_ztfiles-file_size = strlen( ls_upload-file_contents ) .

    modify ztfiles from ls_ztfiles.

    If sy-subrc eq 0.

    commit work and wait.

    Select * from ztfiles into corresponding fields of table lt_download .

    * preencher o context

    data lo_download type ref to if_wd_context_node.

    lo_download wd_context->get_childnode( 'DOWNLOAD' ).

    if lo_download is nound.

    lo_download->bind_table( lt_download ).

    Endif.

    endif.

    Endif.

    Endif.

    Tabela BEC_CLR