We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

How to get a current column type

Answered
Patrick OFriel asked on July 24, 2018

If I let flexmonster infer types for a set of columns with data (in the case that I do not set a type for any column) is there any function or api call to get the types that flexmonster guesses for each column (string, number, etc)? Thanks for your help

4 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster July 25, 2018

Hello, Patrick,
Thank you for writing to us!
Currently, there is no API call to get the types for each column.
Could you please specify the importance of this feature for you?
Regards,
Tanya

Public
Patrick OFriel July 25, 2018

It'd be nice to have, I'm creating a feature where a user will be able to specify what type they want a column to be, and if I let flexmonster default those types, then I can show the current type in the dropdown. Worst case, I do my own logic to try to infer types of data and set it explicitly before sending to flexmonster, but I'd rather not redo work flexmonster is already doing for me 

Public
Ian Sadovy Ian Sadovy Flexmonster July 26, 2018

Hello Patrick,
 
Thank you for the details, your case is clear.
 
Actually, there is the getAllHierarchies() method that returns a list of all hierarchies.
We can add a new `type` property for each hierarchy object.  
Please let us know if it will work for you.
 
Regards,
Ian

Public
Patrick OFriel July 26, 2018

Hey Ian, that would be great! I think having the type returned on getAllHierarchies would do the trick!
 
Thanks!

Please login or Register to Submit Answer