We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


powerbuilder , stored procedure

basilhs_s asked
Medium Priority
Last Modified: 2013-12-26
i created a stored procedure in sql server 2000 as follows
create procedure sp_test
@scr_name                 nvarchar(100)
select mp1_code_ph, mp1_name from fmpel1 where mp1_name like @scr_name
when i try to design a datawindow (dw_cust) which will use this stored procedure as retrieve method, powerbuilder recognizes the argument and puts the two columns that exist in the select statement and 2 labels with their names in the datawindow area. so far everything is ok. i noticed the following situation

1) sql button (near to sort or filter button) seems deactivated
2) suppose that i change the select inside the stored procedure to use one more column f.e
select mp1_code_ph, mp1_name, mp1_phone_no from fmpel1 where mp1_name like @scr_name
how can i force the data window to include the additional field without designing it from scratch?

Watch Question


Which version of PB are u using.
Try to export the DW and add the column in the SQL and other related attributes.
Then import it.

It should work.

If u cant manage it, export the DW and paste it here.


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


i am using powerbuilder 10.0. i will do what you mentioned and let you know.


i tried what you mentioned and i inserted the new field as you said (thru edit source). i suppose that i would do something similar if i am going to change something in the arguments. does powerbuilder 11 treat stored procedures with a more efficient way?


Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.