Página 1 de 1

ayuda tree y pdf

Publicado: 08 Mar 2015 23:43
por MUNIELALTO
Ayuda

hola amigos de ams quisera pedirle apoyo o mejor dicho enseñarme a comprender las funciones de un Arbol Tree, ya que se me hace muy complejo el tema, les dejo un apz sin codigo alguno, en el se encuentra un Arbol Tree y el Pdf que trae por defecto Ams 8, lo que deseo aprender o que me enseñen a como lograr seleccionar un itens de un Arbol Tree y que el documento en pdf se refreje en el objeto pdf que trae por defecto Ams8
https://mega.co.nz/#!2wsFWK7b!wUSI_IKDW8w-OrolBcNCsSpt3W8uATBX1cMCJ9TVU-Y

Re: ayuda tree y pdf

Publicado: 09 Mar 2015 00:29
por abood1987
Hi

for example " On Select " you can Put :

Código: Seleccionar todo

result = Tree.GetNode("Tree1", e_NodeIndex);
if result.NodeIndex=="1.1" then
   PDF.LoadFile("PDF1", "AutoPlay\\Docs\\PDF\\DOCUMENTO 2014 - PLANTILLA 01.pdf");
  elseif result.NodeIndex=="1.2" then
    PDF.LoadFile("PDF1", "AutoPlay\\Docs\\PDF\\DOCUMENTO 2014 - PLANTILLA 02.pdf");
  elseif result.NodeIndex=="1.3" then
    PDF.LoadFile("PDF1", "AutoPlay\\Docs\\PDF\\DOCUMENTO 2015 - PLANTILLA 01.pdf");
  elseif result.NodeIndex=="1.4" then
    PDF.LoadFile("PDF1", "AutoPlay\\Docs\\PDF\\DOCUMENTO 2015 - PLANTILLA 02.pdf");
end
See this apz

HIDE: ON
Hidebb Message Hidden Description


In a tree object, a node is an item in the tree. Every node in a tree can be referenced to in actions by its node index. Each node index is made up of numbers and periods, with the exception of top-level node indexes, which are numbers only.

As the following example illustrates, each node in a tree has a unique node index:

Imagen

Note: If a sub item (Sub Item 2a) were to be added to Sub Item 2, its node index would be "1.2.1". Likewise, if a second sub item (Sub Item 1b) were to be added to Sub Item 1 in the example above, its node index would be "1.1.2". Lastly, if a third top-level node (Item 3) were added, its node index would be "3".

:friends:

Re: ayuda tree y pdf

Publicado: 09 Mar 2015 15:13
por MUNIELALTO
Gracias Abood por tu clara y precisa explicación

Re: ayuda tree y pdf

Publicado: 09 Abr 2016 18:08
por bierco
Gracias men

Re: ayuda tree y pdf

Publicado: 10 Abr 2016 16:39
por jjoosskkee
sos un bill gate

Re: ayuda tree y pdf

Publicado: 01 Feb 2017 01:14
por Dann
Probando, Gracias