Notifications
Announcements
No record found.
hi all,
i need site in report dialog. So, i did the below code in dialog
dialogSite = dialog.addField(extendedTypeStr(InventSiteId), "@SYS122446");
i wants only HK in site drop down. how i will do this?
please give me more shed on this.
thanks!
i need to write lookup for this? to get site only ? means HK
I'm not sure if understand.
You have a lookup for sites. But you want it to show only HK site. So it would only show 1 value? Why would you need a lookup or dialog field for it?
because if select value form site, its come with 0. as in drop down it showing the 1st column.
Sorry, I don't understand.
Hi @rp@n,
Are you looking for something like registerOverrideMethod method?
dialogSite.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(DialogUIBuilder, lookup), this);
See this blog:
ztirom.at/.../
hi mattugo,
the above code will show only site in drop down?
nikoloas,
i mean to say
please give me more shed on this
Could you share your full code of this class?
The line that you shared seems correct. But perhaps you have something else in your code that explains this.
To me it looks that the lookup is now using some integer data type (instead of string that InventSiteId is), and showing very strange contents.
Either you have wrong code somewhere else in this class, or your environment is corrupted.
Are you able to do a full x++ build and database synchronization in this system without errors?
protected Object Dialog()
{
Dialog dialog;
;
dialog = super();
dialog.caption("@GDJ107");
dialogFromDate = dialog.addField(Extendedtypestr(TransDate),"@SYS24050");
dialogToDate = dialog.addField(Extendedtypestr(TransDate),"@SYS36680");
dialogCustomerGroup = dialog.addField(extendedTypeStr(CustGroupId), "@SYS11904");
return dialog;
}
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 559 Most Valuable Professional
André Arnaud de Cal... 464 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader