Skip to Content
0
Former Member
Feb 03, 2011 at 03:14 PM

DESTINATION_APP on a *FOR/NEXT

31 Views

Hi,

I need your help about script logic in NW.

I want to use a DESTINATION_APP inside of a FOR/NEXT structure.

In brief, I've a app "X", with dimension ENTITY,ACCOUNT, and other different application "Y" with dimension ENTITY,ACCOUNT,COUNTRY.

I want to fill COUNTRY with a property of the dimension ENTITY (ENTITY.E_COUNTRY)

I've thinked in something like this:

*DESTINATION_APP=Y

*ADD_DIM C_COUNTRY=ENTITY.E_COUNTRY

//piece of code!

...but it doesn't work. So I thinked in something like this:

*SELECT(%COUN_TOT%,"[E_COUNTRY]",ENTITY,"[E_COUNTRY] <> ''")

*FOR %COUN% = %COUN_TOT%

*DESTINATION_APP=COUNTRY

*ADD_DIM C_COUNTRY=%COUN%

//piece of code!

*NEXT

but...it doesn't work 😔

Any better idea??

Thanks a lot!