Get Last Two Characters
Str s = 'AXAPTA';
info(strfmt( subStr(s,strLen(s)-1,strlen(s)));
OutPut : TA
Get First Two Characters
info(strFmt(subStr(s,0,2 )));
OutPut : AX
Get Last Two Characters
Str s = 'AXAPTA';
info(strfmt( subStr(s,strLen(s)-1,strlen(s)));
OutPut : TA
Get First Two Characters
info(strFmt(subStr(s,0,2 )));
OutPut : AX
Write below code in your UIBuilder Class
public boolean validatePostingProfile(FormStringControl _control)
{
boolean ret = true;
VendPostingProfile vendPostingProfile;
vendPostingProfile = _control.valueStr();
if(VendLedger::find(vendPostingProfile))
{
if(vendPostingProfile != ' ' )
{
error ('Posting profile does not exist');
ret = false;
}
return ret;
}
call the above method in PostBuild method
dlgpostingProfile.registerOverrideMethod(methodStr(FormStringControl, validate), methodStr(<yourUIBuilderclass>, validatePostingProfile),this);
Tables-->InventBatch-->ValidateField
case fieldNum (InventBatch,InventBatchId):
if(strContains(this.InventBatchId," "))
{
ret = checkFailed("Empty space is not Allowed");
}
update_recordset with joins update_recordSet storeTransfer setting TransactionId = transfertable.TransferId join transfert...