[GELÖST] getProductMap no valid expression for a string list

Antworten
Benutzeravatar
GEI
Beiträge: 233
Registriert: 12 Feb 2010, 13:00
Wohnort: Braunschweig
Kontaktdaten:

[GELÖST] getProductMap no valid expression for a string list

Beitrag von GEI »

hi,

ich habe ein Problem mit der erstmaligen Verwendung der Funktion "getProductMap".

Dieses Codeschnipsel

Code: Alles auswählen

...
   setLogLevel = 9
   Set $ProductMap$ = getProductMap
   Set $ProductName$ = getValue("name",$ProductMap$)
   Set $ProductVersion$ = getValue("productversion",$ProductMap$)
   Set $ProductInstalledVersion$ = getValue("installedversion",$ProductMap$)
   setLogLevel = 8

   comment "Show product picture"
   ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductName$
...
erzeugt nachfolgende Fehlermeldung im Log:

Code: Alles auswählen

[1] [Sep 13 08:24:45:974] opsi-winst 4.11.3.11 started at >>13.09.2014 08:24:44
...
[1] [Sep 13 08:24:47:740] [mremoteng]   LogLevel was 6
[1] [Sep 13 08:24:47:740] [mremoteng]   LogLevel set to 9
[5] [Sep 13 08:24:47:740] [mremoteng]   
[5] [Sep 13 08:24:47:740] [mremoteng]   Set  $ProductMap$ = getProductMap
[2] [Sep 13 08:24:47:740] [mremoteng]   Syntax Error in Section: Actions (Command in line 70): $ProductMap$ = getProductMap -> getProductMap illegal String expression
[5] [Sep 13 08:24:47:740] [mremoteng]   
[5] [Sep 13 08:24:47:740] [mremoteng]   Set  $ProductName$ = getValue("name",$ProductMap$)
[2] [Sep 13 08:24:47:740] [mremoteng]   Syntax Error in Section: Actions (Command in line 71): $ProductName$ = getValue("name",$ProductMap$) -> $ProductMap$) no valid expression for a string list
[5] [Sep 13 08:24:47:740] [mremoteng]   
[5] [Sep 13 08:24:47:740] [mremoteng]   Set  $ProductVersion$ = getValue("productversion",$ProductMap$)
[2] [Sep 13 08:24:47:740] [mremoteng]   Syntax Error in Section: Actions (Command in line 72): $ProductVersion$ = getValue("productversion",$ProductMap$) -> $ProductMap$) no valid expression for a string list
[5] [Sep 13 08:24:47:740] [mremoteng]   
[5] [Sep 13 08:24:47:740] [mremoteng]   Set  $ProductInstalledVersion$ = getValue("installedversion",$ProductMap$)
[2] [Sep 13 08:24:47:740] [mremoteng]   Syntax Error in Section: Actions (Command in line 73): $ProductInstalledVersion$ = getValue("installedversion",$ProductMap$) -> $ProductMap$) no valid expression for a string list
[1] [Sep 13 08:24:47:740] [mremoteng]   LogLevel was 9
[1] [Sep 13 08:24:47:740] [mremoteng]   LogLevel set to 8
[5] [Sep 13 08:24:47:740] [mremoteng]   comment: Show product picture
Hmm, was mache ich denn hierbei falsch? Es sieht ja so aus, als ob die Funktion "getProductMap" hier nicht verwendet werden kann.
Muss diese denn in eine OPSI-Call-Sektion ausgelagert werden?
Zuletzt geändert von GEI am 14 Sep 2014, 17:40, insgesamt 1-mal geändert.
Leibniz-Institut für Bildungsmedien | Georg-Eckert-Institut (GEI)
---
'opsi4instituts' = Communityprojekt für wissenschaftliche Einrichtungen
offenes Repository, Update-Notifier
wiki.o4i.org - www.gei.de/institut/direktion/it-service/opsi4instituts
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: getProductMap

Beitrag von d.oertel »

Hi,

getProductMap ist eine Stringlisten Funktion.
Hast Du $ProductMap$ als Stringliste Definiert ?

Code: Alles auswählen

DefStringlist $ProductMap$ 
gruss
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Benutzeravatar
GEI
Beiträge: 233
Registriert: 12 Feb 2010, 13:00
Wohnort: Braunschweig
Kontaktdaten:

Re: getProductMap

Beitrag von GEI »

DANKE, das war es .... Ich scheine "Tomaten auf den Augen" gehabt zu haben :lol:
Leibniz-Institut für Bildungsmedien | Georg-Eckert-Institut (GEI)
---
'opsi4instituts' = Communityprojekt für wissenschaftliche Einrichtungen
offenes Repository, Update-Notifier
wiki.o4i.org - www.gei.de/institut/direktion/it-service/opsi4instituts
Antworten