I have a user field which displays the ARRegister.RefNbr. This user field is contained in the APTran grid. The user actually creates an AR invoice with a custom action, and the new AR document ref nbr is saved to the APTran grid. I wish to craft the user field as a hyperlink (similar to the inventory receipt reference number, in the SO shipment order tab). Should I use a PXSelector control? What are the proper attributes? The goal is to open the AR invoice screen, when the user click on the user field.
相关问题
- How to add a memo / formatted text field ala Cases
- Create Case with Activity through Rest API
- Acumatica dynamic dropdown
- How to create an ad-hoc email and send it using Ac
- How to include a dialog for file upload
相关文章
- Cannot load a reference assembly for execution
- Adding additional filter field on process shipment
- Create custom User Control for Acumatica
- Sales Price Updating Every Other Time
- Import Amount Paid in screen Bill And Adjusment us
- Acumatica Configuration Wizard error: Can't ge
- How to properly sort Tasks having multi-level Task
- Prevent update of note/files on disabled views
There is a generic approach that allows you to add links to the grid cells and isn't based on selectors or anything else. To implement it you have to do the following steps:
1.Define an action in your graph that handles redirects. Something like this:
2.In the .aspx page definition add a callback command that corresponds to the new action (substitute
grid
with the ID of theARTran
s grid on your page):3.In the grid column where you want to add a link specify link command to point to the above
PXDSCallbackCommand
:This is a bit lengthy way of defining a link but, first, it does not impose any constraints on the field where you add a link and it also gives you full control over which graph to open and what to show there.
Note: you may also need to set
SyncPosition="true"
on the grid control in the aspx.The example is adapted from the Example 3.4 in the Acumatica T200 training guide. You may want to check it out for some thorough explanations and more info.
If you have a selector linked to a standard Acumatica table such as adding a custom field that contains a selector against InventoryItem or ARInvoice you can set the AllowEdit=True on your field in the page containing your custom field. This will automatically add the hyperlink. If your field does not contain the selector it will not work unless maybe setup for segments.
We have custom tables we added to our project where we wanted hyperlinks. As long as you add the PXPrimaryGraph attribute on your DAC you should be able to do the same for a complete custom page/dac.
We started off using the LinkCommand but the AllowEdit approach keeps the code simple without the need for custom logic to support the link. More complex logic than going to the fields primary graph would require a linkcommand.