cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pass dynamic parameters to packagelink through VB/macro

aditya_ponnala
Participant
0 Likes
200

Hello,

I am able to execute package link by using function ea.DataManagerRunPackageLink "DMS ID","Package name".

It opens up package link which the user can execute by setting prompts. However I would like to set these parameters for the user to execute. In order to do this I need to pass on parameters dynamically. However I am not able to do this i.e. change parameter in prompt automatically.

In contrast to execution of package, we have the option of setting parameters and package definition; which is not the case for package link.

Hence the question again is, how to dynamically pass parameters/prompt values to package link.

E.g.: Say I have a package link that runs a task of "COPY" package and it is used to copy from CostCenter A to Cost center XYZ. If the To cost center need to change based on the context of the code I need to pass parameters dynamically. How to do this?

Thanks,
Aditya

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Likes

Hi Aditya,

There is no documented way to interact with package link parameters...

But why you have to use package link?

May be you can use single DM package? May be with custom chain...

Please, explain the requirements.

Vadim

aditya_ponnala
Participant
0 Likes

Hi Vadim,

Thanks for the reply.

I need to do two things:- one copy and two push the data to another model.

When I use package alone, push to another model is starting before copy package is finished. Hence if I use package link I can control the sequence of the events.

Alternatively I can use process chain and trigger it through UJD_TEST_PACKAGE. However the program is not taking the file created by answer prompt.

Thanks,
Aditya

former_member186338
Active Contributor
0 Likes

But why not to try script solution? May by with RUNLOGIC_PH

Vadim

aditya_ponnala
Participant
0 Likes

Yes, I finally went for script solution doing my own copy and push to other model using destination app function.

As this started working I didn't invested more time in researching RUNLOGIC_PH.

Thank you!

former_member186338
Active Contributor
0 Likes

RUNLOGIC_PH is useful if you want to launch script from one model but to push data from another model:

Script in model_Target

1. Clear defined scope in model_Target

2. Launch with RUNLOGIC_PH script in the model_Source with DESTINATION_APP to push

3. Perform additional data processing in model_Target

Vadim

former_member186338
Active Contributor
0 Likes

P.S. It's always better to clear before pushing data

Ask a Question