RE: Creating new tab on lookup on a field in transfer journal
Dear André Arnaud de Calavon,
Do you think to change in below code on form level methods. I did the same as you suggest me i copy on-hand button and just paste it. Now the next task is to bring some modification in the new tab code for Empty Location as for our needful.Is this correct place need to be changed.
void setShowAvail()
{
this.lock();
ctrlInventSum_AvailOrdered.visible(ctrlShowAvail.value());
ctrlInventSum_AvailPhysical.visible(ctrlShowAvail.value());
ctrlPhysicalInvent.visible(!ctrlShowAvail.value());
this.resetSize();
this.arrange();
this.unLock();
Second method on Form level methods below.
FormControl getLocationIdControl()
{
InventDimFormControlInterface fc;
Object dummy;
InventDimAXFormControlAdapter controlAdapter;
InventDimControlsCollect_Frm inventDimControls = this.inventDimSetupObject().inventDimControls();
DictField df = new DictField(tableNum(InventDim),fieldNum(InventDim,wmsLocationId));
for (fc=inventDimControls.first();fc;fc=inventDimControls.next())
{
if (fc.isInGrid())
if (df.name() == new DictField(tableNum(InventDim),fieldExt2Id(fc.dataField())).name())
{
//work around the compiler bug
dummy = fc;
controlAdapter = dummy;
return controlAdapter.parmFormControl();
}
}
return null;
}
}
Please suggest me. Thanks in advance
Best Regards,
Shabir Ahmad