Solved

Add values to UI controls.

  • 4 October 2023
  • 2 replies
  • 64 views

Userlevel 3
Badge

I need to change the values of the UI fields after button click.

This is my button click event in graph and screen. Can some one help me out?

protected virtual IEnumerable verifyVendor(PXAdapter adapter)
{
    bool isActive = false;
    string utrNo = "55656565SSS";
    //Need to change UI Active and UTR fields values from above
    return adapter.Get();
}

 

icon

Best answer by Giri K 4 October 2023, 15:40

View original

2 replies

Userlevel 7
Badge +10

Hi @bhagyat25 ,

You need to create graph instance, access those fields from DAC and then assign values to those fields.

Regards,

Sweta

Userlevel 4
Badge +1

@bhagyat25 

You have to use Dataview and Dac here 

Ex: 

MyDac objname=this.MyDataview.current;

objname.Active=true;

objname.utrNo="55555";

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