Knowledge Partner
Knowledge Partner
156 views

Re: Mapping tables and GCV's

On 6/29/2012 9:26 AM, rlloyd wrote:
>
> Hi,
>
> Quick question, is anyone aware of any method of embedding a GCV into a
> mapping table? I've tried ~GCV~ and $GCV$ but neither get expanded.


Put the GCV name (no squiggle, no $'s) into the table value.

Then when you use your Mapping table, use it to set a local variable say
GCV-Name then your next action where you need to use that GCV name, or
use the final value, do a Global Config whose name is $GCV-Name$.

Expansion in the table itself won't work.




Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Mapping tables and GCV's

Geoffrey Carman wrote:

> Put the GCV name (no squiggle, no $'s) into the table value.


I'd put them in the map as ~GCV~ just so GCV names stick out visibly from plain
values. Then strip the ~ in policy when setting var $GCV-name...

> Then when you use your Mapping table, use it to set a local variable say
> GCV-Name then your next action where you need to use that GCV name, or use
> the final value, do a Global Config whose name is $GCV-Name$.


I've seen driver startup errors when a GCV referenced in policy was undefined,
but I am not sure if it was only with ~GCV~ syntax (where driver policy code
gets searched/replaced before driver startup) or when using
token-global-variable, too. If the latter was the case, you'd have to define a
dummy GCV named "$GCV-Name$" to make it work. 😞

0 Likes
Knowledge Partner
Knowledge Partner

Re: Mapping tables and GCV's

> OK, thanks Geoff, I fear mapping tables won't help in the scenario I
> have here then. I wanted to use the GCV as the src aspect of using the
> mapping table not the dest. If they won't expand in situ, then there
> isn't really a route.
>
> The bulk of the problem is that the data is frequently being redefined
> so I was hoping to take advantage of the table to create a "todays role
> name" - > group membership in a one to many relationship in the table.
> I was aiming to do this in a way that allowed me to set todays name in a
> GCV, (e.g. contractor) look that up to find the groups the user should
> be assigned membership of. then tomorrow when it is decided that the
> role name would now be "temp staff" I would need only change the GCV
> and life would be good. It feels like I need to expand to "todays name"
> -> internal name and internal name -> group membership mappings to make
> this work.


Why not just a bunch of GCV values?

Do it as a structured GCV. Each one is a List GCV.

http://www.novell.com/communities/node/11480/structured-global-configuration-values-idm




0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.