[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 214: htmlspecialchars(): charset `s[1]";s:26:"[^/]+/([^/]+)/trackback/?$";s:37:"index.php?attachment=$matches[1]&tb=1";s:46:"[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$";s:50:"index.php?attachment=$matches[1]&cpage=$matches[2]";s:22:"[^/]+/([^/]+)/embed/?$";s:43:"index.php?attachment=$matches[1]&embed=true";s:26:"^/media/([0-9]*)/([^/]*)/?";s:49:"index.php?media_id=$matches[1]&action=$matches[2]";s:30:"^/media/([0-9]*)/pg/([0-9]*)/?";s:45:"index.php?media_id=$matches[1]&pg=$matches[2]";s:23:"^/media/nonce/([^/]*)/?";s:32:"index.php?nonce_type=$matches[1]";s:33:"^/media/([A-Za-z]*)/pg/([0-9]*)/?";s:47:"index.php?media_type=$matches[1]&pg=$matches[2]";s:21:"^/media/pg/([0-9]*)/?";s:24:"index.php?pg=$matches[1]";}' not supported, assuming utf-8
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 216: htmlspecialchars(): charset `s[1]";s:26:"[^/]+/([^/]+)/trackback/?$";s:37:"index.php?attachment=$matches[1]&tb=1";s:46:"[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$";s:50:"index.php?attachment=$matches[1]&cpage=$matches[2]";s:22:"[^/]+/([^/]+)/embed/?$";s:43:"index.php?attachment=$matches[1]&embed=true";s:26:"^/media/([0-9]*)/([^/]*)/?";s:49:"index.php?media_id=$matches[1]&action=$matches[2]";s:30:"^/media/([0-9]*)/pg/([0-9]*)/?";s:45:"index.php?media_id=$matches[1]&pg=$matches[2]";s:23:"^/media/nonce/([^/]*)/?";s:32:"index.php?nonce_type=$matches[1]";s:33:"^/media/([A-Za-z]*)/pg/([0-9]*)/?";s:47:"index.php?media_type=$matches[1]&pg=$matches[2]";s:21:"^/media/pg/([0-9]*)/?";s:24:"index.php?pg=$matches[1]";}' not supported, assuming utf-8
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 87: htmlspecialchars(): charset `s[1]";s:26:"[^/]+/([^/]+)/trackback/?$";s:37:"index.php?attachment=$matches[1]&tb=1";s:46:"[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$";s:50:"index.php?attachment=$matches[1]&cpage=$matches[2]";s:22:"[^/]+/([^/]+)/embed/?$";s:43:"index.php?attachment=$matches[1]&embed=true";s:26:"^/media/([0-9]*)/([^/]*)/?";s:49:"index.php?media_id=$matches[1]&action=$matches[2]";s:30:"^/media/([0-9]*)/pg/([0-9]*)/?";s:45:"index.php?media_id=$matches[1]&pg=$matches[2]";s:23:"^/media/nonce/([^/]*)/?";s:32:"index.php?nonce_type=$matches[1]";s:33:"^/media/([A-Za-z]*)/pg/([0-9]*)/?";s:47:"index.php?media_type=$matches[1]&pg=$matches[2]";s:21:"^/media/pg/([0-9]*)/?";s:24:"index.php?pg=$matches[1]";}' not supported, assuming utf-8
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 129: htmlspecialchars(): charset `s[1]";s:26:"[^/]+/([^/]+)/trackback/?$";s:37:"index.php?attachment=$matches[1]&tb=1";s:46:"[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$";s:50:"index.php?attachment=$matches[1]&cpage=$matches[2]";s:22:"[^/]+/([^/]+)/embed/?$";s:43:"index.php?attachment=$matches[1]&embed=true";s:26:"^/media/([0-9]*)/([^/]*)/?";s:49:"index.php?media_id=$matches[1]&action=$matches[2]";s:30:"^/media/([0-9]*)/pg/([0-9]*)/?";s:45:"index.php?media_id=$matches[1]&pg=$matches[2]";s:23:"^/media/nonce/([^/]*)/?";s:32:"index.php?nonce_type=$matches[1]";s:33:"^/media/([A-Za-z]*)/pg/([0-9]*)/?";s:47:"index.php?media_type=$matches[1]&pg=$matches[2]";s:21:"^/media/pg/([0-9]*)/?";s:24:"index.php?pg=$matches[1]";}' not supported, assuming utf-8
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 130: htmlspecialchars(): charset `s[1]";s:26:"[^/]+/([^/]+)/trackback/?$";s:37:"index.php?attachment=$matches[1]&tb=1";s:46:"[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$";s:50:"index.php?attachment=$matches[1]&cpage=$matches[2]";s:22:"[^/]+/([^/]+)/embed/?$";s:43:"index.php?attachment=$matches[1]&embed=true";s:26:"^/media/([0-9]*)/([^/]*)/?";s:49:"index.php?media_id=$matches[1]&action=$matches[2]";s:30:"^/media/([0-9]*)/pg/([0-9]*)/?";s:45:"index.php?media_id=$matches[1]&pg=$matches[2]";s:23:"^/media/nonce/([^/]*)/?";s:32:"index.php?nonce_type=$matches[1]";s:33:"^/media/([A-Za-z]*)/pg/([0-9]*)/?";s:47:"index.php?media_type=$matches[1]&pg=$matches[2]";s:21:"^/media/pg/([0-9]*)/?";s:24:"index.php?pg=$matches[1]";}' not supported, assuming utf-8
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1685: htmlspecialchars(): charset `s[1]";s:26:"[^/]+/([^/]+)/trackback/?$";s:37:"index.php?attachment=$matches[1]&tb=1";s:46:"[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$";s:49:"index.php?attachment=$matches[1]&feed=$matches[2]";s:41:"[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$";s:50:"index.php?attachment=$matches[1]&cpage=$matches[2]";s:22:"[^/]+/([^/]+)/embed/?$";s:43:"index.php?attachment=$matches[1]&embed=true";s:26:"^/media/([0-9]*)/([^/]*)/?";s:49:"index.php?media_id=$matches[1]&action=$matches[2]";s:30:"^/media/([0-9]*)/pg/([0-9]*)/?";s:45:"index.php?media_id=$matches[1]&pg=$matches[2]";s:23:"^/media/nonce/([^/]*)/?";s:32:"index.php?nonce_type=$matches[1]";s:33:"^/media/([A-Za-z]*)/pg/([0-9]*)/?";s:47:"index.php?media_type=$matches[1]&pg=$matches[2]";s:21:"^/media/pg/([0-9]*)/?";s:24:"index.php?pg=$matches[1]";}' not supported, assuming utf-8
PROMOTIC FORUM • View topic - Makro wyrażenie w opisie event-u

Makro wyrażenie w opisie event-u

Główne forum techniczne dla dyskusji dotyczących problemów przy wytwarzaniu aplikacji PROMOTIC oraz sposobach ich rozwiązania.

Makro wyrażenie w opisie event-u

Postby Patryk » Mon 04. Nov 2019 6:46:25

Witam,

Chciałbym mieć możliwość informacji o wartości poprzedniej w opisie eventu jaka była przed zmianą wartości. Więc w PmaData mam utworzoną zmienną i jako rozszerzenie danej w Event->Opis eventu (desc) dodaje makro
wyrażenie w postaci: $.join("Zmieniono wartosc MIN z ",$.expr("Pm.Item("alarm_min").ValueBeforeChange"),"na",$.expr("pDE.Var.Value")). Makro wyrażenie zwraca błąd formuły, która zapewne jest związana z odwołaniem się do "alarm_min".
W jaki poprawny sposób powinienem się odwołać do danej zmiennej? Próbowałem różnych odwołań, lecz dalej jestem z błędem formuły. Dziękuje za pomoc.

Pozdrawiam,
Patryk
Patryk
 
Posts: 9
Joined: Mon 13. Nov 2017 14:24:22

Re: Makro wyrażenie w opisie event-u

Postby Kazimierz Heczko » Fri 06. Dec 2019 12:17:10

Witam,
niech Pan spróbuje w tym makro wyrażeniu zamiast Pm.Item (to odnosi się do "innej zmiennej") zastosować podobny zapis, jak odniesienie do wartości, czyli pDE.Var.ValueBeforeChange.
To powinno zadziałać.

Pozdrawiam
Kazimierz Heczko
 
Posts: 69
Joined: Thu 13. Dec 2012 9:28:56


Return to Nie wiem jak zrobić...

Who is online

Users browsing this forum: No registered users and 2 guests