error : DNS Lookup Failed when open EP pages from another computer

Problem :


I tried to ping with Sharepoint Server IP and got response, but i cant ping with computer name. The EP itself is working fine if i open it on another computer that already joined domain.

temporary solution :
just go to drive “C:\Windows\System32\drivers\etc”
on file “Hosts” , add

or you can set use IP on sharepoint at alternate access mapping menu :

Convert int to color C# example code

protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
        if (e.Day.IsSelected == true)
            int color = SelectedDates[e.Day.Date];

            byte[] values = BitConverter.GetBytes(color);
            if (!BitConverter.IsLittleEndian) Array.Reverse(values);

            Color myColor = Color.FromArgb(values[0], values[1], values[2]);
            e.Cell.BackColor = myColor;

reference :

Filter DataSets Field Lookup Enterprise Portal example code

on AOT datasets fields method, add this code below :

void dataSetLookup(SysDataSetLookup sysDataSetLookup)
    List list = new List(Types::String);
    Query query = new Query();

    // Add the table to the query.

    //filter query

    /* uncomment if the relation is not based on reference recid
    // Specify the fields to use for the lookup.

    // Supply the set of lookup fields.

    // Specify the field that is returned from the lookup.

    // Pass the query to the SysDataSetLookup so that the query is used.

preview after lookup filtered by code :

reference on MSDN :

Step by step deploying AX ListPage form to Enterprise portal

Listpage type form on ax can be deploy directly to enterprise portal.

And steps below show you how to do it :
1. Do incremental CIL first before deploy
2. On menu item display, right click on it and select deploy to EP and select module.

3. After deploy, AX will create two web object on AOT, WebUrls (Web -> Web Menu Items -> Web URLs) and Web Page Definition (Web -> Web Files -> Web Page Definition)

4. On Web Page Definitions properties “Module”, add submodule if you want to add this listpage on subModule on Enterprise portal , then right click on it select Deploy element.

5. On Web URLs properties URL , add submodule same as page definition (optional), then right click on it and select import page

6. Restart IIS

7. Clear AOT cache

8. To check the newly added custom webcontrol, just copy paste your Default Enterprise portal URLS (System Administration -> Setup -> Enterprise portal -> Websites) and webcontrol urls (from Web Urls Properties) to web browser.

default enterprise portal urls :

full urls on web browser :

another guide to add to quick launch sidebar :

error: Cannot create record. The Record already exists.

Problem :
Our client recently facing this error during creating any journal lines (LedgerJournalTrans) .

we did restart aos, full CIL, and any standard technical troubleshoot hoping it was a cache error or something like that. And we tried drop the table and inject it with the copied data. After doing some checking on table SystemSequences with table id 212 (ledgerJournalTrans), its nextVal RecId value record is already exist on that table.

reference for RecId on AX :

solution :
1. Stop the AOS
2. get the max recid from the table on SQL with:

select max(recId) from ledgerjournaltrans;

3. update the systemSequences table on SQL with:

update SYSTEMSEQUENCES set NEXTVAL = 'MAXRECID from table' where tabid= 'tableID'

4. restart AOS and run AX

Conclusion :
they did not doing some sort of AX Version upgrade that will impact whole data
and the main problem why the AX stored procedure on SQL returning next RecId value for the next record that already exist on the table remains a mystery.

Reference :