Hi everyone;
I want read other form's datasource's selected record info. But i can't.
*This post is locked for comments
Hi everyone;
I want read other form's datasource's selected record info. But i can't.
*This post is locked for comments
if(element.args() &&
element.args().record() &&
elements().record().tablid == Tablenum(ProjVendPaymentTable)
{
_buzEhaProjVendPaymentTable= element.args().record() as ProjVendPaymentTable;
}
Could you explain what you mean by "I did what you said but i failed"?
Using a compatible type is always possible and you didn't give us enough information about why you failed, so we can't tell you how to fix it.
To catch a record from other form
if you call one form from another, setup dataSource propierty in the button that you use to call the new form and then in your new form use element.args.record to cath it.
Hi Iulian;
I did what you said but i failed. What can I do to read the selected record in the data sources in different forms .
Are you sure you are getting something in the args().record() and if you are it is the same type? You should make a check before like:
if (element.args() && element.args().dataset() == tableNum(Your_table))
{ do assign }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156