10.05.2013 Views

Manual de programador _ControlsSAP.pdf

Manual de programador _ControlsSAP.pdf

Manual de programador _ControlsSAP.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ControlsSAP</strong> Framework ®<br />

Para los controles <strong>de</strong> lista se ha añadido nueva funcionalidad para po<strong>de</strong>r añadir registros<br />

nuevos <strong>de</strong>s<strong>de</strong> el mismo control, ahorrándonos el trabajo <strong>de</strong> tener que ir a buscar la opción <strong>de</strong><br />

menú correspondiente a esta acción.<br />

Podremos añadir registros indicando:<br />

• El nombre <strong>de</strong> la tabla: que abrirá un formulario <strong>de</strong> alta <strong>de</strong> registros típico<br />

(FormSAPAlta)<br />

• El tipo <strong>de</strong> formulario: abrirá el formulario <strong>de</strong> mantenimiento en modo crear. Este tiene<br />

que heredar <strong>de</strong> FormEditSAP.<br />

• El id. <strong>de</strong> menú <strong>de</strong> SAP: con este i<strong>de</strong>ntificador (MenuUID) abriremos la pantalla<br />

correspondiente en SAP. Para este tipo <strong>de</strong> formularios no se podrán añadir los registros<br />

creados en el control, solamente servirá para abrir el formulario <strong>de</strong> SAP.<br />

Las funciones que utilizaremos para el SAPListBox son:<br />

• SetFormToCreate: Que añadirá el botón <strong>de</strong> “Nuevo” en el formulario <strong>de</strong> selección.<br />

Y para el control SAPComboBox:<br />

• InsertCreateRow: Que creará un nuevo registro “Definir nuevo”.<br />

20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!