Wednesday, March 18, 2015

Cannot select a record in Model security policy runtime view (ModelSecPolRuntimeView). Error accessing database connection. Cannot create a record in SysXppAssembly (SysXppAssembly). The record already exists.

I have an error on my server delevelopment in dynamic ax 2012 r3

the error syntax is : Cannot select a record in Model security policy runtime view (ModelSecPolRuntimeView).
Error accessing database connection.
Cannot create a record in SysXppAssembly (SysXppAssembly).
The record already exists.

the solution is :
1.full compile
2. synchronize
3. full cill
4. restart aos
5. start dyanmic ax 2012 (the error fixed)
READ MORE - Cannot select a record in Model security policy runtime view (ModelSecPolRuntimeView). Error accessing database connection. Cannot create a record in SysXppAssembly (SysXppAssembly). The record already exists.

Friday, September 05, 2014

How To Get Contact Information on Dynamic AX 2012 R3 - Dwipa Rachmawan

Here is the sample how to get or retrieve multiple contact information on customer
like the following pictures :
When we are clicked the button More options - Advanced :

As you can see in this form the datasources is LogisticsElectronicAddress
but the information about Purpose is not in here.

So this is the jobs for retrieve contact information and display the value Purpose
static void DPR_ContactInformation(Args _args){    DirPartyContactInfoView                 contactInfoView;    LogisticsElectronicAddress              logisticsElectronicAddress;    LogisticsElectronicAddressRole          logisticsElectronicAddressRole;    LogisticsLocationRole                   logisticsLocationRole;    CustTable                               custTable;    DirPartyPostalAddressView               DirPartyPostalAddressView,postalAddressView;    select * from CustTable        where custTable.AccountNum == '3003';    while select contactInfoView        where contactInfoView.Party == custtable.Party    join DirPartyPostalAddressView        where DirPartyPostalAddressView.Party == contactInfoView.Party    join logisticsElectronicAddressRole        where logisticsElectronicAddressRole.ElectronicAddress == contactInfoView.RecId    {        info(strFmt('Name=%1 Type=%2 Locator=%3 Purpose=%4',contactInfoView.LocationName, contactInfoView.Type, contactInfoView.Locator, LogisticsLocationRole::findRec(logisticsElectronicAddressRole.LocationRole).Name));    }}
And here is the result

Good Luck
Wasalam
READ MORE - How To Get Contact Information on Dynamic AX 2012 R3 - Dwipa Rachmawan

Wednesday, August 27, 2014

Error when refresh PurchPurchaseOrder datasource on Dynamic AX 2012 - Dwipa Rachmawan Cool :P

When i do custom report Purchase Order in AOT the report name is PurchPurchaseOrder
and do refreshing on dataset PurchPurchaseOrderLine. The error raise

Element
':PurchPurchaseOrder.Parameters.IsPurchConfirmationRequestJournal' has already been defined.To correct this, rename one or more of the model elements so that they have a unique name.

Do following step in order to fixed the problem
1. just rename it the parameter IsPurchConfirmationRequestJournal become IsPurchConfirmationRequestJournalX (you can do as you want)
2. set property this IsPurchConfirmationRequestJournal

  1. allow blank
  2. nullable
become true
3. after you rename it, right click the report PurchPurchaseOrder and klik restore. (just klik ok if there is popup windows)

4. do refreshing again on dataset PurchPurchaseOrderLine
when doing system will create for you another parameter which is IsPurchConfirmationRequestJournal
and change this parameter property  like above

  1. allow blank
  2. nullable

5. Klik the report rebuild and deploy

Thats it and Good luck

Wasalam
READ MORE - Error when refresh PurchPurchaseOrder datasource on Dynamic AX 2012 - Dwipa Rachmawan Cool :P

Monday, August 18, 2014

Windows Server 2012 Release Candidate domain controllers have a default for the security setting named "Allow cryptography algorithms compatible with Windows NT 4.0" that prevents weaker cryptography algorithms when establishing security channel sessions.

Problem when create domain on windows server 2012

Problem Syntax : 

Windows Server 2012 Release Candidate domain controllers have a default for the
security setting named "Allow cryptography algorithms compatible with Windows NT 4.0"
that prevents weaker cryptography algorithms when establishing security channel
sessions.

