Skip links

Axaptada forma seçime göre range eklemek


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
Axaptada forma seçime göre range eklemek

Merhaba
Örneğin bir formunuz var  belli kriterlere göre süzülmesi isteniyor öncelikle gerekli değişkenimizi forma ekliyoruz.
eğer enum tipindeyse ComboBox EDT ise listBox yapabilirsiniz.
sonra eklediğiniz objenin modified metodundan şu metodu çağırın.
void addRange()
{
// önce eski rangeleri temizliyoruz
AXIntegrationTable_ds.query().dataSourceName(“AXIntegrationTable”).clearRange(fieldnum(AXIntegrationTable, RecordType));

AXIntegrationTable_ds.query().dataSourceName(“AXIntegrationTable”).clearRange(fieldnum(AXIntegrationTable, ItemBuyerGroupId));
AXIntegrationTable_ds.query().dataSourceName(“AXIntegrationTable”).clearRange(fieldnum(AXIntegrationTable, Status));
// sonra ranglerimizi ekliyoruz�
AXIntegrationTable_ds.query().dataSourceName(“AXIntegrationTable”).addRange(fieldnum(AXIntegrationTable, RecordType)).value(RecordType.valueStr()); //enum
AXIntegrationTable_ds.query().dataSourceName(“AXIntegrationTable”).addRange(fieldnum(AXIntegrationTable, ItemBuyerGroupId)).value(StringEdit.valueStr()); // edt
AXIntegrationTable_ds.query().dataSourceName(“AXIntegrationTable”).addRange(fieldnum(AXIntegrationTable, Status)).value(Status.valueStr()); // enum
AXIntegrationTable_ds.executeQuery();
}
artık düzgün çalışması lazım.
Selamlar.

Join the Discussion