Announcements
Hi All
on WHSLocation Form I have added a new FormCehckBoxControl and the requirment is :
tha'ts meaning if the WSHLocationProfile.LocType == 'VPG' then should be the checkbox true and the rest false
What i have treid until now but i can't go forward thus i need help please
[FormDataSourceEventHandler(formDataSourceStr(WHSLocation, WMSLocation), FormDataSourceEventType::Initialized)]
public static void WHSLocation_OnInitialized(FormDataSource sender, FormDataSourceEventArgs e)
{
WMSLocation wMSLocation = sender.cursor();
FormDataSource formDataSource = sender.formRun().dataSource('WMSLocation');
FormRun element = sender.formRun();
FormCheckBoxControl disableLicensPlate;
disableLicensPlate= element.design(0).controlName("WHSLocation_DisableLicensPlate");
WHSLOCATIONPROFILE wshLocationProfile;
WHSLOCATIONTYPE wshLocationType;
while select wshLocationProfile
{
if(wshLocationProfile.LocType == 'VPG')
{
disableLicensPlate.allowEdit(true);
}
else
{
disableLicensPlate.allowEdit(false);
}
}
}
André Arnaud de Cal...
294,165
Super User 2025 Season 1
Martin Dráb
232,968
Most Valuable Professional
nmaenpaa
101,158
Moderator