Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to pass config parameters to a function
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Payito  
View profile   Translate to Translated (View Original)
 More options 25 June, 14:17
Newsgroups: ibm.software.network.directory-integrator
From: Payito <ejmeg...@gmail.com>
Date: Thu, 25 Jun 2009 06:17:37 -0700 (PDT)
Local: Thurs 25 June 2009 14:17
Subject: How to pass config parameters to a function
Hello,

I need to use function RemoteCmdLineFC and I want to use a variable
command for configuration. I'm trying to do this:

thisConnector.connector.setParam("hostame",myhost);

in Prolog hook, but it is not working. Someone can help me??


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eddie Hartman  
View profile   Translate to Translated (View Original)
 More options 25 June, 16:09
Newsgroups: ibm.software.network.directory-integrator
From: Eddie Hartman <eddiehart...@gmail.com>
Date: Thu, 25 Jun 2009 08:09:40 -0700 (PDT)
Local: Thurs 25 June 2009 16:09
Subject: Re: How to pass config parameters to a function
Have you tried stepping from Hook to Hook through the initialization?
As soon as you Step Into past your coded Hook, you can then
do a getParam() from the FC to check that the value is really
set. And if it's still not working, please open a PMR with our
L2 experts. Perhaps this Java Class for this component is
harvesting parameter values from the Config too early -- i.e.
before the Before Initialize Hook.

There is another thing that you could try:

First you have to configure the Initialize drop-down for the FC
(top of the Config tab) to "Only when used". This is just-in-time
initialization, so you can drop some values into Work Attributes
and then use a TDI Expression to apply them to the FC parameter
values.

You do this by clicking on the label for a parameter. This brings
up the Parameter Dialog. From here you can see what the internal
param name is (for get/setParam calls -- and you probably already
know this, but I can't help myself :) as well as restore inheritance
using the third button that is sometimes available at the lower right
of the dialog box.

The bottom-most field is called Expression, and here you
can enter any literal text, and use substitution tokens to have
TDI drop in values from your AL. For example, to use the
value of an Attribute called "host" you just enter this: {work.host}
You can also enter a snippet of JavaScript, like this:

{return "LOG_" + system.formatDate(new java.util.Date
(),"YYYYMMDDHHmm")}

Of course, you just have to remember to set the Initialize drop-down
correctly. For example, if you have a FileSystem Connector and
want to create a new file each cycle, naming it with an Attribute
value
(e.g. {work.FileName}), you set up the Expression and set the
Initialize option to terminate and initialize each time.

Hope this helps :)
-Eddie

On Jun 25, 3:17 pm, Payito <ejmeg...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google