Hi,
I have a script that looks like this:
*SELECT(%NETACCOUNT2%,[ID],"ACCOUNT","[NETACC2]<>''")
*XDIM_MEMBERSET DATASRC=INPUT
*XDIM_MEMBERSET TIME=%TIME_SET%
*XDIM_MEMBERSET ENTITY=%ENTITY_SET%
*XDIM_MEMBERSET CATEGORY=%CATEGORY_SET%
*XDIM_MEMBERSET CURRENCY=LC
*XDIM_MEMBERSET ACCOUNT=%NETACCOUNT2%
*XDIM_MEMBERSET ACCTDETAIL=F_SAL
*XDIM_MEMBERSET CONSOSCOPE=G_NONE
*FOR %A%=%NETACCOUNT2%
*WHEN ACCOUNT
*IS *
*REC(EXPRESSION=%VALUE%<0 ? ([ACCOUNT].[%A%],[ACCTDETAIL].[F_CLO])*-1:0,ACCTDETAIL=F_CLO,DATASRC=INPUT_WK)
*REC(EXPRESSION=%VALUE%<0 ? ([ACCOUNT].[%A%],[ACCTDETAIL].[F_CLO]):0,ACCOUNT=ACCOUNT.NETACC,DATASRC=INPUT_WK)
*REC(EXPRESSION=%VALUE%>0 ? ([ACCOUNT].[%A%].[NETACC],[ACCTDETAIL].[F_CLO])*-1:0,ACCOUNT=ACCOUNT.NETACC,ACCTDETAIL=F_CLO,DATASRC=INPUT_WK)
*REC(EXPRESSION=%VALUE%>0 ? ([ACCOUNT].[%A%].[NETACC],[ACCTDETAIL].[F_CLO]):0,ACCTDETAIL=F_CLO,DATASRC=INPUT_WK)
*ENDWHEN
*NEXT
My problem is with the last two *REC statements, I'll use one as an example:
*REC(EXPRESSION=%VALUE%>0 ? ([ACCOUNT].[%A%].[NETACC],[ACCTDETAIL].[F_CLO]):0,ACCTDETAIL=F_CLO,DATASRC=INPUT_WK)
Especially this part: ([ACCOUNT].[%A%].[NETACC],[ACCTDETAIL].[F_CLO]). I need the system to read the value from the account referenced in the current %A% account in the property NETACC and on acctdetail F_CLO.
When I try to validate the script it fails with a message saying that [ACCTDETAIL].[F_CLO] is invalid in those last two rows. When I change them to only use ([ACCOUNT].[%A%],[ACCTDETAIL].[F_CLO]) the script validates and saves.
How can I do this, read from not the account I am currently working with [%A%] but from the value of a property of this account?
Thanks,
Arnold