QAPI Action for creating item groups from full path names

6.93K viewsGeneral Discussion
0

At present, in Datalink one cannot create a category with items organized hierarchically, e.g. a directory tree or an XML document with nested elements.
In order to do that, one way would be to use datalink to import into a category a column of strings representing full path names, i.e. item names with possible parent group name(s) prepended, all separated by a given separator. As an example, a tree with separator “//” would be represented in this way:

A//alfa//x
A//alfa//y
B
C//alfa
C//beta

I have programmed a very simple action that I would like to share.
Such action transforms a flat category containing “full path” item names into a hierarchy of item groups and items.
It could be run after importing the path names with datalink.
To try it, download the enclosed plugin zip file and extract it in the quantrix program directory. In Modeler, from the Tools menu, select the item “Create groups from full path item names”. The current implementation has settings hard coded into the action: the category to “hierarchize” is the first row category in the currently selected matrix, and the separator is “//” (double slash). Error trapping is rudimentary.
I enclose a sample model .

0

Hi,

I’ve tried automatically create some groups from a list and I am obtaining a partial results. Just some lines in this list are being grouped.

Is there any limitations at “create groups from full path item names” function?
I am trying on a 43 lines list.

Please, let me know…regards,

Angelo

0

Thanks, Filippo, I am happy that it works and is useful for you. Maybe in a future version of Quantrix, some functionality of this sort will be configurable in the Datalink directly.

0

[quote="Quantrix QA":255azef2]Maybe the Quantrix configuration directory needs to be reset. Please do the following:

– Close Quantrix
– Delete the following directory:

C:Documents and SettingsyourUserName.quantrix

– Restart Quantrix and see if the plugin starts.

-Mike[/quote:255azef2]
Thanks! It works now! :)

Great job luca, very helpful plug-in

0

Maybe the Quantrix configuration directory needs to be reset. Please do the following:

– Close Quantrix
– Delete the following directory:

C:Documents and SettingsyourUserName.quantrix

– Restart Quantrix and see if the plugin starts.

-Mike

0

Still no luck… :(

Attachments

plugin2.jpg
0

I downloaded Luca’s plugin and it seems to work. I attached a couple of screenshots that may help in plugin installation.

-Mike

0

[quote="lerzegov"]Filippo:
– you should have quantrix professional version installed in order to run QAPI plugins]
Just checked it, I have that folder there, and my quantrix is the professional version. Still doesn’t work though… :(

0

Filippo:
– you should have quantrix professional version installed in order to run QAPI plugins;
– after unzipping, in the c:program filesquantrix modelerplugins folder you should have a folder named “it.unitn.luca.groupAction_2.1.0.0002”
I checked a fresh installation of the plugin, and it seems to work.

Hope this helps

0

Hi Luca,

I’m having some trouble installing this.

I extracted the zip file to c:program filesquantrix

Opened up quantrix (your sample model) but I can’t find the “Create groups from full path item names” item…

What am I doing wrong?

Thanks in advance

0

Greeting and Happy New Year, Luca! Thank you for sharing that plugin. It’s a very cool approach to adding heirarchical dimensions to Quantrix models from datalink.

Cheers,

pete
peter m. murray

0

Hi Luca,

Thank you for your post and plug-in – we appreciate it! 🙂

Hope you have a great start of the New Year!

Kind regards,

Els