Eclipse Scout Table Menu depend on table context - contextmenu

What is the best way to do "context aware" menu for table in Eclipse scout.
For example, lets assume that table has boolean row "Additional", and we want :
if Additional is true show menu :
Edit
Add
Additional
if false
Edit
Add
Delete
How to do this ?

From Eclipse Scout 4 and newer:
What you want is to override execOwnerValueChanged(Object) on your menu items. You will be passed a List<ITableRow> as argument with which you can decide if the menu item should be visible/enabled.
I'd suggest you create 2 menu items for Delete and Additional and then implement the solution above.
See also the wiki page in the Scout Eclipsepedia.

Related

Is there any custom option to lock work item for specific iteration?

I'm trying to lock/deny the option to open a new work item with specific iterations.
I tried to do it with a custom field with same value of iteration id and
<PROHIBITEDVALUES> rule.
Then I understood that its not possible because iteration-id field load only after I press the "save" button and its too late.
There any other ideas how to do it?
There is not any build-in option to hide older/specific iterations in the Work Item field.
However, you can set the security for "Edit work items in this node" to deny and they will not be able to save work items with the area or iteration selected.
Besides you could also hide the iteration node(s):
Open Project settings>Project configuration
Select the Iteration Tab
Select the iteration that you want to hide
Click on Security > Add a "Deny View" permissions for the users that
you want to hide the nodes from.
The user will not able to see the iteration in the sprint.
update:

Chart of Item Types in VSTS

I'm trying to convert a small team to the benefits of using TFS with Visual Studio Online. I've created a custom process and custom work item type. I've also adde a few 'custom' states for items (eg: 'In Test').
Is it possible to create a query/chart similar to below, with a count of each item type - as below?
Create a new query to retrieve necessary work items
Go to your team project Home page (e.g. Home=>Overview)
Click Edit Dashboard=>Add Widget
Select Char for Work Items=>Add
Click Configure to configure this widget
Select corresponding Query
Select Chart type (e.g. Column)
Select State in Group by list
Click Save
Yes, VSTS supports dashboards that you can easily add widgets to. You can add dashboards on the Home tab by clicking + New in the upper right, and edit with the checkmark in the lower right. Have a look at the Chart for Work Items widget. Given a query of work items, it supports various chart visualization that you can configure and show.

DateTime of sprint backlog task status change to "Done"

Is there a field in TFS or any way to get the datetime value on which a sprint backlog task was changed to done?
I spotted an AuthorizedDate field but I'm not sure if it's out of the box or not.
Suggestions will be appreciated.
It is possible to get TFS to do this for you if your template isn't already set up to do so.
Start the TFS Process editor (Install TFS power tools if needed), connect to TFS and edit the WIT Task.
Create a new field called (For Example) CompletedDate with a suitable reference name (For example: StackOverFlow.Questions.TaskCompletedDate).
Set it to be of type DateTime.
Next go to the workflow tab and do the following for each of the transitions to the done state:
Right Click, select open details
Select the fields tab, click new.
Enter the reference name of the field you create above (StackOverFlow.Questions.TaskCompletedDate).
Select the Rules Tab and click new.
Select SERVERDEFAULT from the list of rules
On the dialog that appears, set the from field to clock.
Click OK, OK, OK to get back to the workflow.
Save the Work Item Definition.
See:
https://msdn.microsoft.com/en-us/library/ms194981.aspx
When your work item is set to done the closed date and closed by fields are set automatically.
These fields are part of all of the default templates.
Some of the older 2012 & 2013 templates did not include this for tasks and you would have to adds it', however you should use the out of the box provided fields and not create new ones. If you are reporting in this it's a nightmare if each work item type had its own way of doing things. Use the System.ClosedDate and System.ClosedBy field. You can copy the setup from the PBI or Bug work items..

How to control group breaks in ReportBuilder?

In Delphi, using Digital Metaphors' Report Builder, I'm creating a report that is grouped by a field (named "Section").
I would like the groups to be printed one after the other without breaks, unless another field (named "SectionType") has a certain value, in which case, the group must start on a new page.
I have tried to use the onGetBreakValue event with no success.
How can I achieve the desired behavior?
You need 2 groups on your report, first by "Section" then by "SectionType" under the Report -> Groups... (Ctrl+G) menu option in the report designer. There you can select the Start New Page for the "SectionType".

Adding a column to an Acumatica grid

What is the best way to add a column to a grid in Acumatica? I've looked at the documentation, and I can't seem to find a way to do it.
Thanks
It depends on the type of grid you are using. As an example, lets say you are going to add a CreatedDate column to the details grid of Journal Transactions screen.
You will need to switch to design mode and open up the Aspx Control Tree and select the PXGrid node, click Add, and select Add Column to Grid to open the Add Grid Column dialog.
Find the field you want to add (in this case CreatedDateTime). you can also create new cusomt field here by pressing Add. Pick the correct Column Editor type (like DateTimeEdit) and press OK
move the Column up and down using the left tree to put in position you want.
Validate and publish the project!
If you want to modify existing grid which was created by Acumatica you'll need following steps:
1. Add field in DB ( optional )
2. Add filed description in DAC extension
3. Add column to page in customization engine, or manually imitate behavior of customization engine

Resources