I'm having an issue with navigation in a GI that references a custom view.
I have a custom view and associated DAC created and used in a GI. When I add navigation links to the GI it always does the navigation using the values in the first row of the grid.
I have another custom view where the navigation works fine.
I assume it has to do with having key fields defined in the DAC, but I do have IsKey assigned to several fields in the DAC.
Any ideas?
I suspect that you might not have a PXPrimaryGraph configured. This link should show you a few examples of setting one up.
https://help-2020r2.acumatica.com/(W(1))/Help?ScreenId=ShowWiki&pageid=1dceb511-4e98-3700-7d7f-231688a7ac74
Related
This relates to and extends an existing StackOverflow case that has been answered -
How to place a 'Related Entity' lookup on a field (many thanks to Acumatica support on this as well)
I have a custom screen that adds a 'Related Link' control, like this:
And this works as expected. I've also included several custom screens as entities to link to by adding the NoteID, RefNoteID, RelatedEntity fields to their DACs and the PXRefNoteSelector attribute to their view declarations. Everything works as expected, except that the pencil icon doesn't launch to the entity / screen that's been selected.
Is there something (an attribute, perhaps) that I'm missing in the DACs that needs to be added in order to launch to the selected entity?
You need to decorate the custom entity DAC with PXPrimaryGraph attribute and pass the maintenance page graph type in parameter:
[PXPrimaryGraph(typeof(CustomEntityMaint))]
[Serializable]
public class CustomEntityDAC : PX.Data.IBqlTable
{
}
I have a process that involves extending the "Files" menu that is located on (most) acumatica pages (next to notes and activities in the top right)
I would like to add two columns to the table that appears in the smartpanel.
I have been looking for the source code/data behind this smart panel and I cant seem to find it, is it tied into SM202520 (search in files)? Can it be extended?
Am I better off just adding a PXAction button to the 3 or 4 pages I want my extended "files" menu to be?
Thanks
There's no DataView bound to that dialog, you can verify that by using inspect element shortcut key CTL+ALT+CLICK on a grid column header:
In order to be customized the grid needs to be bound to a DataView which inspect element reveals it is not. The lack of DataView binding is by design and therefore that dialog can't be customized.
A grid that can be customized will show the View Name property:
I created a DAC extension mapped to an extension table off of SOShipment. I have two custom fields in the extension table that I'd like to add to the Sales Orders entry form, specifically the grid in the Shipments tab. When I go to the layout editor for this form and select the Grid: ShipmentList under the Shipments tab, there are no fields in the Add Data Fields tab on the right. Also, I see a yellow circle with this error in several places:
The "ShipmentList" view is not found. Try to publish the customization project.
I published the customization project, but the error persists. To my knowledge, we haven't done any customization that would've touched the ShipmentList view. What is the issue here and how do I resolve it?
Since you are trying to add those Custom fields to the Grid: ShipmentList(which primary DAC is SOOrderShipment), make sure you add the Custom Fields to the Correct DAC extension, the correct DAC extension should be for SOOrderShipment.
(You have to rename the DataView because in base code, this Dataview is named shipmentList. However, the editor Tool when generating Customization Script for that screen is assigning ShipmentList(Capital S) to Datamember instead of correct Dataview name. )
So, then Go to Section Screen, Select SO301000 screen, select the Grid(ShipmentList) under the Shipments Tab, select Action->Edit ASPX, then locate on DataMember="ShipmentList" (with Capital S) and replace it for DataMember="shipmentList" (lowercase s). Then click on "Generate Customization Script" and publish your Customization.
After publishing, go to SO30100 Screen, select correct Grid and you will be able to see new Custom Fields and the warning message gone.
We have a custom screen and two DACs (header and detail) that feed that custom screen. We also have a GI that is based on the values in the detail DAC. The custom screen's header has two key values. What we'd like to be able to do is use one of the fields of the GI as a hyperlink to open our custom screen, passing two of the values from the GI into the Header's key fields. I'd like to know if this is possible.
I understand how to create a new graph object for my custom screen in a graph extension and create a button to make a hyperlink, but since the GI doesn't have any graph to extend, it's a bit of a mystery...
I believe the required behavior is only achievable since ver. 6, where in the Generic Inquiry Designer you have the Navigation tab to configure how values from the GI will be passed into the Header's key fields:
I have a custom selector attribute that returns different recordsets based on what a user field in the Tasks grid (on the projects screen) is set to. I have commit changes set to true for the user field, and syncposition=true in the aspx for the grid. Since the custom selector attribute is added via the TaskCD CacheAttached event, I don't see the AutoRefresh property in the field's property window (see below):
Is there a way to AutoRefresh in code?
You have to additionally declare input control for the custom column. For reference see screenshots below captured from Step 11.9 of T300 training guide: