5/17/2021

Axapta 2009 : Axapta สร้าง List Department ให้เลือก จาก Dimension Group

 Axapta 2009 : Axapta สร้าง List Department ให้เลือก จาก Dimension Group
If you want to use a particular dimension as a dialog field in Dynamics AX 2009 (or earlier versions), you can create your own Extended Data Type (derived from Criterias) as described below. The decisive factors are the relations of this EDT.

In the example, the cost center is to be offered as a dialog field.

Create Dialog
  1. protected Object dialog(DialogRunbase dialog, boolean forceOnClient)
  2. {
  3.     Object ret;
  4.     ret = super(dialog, forceOnClient);
  5.     df_project = ret.addField(TypeId(DimensionACEdit));
  6.     return ret;
  7. }


Button Edit Show Dialog
Code In GL Edit Department AC
  1. void clicked()
  2. {
  3.     //LedgerJournalTrans_ds.allowEdit(true);
  4.     Dialog              myDialog;
  5.     DialogField         myDialogFieldDepartment;
  6.     LedgerJournalTrans  myLedgerJournalTrans;
  7.     LedgerJournalTrans  LedgerJournalTransUpdate;
  8.     ;
  9.  
  10.     super();
  11.     myLedgerJournalTrans = ledgerJournalTrans_ds.cursor();
  12.  
  13.     myDialog = new Dialog("Department Edit.");
  14.     myDialogFieldDepartment = myDialog.addFieldValue(typeId(DimensionACEdit), '', "void clicked()
  15. {
  16.     //LedgerJournalTrans_ds.allowEdit(true);
  17.     Dialog              myDialog;
  18.     DialogField         myDialogFieldDepartment;
  19.     LedgerJournalTrans  myLedgerJournalTrans;
  20.     LedgerJournalTrans  LedgerJournalTransUpdate;
  21.     ;
  22.  
  23.     super();
  24.     myLedgerJournalTrans = ledgerJournalTrans_ds.cursor();
  25.  
  26.     myDialog = new Dialog("Department Edit.");
  27.     myDialogFieldDepartment = myDialog.addFieldValue(typeId(DimensionACEdit), '', "Departmaint :");
  28.  
  29.     if(myDialog.run()){
  30.         //if(box::yesNo("Press 'Yes' to Confirm / Press 'No' to Cancel", DialogButton::No, "Please select...") == DialogButton::Yes){
  31.             ttsbegin;
  32.                 SELECT FORUPDATE * FROM LedgerJournalTransUpdate
  33.                 WHERE LedgerJournalTransUpdate.RecId == myLedgerJournalTrans.RecId;
  34.                 {
  35.                     LedgerJournalTransUpdate.DimensionACEdit[1] = myDialogFieldDepartment.value();
  36.                     LedgerJournalTransUpdate.update();
  37.                     LedgerJournalTrans_ds.reread();
  38.                     LedgerJournalTrans_ds.refresh();
  39.                 }
  40.             ttscommit;
  41.         //} //Close If.
  42.     } //Close If.
  43. }:");
  44.  
  45.     if(myDialog.run()){
  46.         //if(box::yesNo("Press 'Yes' to Confirm / Press 'No' to Cancel", DialogButton::No, "Please select...") == DialogButton::Yes){
  47.             ttsbegin;
  48.                 SELECT FORUPDATE * FROM LedgerJournalTransUpdate
  49.                 WHERE LedgerJournalTransUpdate.RecId == myLedgerJournalTrans.RecId;
  50.                 {
  51.                     LedgerJournalTransUpdate.DimensionACEdit[1] = myDialogFieldDepartment.value();
  52.                     LedgerJournalTransUpdate.update();
  53.                     LedgerJournalTrans_ds.reread();
  54.                     LedgerJournalTrans_ds.refresh();
  55.                 }
  56.             ttscommit;
  57.         //} //Close If.
  58.     } //Close If.
  59. }
ตัวอย่าง : https://www.schweda.net/blog_ax.php?bid=555&wdl=en

Pfsense Cert Certificates Renew ไม่ได้ Error "Error renewing Certificate"

 Pfsense Cert Certificates Renew ไม่ได้ Error "Error renewing Certificate"


ต้องสร้างใหม่ แล้วเลือก ที่
System -> Advanced in the webConfigurator section.
(ลบอันเก่าออกยังลบออกไม่ได้ไม่มีปุ่ม Delete)

Cer อื่น ๆ ถ้าหมดต้อง กด Renew ใหม่ จะมีแจ้งเตือนใน Notification
โดยกด รูป วงกลมลูกศร
แล้วกด Renew/Reissue

ตาม Link
https://blog.matrixpost.net/pfsense-webconfigurator-default-certificate-expiring/

4/23/2021

Server Vmware ไม่รองรับ VM7.0

Server Vmware ไม่รองรับ VM7.0
ตรวจสอบรุ่นได้ที่
https://techlibrary.hpe.com/us/en/enterprise/servers/supportmatrix/vmware.aspx
DL380 Gen9 IP 2.66 รองรับ VM7.0 Update ปัจจุบันถึง U1 (2021/04/22)


DL380p Gen8 IP 2.88 ไม่รองรับ VM7.0 แต่ทำการ Update VM7.0 Update ปัจจุบันถึง U1 (เครื่องที่ขึ้นจอม่วง) เปลี่ยนการ์ด Raid
หากจอม่วงไม่หาย อาจจะต้อง ย้าย Server ไป Run อีกเครื่องและ ติดตั้ง VM ใหม่ ถึงแค่ Version 6.5 U3 (2021/04/22)
DL160 Gen8 IP 2.99 ไม่รองรับ VM7.0 Raid Hardware ใช้ไม่ได้ ใช้ Raid Software ข้อมูลหาย จะต้องใช้แค่ 6.5 U3 (Gen8 ไม่รองรับ)

เครื่อง
DL160 Gen8 ไม่รองรับ 6.5 U3 ไฟล์ปรับแต่งจาก HP รองรับเฉพาะ Gen9
HP ปรับแต่ง
https://www.hpe.com/us/en/servers/hpe-esxi.html

ติดตั้ง VMware ESXi 6.5 ที่โหลดจาก Web Vmware ไม่พบ Raid Hardware
ติดตั้ง VMware ESXi 6.5 ที่โหลดจาก Web Vmware ที่ปรับแต่งจาก HP แต่เป็นของ Gen9 พบ Raid Hardware แต่ Error ตอนติดตั้ง
วิธีแก้
1. ติดตั้ง Version 5.5 ก่อน
2. ค่อยติดตั้ง VMware ESXi 6.5 ที่โหลดจาก Web Vmware ที่ปรับแต่งจาก HP แต่เป็นของ Gen9
จึงจะสามารถติดตั้งได้

iLO Server ตั้งค่า เวลาไม่ตรง

 iLO Server ตั้งค่า เวลาไม่ตรง
Configuring SNTP settings
1.Navigate to the Network, iLO Dedicated Network Port or Network, Shared NetworkPort page.
2.Click the SNTP tab.
3.Set Primary Time Server And Time zone
https://support.hpe.com/hpesc/public/docDisplay?docId=a00045504en_us&docLocale=en_US


 

4/05/2021

Mini PC GT194L ให้เปิด Auto เมื่อดับ แล้วไฟมาให้เครื่องเปิดเอง ไม่ต้องกดปุ่ม

 Mini PC GT194L ให้เปิด Auto เมื่อดับ แล้วไฟมาให้เครื่องเปิดเอง ไม่ต้องกดปุ่ม
1. ปิดเครื่อง เข้า Bios กด Delete
2. เลือก Chipset --> South Bridge




3. เลือก Restore AC Power Loss



4. เดิมเป็น OFF เลือกเป็น ON
5. F10 เพื่อบันทึก ทดลองปิดเครื่อง ปิด Switch ไฟ แล้วเปิด Switch ไฟใหม่เครื่องจะติดเอง

สอบถามร้าน ENT Group ทาง Line https://www.entgroup.co.th/product-page/mini-pc-intel-gt194l-celeron-j1900-4lan-gt194l