Skip to main content
Solved

Add values to UI controls.


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";

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+10
  • Semi-Pro III
  • 229 replies
  • 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
  • 59 replies
  • 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";


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings