Ir al contenido principal

Sage X3: agregue un nuevo navegador de lista izquierda para ver la cantidad del producto en la pantalla de orden de venta

 Fuente origen: http://sagex3asia.blogspot.com/2017/04/sage-x3-add-new-left-list-browser-to.html

Autor: https://www.blogger.com/profile/15857213250701606716

Puede ser útil para algunos ejecutivos de ventas poder ver las cantidades de productos disponibles antes de realizar un pedido para sus clientes en la pantalla Pedido de venta. Puede hacerlo agregando un nuevo navegador de lista izquierda (objeto) en la pantalla de orden de venta, el ejecutivo de ventas siempre puede consultar este navegador antes de crear una nueva base de orden de venta en las cantidades disponibles para el producto en cada sitio del producto.

Para lograr esto, primero, debe crear un nuevo objeto vinculando la tabla a la tabla 'Total del sitio del producto' de ITMMVT.


Agregue los campos que desea mostrar en el navegador de la lista de la izquierda. Puede agregar los campos en la pestaña Selección de otra tabla como ITMMASTER e ITMMVT.

Vinculando la tabla entre ITMMVT con ITMMASTER en la pestaña Entorno.

Una vez que se ha creado el nuevo objeto (navegador de la lista izquierda), puede agregarlo en la ventana de orden de venta. No olvide realizar la validación global y la validación de la transacción de entrada para cada una de las transacciones de entrada de la orden de venta.

Debería poder ver el nuevo navegador de la lista izquierda en la pantalla Pedido de venta con todos los productos y la cantidad de productos para cada sitio de productos.



Puede filtrar el navegador de la lista izquierda agregando algún script en SPESOH para mostrar el producto que pertenece al sitio que ingresó en la pantalla de encabezado de venta.

Para lograr el filtrado agregando script en SPESOH. Obtenga el nombre del navegador de la lista de la izquierda cuando se abra la pantalla de orden de venta.


Agregue código en el evento FILGAUCHE (se usa para filtrar los registros de la lista izquierda). Los registros se filtrarán según el sitio de venta que ingrese en el encabezado de venta.


Elimine la variable global una vez que salga de la pantalla de orden de venta.



Entradas populares de este blog

SAGE X3 SILENT IMPORT (IMPORTSIL) WITH ERROR CATCHING

FUENTE ORIGINAL: https://pluginx3.com/en/blog/post/sage-x3-silent-import-importsil-with-error-catching.html You already know how to manually generate a CSV file in order to import it threw a template in Sage X3. But If you wonder how to catch detailed errors after a silent import here is the solution. Sometimes you need to catch the incoming errors in order to alert the end-user regarding an issue. Closed period, wrong date etc …. Unfortunalty the standard Sage X3 silent import function doesn’t natively show the detailed errors during the import process. Call IMPORTSIL([M:IMP2]MODIMP,[M:IMP2]NOMIMP) From GIMPOBJ And the standard function ERR_IMPORT will only show the overall status of the importation and not the detailed errors. IMPORTSIL function is pushing all the log data into a tracefile in order to avoid any popup on end-user screen. So you have a log file available in order to search for errors in it. Sage X3 runtime is using the same principals standards as any shell for log...

How To Add a Custom Selector for the Screen Field

Fuente original del artículo:   https://www.rklesolutions.com/blog/how-to-add-a-custom-selector-for-the-screen-field January 5, 2022 By RKL Team Leave a Comment There may be times when you want to add a pop-up window to select a field for a screen. Sometimes this can be handled automatically if the field is a standard X3 object field (i.e. when selecting a product with a type of ITM from the ITMMASTER table). There may be other times where a standard look-up is not available, and some custom code is required to do the selection window. We'll show you how to add a custom selector of your choosing to the screen field. ADD SELECT ON SCREEN FIELD The first step is to add the appropriate code to the field on the screen in Sage X3: Go to  Development > Script Dictionary > Screens Select Your Screen Select the field to have the lookup for  by moving your cursor to it on the screen. The field should show with a blue background. Select a type of "Selection" , and an  ac...

Sage X3 Create a new CLOB Text

Here how to create a CLOB text Funprog F_CRELOB ( YABRFIC , YTEXTE ) Value Char YABRFIC Value Char YTEXTE Local Char XXRTFTXT ( 250 ) ( 3 ) XXRTFTXT ( 0 ) = "{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 MS Sans Serif;}}\viewkind4\uc1\pard\f0\fs17 " XXRTFTXT ( 1 ) = YTEXTE XXRTFTXT ( 2 ) = "\par}" Local Char X_RET Local Integer XXOK Local Char XCHAMPLIEN : XCHAMPLIEN = "YYYY" Global Char YYYY : YYYY = YABRFIC Local Clbfile WWCLOB Local Mask ACLOB [ M :ACL ] Setlob WWCLOB With XXRTFTXT [ M :ACL ] CLOB = WWCLOB Call CRE_CLOB_ACL ( XCHAMPLIEN , XXOK ) From TRTX3TEX Close Local Mask [ M :ACL ] X_RET = YYYY Kill YYYY End X_RET