Notifications
Announcements
No record found.
[ExtensionOf(tableStr(InventTransOrigin))]final class INFInventTransOrigin_T_Extension{
public display Str yuvraj() { ProdBOM prodbom; if(this.ReferenceCategory == InventTransType::Production) { select prodbom where prodbom.ProdId == this.ReferenceId ; { if(prodbom.InventRefId) { return prodbom.InventRefId; } } } return null; }
}
I PUT THIS DISPLAY METHOD ON A STRING CONTROL IN INVENTTRANS FORM WITH DATA SOURCE INVENT TRANS ORIGIN
Hi Ruthwik, Instead of null try returning empty string ' '
already tried bro...but not working
Hi ruthwik,
Have you confirmed that the error is coming from the display method you added?
Because the error is saying different thing.
Can you debug and confirm it?
If the error is coming from the display method, debug and see exactly at what line the error is throwing.
Thanks,
Girish S.
error is showing at 92 line....what to do bro??
This is a standard piece of code where the error is throwing.
But we are asking in display method - At which line the error is throwing in the display method you have written.
no error in display method......and also the debugger is skipping my select statement
Then I think its not because of display method. Have you done any other customizations.
If you comment the display method is it throwing error?
yes bro even after commenting....its throwing error......i kept synchronize database....still the error was coming....so i am replacing my entire DB now
Open details of the exception and look at the stack trace. This should show give more details that you've collected to far.
The error itself is saying that you're trying to assign a form to a variable that can hold tables only, but it's important to know where it happens.
no...there is no error in my code
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional