|pMe||(Object) Reference to the PROMOTIC object where the event rises.|
|pEvent||(Object) A referrence to object describing detailed information about the specific event.|
pEvent.User - (Object) The User object that represents authorized user, who called the request for this page.
pEvent.PageString - (String) Text string that contains the whole required HTML/XML document in the text form after the automatic replacing of keywords has been made. If the required file isn't a HTML/XML document, then this string is empty. The algorithm can change the content of the document by writing into this property.
pEvent.Modify - (Boolean) If the pEvent.PageString property has been changed, then the value of the property has to be set to true. Otherwise changes won't be accepted.
If Data source = Text set to pEvent.PageString property in onPageModify event, then the pEvent.Modify property is preset to true.
If pEvent.FilePath = "Page.htm" Then
sReplaced = Pm.StringReplace(pEvent.PageString, "xxxxx", pEvent.User.Name)
pEvent.Modify = true
pEvent.PageString = sReplaced
Select Case pEvent.FilePath
s = "<html><head><title>abc</title></head>"
s = s & "<body><p>Temperature = "
s = s & pMe.Pm("/Data/#vars/temperature").Value
s = s & "</p></body></html>"
pEvent.PageString = s