Skip to content

Edit Data of DataTable con AlertDiaog #1985

Answered by ingdesarr1
avilca asked this question in Q&A
Discussion options

You must be logged in to vote

Yo lo haria de la siguiente manera, me ha funcionado.

def editar(e):

    e.control.data = "ON"
    filas = tablaproducto.rows[:]
    
    for valor in filas:
        if valor.cells[-1].content.controls[1].data == 'ON':
            fila = filas.index(valor)

    
    e.control.data = "OFF"

    edit_nomprotxt.value = tablaproducto.rows[fila].cells[1].content.value
    edit_ddcate.value = tablaproducto.rows[fila].cells[2].content.value
    edit_ddpeso.value = tablaproducto.rows[fila].cells[3].content.value


    page.dialog = dialog
    dialog.open = True
    page.update()

Es ese caso, modifique la función del botón de editar. Cuando se presione el botón, va a cambiar el atributo 'data' de…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@avilca
Comment options

@ingdesarr1
Comment options

Answer selected by avilca
@avilca
Comment options

@avilca
Comment options

@ingdesarr1
Comment options

@avilca
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants