![]() |
API: String (FixedList) types |
Post Reply
|
| Author | |
utumno
Member
Joined: 01.Nov.2008 Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: API: String (FixedList) typesPosted: 01.Nov.2008 at 23:28 |
|
Hello,
I'am trying to set property values with the setValueAt() method of the API. It is working fine except for those properties whose type in the graph is 'String (Fixed List)'. If I examine the property with the help of the API, the type 'String' and the correct value e.g. 'HALT' is shown. However, if I am setting the value with setValueAt(), no String of the list is selected afterwards in the model. One example: MEAny val = new MEAny(); val.setMeType("String"); val.setMeValue("HALT"); port.setValueAt(f, 1, val); Setting the third value of f in this example (which is an Integer) works fine, so there is no problem with f. Does anybody have an idea what I am doing wrong? Thanks, Kirsten |
|
![]() |
|
rise
MetaCase
Joined: 31.Mar.2008 Points: 22 |
Post Options
Thanks(0)
Quote Reply
Posted: 03.Nov.2008 at 12:07 |
|
Hi Kirsten,
The problem in your example code is the missing string quotes. Instead of
you should have:
val.setMeValue("'HALT'");
With best regards,
Rise
|
|
![]() |
|
utumno
Member
Joined: 01.Nov.2008 Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 03.Nov.2008 at 20:54 |
|
Thanks a lot! It's working fine now.
Thanks, Kirsten |
|
![]() |
|
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |