For example you need to add service of docuement management to the inventTable Form, just add this display method to the inventTable Table and use this field as w window control in the grid of your form. Here is the method:
// Changed on 14 Jui 2011 at 15:53:43 by iba
//BP Deviation Documented
display smmDocIconNum showDocHandIcon()
{
#macrolib.resource
;
if ((select firstonly docuRef where docuRef.RefCompanyId == this.DataAreaId && docuRef.RefTableId == this.TableId && docuRef.RefRecId == this.RecId).RecId)
{
return #RES_NODE_DOC;
}
return #RES_AM_NEW;
}
// Changed on 12 Jui 2011 at 10:38:00 by iba
int mouseUp(int _x, int _y, int _button, boolean _ctrl, boolean _shift)
{
#define.leftClick(1)
int ret;
;
ret = super(_x, _y, _button, _ctrl, _shift);
if (InventTable && _button == #leftClick)
{
// Open the document handling form
smmUtility::openMenuItemForm(menuitemdisplaystr(DocuView),InventTable,element,false);
}
return ret;
}
//BP Deviation Documented
display smmDocIconNum showDocHandIcon()
{
#macrolib.resource
;
if ((select firstonly docuRef where docuRef.RefCompanyId == this.DataAreaId && docuRef.RefTableId == this.TableId && docuRef.RefRecId == this.RecId).RecId)
{
return #RES_NODE_DOC;
}
return #RES_AM_NEW;
}
then you had to override this method in to window componant methods
// Changed on 12 Jui 2011 at 10:38:00 by iba
int mouseUp(int _x, int _y, int _button, boolean _ctrl, boolean _shift)
{
#define.leftClick(1)
int ret;
;
ret = super(_x, _y, _button, _ctrl, _shift);
if (InventTable && _button == #leftClick)
{
// Open the document handling form
smmUtility::openMenuItemForm(menuitemdisplaystr(DocuView),InventTable,element,false);
}
return ret;
}
Thank you for the info. It sounds pretty user friendly. I guess I’ll pick one up for fun. thank u
RépondreSupprimerMy cousin recommended this blog and she was totally right keep up the fantastic work!
My cousin recommended this blog and she was totally right keep up the fantastic work!
RépondreSupprimerDocument Management Systems
This is really helpful and informative, as this gave me more insight to create more ideas and solutions for my plan. Quality content is the key to attract readers. This article really helped me a lot.
RépondreSupprimerDocument Management Software India
Document Management Software Chennai
Document Management Software