Terimakasih rekan-rekan semua.
Sekarang sudah tidak muncul error lagi,
tapi setelah Save, close aplikasi, buka lagi
Data add saya kok gak ada ya ?
ps.
script add ku pd clicked cb:
//
long I
i = dw_tmb.insertRow(0)
dw_tmb.scrollToRow(i)
dw_tmb.setFocus()
//
> buka datawindow object
> klik menu rows >> update properties
> muncul window specify update property, terus
> klik allow update
> tentukan table to update
> tentukan column2 yg ingin di update pada "updateable
> columns"
> tentukan unique keys columns
> klik ok
> klik help untuk penjelasan yg lebih jelas..
>
> oh ya jgn lupa save datawindow sebelum di run..
>
> regards
>
>>
> dh updater
>
> Saya bikin script utk save command button seperti lampiran
> dibawah ini, kenapa setiap di click selalu muncul error :
> "Datawindow does not have UPDATE capability"
> akhirnya data tak tersimpan. Salah dimana ?
> Thx.
>
> Lampiran
> dw_tmb.acceptText()
> setPointer(hourGlass!)
> if dw_tmb.update(TRUE, FALSE) = 1 then
> commit;
> if sqlca.sqlcode = 0 then
> dw_tmb.resetUpdate()
> else
> rollback;
> messageBox('Save Error',SQLCA.SQLErrText,stopsign!)
> end if
> else
> rollback ;
> messageBox('Save Error','Data tidak dapat
> disimpan.',stopsign!)
> end if
>
> __________________________________________________________
> indomail - Your everyday mail - http://indomail.indo.net.id
>
>
>
> __________ NOD32 2804 (20080118) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>
>
> --
> Best regards,
> sandy mailto:[EMAIL PROTECTED]
___________________________________________________________
indomail - Your everyday mail - http://indomail.indo.net.id
-----------------------------------------------
IndoPB - Indonesia PB User Group
An Indonesian PowerBuilder User Group's Event
2nd PowerBuilder Update
Rumah Sakit Jantung Harapan Kita
26/27 August 2006
To Register :
http://groups.yahoo.com/group/indopb/database?method=addRecord&tbl=4
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indopb/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/indopb/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/