Posts

Showing posts from August, 2012

How to find total records in any Table

Image
Hi Friends,

If you want  to know the total exist records in any AX table, just follow the following steps:-

Step 1:- Go to Menu-> Tools-> Development Tools-> Number of records


Step II-
when you select this, the following window will open


Step – III-
Enter the table name in “Name” Field
for eg. PurchTable, salesTable etc.
Here you find all exist records in selected table with different companies.
- Harry

Limiting user sessions(Set Timeout For User Session)

Limiting user sessions
Our company has a limited number of AX user licenses, as most companies will. Some people like to open multiple sessions (and eat up licenses) while they're working. We wanted some way for the system to prevent this from happening. To achieve this I created a table called UserSessionLimits. It has a field called UserID (extended data type is userId) and this is a mandatory field. It has another field called MaxSessions (this is an integer) and it also is mandatory. The index is UserIDx, it contains userid and it is unique. The code that accesses this table is written so that if a user is not in this table, then they are limited to one session, so add users to this table if they are exceptions and you want them to be able to have more than one session open. Add code to the "Info" class, in the startup() method. The Info class can only be accessed by going to the System Documentation area of the AOT. In the startup method, at the top, I placed this code:
s…

Update multiple records with 'Fill Utility'

Image
Update multiple records with 'Fill Utility'Note:- FOLLOW THIS STEPS ON YOUR OWN RISK,I WILL NOT BE RESPONSIBLE FOR ANY GOOF UPS. SO PLZ BE CAREFULL DURING THESE STEPS.
The Fill utility enables authorized users and/or administrators to mass-update records, similar to the find and replace functionality. We can use an alternative method also to Update Multiple records in Grid.
this utility assists administrators or users during implementations/Development or when business process changes affect multiple records.
Cautions:
1> It is recommended practice to take backup of entire database before performing this 'Fill Utility' operation.
2> It is recommended to use this feature during implementations/Development (or) when business process changes affect multiple records.
3> Please follow the standard procedure to enable this configuration. This may require restart of AOS & Data dictionary sync to make sure changes take immediate effect.
4> Be aware that changing nu…

Axapta V/s Me: How to configure Automatic shutdown FOR ALL USER

Axapta V/s Me: How to configure Automatic shutdown FOR ALL USER: How to configure Automatic shutdown FOR ALL USER Hi friends, This a very common issue for companies which have a limited Ax user licen...

How to configure Automatic shutdown FOR ALL USER

Image
How to configure Automatic shutdown FOR ALL USERHi friends,
This a very common issue for companies which have a limited Ax user license.  User just remain idle for a log time and eat license. To overcome this problem  we can set the automatic shut down for  user who Remains Idle For Few/Many Minutes in Axapta.

To do this go to Menu –> Tools –> Option as shown in following screen.



After click on Option menu here a new window will open.


Here u can set the minutes for automatic shut down .
Note:- This configuration will remain same for ALL USERS. It is not user specific. SO Be care full to choose the best Idle time for Automatic shutdown.
- Harry

How to update multiple rows at backend and refresh the UI?

Image
Update multiple rows at backend and refresh the UI at the same time.
Hi friends,               Some times we need to update multiple rows in grid (Form) and the same time need to refresh the user interface also.  For example:- In a form grid there is a check box that is for  xyzValue = Yes or No. all the selected records should be update when user press a button. In following image we are going to post all selected reords and at the same time we update all selected rows in back end as well as refresh the UI also.


    to do this write following code in your click method of post button.
void clicked() {     Ax_dataSource                                  _ Ax_dataSource  ;   // your data source Table     ;      ttsbegin;     while select forupdate   _ Ax_dataSource where   _ Ax_dataSource .Status == AllOpenPosted::Open                                            &&   _ Ax_dataSource .checkBox == NoYes::Yes     {              // write here your required updation  after posting    …