Trying to go generic on update

Das's goravanis at gmail.com
Thu Aug 6 21:17:27 EDT 2020


Doug,

Hear me:  I USE table classes, I have 1 for every schema, I have a master table class all are under

I invoke table classes by calling a method in an object class, that defines the row based on a table class

Which immediately invokes the superclass table construct where I assign my session object to the $cinst

Then I call a method in the subordinate table class but that invokes it in the master which is where I do my SQL


Do tvO.$updaterow(fcNums,’EDIT’)

Invokes the method in the object which

Defines myRow from sql class table class xyzzy

Which invokes the construct of table superclass

Do $cinst.$sess… ….assign…tsessobj

Then call from object class again a method in table class which is inherited so it goes to the superclass executes there

There I have method

$insertrow

Which uses ORM and works just fine
Similar with method for $delete

But in my method $updaterow

I have tried ORM, I have tried execdirect, ALL FORMATIONS of the syntax and tricks, NOTHING WORKS

Now I am trying Sta: and that approach

WHAT DOUG can you think of, would be OFF such that UPDATES will not work no matter how I try them

But I can do ORM on INSERT and DELETE and I’m sure execdirect would work there too.. confident by success there

But on UPDATES I am having a BEAR of a time.

WHAT could be making NOTHING WORK for me.. 

I do the code exactly like you showed how in your last email with execdirect.. you didn’t mention ORM but when it works it’s sweet too

Now I’m trying Sta: and NOT GETTING ANY LUCK THERE EITHER. Copying code Kelly sent me.. 

HELP

I can’t get anywhere without UPDATE


More information about the omnisdev-en mailing list