Announcements
i'm having a issue i have set the control mandatory on through active() but the problem is when open the form it does not show me red line that shows it is set as mandatory but when i click on control then it show me the red line in the control......
anyone please suggest me what should i do to set control mandatory when i open the form
Hi,
Please try with the following statement and when you say on opening the form, does the control/field have data in it. If so, it's the expected behavior.
DatasourceName_ds.object(fieldNum(TableName, inventSiteId)).mandatory(true); DatasourceName_ds.object(fieldNum(TableName, ItemId)).mandatory(true);
public int active()
{
if(table.formulaId == "1")
{
formulasheet1.enables(true);
formulasheet2.enables(false);
formulasheet3.enables(false);
itemId.mandatory(true);
inventSiteId.mandatory(true);
}
and so on for different formulaId
}
suggest me what should i do
i'm on different client i'll share my code later if you don't mind....excuse for my delay
thanks for reply sukrut...
controls are in condition that is why is have used active method, and i have to set controls mandatory not line, i said that on setting control mandatory a red line appears but it does'nt the red line appears when i click the controls
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,186 Super User 2024 Season 2
Martin Dráb 227,996 Super User 2024 Season 2
nmaenpaa 101,148