Solved

PowerBuilder Objects

Posted on 2004-04-01
6
1,850 Views
Last Modified: 2013-12-26
Hi

I have a problem while opening a PowerBuilder Object. When I try to open the object it gives me a message box stating the following:

"Open of User Object u_dwa failed. It has been migrated to current version format, but must also be successfully regenerated. "


What do I need to do for this? I have tried regenerating the object. The following errors were encountered:

 ---------- Regenerate:
 ---------- Regenerating Object u_dwa
coreuo.PBL(u_dwa).u_dwa.buttonclicked.20: Error       C0015: Undefined variable: nv_aw_constants
coreuo.PBL(u_dwa).u_dwa.buttonclicked.22: Error       C0015: Undefined variable: nv_aw_constants
coreuo.PBL(u_dwa).u_dwa.buttonclicked.24: Error       C0015: Undefined variable: nv_aw_constants
coreuo.PBL(u_dwa).u_dwa.buttonclicked.29: Error       C0194: Missing pcode block for indirect function. Possible cause: missing library from library list.
coreuo.PBL(u_dwa).u_dwa.buttonclicked.30: Error       C0194: Missing pcode block for indirect function. Possible cause: missing library from library list.
 ---------- Done Regenerating Object u_dwa
 ---------- Finished


This is a application I have received from the client and I have to add a module in the same. Please help. This is urgent

Thanks & Regards,
Sumita
0
Comment
Question by:sumitad
  • 2
6 Comments
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 50 total points
ID: 10730870
hi sumita,
it's very clear...the object u r opening or regenerating, referes to the variable 'nv_aw_constants'. and your application is not able to find that variable in any of the library that r there in the library path..OK

so make sure that u have received all the libraries from your client and all the libraries are included in the library list...

if it's not there then add the library to list and then try to regenerate...

other option to open the object without that supporting library or the variable is that u have to remove all the references to the variable for that
1)go to the library painter
2)select the librarary and object u_dwa
3) right click on the object and export to the file...
4) it will create the script file for that object
5) open the file in powerbuilder file editor find the text 'nv_aw_constants' and put that line in the comment by '//' and save the file
5) again go to the library painter...select the library having object 'u_dwa'....right click...select import....select the file the u modified...

if still there is any error it will be display while importing the file itself..if it is imported successfully just regenerate again and open it....it will work

still if u found any problem let me know

regards
-sandeep
0
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 10730897
while commenting the line in script file take care about the loop and if else condition i mean if code is line follow

if nv_aw_constants = 'XYZ' then
      some logic
else
      some logic
end if

then put comment like

/*
if nv_aw_constants = 'XYZ' then
  some logic
else
  some logic
end if
*/

if it's in one line then do as follow
//if nv_aw_constants = 'XYZ' then somelogic
once u r able to import successfully and open u can remove this commented according to the requirement and logic...

0
 
LVL 5

Assisted Solution

by:berXpert
berXpert earned 50 total points
ID: 10732315
Hi,

Just in case you can't get the library where it's the nv_aw_constants object
try build an empty object called nv_aw_constants, mabye it just have some declarations on it and not any logic so while you compile it will display wich constants it has and you can add to you object in the way to regenerate your object.

BerX
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now