Friday, July 27, 2018

Banner 9: textbox live hint, validation



Ellucian Banner 9: textbox live hint, validation



set hint in task start of Form controller

getTask().getGoqrpls().gSsnSetItemHint(toStr("FTVVEND.PERS_SSN"));




GoqrplsServices in Common


public void gSsnSetItemHint(NString pItem)
{
//  -- Implemented in version 8.0
//  -- To be used in WHEN-NEW-ITEM-INSTANCE of data enterable SSN items
//  -- SSN may be a length of 9, 10, 11, 12, 13, 14 or 15 basedup the GUBINST_SSN_MAX_LENGTH value.
//  -- This routine will append to the SSN items autohint display
//  --
NString lvHint= NString.getNull();
NString lvAppendHint = GNls.Fget(toStr("GOQRPLS-0150"), toStr("LIB"), toStr("Maximum field length %01% characters."), getNameIn("GLOBAL.GUBINST_SSN_MAX_LENGTH"));
lvHint = getItemHint(pItem);
if ( inStr(lvHint, lvAppendHint).equals(0) )
{
if ( !lvHint.isNull() )
{
lvHint = lvHint.append("  ").append(lvAppendHint);
}
else {
lvHint = lvAppendHint;
}
setItemHint(pItem, lvHint);
}
}






No comments:

Post a Comment

AWS how to delete VPC when it has error with Network interface , Gateway decencies

   how to delete VPC when it has error with Network interface , Gateway decencies  in AWS 1. Check if it is running on EC2 instance then Sto...