ReDefining a list
Das Goravani
goravanis at gmail.com
Sat Mar 25 17:31:21 UTC 2023
I am having trouble redefining a list.
My starting list is in an Instance Var, and it contains all the fields in a certain file class
When I issue this command
FV_LIST.$redefine(INSTAR.F_ACORD129,iIDVehicleName,iSelected)
I get the first column named INSTAR.F_ACORD129 (the file class name) and the two extra columns.. well the first one is there, but not the second
The file class has many fields in it. It is in another library called INSTAR
I cannot get it to recognize that this is a file class and it should use all of it’s fields then add the other two columns
When I use the old commands it is leaving off the second instance var column I’m trying to add (iSelected)
Why can I not define a list using this file class from another library. It is "external".
I have used File Class names before in list definitions and they worked
When I use the old commands to do this I use REDEFINE and it respects my file class, puts all the fields, doesn’t rename col 1 as the file class name, but only adds ONE of the two fields I am trying to add
If I add columns for those two fields first, it doesn’t do it, it doesn’t add the columns
I am used to being able to add instance variables as columns by using
iList.$cols.$add(iInstanceVar,kCharacter,kSimplechar)
Where iInstanceVar is directly a name of an instance var, and it should add it as a instance var column, not a SQL column
What is going wrong with what I am trying to do?
I have a list, it has a lot of columns, I try to add two columns to the end, and I want them to be instance var aware, not sql columns
How do you do that?
If you have a file class, then 2 instance vars, and your starting list has only the file class in it
I thought you could just redefine.. but I"m so not having luck with that.
More information about the omnisdev-en
mailing list