SELECTEDITEM Node


This business rule takes place when “selecting” a row from a CONTENTS(subgrid/details). The behaviour by default is launching the object selected in edition. If we want to make another customized action, we must use this node.

Example of Code:

<selecteditem onchange="Refresh255">
	<action name="runscript">
		<script language="VBScript">
			This.OwnerCollection.OwnerObject("MAP_IDARTICULO")=this("ID")
			this.OwnerCollection.OwnerObject("MAP_IDIVA")=this("IDIVA")
  			this.OwnerCollection.OwnerObject("MAP_VENTACAJAS")=this("VENTACAJAS")
  			this.OwnerCollection.OwnerObject("MAP_CODARTICULO")=this("CODARTICULO")
  			this.OwnerCollection.OwnerObject("MAP_UNIDADMED")=this("UDSCAJA")
  			this.OwnerCollection.OwnerObject("MAP_DESCARTICULO")=this("DESCRIPCION")
  			this.OwnerCollection.OwnerObject("MAP_PRECIO")=this("PRECIO")
  			'Como se puede ver aqui no lanzamos el objeto en edición.			
		</script>
	</action>
</selecteditem>