Search code examples
powerbuilder

Powerbuilder Datawindow Error


Help, our team upgraded/changed our Laptops from Windows XP to Windows 7 64 Bit, that came with the laptop itself. its therefore licensed and cannot be downgraded.

When using a datawindow and adding the second argument

I am getting Column 2 has an invalid name and/or length error...

I also opened my other already made Datawindow from the previous laptop that has multiple arguments. every 2 args. the name is missing.. but when you delete the top part. you can see the invisible argument is there.

Any patch I need to install. I cannot proceed with my programming


Solution

  • well, for me none of the above mentioned method was working, but I had a workaround. I added the first parameter as usual with the datawindow painter. My first parameter name: "username" is a string. I would like to add a second parameter: "password". For this I made the following steps:

    1. Open the datawindow (double click on the datawindow object)
    2. Click on Data source toolbar button
    3. Select Design/Convert to syntax
    4. Click back and save the datawindow

    After that open the datawindow source:

    1. Right click on the datawindow object
    2. Edit source
    3. Search for string like: arguments=(("
    4. In my case it was: arguments=(("username", string))
    5. Add the second argument this way (in my case): arguments=(("username", string),("password", string))

    So you need to simply copy the first argument after a comma. Of course you have to give a name and a type for the second argument like in my example!

    Br. Gábor