MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - API: String (FixedList) types
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

API: String (FixedList) types

 Post Reply Post Reply
Author
Message
utumno View Drop Down
Member
Member


Joined: 01.Nov.2008
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote utumno Quote  Post ReplyReply Direct Link To This Post Topic: API: String (FixedList) types
    Posted: 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
Back to Top
rise View Drop Down
MetaCase
MetaCase


Joined: 31.Mar.2008
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote rise Quote  Post ReplyReply Direct Link To This Post Posted: 03.Nov.2008 at 12:07
Hi Kirsten,
 
The problem in your example code is the missing string quotes. Instead of
 
val.setMeValue("HALT");
 
you should have:
 
val.setMeValue("'HALT'");
 
With best regards,
 
Rise
 
Back to Top
utumno View Drop Down
Member
Member


Joined: 01.Nov.2008
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote utumno Quote  Post ReplyReply Direct Link To This Post Posted: 03.Nov.2008 at 20:54
Thanks a lot! It's working fine now.

Thanks, Kirsten
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.035 seconds.