IDEMPIERE-3259 Default logic: Add support for lookup of foreign table values / integrate patch from Heng Sin
This commit is contained in:
parent
060c5a2854
commit
9dc3388216
|
@ -792,7 +792,7 @@ public class GridField
|
||||||
if (defStr.equals("@SysDate@")) // System Time
|
if (defStr.equals("@SysDate@")) // System Time
|
||||||
return new Timestamp (System.currentTimeMillis());
|
return new Timestamp (System.currentTimeMillis());
|
||||||
else if (defStr.indexOf('@') != -1) // it is a variable
|
else if (defStr.indexOf('@') != -1) // it is a variable
|
||||||
defStr = Env.getContext(m_vo.ctx, m_vo.WindowNo, defStr.replace('@',' ').trim());
|
defStr = Env.parseContext(m_vo.ctx, m_vo.WindowNo, defStr.trim(), false, false);
|
||||||
else if (defStr.indexOf("'") != -1) // it is a 'String'
|
else if (defStr.indexOf("'") != -1) // it is a 'String'
|
||||||
defStr = defStr.replace('\'', ' ').trim();
|
defStr = defStr.replace('\'', ' ').trim();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue