NetTalk Central

Author Topic: Nettalk Application Wizard generation error  (Read 3802 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Nettalk Application Wizard generation error
« on: August 28, 2015, 03:35:59 AM »
1.
If you import a mssql table into a clarion dictionary
if a field is nullable
softvelocity sets the initial value in the dictionary to NULL
when capesoft nettalk wizard generates the prodecure it generates code that sets the firld equal to NULL eg.
tab:suppId = NULL
this causes a compile error
2.
if a table has a relation to another table for a particular field and you set the field to must be in table in the dictionary
if you create an alias of that table
the capesoft nettalk generator causes a compile error when validating the the alias table field exists ,
to correct this you need to add the same  relationship in the dictionary on the alias table.


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Nettalk Application Wizard generation error
« Reply #1 on: August 30, 2015, 11:34:47 PM »
Morning Mike,

regarding 1) - what does Clarion do with the value NULL in a desktop program? (if anything?

regarding 2) a small dict with an example of the structure you have in mind would be helpful - thanks.

Of course the wizard is just a "starting point" - it's trivial to correct any mistakes the wizard makes - but I'd like it to be as smooth as possible, so I do try and tidy up the edge cases when they are reported if I can.

cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Re: Nettalk Application Wizard generation error
« Reply #2 on: September 03, 2015, 12:07:18 AM »
Thx Bruce I haven't checked what softvelocity does with the null value in the windows generator.
but the correct syntax would be to use the "SETNULL" clarion built in function on that field. I understand this may not be as trivial as it sounds as you need to know if the target database supports this.

The problem is once the uncompiled code is generated you cant edit it
its in a grayed out area, not in an embed point that you can edit afterwards.

I will create a small dictionary to try show the second problem.
I don't think its got to do with sql. I will create it as tps files.
However this problem can also easily be overcome by duplicating the relationship on the alias.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Nettalk Application Wizard generation error
« Reply #3 on: September 03, 2015, 12:16:54 AM »
looking forward to the example Mike...

cheers
Bruce