Skip to main content
Answer

Add values to UI controls.

  • October 4, 2023
  • 2 replies
  • 83 views

Forum|alt.badge.img

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();
}

 

Best answer by Giri K

@bhagyat25 

You have to use Dataview and Dac here 

Ex: 

MyDac objname=this.MyDataview.current;

objname.Active=true;

objname.utrNo="55555";

2 replies

Forum|alt.badge.img+9
  • Semi-Pro III
  • October 4, 2023

Hi @bhagyat25 ,

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

Regards,

Sweta


Forum|alt.badge.img+1
  • Pro I
  • Answer
  • October 4, 2023

@bhagyat25 

You have to use Dataview and Dac here 

Ex: 

MyDac objname=this.MyDataview.current;

objname.Active=true;

objname.utrNo="55555";