How to go back to an earlier screen in install4j? - install4j

Basically, I want to go to the Installation Components screen, after one installation. Just like the dbca setup wizard.

Note the ID of the screen you want to go to, say "123", and call
context.gotoScreen(context.getScreenById("123"));
in a script, for example the validation expression of another screen.

Related

Function across multiple view controllers

I am trying to make a function so that I request a 'manager override' where it presents a screen for a manager to enter their password and press an approve button. How should I do this? Will it have to be in multiple functions? Is there a way that I can call one function and it present the information back? Would a completion work for what I need? I have no ideas where to start for this.
My set up is as follows:
A view controller asks for manager approval, then a screen slides up with text boxes and an approve button. I want the approve button to trigger authenticating and dismissing the screen
Assuming you don't want a Framework target (that sounds like overkill for what you want) simply mark the function as "public" and move it outside of any class. I just tried in a sample project and it works.
It looks important - remember to keep it in a file already in the project. (My sample project didn't work with menu option File|Add|New|File.)
Now, if you really want portability, check out how to create a Framework project.

How do I set up the deployment section in PhpStorm?

This is a two part question.
The first part is how do I fill out the deployment section of PhpStorm, if I am trying to set up Homestead via vagrant. I have attached a picture showing how I think it needs to be set up.
The second question is whenever I try and click the "Test Connection" button I get the error shown in the second image. How can I fix this?
Fixed it :)
Okay so I had to change several things. But in the end this is what it looks like.

Hiding workflow re-assign button in Maximo

Is it possible to hide the re-assign button in the workflow dialog box for the users? and if so how?
Thanks
my solution may not be the best one, but it works for me. I hid the button using CSS.
Just go to the Application Designer app and use Export system XML action from Select Action dropdown. Then pick LIBRARY XML and save it somewhere on your disk. Open it (using WordPad preferably, Notepad is causing some issues when importing back to Maximo) and CTRL+F find Complete workflow assignment dialog. Go down a bit and you'll see <pushbutton> with label Reassignment:
<pushbutton id="completewf_b_4" label="Reassign" mxevent="directorinput" value="reassign"/>
Add textcss="reassign_btn" (the name is up to you of course)
<pushbutton id="completewf_b_4" label="Reassign" mxevent="directorinput" textcss="reassign_btn" value="reassign"/>
Then save the file and import LIBRARY.xml back to the Maximo using Application Designer app again. Then just edit your maximo.css file (located somewhere in \applications\maximo\maximouiweb\webmodule\webclient\ depending on which skin you are using) and add:
.reassign_btn { visibility: hidden; }
Hope this helps :-)

"Console" output on Installation screen?

at the moment we use the Installation screen to display the installation progress and the currently running action (e.g. "Installing step 4").
As an additional information we would like to present the user informations, what happend before, e.g.:
Installed step 1 - ok
Installed step 2 - ok
Installed step 3 - ok
To do this we would need some kind of console (e.g. a text field / area) on the Installation screen below the progress bar. Is there a chance to do this?
Thanks!
Frank
Currently that's not easily possible. You could extend com.install4j.runtime.beans.screens.InstallationScreen and override the method protected void addScreenContent(JPanel panel, GridBagConstraints gc) to add more visual elements.
Update:
As Frank pointed out, you can just use a customizable form screen and add a "Progress display" component to it. In the "Post-activation script" property you would have to switch to the next screen automatically by calling
context.goForward(1, true, true);

How to create android app running on top of another app

I want to develop a program like button savior (which runs on top of a another app and we can press menu, back buttons on top of a running app). So user do not need to press hardware buttons to access menu, back functionalities.
I want to do the same but to do it I have to run a app on top of another app.
How can I do this?
-Lasith.
Take a look at Robotium: http://code.google.com/p/robotium/
It seems to be doing what you want to do. You can take a look at the code and figure out how to do it.
Well i think that what you are looking for is creating something like Input Method (IME), there is a good tutorial to start with on Android Docs, another thing you can do is to create an activity which contains your virtual controller, distribute that as a lib and then if someone need it they can downloads and register your component into their project, something like what AdMobs does.