Skip to Content

Dynamically pass the current view member as property value for another dimension

Hi experts

We have a model where we have following dimensions.

FLZTYP => Here we have all the airplane types

FLZ => The single airplanes belonging to a FLZTYP (see below)

IDFLZTYP

(property)

123HC124HC125HC221HD222HD

We want to write a default logic, where it the script should read FLZTYP from the current view and post the amount to all the members of FLZ, when there is a posting to FLZ_NA

//HERE: "HC" SHOULD NOT BE HARDCODED. IT SHOULD BE TRANSFERED FROM THE CURRENT VIEW //DIMENSION FLZTYP.

*SELECT(%FLZ%,"[ID]",FLZ,"[FLZTYP] = 'HC'")

*WHEN FLZ

*IS FLZ_NA

*FOR %FLZ_Z% = %FLZ%

*REC(EXPRESSION = %VALUE%, FLZ = %FLZ_Z%)

*NEXT

*ENDWHEN

Please can you help ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Aug 20, 2018 at 01:59 PM

    *SELECT(%FLZ%,"[ID]",FLZ,"[FLZTYP] = %FLZTYP_SET%")

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 19, 2018 at 01:19 PM

    Sorry, but requirements are not clear!

    Please, explain again using some screenshots.

    "We want to write a default logic, where it the script should read FLZTYP from the current view and post the amount to all the members of FLZ, when there is a posting to FLZ_NA"

    default logic (default.lgf) is not related to current view! Nothing can be passed to default.lgf from CV, default.lgf has only scope of saved members.

    ...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 19, 2018 at 01:38 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 20, 2018 at 09:57 AM

    Hi Vadim

    Sorry. I try to be more specific

    The FLZTYP member is coming from the context (it is also the driver dimension of the activity in the BPF).

    sdn.jpg

    In this line HC should be replaced by a variable which represents the current context member of FLZTYP as this is a property of FLZ.

    *SELECT(%FLZ%,"[ID]",FLZ,"[FLZTYP] = 'HC'")

    Regards

    Thomas


    sdn.jpg (95.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.