Show transition screen fields on issue screen - workflow

Is it possible to show on an issue screen the value of transition screen fields ? (on the right side for example such as date fields)
Example :
I have a field called "initial date" in a transition of my workflow, and I wonder if it was possible to show it on the right side of my issue's screen ?
Thanks a lot,
Christophe

I'm not sure, but you can add this field to default screen on this issue type and if value of this field isn't empty, should show on view issue page.
On the right side of issue will show always all fields type: user and date in default configuration.

Related

Why does clicking on a TextFormField trigger didUpdateWidget()?

I've ran into a problem. In one section of my page I have a date with today's date. If the user clicks on an arrow to the right it goes forward a date and if they person clicks an arrow to the left it goes back a date. On the arrow buttons I am using setState. The date changes perfectly fine.
I also have a form below on a separate card. To each textFormField I h ave a controller set up. I had to set these up because initialvalue: only gets called once so the fields were never changing with the date.
Anyway the fields now change with the date and it is correct. But the moment I click on the form, The top widget date shoots back to the initial value it was at?
I checked this by setting up a didUpdateWidget override and this is firing every time I click on the form field??? Why is this happening. I am not updating anything yet.
When I used a controller for the date value displayed between the two arrows it doesn't change but when I hit submit the value it's supposed to be assigned to is the wrong (very first date that appears). So it seems like when didUpdate fires it is setting that field which I have set in my extends StatefulWidget class{}.
EDIT: Wow typing that last sentence made me realize I needed to set the value in my bottom class that extends State<>. I was using it with widget.activeDay.
I guess I'm still curious as to why this is happening with the text form field though?
Clicking on a text-field opens the keyboard.
This changes the screen dimensions and leads to MaterialApp rebuilding the route.
The route rebuilding ultimately calls didUpdateWidget on that specific widget.

Keyboard wont navigate between input fields.

Ive tried every possibility to enable keyboard navigation between three input fields but nothing happens. Ive tried automatic, vertical and explicit. Ive checked the "Vizualise" option and see that the three input fields are connected. Ive set the first field to First Selected in the EventSystem. Help me Obi Wan!

Dynamically update install4j screen content

We have a screen which displays only if we detect a problem with the environment. The screen has a button which retries the environment check. Each time the user retries the error can change and so I'd like to update my Multi-line HTML label accordingly. The content of the label needs to contain information produced during the environment check so even if we get the same type of error twice we may need a different message.
Is there a way to dynamically update the content of a screen? In other answers I've seen that it's usually recommended to set the content of the screen to a variable, and then updating the variable, but since I'm not moving between screens I don't believe the content will be updated. I've seen that calling context.gotoScreen(currentScreen) will refresh the content, but I'm worries this is not standard, and may change in the future in a way that if the provided screen is the current screen, nothing happens.
So the question is, what's the best approach to dynamically update the content of a screen based on user interaction without moving between screens.
Cheers
Each time a form screen is shown, all form components will be reinitialized. For a multi-line HTML label component, this means that the label text will be refreshed.
To update all components from within the screen, call
formEnvironment.reinitializeFormComponents();

Predefined Add Dialog not working as expected in Lightswitch 2012

I've created a query to use in an AutoCompleteBox and it works as expected when the user select the AutoCompleteBox in the grid as shown in the picture below
However if the user click the plus button to add a new record using the predefined Add Dialog then the query and the AutoCompleteBox's format doesn't work as shown in the picture below
Why is this happening and how I can fix that?
Thanks
I haven't yet found a way to edit the default Add New dialog.
Instead, make a new screen, select the "New Data Screen" template, and link it to your entity data. You can customize the screen to fit your needs, even make it a Modal Window by changing the Control Type in the screen properties. Once you have the screen set up the way you want, go back to your grid screen, and double click on the Add... command in the Command Bar of your grid, to edit the AddAndEditNew_Execute code. In that method, call your custom screen.
So, as I got to thinking about this some more, I came back to the thought I had when I tried to do this a few months ago. There has to be a better way, so I Googled it again.
This time, I found something. He's using an old version of Lightswitch, but I've successfully applied his technique in my application built in Lightswitch 2012.
http://www.c-sharpcorner.com/UploadFile/051e29/modal-window-in-editable-grid-screen-in-lightswitch-2011/

How to add a Button to a HeaderSpan in SmartGWT?

I want to add a Button to a HeaderSpan in SmartGWT. At start, the title of the button will be + (Plus), when the user clicks the button, all the rows of the table are shown and the title of the Button becomes - (Minus). There are around 25 columns in the ListGrid hence I want this behaviour.
I have tried using the HeaderSpan.setAttribute("button", new Button("+")) method but it did not work. Please help.
Any other approach to hide/unhide columns will be very much appreciated.
I've watched this link. As per the overview given in the screen, it does provide hide/show of particular column as well as particular headerspan. On right side of each column a dropdown like button is given which is visible on mouse over & serves your purpose. If you want to change it's icon, you can try the following code, where headerMenuButtonIcon is the path of your image:
grid.setHeaderMenuButtonIcon(headerMenuButtonIcon);
Hope this helps you.