Using Resource image in display()

Using Resource images in tables:

Create a Window Control in grid with properties as:

Width:16
Height:16
Verticalspacing:0
ImageMode:Centre
DataSoure:SalesTable
DataMethod:validIcon

Just Write the below code in SalesTable:

//BP Deviation Documented
display int validIcon()
{
;
switch(this.SalesStatus)
{
case SalesStatus::Backorder:
return 10002;
case SalesStatus::Invoiced:
return 10022;
case SalesStatus::Canceled:
return 929;
case SalesStatus::Delivered:
return 1030;
}
return 0;
}

//Ref Form:Project management and accounting/Setup/Project management and accounting workflows

web

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s