Modify fields in the OData table

Modify fields in the OData table

Anonymous
Not applicable
742 Views
1 Reply
Message 1 of 2

Modify fields in the OData table

Anonymous
Not applicable

Hello

Can someone help me.
I have a table with some fields that OData should be renamed as description below:
                     Original field               New Field
colname = COMARCANOME ------ COMARCA
coldesc = COMARCANOME ------- COMARCA
ColType = CHARACTER -------   CHARACTER

defaultval = ""                --------    ""

How do I perform this operation using the function in Visual Lisp:
(ade_odmodifyfield NomTable FieldList)

Thanks

0 Likes
743 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Hi,

 

Try the following LISP code snippet :

 

(ade_odmodifyfield "table_name" '("columns" (("colname" . "field1") ("coldesc" . "MyTest") ("coltype" . "real") ("defaultval" . 10.00))))

(ade_odgetfield (car (entsel)) "test" "f1" 0)

 

In the first expression it will set the field "field1" to real type.

The second one gets me the field value.

 

Hope this helps.

Partha Sarkar

Autodesk Developer Network

0 Likes