photools.com Community

IMatch Discussion Boards => IMatch Scripting and Apps => Topic started by: Jingo on September 22, 2019, 05:44:24 PM

Title: "hidden" parameter not working for me....
Post by: Jingo on September 22, 2019, 05:44:24 PM
Hi Mario - I just tried to use the "hidden" attribute in an app.json for the CodeTester App that I just shared...  but it is not working.

{
  "type": "app",
  "id": "5E9966B3-3AC9-4DC9-8D78-E344B1144",
"hidden": "true",
  "version": "1.0",
  "author": [
    "Jingothecat"
  ],
  "name": {
    "": "Temporary Tester"
  },
  "description": {
    "": "this is a temporary app that is used for testing code snippets in Imatch"
....
....


Am I setting the value incorrectly because the app does not start hidden unless I manually set it as such in the app manager... Thx - Andy.
Title: Re: "hidden" parameter not working for me....
Post by: Mario on September 22, 2019, 06:49:12 PM
Not sure what you mean.

The hidden option allows you to hide an app in the task manager and from the drop-down menu in App panels.
Its not terribly useful for normal apps.
Title: Re: "hidden" parameter not working for me....
Post by: Jingo on September 22, 2019, 08:13:21 PM
Quote from: Mario on September 22, 2019, 06:49:12 PM
Not sure what you mean.

The hidden option allows you to hide an app in the task manager and from the drop-down menu in App panels.
Its not terribly useful for normal apps.

Yes... I set the Hidden param because I don't want it to appear in the app manager panel... but that is not working for me. 
Title: Re: "hidden" parameter not working for me....
Post by: Mario on September 22, 2019, 08:32:30 PM
How strange.

Just tried it with the VarToy app.
The app icon vanished from App Manager after a few seconds.
So it works in principle.
Title: Re: "hidden" parameter not working for me....
Post by: Jingo on September 22, 2019, 09:33:18 PM
Quote from: Mario on September 22, 2019, 08:32:30 PM
How strange.

Just tried it with the VarToy app.
The app icon vanished from App Manager after a few seconds.
So it works in principle.

Ok. I'll try it on my other PC when I get a chance... perhaps just a glitch on my work system.
Title: Re: "hidden" parameter not working for me....
Post by: thrinn on September 22, 2019, 09:37:36 PM
Just from a quick glance: Shouldn't it be
"hidden" : true
instead of
"hidden" : "true"
Title: Re: "hidden" parameter not working for me....
Post by: Mario on September 22, 2019, 11:28:13 PM
This is a boolean parameter.
What are you referring to? A glitch in the docs? Sample app? Comments in IMatchLib.js? ...

Please understand that I handle 50 emails and community postings a day. I cannot always figure out the "context" or figure out the details.
It's almost midnight, I'm tired and I have still 10 support emails to reply to...

"hidden": true,

works alright here. Simple.
Title: Re: "hidden" parameter not working for me....
Post by: Jingo on September 22, 2019, 11:37:11 PM
Thorsten is correct... I did it wrong (I put "true" in quotes).... it should just be true (the docs actually don't tell you what value to put in.. just that it needs to be true so I put it in quotes like all the other variables are).  Thx Thorsten!!
Title: Re: "hidden" parameter not working for me....
Post by: thrinn on September 23, 2019, 09:57:13 AM
Hi Mario,
sorry, I should have been a bit more comprehensive. Was a bit in a hurry myself. I was not hinting at any kind of bug or glitch, just suggesting to Andy a possible reason why the Hidden App flag was not working for him. Addressing  him directly would have been better, I suppose.
Title: Re: "hidden" parameter not working for me....
Post by: Mario on September 23, 2019, 10:02:04 AM
I've checked the docs and they are correct.

It reads: hidden: if this value is specified and true, t...

The Boolean value true is not the same as a string with the content "true".
JSON does not do "trueish", like JavaScript does.