cancel
Showing results for 
Search instead for 
Did you mean: 

Autofill other fields based on OVS

NagaPrakashT
Contributor
0 Kudos

Hi,


I have created an OVS and in my OVS i am displaying 3 columns.I have assigned the OVS to a field in QC screen, now when i select from OVS other fields in the QC screen should populate automatically.

How to achieve it.

Thanks,

Naga

Accepted Solutions (1)

Accepted Solutions (1)

NagaPrakashT
Contributor
0 Kudos

Can be achieved by writing an ABSL script in AfterModify event.

Sample Code in AfterModify event is

var attName = this.attName;

if(attName.IsInitial()){

}

else

var query = Attributes.QueryByElements;

var query_selparams = query.CreateSelectionParams();

query_selparams.Add(query.attName, "I", "EQ", attName);

var query_result = query.Execute(query_selparams);

var result_data = query_result.GetFirst();

this.attDesc = result_data.attDesc;

}

Thanks,

Naga

Answers (0)