1. yakov werde
  2. PowerBuilder
  3. Wednesday, 25 September 2024 17:55 PM UTC

Hi

I'm importing srDs created with PB12.5 .NET into 2022 R3

Once I add an export header to the raw SRD I can Import some DWs into 2022 R3.  However, some of the srDs fail to import. This is most likely due to unsupported DW syntax.

??Question: How can one make the correspondence between the line column shown and the location in the SRD file. to find the unsupported syntax??

I'm attaching the SRD that threw this Error

 

I have a bunch more to resolve.  

 

<>

 

Yakov

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2024 18:14 PM UTC
  2. PowerBuilder
  3. # 1

Hi Yakov;

  Correct .. the PB.NET object class' source code is not compatible with PB Classic (which Appeon PB is based on). AFAIK, there is no magic reverse compiler from PB.Net back over to PB Classic. Therefore, its a completely manual process. Because the syntax it different, a suspect a lot of "seat of the pants" (trial & error) syntax changes  would be required.    :-(

Regards .. Chris

Comment
There are no comments made yet.
yakov werde Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2024 18:15 PM UTC
  2. PowerBuilder
  3. # 2
Comment
There are no comments made yet.
Arnd Schmidt Accepted Answer Pending Moderation
  1. Wednesday, 25 September 2024 21:56 PM UTC
  2. PowerBuilder
  3. # 3

Hi Yakov,

it looks like a Composite Datawindow with retrieval arguments.
Try to change unbound=yes to unbound="yes".

hth

Arnd

Comment
There are no comments made yet.
yakov werde Accepted Answer Pending Moderation
  1. Thursday, 26 September 2024 14:49 PM UTC
  2. PowerBuilder
  3. # 4

Thanks you to all who offered suggestions

So far I found two issues. 

One is a new keyword

 unbound is not significant in Classic DWs  I think the .net dw painter just put it in automatically.  I deleted it and its value

>In generic .NET, setting unbound=yes typically means that the DataSet is not directly bound to a database.  This allows you to manually populate with data from other sources, such as arrays, collections, or other non-database sources, which was useful when you need to display data that doesn't come from a traditional database or when you want more control over how data is loaded and managed within the DataWindow. <<

The one I am repairing now has a SP execute in the syntax.

The other was a Sybase DWO syntax developer slip

Sybase added " " around   name  and slideup values for line object 

This caused the import failure

12.6 .NET   - Line syntax

line(x1="375" y1="677" x2="687" y2="677" band=detail name="l_2" visible="1" slideup="allabove" background.color="1087560159" background.mode="2" pen.color="553648127" pen.style="5" pen.width="10" )

 

2022 Classic syntax

line(band=detail x1="375" y1="676" x2="686" y2="676"  name=l_2 visible="1"  slideup=directlyabove pen.style="5" 

 

There may be more

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 26 September 2024 19:25 PM UTC
Thanks for sharing your findings Yakov!
  1. Helpful
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.