Anonymous_User Absent Member.
Absent Member.
392 views

setplat empties ?variable


hi sso-afficinados from all over the world: may one of you might have an
explanation, why setplat resets formerly set ?variables ?

eg.
set ?var "abc"
messagebox ?var
setplat "whatever"
messagebox ?var

the first messagebox shows "abc", the second "<notset>".


setplat and setprompt, those two seem a bit obscure to me 🙂

florian


--
florianz
------------------------------------------------------------------------
florianz's Profile: https://forums.netiq.com/member.php?userid=309
View this thread: https://forums.netiq.com/showthread.php?t=50993

0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: setplat empties ?variable


That is a normal behaviour.

Use as internet explorer with "iexplore.exe" as executable.
When working without setplat you are working with the variables in the
context of iexplore.exe then the setplat will add another context to the
application without touching the vars in the context of iexplore.exe


eg.
set ?var "abc"
messagebox ?var
setplat "whatever"
messagebox ?var(iexplore.exe)

the first messagebox shows "abc", the second should now also show "abc".


--
fschmaering
------------------------------------------------------------------------
fschmaering's Profile: https://forums.netiq.com/member.php?userid=1499
View this thread: https://forums.netiq.com/showthread.php?t=50993

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: setplat empties ?variable


Florian,

It is working the way it is intended.

If you have credentials stored in two platforms as below:

abc.exe
Username = abc
Password = abcpass

xyz.exe
Username = xyz
Password = xyzpass


If you use setplat you will get the following results:

#-----------------
Setplat "abc.exe"
Messagebox $username
# will result: abc
Messagebox $password
# will result: abcpass

# Then

Setplat "xyz.exe"
Messagebox $username
# will result: xyz
Messagebox $password
# will result: xyzpass

# Then

Setplat "something_else"
Messagebox $username
# will result: <notset>
Messagebox $password
# will result: <notset>

#-----------------

Setplat is designed to allow you to utilize credentials from another
platform/application.

You can also use the method Frank pointed out to reference another
platforms credentials:
$username(abc.exe)
$password(abc.exe)

Regards,

Troy


--
tdrewry
------------------------------------------------------------------------
tdrewry's Profile: https://forums.netiq.com/member.php?userid=2789
View this thread: https://forums.netiq.com/showthread.php?t=50993

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.