Home > database >  PowerBuilder9 in how to make data window a drop-down list box
PowerBuilder9 in how to make data window a drop-down list box

Time:09-25

I want to make a field of database tables to a data window, the style of the drop down list, click on the drop-down list to select the corresponding line, the data is relational database, and if I add a row in a database, is can display in the drop-down list box, everybody please help

CodePudding user response:

It is ok to refresh the child data window

CodePudding user response:

Don't understand, can say more about it

CodePudding user response:

We have to do is make dropdowndw

CodePudding user response:

To the field of the edit style tpye attribute set to dropdowndw is ok, and then specify datawindo source, don't have to write one line of code

CodePudding user response:

reference 5 floor SBKS reply:
to the field of the edit style tpye attribute set to dropdowndw is ok, and then specify the source of the datawindo, don't have to write one line of code

If the data window is now open, article 10 the drop-down in the field data, and now another insert a data window of data, or directly add the data in the database, don't write code to refresh the child data window can be to display the data?

CodePudding user response:

Change a datawindow the field of the edit style tpye properties

CodePudding user response:

Datawindowchild ldw_dw1
Dw_1. Getchild (' fl 'ldw_dw1)
//dw_1. Getchild//(to open the window of the column, ldw_dw1)
Ldw_dw1. Settransobject (sqlca)
Ldw_dw1. Retrieve ()
//to write the code in the form of open event, or not to, (in my case is such, don't know is useless for you)
refer to 6th floor zb63668331 response:
reference 5 floor SBKS reply:
To the field of the edit style tpye attribute set to dropdowndw is ok, and then specify datawindo source, don't have to write one line of code

If the data window is now open, article 10 the drop-down in the field data, and now another insert a data window of data, or directly add the data in the database, don't write code to refresh the child data window can be to display the data?

CodePudding user response:

Upstairs is very good

CodePudding user response:

Good good study, day day up!
  • Related