GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Configuration Item Descriptions

scripting

#1

According to the Help file..


I tried this JS code in OnInit:

d.config.trace = true; var m=DOpus.Create.Map; m("trace") = "Set to TRUE to activate debug trace."; d.config.config_desc = m;
This is what I see in the command's configuration:


I'm obviously doing something wrong. Can someone provide a working example such that my supplied description aligns with the matching configuration option.

Regards, AB


#2

vbs code

	initData.config_desc = DOpus.Create.Map("Item1", ".........","Item2", ".........")

#3

Thanks @qiuqiu

My code should have been..

d.config.trace = true; var m=DOpus.Create.Map; m("trace") = "Set to TRUE to activate debug trace."; d.config_desc = m;
or in simpler form..

d.config.trace = true; d.config_desc = DOpus.Create.Map("trace","Set to TRUE to activate debug trace.");
Regards, AB


#4

Consider using this little helper, I don't do without anymore o): Helper: ConfigHelper (easier config item handling)
It is more easy to use when creating and maintaining (many) config items and their descriptions, adding values to vectors etc..


#5

I certainly will @tbone. I like the concept.

Regards, AB


#6

I updated the helper, hope you still recognize it, as what it is! o))