[development-axapta] Event for form focus

2010-07-16 Thread srinath s
Hi Champs,
In AX 2009, assume that multiple forms are opened. When the focus is moved from 
one form to another form then how to identify that particular form got focused. 
In which event of the form I can get the triggering happens.
I had checked with Forms\FormName\Methods\activate(). But this method is called 
more than once when the form is opened and also if u gets the focus of the form 
then also this method is triggered more than once.
Example: Assume that customer and sales order forms are opened. Now the focus 
in the sales order form and if we go to customer form then in which event of 
the customer form I will come to know that this form(customer) got focus.  
Is any other event to identify the focus of the form please let me know.
Appreciate a response.
Regards,
Srinath. S



[Non-text portions of this message have been removed]



Re: [development-axapta] Creating/Updating help files in AX 4.0

2010-07-16 Thread somanna gl
Hi,

create a node in AOT help  a files.

then create a help file and store the client bin directory.

Please let me know if U have any issue

kindest Regards
Somanna



To: development-axapta@yahoogroups.com
Sent: Thu, July 8, 2010 8:45:39 PM
Subject: [development-axapta] Creating/Updating help files in AX 4.0

  
Hello,

How to create/update help files in AX 4.0?

Any idea??

Thanks,
Sam


 


  

[Non-text portions of this message have been removed]



Re: [development-axapta] How to know the user has access to purchase order using code

2010-07-16 Thread somanna gl
This may help U.
if (hasSecurityKeyAccess(securitykeyNum(mySecurityKey),
AccessType::View))
{
//code requiring authorization goes here...
}
if (hasMenuItemAccess(menuItemDisplayStr(myMenuItem),
MenuItemType::Display)))
{
//code requiring authorization goes here...
}
DictTable dictTable = new DictTable(tablenum(myTable));
if (dictTable.rights = AccessType::Insert))
{
//code requiring authorization goes here...
}
if
(isConfigurationkeyEnabled(configurationkeyNum(myConfigKey)
)
{
//code requiring authorization goes here...
}






From: srinath s s_shreen...@yahoo.co.in
To: development-axapta@yahoogroups.com
Sent: Fri, July 9, 2010 3:15:53 PM
Subject: [development-axapta] How to know the user has access to purchase order 
using code

  


Hi champs,
In order to restrict the user to use the purchase order I am giving no access 
permission to the user that belongs to the user group say “xyz”. Will select 
the 
user group xyz in the user group form and will go to the permission tab and 
select the security key in the drop down of the View field. In the tree 
structure AP - Tables (full control)-Purchase orders and made it as No 
access. 

After the above setting I re-launched the AX for that particular user, it’s not 
allowing to open the purchase order form which is expected behaviour.
Now through code how can I check the user has access to purchase order. Using 
hassecuritykeyaccess method I can pass the securitykey but which security key 
to 
pass is my confusion. Because the security key attached to the purchtable 
 menuitem is “VendMisc”(Miscellaneous node in permission form tree structure AP 
- Miscellaneous) and security key attached to the purchtable table is 
“VendTables” (Tables node in permission form tree structure AP-Tables).
Could anybody help me on this.
Regards,
Srinath. S

 
 
 

[Non-text portions of this message have been removed]


 


  

[Non-text portions of this message have been removed]