acumatica

Action upon selecting a line in a grid

别等时光非礼了梦想. 提交于 2020-08-10 20:27:50
问题 I'd like to enable or disable a button upon selecting a line in a grid, here's what I tried for now : public virtual void ARRegister_RowSelected(PXCache sender, PXRowSelectedEventArgs e) { ARRegister row = e.Row as ARRegister; if (row == null) return; UnProcessLettering.SetEnabled(row.GetExtension<ARRegisterLeExt>().LettrageCD != null); } And I've set the syncposition as true in my grid. But nothing changes when I select a row in which LettrageCD is not null or is null. Edit : it seems my

How to display image in GI

耗尽温柔 提交于 2020-06-29 04:21:11
问题 How we can display images in GI screen, can anyone please let me know. I have tried joining NoteDoc and UploadFile with InventoryItem and used FileID from UploadFile table but it is showing as text only but not image. 回答1: The built in Generic Inquiry 'StockItemsImages' uses the grid Notes/File dialog to store the image: You have to go through the dialog to see the image: To display an image in a grid you would have to change the Type property of the PXGridColumn ASP control which is

Insert a grid line when the record gets saved

本秂侑毒 提交于 2020-06-17 06:32:35
问题 I am trying to add a new record to a grid during the persist logic. However, even though the record does get added to the grid in the UI, when the page gets refreshed, the new line disappears. It is not getting persisted in the DB. I am using the Bills page as reference. Code sample protected virtual void APTran_RowPersisting(PXCache sender, PXRowPersistingEventArgs e) { if (e.Row == null) { return; } APInvoice invoiceRow = this.Base.Document.Current; if (invoiceRow != null) { APTran tranRow

Insert a grid line when the record gets saved

南笙酒味 提交于 2020-06-17 06:30:09
问题 I am trying to add a new record to a grid during the persist logic. However, even though the record does get added to the grid in the UI, when the page gets refreshed, the new line disappears. It is not getting persisted in the DB. I am using the Bills page as reference. Code sample protected virtual void APTran_RowPersisting(PXCache sender, PXRowPersistingEventArgs e) { if (e.Row == null) { return; } APInvoice invoiceRow = this.Base.Document.Current; if (invoiceRow != null) { APTran tranRow