Obtener valor de casilla con NeoTable - Forum

Forum Navigation
You need to log in to create posts and topics.

Obtener valor de casilla con NeoTable

Hola a todos.

No consigo obtener el valor de una celda de neotable cuando pulso sobre la tabla.

El tutorial de NeoTable está genial, pero hay cosas que se me escapan. Tengo lo siguiente:

If [neoTableEvent] == "click"
SetVar [thisEventData] "[neoTableField]"
jsAlert "Columna: [thisEventData]"
StringifyJSON [neoTableRow] [neoTableRowString]
SetVar [thisEventData] "[neoTableRowString]"
jsAlert "[thisEventData]"
neoTableGetData [tablapersonajes] 0 "nombre" [prueba]
jsAlert "[prueba]"
EndIf

El primer jsAlert me muestra la columna seleccionada con el ratón, funciona genial. El segundo me muestra toda la información de la fila pulsada con el ratón. Eso es fantástico. Ahora intento mostrar un campo de esa fila con neoTableGetData y obtengo el de la fila 0, o el de la fila que yo indique, pero no sé cómo hacer para mostrar el de la fila que ha sido pulsada con el ratón.

El ejemplo ya me lo sé de memoria, jeje... pero, ¿de dónde sale [neoTableField] o [neoTableRowString]? No veo esos comandos en el plugin... igual se me está escapando algo. ¿Tiene que ver con JSON? Porque en JSON estoy pegado...

Gracias y saludos.

@manugarciaeu

Please review a recent post ...

https://visualneo.com/forum/topic/neotable-y-dar-formato-a-una-columna-dependiendo-el-valor-de-otra-se-puede ... where @roccocogliano has posted an enhanced neoApp that deploys some previously undocumented parameter values to the subroutine.

luishp and ManuGarciaEU have reacted to this post.
luishpManuGarciaEU

Hi @Gaev,
I believe @manugarciaeu is referring to clicking on the row and how to retrieve the values ​​of the fields in the table. To do this just use neoTableRow in the click event:
ex.
If [neoTableEvent] == ​​"click"
SetVar [curr_name] [neoTableRow ('name')]
SetVar [curr_ip] [neoTableRow ('IP')]
....
...

endiIf
note: 'name' and 'IP' are the names of the fields as defined in 'neoTableSetColumn'

Greetings
Rocco

luishp and ManuGarciaEU have reacted to this post.
luishpManuGarciaEU

Hi!

YES!!!

If [neoTableEvent] == ​​"click"
SetVar [curr_name] [neoTableRow ('name')]
SetVar [curr_ip] [neoTableRow ('IP')]

That is exactly what a I wanted.

Thanks a lot. It works. Wonderful forum and users of Visual Neo. I'm very happy working with this tool. Thanks everybody.

 

luishp has reacted to this post.
luishp

Great.

Yes, that's right, visualneo web is really a great tool and I think it will be more and more.

luishp has reacted to this post.
luishp