Please use this Code if you want to hide a few parts(Form Parts or Info Parts) in your form
Form --> method --> Run
PartList partList;
int partListCount,cnt;
FormRun factBox;
partList = new PartList(element);
cnt = partList.partCount();
for (partListCount = 1; partListCount <= cnt; partListCount++)
{
factBox = partList.getPartById(partListCount);
switch(factBox.name())
{
// Header factboxes:
case identifierStr(InventOnHandItemCostPart):
factBox.design().visible(false);
break;
}
}
Form --> method --> Run
PartList partList;
int partListCount,cnt;
FormRun factBox;
partList = new PartList(element);
cnt = partList.partCount();
for (partListCount = 1; partListCount <= cnt; partListCount++)
{
factBox = partList.getPartById(partListCount);
switch(factBox.name())
{
// Header factboxes:
case identifierStr(InventOnHandItemCostPart):
factBox.design().visible(false);
break;
}
}
No comments:
Post a Comment