"
// A_Tab.setValue("Help", 'abcdefg'.getAt( 3 ))
import org.compiere.util.DB
import java.util.List
def sql = " select name||','||value from m_product where m_product_id=? ";
String r = DB.getSQLValueString(null, sql, [50002] );
// String r = DB.getSQLValueString(null," select name||','||value from m_product where m_product_id=? ",50002);
if (r==null) r = "Can't Find, nothing";
def s = r.tokenize(',;') ;
// 'he,she;it,;they'.tokenize(',;') ;
def dt = Date.parse("E MMM dd H:m:s z yyyy", "Tue Aug 10 16:02:43 PST 2010")
def date = new Date()
def formattedDate = date.format('yyyy-MM-dd')
A_Tab.setValue("Help", s.first()+" , "+s.last() + " , " + dt + " , " + formattedDate )
"
沒有留言:
張貼留言