Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Tuesday, September 26, 2017

An update conflict occurred due to another user process deleting the record or changing one or more fields in the record

Hi,


Record conflict errors.

You needs to block the records to your session these are the ways you can lock the table records.

1. ttsbegain and ttscommit will also plays this role.

2. OCCEnabled true the property in table level.

3. In X++

a. select statement.

 select pessimisticLock purchTable where purchTable.PurchId == "XXXXX";

b. recordset statement.

update_recordSet pessimisticLock purchLine setting
            RemainInventPhysical = 0,
            RemainPurchPhysical   = 0,
            PurchStatus           = PurchStatus::Canceled
            where purchLine.PurchId == purchTable.PurchId;


Thanks,
Alfasith

Tuesday, September 5, 2017

Override the action pane methods in List Page AX 2012

Hi,

Please change the Display Target properties to client instead of Auto  / EP to get the override methods.

Also this can be achieved by interaction class.

Regards,

Due date based alert Configuration in AX 2012

Hi,

1. Create a a date field.
2. Right click in form level and select create alerts.
3. Select due in in the pop up.
4. Select the email alert notification and no end time.  // Now records get created in Event Table.
5. Select Organisation Administration \ Setup \Alert  view details create the email template.
6. Define the batch group for that batch.
7. System Administration \ Periodic \Alert \ Due date click.
8. Run the Tutorial_EventProcessor form.



Note: Please make sure that you enable the batch processing and email alert in the batch in point 7.

Thanks

Alert customization - Getting a table details in email AX 2012

Hi,

Please check for customization in EventActionEmail\createEmailParameterMap class

%data% will print the available notification message.
%Message% will print the information event Table.


You may add your values in createEmailParameterMap  map method of EventActionEmail class.

Regards,

FileNameSplit() to slip the Directory, file name and extension in D365 FnO

 Hi,     /// <summary>     /// Validate the Fileformat     /// </summary>     /// <param name = "filepath">FileP...