I’m experimenting with building plugins (based on other’s plugin code) and trying to figure out how to get a value of a field out of the database. The screenshot below shows the contextual documentation for fieldx: String - doing obj.get(value) will return a Number
but I can’t figure out the right syntax of that method to actually get the value. Everything I try creates some type of undefined function or error in the console log. Right now I’m just trying to display a value on the screen. Any tips on how to use this properly and does it depend on how the field is defined?
@seanhoots @jarrad @mishav you all are pretty active in plugins. Any pointers?
properties.feildx.get(0, 99);
but i would go for a list,
var fieldx;
instance.data.fieldx = properties.fieldx.get(0, 99);
fieldx = instance.data.fieldx;
or for an item:
var fieldx;
instance.data.fieldx = properties.fieldx;
fieldx = instance.data.fieldx;
1 Like