Hello,
If I do an XtendM3 Extension, this extension applies to any company that has the customer?
If I want it only applies to one company, what can I do?
Thanks.
Hi,
You can use programAPI to get the user session company in XtendM3 program restrict the actions.
<span class="kt">int <span class="n">currentCompany <span class="o">= <span class="o">(<span class="n">Integer<span class="o">)<span class="n">program<span class="o">.<span class="na">getLDAZD<span class="o">().<span class="na">CONO
<span class="na">
Ok. Thanks Sudhakaran!
use Integer.parseInt(<span class="n">program<span class="o">.<span class="na">getLDAZD<span class="o">().<span class="na">CONO) or<br /><br />(int) program.getLDAZD().CONO
<span class="n">program<span class="o">.<span class="na">getLDAZD<span class="o">().<span class="na">CONO) or<br /><br />(int)
Hi,how do you retrieve the current Company and Division? program.getLDAZD().CONO returns the Company in MNS150, so this is not useful for me
Thank you
The program.LDAZD will return the company and division default to the current user that is mentioned in MNS150.
Thank you for your reply, but I need the current Company and Division (at least the Company).Like it's used in the H5