Skip links

InitFromCaller Metod Örneği


Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118
InitFromCaller Metod Örneği

Merhaba
Rapora yazdığımız bu metod sayesinde gridden menuitem ile  çağırdığımız raporumuza o satırdaki id ye göre range eklemiş oluruz .
public void initFromCaller(Args _args)
{
InventQualityOrderTable    _quality;
QueryBuildDataSource  qbds;
;
if (_args.caller())
{
if (! _args.record().RecId)
throw error(strfmt(“@SYS22338”,funcname()));

switch (_args.dataset())
{
case tablenum(InventQualityOrderTable):
_quality  = _args.record();
break;
default:
throw error(strfmt(“@SYS23396”,funcname()));
}
}
if (_quality.QualityOrderId)
{
qbds = element.query().dataSourceTable(tablenum(InventQualityOrderTable));
SysQuery::findOrCreateRange(qbds, fieldnum(InventQualityOrderTable, QualityOrderId)).value(_quality.QualityOrderId);
}
}

Join the Discussion