Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3316

Re: Match and get data from datawindow

$
0
0

I am sorry I misread your request. You are using a dropdownlistbox, not a dropdowndatawindow.

 

The limitations of dropdownlistboxes are that you don't have data and display columns like dropdowndatawindows, so you don't easily know what the user has chosen.  In your solution you need to get the text the user has chosen in the list box and do a Find in the dept datawinddow. OR

 

Replace the ddlb with a datawindow:.

  • Create the datawindow from external data source
  • Use one column with same data type as your instID
  • In design edit, make it a dropdowndatawindow
  • choose the dataobject from dw_installation_dept
  • choose deptid as data column
  • choose name as display column
  • choose autoretrieve
  • width 300% and vscrollbar
  • place a datawindow control where your ddlb was
  • assign the newly created criteria datawindow as dataobject

in script:

          dw_dept.SetTransObjact ( SQLCA)

          dw_dept.Insertrow(0)

in dw_dept itemchanged event

          data argument is the chosen deptid

if you want the chosen deptid from somewhere else remember to accepttext() before GetItemNumber ( 1 , 'deptid)


Viewing all articles
Browse latest Browse all 3316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>