D365 Parameter Table code
Below are the find and exist methods of the parameter table.
public static ParameterTable find(boolean _forupdate = false)
{
ParameterTable parameter;
if (_forupdate)
{
parameter.selectForUpdate(_forupdate);
}
select firstonly parameter
index hint KeyIdx
where parameter.Key == 0;
if (!parameter && !parameter.isTmp())
{
Company::createParameter(parameter);
}
return parameter;
}
public static boolean exist()
{
return (select firstonly RecId from ParameterTable).RecId != 0;
}
Below are the find and exist methods of the parameter table.
public static ParameterTable find(boolean _forupdate = false)
{
ParameterTable parameter;
if (_forupdate)
{
parameter.selectForUpdate(_forupdate);
}
select firstonly parameter
index hint KeyIdx
where parameter.Key == 0;
if (!parameter && !parameter.isTmp())
{
Company::createParameter(parameter);
}
return parameter;
}
public static boolean exist()
{
return (select firstonly RecId from ParameterTable).RecId != 0;
}
No comments:
Post a Comment