1. Nick R
  2. PowerBuilder
  3. Thursday, 11 April 2019 16:21 PM UTC

hi,

I am new to PB and trying to see if I can get some answers to the pretty basic questions. I have a requirement to a add value to the existing dropdown list of values. I am not sure if this is hard coded in the code or the value driven from DB. Can someone help me with the steps in the code to navigate through?

Appreciate your time!!

 

thanks in advance!!

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Friday, 12 April 2019 05:40 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Nikhil,

 

as Chris wrote there are two types of drop downs: DropDown Datawindows or DropDown Listboxes.

Look in the Datawindow object in the columns Edit properties what style it is.

If it is a DropDown Datawindow the values comes from the Datawindow specified in the Edit properties. Usually the values comes from the database. But it is also possible to hard code the values in the Datawindow object that is used for DropDown or the values may be added or changed by code.

If it is a DropDown Listbox the values are usually specified in the Edit properties. It is possible to change the list by code using Modify or Dot notation to change the columname.Values property.

HTH

 

René

Comment
  1. Nick R
  2. Friday, 12 April 2019 15:09 PM UTC
Awesome!! ty much.... appreciated.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 11 April 2019 20:32 PM UTC
  2. PowerBuilder
  3. # 1

Hi Nikhil;

   Welcome to the world of PowerBuilder!

FYI: Appeon has a free introduction course to PowerBuilder on our Appeon-U side of our website. You can access the self paced course from here:  https://www.appeon.com/appeon-u

    If you already know the basics but just want to deal with the native Drop-Down-List-Box control or Drop-Down-DataWindow (which can also behave like a DDLB) - then just skip ahead to Unit04 for a DDLB or Unit17 for the DDDW feature.

    if your totally brand new to PB .. feel free to take the whole "PowerBuilder Fundamentals" course!    ;-)

HTH

Regards ... Chris

 

 

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.