Macro evaluation .Unit problem

In this forum, you can report bugs, post suggestions for improvements and add other topics.

Macro evaluation .Unit problem

Postby roman66 » Fri 12. Jul 2024 7:13:28

Hi,
in Data extention 'Trend', 'Alarm binary' macro expression - $.expr("pDE.Var.Name") - work, but $.expr("pDE.Var.Unit") - don't work..
newbie
PM 9.0.28.0 64bit
roman66
 
Posts: 14
Joined: Tue 09. Jul 2024 12:07:38

Re: Macro evaluation .Unit problem

Postby Ondřej Kovařík » Mon 05. Aug 2024 9:04:47

Hello,
our testing of the macro expression evaluation did not reveal any errors. I would like to ask you for more information:
- PROMOTIC system version
- where exactly and under what conditions the error occurs
- whether it is a development environment, local runtime or web
It would be very helpful to add a screenshot or a simple example in which the error occurs.
Ondřej Kovařík
 
Posts: 27
Joined: Thu 13. Dec 2012 10:10:15

Re: Macro evaluation .Unit problem

Postby roman66 » Thu 08. Aug 2024 9:43:48

Hi,
- PS ver. 9.028.0
- development environment
- occur then insert 'Java script expression:' in PmVar -Data extension 'trend' - Unit - Macro expression. Evalution window don't show Unit value. Other value show (Name, Note..)
Attachments
unit x (Small).jpg
unit evalution fault
unit x (Small).jpg (62.55 KiB) Viewed 2269 times
newbie
PM 9.0.28.0 64bit
roman66
 
Posts: 14
Joined: Tue 09. Jul 2024 12:07:38

Re: Macro evaluation .Unit problem

Postby Ondřej Kovařík » Fri 09. Aug 2024 7:47:02

Hello,
thank you for the additional information.
In the PROMOTIC development environment we display the macro expression evaluation preview, which is supposed to make the application development easier for the designers, but it is not related to the final macro expression evaluation at runtime. Some macro expressions are not evaluated in the development environment or are evaluated only in a limited way, e.g. the $.expr() macro expression is evaluated only for some properties of the objects used in the expression.
The important thing is that all macro expressions are evaluated correctly at runtime.
In version 9.0.29, I added support for the "Unit" property of the "PmVar" object, so that even the evaluation of the $.expr("pDE.Var.Unit") macro expression will be displayed correctly in the next version of the development environment.
Ondřej Kovařík
 
Posts: 27
Joined: Thu 13. Dec 2012 10:10:15

Re: Macro evaluation .Unit problem

Postby roman66 » Fri 09. Aug 2024 10:53:17

ok.
Thank you.
newbie
PM 9.0.28.0 64bit
roman66
 
Posts: 14
Joined: Tue 09. Jul 2024 12:07:38


Return to Bugreports, suggestions for improvements, other...

Who is online

Users browsing this forum: No registered users and 2 guests