private void initInfo ( int record_id , String value ) { if ( ! ( record_id == 0 ) && value != null && value . length ( ) > 0 ) { log . severe ( "Received both a record_id and a value: " + record_id + " - " + value ) ; } if ( ! ( record_id == 0 ) ) { fieldID = record_id ; } else { if ( value != null && value . length ( ) > 0 ) { fDocumentNo . setValue ( value ) ; } else { String id ; id = Env . getContext ( Env . getCtx ( ) , p_WindowNo , p_TabNo , "M_InOut_ID" , true ) ; if ( id != null && id . length ( ) != 0 && ( new Integer ( id ) . intValue ( ) > 0 ) ) { fieldID = new Integer ( id ) . intValue ( ) ; } id = Env . getContext ( Env . getCtx ( ) , p_WindowNo , p_TabNo , "C_BPartner_ID" , true ) ; if ( id != null && id . length ( ) != 0 && ( new Integer ( id ) . intValue ( ) > 0 ) ) fBPartner_ID . setValue ( new Integer ( id ) ) ; id = Env . getContext ( Env . getCtx ( ) , p_WindowNo , p_TabNo , "M_Shipper_ID" , true ) ; if ( id != null && id . length ( ) != 0 && ( new Integer ( id ) . intValue ( ) > 0 ) ) { fShipper_ID . setValue ( new Integer ( id ) . intValue ( ) ) ; } } } }
General Init