photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: JohnZeman on January 25, 2018, 09:32:48 PM

Title: App Panels and App Names
Post by: JohnZeman on January 25, 2018, 09:32:48 PM
I like to group my apps so to speak, meaning I like to open apps that perform similar functions into the same app panel.

For example I have one called Photo Processing which performs specific functions whenever I add new photos to my database.  And when I'm done with that app, I always want to open another app in the same panel which moves the new files to the appropriate folder.  I do this by creating a simple html link (button) to the second app and it works great.  I just click the Go to App2 button and App 2 is loaded into the same app panel.

The only issue is, and admittedly it's a minor one, when I do this the name of the app at the top of the app panel still shows the original App1 name instead of the just loaded into the panel App2 name (see attachment).  Refreshing the app panel does not change the name.

Is this to be expected or can it be changed?
Title: Re: App Panels and App Names
Post by: Mario on January 25, 2018, 10:54:14 PM
The App Panel shows the name of the loaded app.

If you load another app, web site or local HTML file into the embedded Chromium, IMatch has no knowledge about this.
Did you try to use the runapp endpoint to run your other app, instead of a plain link?
Title: Re: App Panels and App Names
Post by: JohnZeman on January 25, 2018, 11:14:46 PM
No I haven't tried the runapp endpoint.  In fact it only recently occurred to be that I could group my apps by using simple html links so that's the way I went.

I'll have to look into that run app endpoint, thanks Mario.
Title: Re: App Panels and App Names
Post by: Mario on January 25, 2018, 11:27:26 PM
imatch/apps/run should to what you want (there is also an example app for this). It allows you to run an app in a specified app panel or a modal.
Title: Re: App Panels and App Names
Post by: JohnZeman on January 25, 2018, 11:31:40 PM
Thanks Mario, I'm looking for that sample app right now.
Title: Re: App Panels and App Names
Post by: JohnZeman on January 26, 2018, 12:35:55 AM
Problem solved! :) :) :) :) :)

Found what I needed in the imatchlib.js file and now when I switch from one app to another within an app panel the name at the top shows the name of the app currently loaded.

Many thanks Mario, you da man!
Title: Re: App Panels and App Names
Post by: Mario on January 26, 2018, 12:42:13 AM
Excellent!