How can I create a simple grid? - acumatica

I want to create a simple gird with 2 columns, I've been trying to create it inside a new tab(Test)...
but when I add the new grid the tab disappears.
Do I need to add any more components?
Thanks!!!

The tab is empty because there are no visible fields in them. The framework hides empty tabs automatically.
To add fields you need to set the grid DataMember property first.
The value needs to be set to the name of a DataView contained in the graph bounded to the customized screen. If you need new data you need to create a DataView in a graph extension. In your scenario the graph used is InventoryItemMaint.
Example for DataMember property, I used ItemSettings DataView because it is part of InventoryItemMaint graph:
Then you can add the fields from the ADD DATA FIELDS tab:

There are a number of steps that need to be followed such as adding a Data View in your graph, linking the data view to this gridetc. In case you are not familiar with this I would suggest that you follow the Acumatica T200 Training (from the Acumatica University).
Regarding Tab disappearing, I believe this might happen because your grid might not be linked correctly to the Graph. Also, Acumatica automatically removes a tab if all the components in that Tab are hidden.

Related

Force user to select only one value from filter spotfire

Is it possible to force the user to select only one value from a filter ?
For a radio button filter as below, is it possible to remove the buttons all & none and make sure that only one Choice is selected ?
you cannot change the existing filter features or functionality without developing a custom extension for a new filter control.
that said, you can certainly emulate a filter using what's called a Property Control and a Data Limiting Expression. for single selection, you're stuck with either a Dropdown control or a Listbox (single select) control.
you would need to...
create a Text Area Visualization on the page somewhere
insert a Listbox or Dropdown Property Control into the Text Area Visualization
create a Document Property with the same data type as your filter column and associate it to the Property Control. you can set this to Unique Values in Column or write in your own Fixed values.
open the Properties dialog on the visualization you'd like to filter and navigate to the Data page
scroll down to Limit Data Using Expression and use an expression like [MyFilterColumn] = "${MyDocumentProperty}" (quotes are required for string values; if numeric then omit quotes)
Please add this CSS in the HTML page of the spotifre to remove all and none
.ColumnFilter .sf-element-filter-item:last-of-type { display:none; }
.ColumnFilter .sf-element-filter-item:first-of-type { display:none; }
Another way to force the users to select one option is to add a Show/Hide in the visualization like this: Hide if UniqueCount([Field]) is greater than 1

Inheriting Copy and Paste function on extended screens

We are trying to extend the concept of Copy and Paste function on screen to our custom screen so when users copy on Sales Order screen it should also copy the extended/custom screen fields so we can paste it back to new document.
How do we inherit copy and paste functionality to add those additional custom fields? Any help would be much appreciated.
The Copy-Paste feature only works with input controls and grid columns defined on Aspx page. To paste custom field values to a new sales order, you should create input controls for each custom field and verify they stay enabled for the Copy-Paste feature to work (values from read-only controls and cells are always excluded from the copy function).
Since the copy function does not check if control is visible on the screen (only is control is disabled), to extend the copy-paste function with custom fields you can add hidden control for every your custom field by setting Visible property to False in Layout Editor:

Changing Labels for a Single DAC Field Used Multiple Times

My scenario involves fetching data from a table that returns multiple results to be displayed. My problem is that when I add the fields on the screen, the labels are all the same. I am pulling notes from 3 different screens onto one screen to display for the user. The notes are from a Sales Order, Customer, and Inventory Item. The data is being pulled correctly for each screen, but the label for each text box is "NoteText." I would like to change these labels to more accurately reflect which screen the note is from.
Thanks.
If I'm understanding your question correctly, you'll want to use a Cache Attached event handler for the fields in question. CacheAttached event handlers allow you to change the attributes of a field within the graph.
[PXUIField(DisplayName = "SO Notes")]
protected void SOOrder_NoteText_CacheAttached(PXCache sender)
{}
This may be specific to my situation, but I found a solution. What I am doing is suppressing the generated titles and customizing RowSelecting() of the DAC to add my own titles within the NoteText based on the note's GraphType parameter. I have all other parameters to filter down to the three notes I would need to display for that specific page. I use the GraphType to insert the text in front of the note to generate my own label for it.

Add a new tab and move the existing grid as a tabitem in Journal Transactions screen

I have tried to add a tab and drag the existing grid to the tabitem in Journal transaction screen, so that i can add another tabitem and a custom grid. Somehow I am unable to do that.
I tried using the edit ASPX by pasting an updated content information. It too doesnt work. Any help?
You cannot drag the existing grid as it is not a part of customization.
So, the only way I see here is to create Tab control with your own grid (you can just copy the aspx of the existing grid) and remove the original grid.
It's not very good solution as if the Acumatica change something in that grid you'll have to merge these changes to your customization manually.
However, I don't think there is another way to achieve this.

How to create nested tiles in Power View

I am currently able to use the tile feature in Power View to view data much more quickly. However I haven't figured out a way to have nested tiles to further drill down into the relevant data.
For example, I want a tile strip at the top of my view of all the different "Projects." Once I click on a tile, I want to see all the relevant data for that project and have part of that container have a strip of tiles to show "Risks, Issues, Action Items, etc." and other items in a list. See image in this link (it is a non-working dashboard, but showing you all to get a better idea of the hierarchy).
Does any one know how to do this? I know I can use slicers instead for one of the levels or view filters but I want to be able to use tiles for both.
If you use a slicer within your tile it will almost do what you want. However, you wouldn't get the nice icons for warning & error to be the source of selection. You could make it more visual by separately having a table that includes the images so that when a user selects a slicer value, it shows the appropriate icon.
HTH,
-Lukasz
In the September Power BI update they've added te possibility to: Drill Up/Down for column and scatter charts in Reports.
Check out: Changelog

Resources