Solution is :

1. Just log-off off your windows account.
2. Then Log-in with an  Administrator account
3. Try again the proses
4. does it (this solution work with my situation),

what about yours ...!, please comment.
READ MORE - Windows Server 2012 Release Candidate domain controllers have a default for the security setting named "Allow cryptography algorithms compatible with Windows NT 4.0" that prevents weaker cryptography algorithms when establishing security channel sessions.

Monday, March 10, 2014

Concenate the expresion in SSRS reports in Dynamics AX 2012

Sometime when we create report in SSRS, often we must concenate string with variabel or the the expression.

by the example : ssrs expression in the textbox

first way..
create texbox and enter this expression
="Mars Odyssey was launched in "& First(Fields!AsOfDate.Value) &" to hunt for past or present water on the red planet."
second way..
create texbox and enter this expression only
=First(Fields!AsOfDate.Value,"TCN_RencanaFillingDP")

after that insert the text before the expression
Mars Odyssey was launched in

and then insert the other text after the expression
to hunt for past or present water on the red planet.

like this pictures below



i am prefer the second way.
:Dpr

READ MORE - Concenate the expresion in SSRS reports in Dynamics AX 2012

Monday, October 28, 2013

CIL Error and Solution in Dynamic AX 2012

CIL generation: Value cannot be null. Parameter name: parameterTypes
  • If that syntax you have, and you already fix it the object in AOT, but the error still same you must doFull Compile AOT (this is too much consuming time :( ) 

CIL generation: The given key was not present in the dictionary.

when you have the syntax above please do following step :
  1. Increment CIL (this is less consuming time :D )
  2. Full Compile AOT (this is too much consuming time :( )
  • with this step number one, you will find an error, and then you can fix it the error, and try increment CIL again
  • but if the error still raise you can find the log file in C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL and it is called Dynamics.Ax.Application.dll (do compiling object in the log file, and try to fix the error on it. and start CIL Increment again. source link is : http://axfaq.blogspot.ro/2012/07/log-files-ax-2012-different-log-files.html
 In my experience this will happen when you have cripple method, function or object in AOT. for mine if above step does'nt work. i willl do following step :

  • Just export the object that maybe contain the error, my favorite is class, export with option layer on it. Open the xpo with some text editor, and find the object in AOT and compile it, and fix it when the error raise it, and do increment CIL again.

READ MORE - CIL Error and Solution in Dynamic AX 2012

Thursday, September 05, 2013

Refresh from after calling method

Refreshing a Form with a Single Root Data Source

To refresh a parent form, you can often use a task to refresh the form. You should use a task when the form has a single root data source. For example, the CustTableListPage, SalesTable, VendTable, and HcmWorker forms all have a single root data source. When you use a task to refresh the form, you cause a call to the research method for all data source tables associated with the form.
To update the form root data source

In the AOT, expand Forms, find the dialog or drop dialog form that you want to work with. Expand the form node.
Right-click the Methods node, click Override method, and then click closeOK. The method opens in the code editor.

Use the FormRun class together with the #taskF5 refresh task to refresh any form that opens this dialog or drop dialog form.
The following code example shows how to get a reference to the calling form and how to refresh that form. Notice how the formRun instance is populated with a reference to the calling form. Also notice how #taskF5 is used to force a refresh of the specified form.
X++
public void closeOk()
{
#Task
FormRun formRun;

super();

// Get an instance of the calling form.
formRun = element.args().caller();

// If the caller is a form, refresh that form.
if(formRun)
{
formRun.task(#taskF5);
}
}


In the code editor, press the compile button. When compiling is finished, close the code editor.

Right-click the form and then click Save.

To refresh the parent form, open the form you use to call the dialog or drop dialog form where you added the previous code. Select a record, open the dialog form, and make a change to a field that appears on the parent form. Click OK to close the dialog form. The parent form is refreshed and shows the value that you updated in the dialog form.
Refreshing a Form with Multiple Root Data Sources

The form that opens your dialog or drop dialog form might have multiple root data sources. For example, the smmActivities form has two root data sources. If you have more than one root data source, you should refresh the data source that includes fields that were updated by using the dialog or drop dialog form.
To find and update a specified root data source

In the AOT, find the dialog or drop dialog form that you want to work with. Expand the form node.
Right-click Methods, click Override method, and then click closeOK. The method opens in the code editor.
Use the FormRun class to get a reference to the calling form. You then have to iterate the list of root data sources to find the data source table that include the fields you updated in the dialog or drop dialog form. You must know the name of the root data source table.
The following code example shows how to get a reference to the calling form, how to iterate a list of root data sources, and how to use the research method to refresh a specified data source. Notice how the tableNum function specifies the root data source table you want to refresh. Caution
In the example, the target root data source table is named Table1. You would have to change this parameter to the name of the root data source table that contains the fields updated by the dialog or drop dialog form.

X++
public void closeOk()
{
FormRun formRun;
List dsList;
ListEnumerator dsListEnumerator;
FormDataSource formDS;

super();

// Get an instance of the calling form.
formRun = element.args().caller();

// If the caller is a form, find and refresh the specified root data source.
if(formRun)
{
dsList = formRun.rootFormDataSources();

if(dsList && dsList.elements() > 0)
{
dsListEnumerator = dsList.getEnumerator();

while(dsListEnumerator.moveNext())
{
formDS = dsListEnumerator.current();
if(formDS.table() == tableNum(Table1))
{
formDS.research(true);
break;
}
}
}
}
}

In the code editor, press the compile button. When compiling is finished, close the code editor.
Right-click the form and then click Save.
To refresh the parent form, open the form you use to call the dialog or drop dialog form where you added the previous code. Select a record, open the dialog form, and make a change to a field that appears on the parent form. Click OK to close the dialog form. The parent form is refreshed and shows the value that you updated in the dialog form.

sumber : http://msdn.microsoft.com/en-us/library/hh812104.aspx
READ MORE - Refresh from after calling method

Tuesday, August 27, 2013

Interfacing Dynamic AX With Eksternal Database Via ODBC with Batch Processing

When i wrote in this blog, am having difficulty and confuse how to interfacing dynamic ax with eksternal database via odbc..


Why why why.. what is happening in here.. when i execute the code via jobs, the code runs very well and succesfully insert and update the eksternal database.. but when i create runbase batch class and calling the code the syntax error will raise : Unable to log on to the database. [Microsoft] [ODBC Driver Manager] Data source name not found and no default driver specified Object 'OdbcConnection' could not be created.

At Last i finally did it..
For my situation the problem is :
Succes running with jobs because  refers to the fact that you connect to the database through the user logged to the current session. When you run a Job from the AX client, this is executed with the user that runs the current AX client (the one logged to the active session);

Failed to running :
When code is executed from server in a batch job, code is executed through the user that runs the AOS windows service.

So the solutions is.. Eng Ing Eng....
CREATE ODBC WITH AOS ACCOUNT, yes IT Works Trust Me..

if there is question just email me, okay...
READ MORE - Interfacing Dynamic AX With Eksternal Database Via ODBC with Batch Processing

Thursday, May 23, 2013

Upload Financial Dimension Value For Dynamic AX 2012

Here goes the scenario for upload financial dimension value for Dynamic AX 2012

Example : You have financial dimension : Department and you want to insert or add  financial dimension value into it.

here goes the scripts :
static void TCN_DPRcreateDimensionValue(Args _args)
{
DimensionValueService service;
DimensionValueContract dimensionValueContract;
TCN_FinancialDimensionValueTemp dimTemp;


service = new DimensionValueService();
dimensionValueContract = new DimensionValueContract();
try
{
while select dimTemp order by FinancialDimension
{

dimensionValueContract.parmDescription(dimTemp.FinancialDimensionDescription); //financial dimension value description
dimensionValueContract.parmValue(dimTemp.FinancialDimensionValue); //financial dimension value;
dimensionValueContract.parmDimensionAttribute(dimTemp.FinancialDimension); //financial dimension
service.createDimensionValue(dimensionValueContract);
}

}
catch
{
ttsAbort;
}
info("Hore Sukses");
}

Good Luck
Please suit for your needs :D
Dwipa
READ MORE - Upload Financial Dimension Value For Dynamic AX 2012

Thursday, May 16, 2013

SRSS Reporting Format Report Date In Visual Studio 2010 with Dynamic AX 2012

1. Print page number like Page 1 of 2
="Page "&Globals!PageNumber &" of "&Globals!TotalPages

2. Print current date with prefix like Jakarta, 1 April 2013
="Jakarta, " & day(Globals!ExecutionTime) & " " & monthname(month(Globals!ExecutionTime)) & " " & year(Globals!ExecutionTime)

3.Print date with passing parameter from dataset dynamic ax 2012 //ex. param is  InvoiceDate
="Jakarta, " & day(Fields!InvoiceDate.Value) & " " & monthname(month(Fields!InvoiceDate.Value)) & " " & year(Fields!InvoiceDate.Value)

4. Print date without timestamp
=Format(Fields!Start_Date.Value,"dd/MM/yyyy")

5. Print number
=RowNumber(nothing)


6. Print or counting amount of records on table or matrix
=CountRows("Tablix1")

7. Print only one records in row
=IIF(Rownumber("Tablix1") >1,"","Solar Beban LMM")


READ MORE - SRSS Reporting Format Report Date In Visual Studio 2010 with Dynamic AX 2012

Monday, October 15, 2012

ScreenCam running Microsoft Dynamic AX without domain

ScreenCam running Microsoft Dynamic AX without domain

1. Dynamic Ax 2009 on win 7 (http://www.youtube.com/watch?v=A_8idKbXO1U&feature=share&list=ULA_8idKbXO1U)

2. Dynamic Ax 4 on win 7 (http://www.youtube.com/watch?v=Z5xgq66TDSk&feature=share&list=ULZ5xgq66TDSk)

3. Dynamic Ax 2009 on win 8 release preview (soon)
READ MORE - ScreenCam running Microsoft Dynamic AX without domain

Sunday, October 14, 2012

Install Dynamic Ax without domain

In this post i will told you that, i am already install dynamic ax  successfully without join domain .

List of Dynamic Ax without join domain in my laptop
1. Dynamic Ax 4 or Axapta 4 on windows (XP, Seven[7], Eight[8] version release preview )
2. Dynamic Ax 2009 or Axapta 5 on windows (XP, Seven, Eight[8] version release preview)

on the next post, i will show you all how to do that.


have a nice day...
Dwipa Rachmawan


READ MORE - Install Dynamic Ax without domain

Sunday, April 29, 2012

Belajar Install Zend Framework

Yup kali ini ane lagi mencoba belajar php dengan menggunakan zend framework.
Yang perlu bro and sis lakukan adalah :

1. Download Xampp di ane pake yang versi 1.7.4
2. Kemudian install xampp (next - next - finish :) ) biasanya kalo install begitu... gampang kan.Setelah install akan membuat foder C:\xampp

2. Download Zend Framework ane pake yang versi Zend Framework 1.11.11 Full
3. Setelah download frameworknya, lakukan extract (kala ane ke folder C:\xampp\ZendFramework-1.11.11)
4. klik Windows, Start -> Run, and then use cmd), ketik zf lalu enter apabila muncul pesan error  " 'zf' is not recognized as an interanl or external commnad, operable program or batch file."
lakukan pengeditan pada environment variable (biasanya sih letaknya di klik kanan my computer -> property -> advanced system setting -> klik environment variabel. pada system variabel path nya ditambahkan C:\xampp\mysql\bin;C:\xampp\php;C:\xampp\ZendFramework-1.11.11\bin
5. Sekarang waktunya mencoba framework dengan cara : klik windows, start -> run -> cmd
ketik "zf create project myproject" dengan cara ini, akan membuat folder di
C:\Users\Dwipa\myproject (contoh di komputer ane nih gan, pakai windows 7) dan didalam folder ini juga terdapat folder-folder yang lain semisal : application, docs, library, dll.

6. Membuat virtual host dengan cara, Lakukan pengeditan pada file C:\xampp\apache\conf\httpd.conf
tambahkan syntax spt gbr dibawah ini :



  • #framework zend by dpr
    Listen 8181

           
7. Jika muncul error seperti ini :fatal....(Zend/Application.php) [function.require-once]: failed to open stream. Solusinya copy folder Zend dari C:\xampp\ZendFramework-1.11.11\library
paste ke C:\Users\Dwipa\myproject\library

8. Ketikan http://localhost:8181/ di browser (firefox, opera, etc), jika semua berjalan lancar, akan muncul zend welcome page. seperti gambar dibawah ini



9. Demikianlah penjelasan yang singkat ini, selamat mencoba. sumber dari Internet
READ MORE - Belajar Install Zend Framework

Monday, February 13, 2012

Cara memfilter data format datetime dengan parameter date

static void dpr_datetime(Args _args)
{
    HRMPartyEmployeeRelationship    hrmPartyEmployeeRelationship;
    Date        dateFilter;
    int         row;
    ;
    dateFilter = 07/11/2011 //use backslash

    while select hrmPartyEmployeeRelationship where
    hrmPartyEmployeeRelationship.ValidFromDateTime >= datetobeginUtcDateTime(dateFilter,DateTimeUtil::getUserPreferredTimeZone())
    && hrmPartyEmployeeRelationship.ValidFromDateTime <= datetobeginUtcDateTime(dateFilter,DateTimeUtil::getUserPreferredTimeZone())
    {
        row++;
        info(strfmt('%1 %2 %3 %4 %5', row, dateFilter, hrmPartyEmployeeRelationship.EmplId,
hrmPartyEmployeeRelationship.ValidFromDateTime,
        hrmPartyEmployeeRelationship.ValidToDateTime));
    }
}

READ MORE - Cara memfilter data format datetime dengan parameter date

Wednesday, February 08, 2012

Testing BlogJet

I have installed an interesting application - BlogJet. It's a cool Windows client for my blog tool (as well as for other tools). Get your copy here: http://blogjet.com

"Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination." -- Albert Einstein

READ MORE - Testing BlogJet

Wednesday, December 08, 2010

Tahun Baru Islam 1 Muharram 1431H

Yups, kemaren hari selasa, 7 Desember 2010 bertepatan dengan tahun baru Islam 1431H.

Ditahun yang baru ini temanku daru membelikan sepeda Polygon Premier 3.0 dengan harga Rp. 2.545.000 (dua juta lima ratus empat puluh lima ribu rupiah) dengan cara pembayaran kredit 0 %. oh alangkah senangnya aku. thanks bro.. mudah2an dengan sepeda ini badan gw menjadi sehat wal'afiat, dan bisa mengurangi syukur2 panci (buncit)  di perut gw hilang.. wakakak.

READ MORE - Tahun Baru Islam 1 Muharram 1431H

Wednesday, February 24, 2010

Iam back

Yups iam back, sudah hampir 4 tahun blog ini terbengkalai. karena lupa password dan username. tapi sekarang aku sudah kembali. mudah-mudahan hari ini sampai seterusnya blog ini akan terus terupdate.
READ MORE - Iam back

Thursday, November 09, 2006

Menjawab Secara Ilmiah Mengapa Babi Itu Haram

Berikut ini adalah percapakan antara dua orang Muslim (Yunus) dan non muslim (Bob) tentang mengapa babi itu haram:

Bob: Tolong beritahu saya, mengapa seorang Muslim sangat mementingkan
mengenai kata-kata "Halal" dan "Haram"; apa arti dari kata-kata
tersebut?

Yunus: Apa-apa yang diperbolehkan diistilahkan sebagai Halal, dan
apa-apa
yang tak diperbolehkan diistilahkan sebagai Haram, dan Al-Qur'an lah
yang
menggambarkan perbedaan antara keduanya.

Bob: Dapatkah anda memberikan contoh?

Yunus: Ya, Islam telah melarang segala macam darah. Anda akan sependapat
bahwa analisis kimia dari darah menunjukkan adanya kandungan yang tinggi
dari uric acid (asam urat?), suatu senyawa kimia yang bisa berbahaya
bagi
kesehatan manusia.
Bob: Anda benar mengenai sifat beracun dari uric acid, dalam tubuh
manusia,
senyawa ini dikeluarkan sebagai kotoran, dan dalam kenyataannya kita
diberitahu bahwa 98% dari uric acid dalam tubuh, dikeluarkan dari dalam
darah oleh Ginjal, dan dibuang keluar tubuh melalui air seni.

Yunus: Sekarang saya rasa anda akan menghargai metode prosedur khusus
dalam
penyembelihan hewan dalam Islam.

Bob: Apa maksud anda?

Yunus: Begini... seorang penyembelih, selagi menyebut nama dari Yang
Maha
Kuasa, membuat irisan memotong urat nadi leher hewan, sembari membiarkan
urat-urat dan organ-organ lainnya utuh.

Bob: Oh begitu... Dan hal ini menyebabkan kematian hewan karena
kehabisan
darah dari tubuh, bukannya karena cedera pada organ vitalnya.

Yunus: Ya, sebab jika organ-organ, misalnya jantung, hati, atau otak
dirusak, hewan tersebut dapat meninggal seketika dan darahnya akan
menggumpal dalam urat-uratnya dan akhirnya mencemari daging. Hal
tersebut
mengakibatkan daging hewan akan tercemar oleh uric acid, sehingga
menjadikannya beracun; hanya pada masa kini lah, para ahli makanan baru
menyadari akan hal ini.

Bob: Selanjutnya, selagi masih dalam topik makanan; Mengapa para Muslim
melarang pengkonsumsian daging babi, atau ham, atau makanan lainnya yang
terkait dengan babi?

Yunus: Sebenarnya, diluar dari larangan Al-Qur'an dalam pengkonsumsian
babi, bacon; pada kenyataannya dalam Bible juga, pada Leviticus bab 11,
ayat 8, mengenai babi, dikatakan, "Dari daging mereka (dari "swine",
nama
lain buat "babi") janganlah kalian makan, dan dari bangkai mereka,
janganlah kalian sentuh; mereka itu kotor buatmu."

Lebih lanjut lagi, apakah anda tahu kalau babi tidak dapat disembelih di
leher karena mereka tidak memiliki leher; sesuai dengan anatomi
alamiahnya?
Muslim beranggapan kalau babi memang harus disembelih dan layak bagi
konsumsi manusia, tentu Sang Pencipta akan merancang hewan ini dengan
memiliki leher.

Namun diluar itu semua, saya yakin anda tahu betul mengenai efek-efek
berbahaya dari komsumsi babi, dalam bentuk apapun, baik itu pork chops,
ham, atau bacon.

Bob: Ilmu kedokteran mengetahui bahwa ada resiko besar atas banyak macam
penyakit. Babi diketahui sebagai inang dari banyak macam parasit dan
penyakit berbahaya.

Yunus: Ya, dan diluar itu semua, sebagaimana kita membicarakan mengenai
kandungan uric acid dalam darah, sangat penting untuk diperhatikan bahwa
sistem biochemistry babi mengeluarkan hanya 2% dari seluruh kandungan
uric
acidnya, sedangkan 98% sisanya tersimpan dalam tubuhnya.

Mohon diteruskan kepada semua rekan Muslim dan Non-Muslim... Ini dapat
menjawab sebagian pertanyaan mereka, khususnya kala non-Muslim bertanya
mengapa ummat Islam tidak boleh mengkonsumsi babi
READ MORE - Menjawab Secara Ilmiah Mengapa Babi Itu Haram

Monday, November 06, 2006

Minal Aidzin Walfaidzin



Assalamu'alaikum wr. wb.

Sebening Fiber Optic,
Setinggi Tower BTS,
Secepat Broadband Access,
Mohon Dibukakan Bandwith Maaf Selebar-lebarnya.

Selamat Idul Fitri 1427H
Mohon Maaf Lahir dan Bathin.

Wassalam


READ MORE - Minal Aidzin Walfaidzin

Wednesday, October 04, 2006

Hak Seorang Muslim Dengan Muslim Lainnya

Sebagai seorang muslim kita mempunyai kewajiban taat kepada Allah SWT dan
RasulNya. Sebagaimana Allah SWT berfirman:

“Hai orang-orang yang beriman, taatlah kepada Allah dan Rasul-Nya, dan
janganlah kamu berpaling daripada-Nya, sedang kamu mendengar
(perintah-perintahnya), (QS. Al-Anfaal (8): 20)

“Dan barangsiapa yang taat kepada Allah dan Rasul-Nya; niscaya Allah akan
memasukkannya ke dalam surga yang mengalir di bawahnya sungai-sungai dan
barangsiapa yang berpaling niscaya akan diazabnya dengan azab yang
pedih. (QS. Al-Fath (48): 17)

Begitupun kita kepada sesama muslim lainnya. Sebagaimana yang dikatakan oleh
Rasulullah SAW melalui hadits yang diriwayatkan oleh Muslim

Rasulullah SAW bersabda: “Hak seorang muslim terhadap muslim lainnya ada enam;
apabila bertemu ucapkanlah salam; dan apabila diundang datanglah; dan apabila
dimintai nasihat maka nasihatilah; dan apabila bersin maka ucapkanlah hamdalah
dan jawablah; dan apabila sakit maka do’akanlah; dan apabila meninggal dunia
maka antarkanlah. (HR. Muslim)

Kalau memperhatikan hadits yang diatas itu, maka kita akan tahu bahwa ketika
kita bertemu dengan sesama muslim, sebaiknya dan dianjurkan kita mengucapkan
salam (Assalamu’alaikum Warahmatullaahi Wabarakatuh). Tapi apa yang terjadi?
Kita hanya mengucapkan salam hanya kepada orang yang kita kenal aja itupun
jarang.

Jabir mengatakan, “Rasulullah SAW berkata kepada kami, ‘Maukah kuberitahukan
kepadamu tentang kamar-kamar surga?’ ‘Tentu saja, wahai’ Rasulullah!’ jawab
kami, ‘Mudah-mudahan Allah melimpahkan shalawat dan salam kepada engkau, dan
semoga ibu dan bapak kamu menjadi tebusan bagi engkau!’ Beliau bersabda,
‘Sesungguhnya disurga nanti akan ada kamar-kamar yang terbuat dari segala jenis
batu permata. Bagian luarnya bisa dilihat dari dalam dan bagian dalamnya dari
luar. Di dalamnya ada kenikmatan, kelezatan dan kebahagiaan yang belum pernah
dilihat oleh mata, didengar telinga, atau tertindas dalam pikiran manusia.’
Kami bertanya, ‘Wahai Rasulullah! Untuk siapa kamar-kamar itu?’ Beliau
menjawab, ‘Bagi siapa saja yang menyebarluaskan kesejahteraan, memberikan
makanan, rajin berpuasa dan mengerjakan shalat ketika orang lain sedang tidur.’
Kami bertanya, ‘Wahai Rasulullah!’ ‘Siapa yang mampu melakukan itu?’ Beliau
menjawab, ‘Umatku mampu
melakukannya, dan akan aku beritahukan kepadamu bagaimana caranya.
--Barangsiapa bertemu dengan salah seorang saudaranya kemudian memberi salam
atau menjawab salamnya, berarti dia telah menyebarluaskan salam. Barangsiapa
memberi makan keluarganya dan orang-orang yang menjadi tanggungannya sehingga
membuat mereka tidak lapar lagi, berarti dia telah memberi makan. Barangsiapa
yang berpuasa dibulan Ramadhan dan selama tiga hari lain setiap bulan, berarti
dia telah berpuasa selamanya. Kemudian, barangsiapa melaksanakan shalat isya
dan subuh dengan berjamaah, berarti dia telah mengerjakan shalat ketika orang
lain sedang tidur. Yang dimaksud dengan orang lain disini adalah kaum Yahudi,
Kristen dan Majusi--.’

“Apabila diundang datanglah
Ketika kita diundang, kita wajib hadir memnuhi undangan itu. Itu pun tergantung
acara dari undangan itu. Kalau acaranya sangat bertentangan dengan ajaran Islam
atau bersinggungan dengan tauhid atau akidah keislaman kita, maka kita tidak
diwajibkan hadir.

Ibnu Umar menuturkan, Rasulullah SAW. bersabda, “Barangsiapa bila ada yang
meminta dengan menyebut nama Allah, maka berilah; barangsiapa bila ada yang
meminta perlindungan dengan menyebut nama Allah, maka lindungilah; barangsiapa
bila ada yang mengundangmu, maka penuhilah undangannya; dan barangsiapa yang
berbuat kebaikan kepadamu, maka balaslah kebaikan itu (dengan yang sebanding
atau dengan yang lebih baik). Tetapi jika kamu tidak mendapatkan sesuatu untuk
membalas kebaikannya, maka doakanlah untuknya dengan sungguh-sungguh sampai
kamu merasa bahwa kamu sudah membalas kebaikannya. (HR. Abu Daud dan
An-Nasa’i dengan sanad shahih)

Rasulullah SAW bersabda, "Penuhilah undangan orang yang mengundang, janganlah
menolak hadiah..." (HR.Ahmad dan al-Bukhari di dalam al-Adab al-Mufrid)

“Apabila dimintai nasihat maka nasihatilah
Dizaman yang seperti ini, diperlukan sikap empati yang lebih kepada
saudara-saudara kita yang terjerembab dalam kubangan maksiat, yang kadang
mereka tidak merasakannya atau mungkin pula mereka merasa enjoy dengan
keadaannya seperti itu. Maka, untuk empati kita kepada mereka, sedikitnya kita
lakukan dengan saling mengingatkan dan menasehati di jalan Allah selalu dan
senantiasa kita tegakkan. Adalah suatu kesalahan besar apabila kita berprinsip
"yang penting aku tak melakukan hal seperti itu!" atau "yang jelas aku nggak
seperti itu!". Sungguh suatu perbuatan egois ketika kita merasa aman tentram
dari perbuatan dosa, sementara kita meninggalkan saudara kita pada perbuatan
tercela dan bergelimang dosa. Nau'dzubillah ...

Maka, nasihatilah mereka dengan baik dan benar sehingga orang yang kita
nasihati itu tergerak untuk melakukan yang lebih baik lagi. Sebagaimana firman
Allah SWT berikut ini,

...dan nasehat menasehati supaya mentaati kebenaran dan nasihat
menasihati supaya menetapi kesabaran. (QS. Al-Ashr (103): 3)

“Apabila bersin maka ucapkanlah hamdalah dan jawablah
Ketika kita bersin kita dianjurkan mengucapkan Hamdallah yaitu "Alhamdulillahi
Rabbil ‘Alamiin" dan itulah merupakan tanda syukur kita kepada Allah SWT karena
dengan bersin kuman kuman yang ada di dalam tubuh kita ikut keluar. Dan bagi
yang mendengarnya disunahkan untuk mendoakannya dengan mengucapkan,
“Yarhamukallaahu (Semoga Allah memberi rahmat kepadamu). Terus yang
bersin tadi membalasnya dengan mendoakannya, “Yahdiikumullaahu wa Yushlihu
Baalakum (semoga Allah memberikan petunjuk kepadamu dan memperbaiki
keadaanmu).

“Apabila sakit maka do’akanlahKetika saudara atau tetangga kita ada
yang sakit maka do’akanlah karena do’a merupakan senjata yang ampuh bagi umat
Islam dan yang terakhir hak seorang muslim dengan muslim lainnya adalah

“Apabila meninggal dunia maka antarkanlah
Kewajiban kita, ketika ada saudara kita atau tetangga kita meninggal dunia
adalah berta’jiah kepada yang ditinggalkannya dan ikut mengurus dari mulai
memandikannya, menshalatkannya sampai mengantarnya ke tempat dia dikuburkan.

Itulah keenam hak seorang muslim dengan muslim lainnya. Hikmah dari semua itu
adalah supaya ukhuwah atau persaudaraan kita sebagai muslim lebih terasa dan
lebih erat lagi.

Terus... Saya ingin bertanya kepada Anda... Bagaimana dengan sikap atau
perasaan Anda, ketika kita melihat dan mendengar tentang apa yang menimpa
saudara-saudara kita yang tertindas dibelahan dunia lain seperti di Palestina, Afganistan dan Lebanon sekarang ini???
READ MORE - Hak Seorang Muslim Dengan Muslim Lainnya