$assigrow problem
Bastiaan Olij
lists at basenlily.nl
Wed Apr 22 17:43:59 EDT 2009
Hi Ionut,
If you've define the row like this, and the row is a temporary value it
should work just fine. That said, you are defining the row from a schema
class, not a table class. With a schema class Omnis Studio uses the
build in table class but only since Omnis Studio 4.3 (if I am not
mistaken) and you have to mark the schema class as such. Earlier
versions of Studio require you to have a table class related to the
schema class.
Could it simply be this particular client has an older version of Studio
running?
As a rule I never use the build in table class btw, I always create my
own table class subclassed from a table base class. I rarely find the
build in functions do exactly what I want and in the great world of OO
this approach makes it so easy to enhance :)
Also out of interest, why don't you define iList from your schema/table
class and change your loop to:
for iList.$line from 1 to iList.$linecount
do iList.$insert()
end for
Greetz,
Bas
Ionut Trif wrote:
> Hi $all,
>
>
>
> I have a very simple function like:
>
>
>
> Do workrow.$definefromsqlclass(schema)
>
>
>
> For line from 1 to iList.$Linecount
>
> Do workrow.$assignrow(iList.[line])
>
> Do workrow.$insert()
>
> End For
>
>
>
> Only on one particular client , and only with Runtime (happened only one
> with developer) sometime seems that assignrow don't work.
>
> There are particular problems with $assignrow. I read in another post that I
> must set current line in the row as 1 before to do assign row because
> sometime the only row is not current.
>
> Can be a problem of timers ? We have an 1 sec timer which check something.
>
>
>
>
>
> Ionut Trif
>
> Coregain Romania
>
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>
>
--
Kindest Regards,
Bastiaan Olij
e-mail/MSN: bastiaan at basenlily.nl
web: http://www.basenlily.nl
Skype: Mux213
http://www.linkedin.com/in/bastiaanolij
More information about the omnisdev-en
mailing list