Form 1 on Button Click :
[FormControlEventHandler(formControlStr(InventItemPrice, KMTItemPriceBreakdownForm), FormControlEventType::Clicked)]
public static void KMTItemPriceBreakdownForm_OnClicked(FormControl sender, FormControlEventArgs e)
{
Args args = new Args();
MenuFunction menuFunction;
public static void KMTItemPriceBreakdownForm_OnClicked(FormControl sender, FormControlEventArgs e)
{
Args args = new Args();
MenuFunction menuFunction;
InventItemPrice inventItemPrice = sender.formRun().dataSource("ItemPriceActivated").cursor();
args.record(inventItemPrice);
menuFunction = new MenuFunction(menuitemDisplayStr(KMTItemPriceBreakdownForm), MenuItemType::Display);
menuFunction.run(args);
args.record(inventItemPrice);
menuFunction = new MenuFunction(menuitemDisplayStr(KMTItemPriceBreakdownForm), MenuItemType::Display);
menuFunction.run(args);
}
Form 2 on Init:
[DataSource]
class KMTInventItemPriceBrkdwn
{
public void init()
{
super();
if(element.args().menuItemName() == menuItemDisplayStr(KMTItemPriceBreakdownForm))
{
InventItemPrice kmtinventItemPrice = element.args().record();
KMTInventItemPriceBrkdwn_ds.query().dataSourceTable(Tablenum(KMTInventItemPriceBrkdwn)).addRange(fieldNum(KMTInventItemPriceBrkdwn,ItemId)).
value(SysQuery::value(kmtinventItemPrice.ItemId));
}
}
[DataSource]
class KMTInventItemPriceBrkdwn
{
public void init()
{
super();
if(element.args().menuItemName() == menuItemDisplayStr(KMTItemPriceBreakdownForm))
{
InventItemPrice kmtinventItemPrice = element.args().record();
KMTInventItemPriceBrkdwn_ds.query().dataSourceTable(Tablenum(KMTInventItemPriceBrkdwn)).addRange(fieldNum(KMTInventItemPriceBrkdwn,ItemId)).
value(SysQuery::value(kmtinventItemPrice.ItemId));
}
}
}
This comment has been removed by a blog administrator.
ReplyDeleteThanks for sharing the valuable information. It was a great information.
ReplyDeleteD365 Finance and Operations Training
D365 Finance Training
D365 Operations Training
Playtech launches the 'casinogam' and mobile slots in - JTM Hub
ReplyDeletePlaytech 전주 출장안마 has today announced the launch 청주 출장샵 of the first mobile slots and online slot machines 서울특별 출장샵 in Asia, Africa, and 양주 출장샵 South America. 익산 출장안마
I have read this post. collection of post is a nice one..!!
ReplyDeleteSAP MM S/4 HANA Online Course from India
Oracle Weblogic Server 12c Training from Hyderabad
Docker & Kubernetes Online Course from Malaysia
Best SAP Successfactors Training Institute In India
S/4 HANA SD Online Classes
Devops Certification Online Training from Hyderabad
SAP S/4HANA CS Training
Azure Solution Architect Online Training Institute from India
Best SAP EWM Training from Hyderabad
SAP GTS Training Course In Hyderabad