Memphistn80
Technical User
Hello all,
For a school assignment i have to make an application in powerbuilder. Now, i'm not a programmer at all so i have some problems with the syntax and just not knowing what names there are for certain things.
I want to program a search function where i'm able to check other options to take it within the search. For example if i want to search for a customer with the name of johnson, i check the checkbox customer and fill in 'johnson' in the single line edit control, when i click the search button, all the customers named johnson appear in my window.
This is the code i have so far:
IF pbm.cbx_customer = TRUE THEN
dwc_clients.DataObject = "dw_customer"
retrieve()
Now the problem is, that i don't know how the checkbox is called, so this is what's going wrong in the syntax. I also don't know what to put between the () for the retrieve, should it be "+%" to get only the customers with the name of johnson and not other customers? And is this the right code/syntax to fix this problem?
I hope someone can help me with this problem.
Kind regards,
Richard
For a school assignment i have to make an application in powerbuilder. Now, i'm not a programmer at all so i have some problems with the syntax and just not knowing what names there are for certain things.
I want to program a search function where i'm able to check other options to take it within the search. For example if i want to search for a customer with the name of johnson, i check the checkbox customer and fill in 'johnson' in the single line edit control, when i click the search button, all the customers named johnson appear in my window.
This is the code i have so far:
IF pbm.cbx_customer = TRUE THEN
dwc_clients.DataObject = "dw_customer"
retrieve()
Now the problem is, that i don't know how the checkbox is called, so this is what's going wrong in the syntax. I also don't know what to put between the () for the retrieve, should it be "+%" to get only the customers with the name of johnson and not other customers? And is this the right code/syntax to fix this problem?
I hope someone can help me with this problem.
Kind regards,
Richard