Solved

How can I get the records from a data view that are display on a grid without reselecting the records?

  • 27 January 2023
  • 3 replies
  • 216 views

Badge +11

I’m dealing with a situation on Invoices and Memos entry screen where the Applications tab data is generated from an action, which means that the View.Select() does not return the data. How can I see the records without using View.Select()

icon

Best answer by darylbowman 30 January 2023, 19:19

View original

3 replies

Userlevel 7
Badge +17

Hi @darylbowman  Have you checked with View.Cache.Cached() ?

Userlevel 7
Badge +8

I’m not sure what objective you have but if you want to get the modified record from Cache, in addition to what Naveen suggested, you might want to try Locate method something like

ARRegister cached = (ARRegister)Base.ARDocument.Cache.Locate(ardoc);

This will get the modified record for the ardoc 

 

Badge +11

@Naveen Boga - View.Cache.Cached did not seem to be at all reliable.

@aaghaei - I needed to update a record rather than get the changed record.

I found Base.Adjustments.Select() DOES return the records after they had been loaded with Base.loadDocuments.Press(); 

 

I don’t quite understand what the .Select() method does, as I thought it re-selects from the database, but apparently not.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved