devxlogo

DataWindow Initial Values

Question:
How can I use global variables to set initial values in a DataWindow?

I have tried to use “Rows..Column Specs..” but all it displays is the name of the global variable.

Answer:
You cannot use the column specifications to set the values based on PowerBuilder variables. The initializers you can use are:

  • Today: today’s date
  • Empty: a string of length 0
  • Null: no value
  • Spaces: all blanks

To achieve what you want you will have to use PowerScript and manually set or import the values.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  How Engineering Leaders Spot Weak Proposals

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.