Share this topic on FacebookShare this topic on MySpaceShare this topic on Del.icio.usShare this topic on DiggShare this topic on StumbleUponShare this topic on TwitterShare this topic on GoogleShare this topic on Yahoo

Author Topic: [HELP] Grid-ComboBox-Interactive change  (Read 278 times)

0 Members and 1 Guest are viewing this topic.

Offline wkl61

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
[HELP] Grid-ComboBox-Interactive change
« on: March 08, 2010, 07:15:55 PM »
mau tanya, saya sudah membuat grid jurnal dgn kolom acc_no dan desciption, control acc_no dengan combobox di dalam grid. Ketika combobox di pilih, kolom description tidak berubah sesuai dengan kode acc_no nya.. hasil yang keluar di collum desc adalah bisa data desc pertama atau data terakhir saja.
database jurnal sudah di format di control source collum 1 dan collum 2
database account di format di dalam combobox dan di text dalam collum 2

ada yang bisa bantu interactive change combobox?
*coding interactive change
aa=coa.acc_no
des=coa.desc

SELECT 2      //database jurnal
REPLACE no_acc WITH aa,desc WITH des

Trims..

Offline hariyana

  • Junior Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 10
  • Posts: 175
  • my hariyana
    • http://www.datamandiri.com
Re: [HELP] Grid-ComboBox-Interactive change
« Reply #1 on: March 09, 2010, 06:17:20 AM »
coba tabel jurnal dan accountnya direlasikan, kemudian control source untuk di grid column description diisi description account

Offline wkl61

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
Re: [HELP] Grid-ComboBox-Interactive change
« Reply #2 on: March 09, 2010, 08:55:29 AM »
sudah di relasi tapi masih belum bisa. dibawah ini saya sertakan properties yg sudah saya lakukan.

*properties collum1 (collum account number)
control source = rptdt.no_acc
current control = combo1

*properties collum2(collum description)
control source = rptdt.desc

*properties combobo1
control source = coa.acc_no
row source = select acc_no,desc from coa into cursor abc
row source type = SQL statement
style = dropdown list

*interactive change combo1
aa=coa.acc_no
des=coa.desc

SELECT 2      //database jurnal
REPLACE no_acc WITH aa,desc WITH des

*properties text1 di collum2
control source = coa.desc

ket:
- coa : database account
- rptdt : database jurnal

mohon bantuannya...

Offline a17dh4

  • Senior Member
  • *
  • Thank You
  • -Given: 2
  • -Receive: 8
  • Posts: 434
  • Keep Trying, trying and trying....
Re: [HELP] Grid-ComboBox-Interactive change
« Reply #3 on: March 09, 2010, 09:15:53 AM »

*interactive change combo1
aa=coa.acc_no
des=coa.desc

SELECT 2      //database jurnal
REPLACE no_acc WITH aa,desc WITH des


ya ngisinya jangan pake cursor coa, tapi ambil dari isi combobox dong...

coba taruh di combo.valid

repl desc with this.ListItem(this.ListIndex,2)

*properties combobo1
control source = coa.acc_no
row source = select acc_no,desc from coa into cursor abc
row source type = SQL statement
style = dropdown list


kan sudah ada nilai desc dari curs coa, jd gak perlu relasi.
« Last Edit: March 09, 2010, 09:35:07 AM by a17dh4 »
-=>> Go FoxPro <<=-

Offline wkl61

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 5
Re: [HELP] Grid-ComboBox-Interactive change
« Reply #4 on: March 09, 2010, 10:35:01 AM »
sudah jalan nih.. trims atas bantuannya :)