-
OnAfterChange event is called when ever a nodes value or nodes attribute value changes.
e.Site will always have a reference to the node, where as e.Source will have reference to the node or attribute whose value has changed.
e.NewValue is one of the ways to get the new value.
Agni
INFOPATHdev India
-
I Have a text box and I write this code in the OnBeforeChange Event:
If eventObj.IsUndoRedo Then
Exit Sub
end if
If eventObj.Operation=''Delete'' Then
Exit Sub
end if
dim str1
str1=eventObj.NewValue
if len(str1)<4 then
eventObj.ReturnStatus=false
eventObj.ReturnMessage=''should be more than 4''
end if
That code work. But when I ...
-
Hi,
Welcome to the Forum!
Yes when we take the dataconnection we cannot assign a form value to the ''Introduction''. But we can achieve this in the code.
emailAdapterObject.Intro = '''';
Agni
INFOPATHdev India
-
I stiil dont know when to use each of them, pleas tell me
and what is the difference between e.Site.text????
-
Thank you Matt and Abhishek for your responses,
The form i am designing is acually being used on a tablet PC, wherby the user enters data into the form (comments, and certain numerical data). The user who enters this data is in essence writing down a report ''on the fly''. In other words the user is monitoring some type of data and when it ...
-
Hi,
We can set a value to field or alter using custom code in onAfterchange event,
Iam not sure if we can call the custom function or not when setting the value of a field.
Thanks.
K.Ramana Reddy
-
Wow. Toooo good.
Thanks a lot Nukkumatti.
regards,
Abhishek
-
Welcome...I found this website too a couple months ago and the content is great!
One thought that comes to mind is there is a workflow application I have been working with called K2 Workflow. It intergrates with InfoPath and has direction connections into CMS that can be used to build content. Although I have not used it with CMS. I have used ...
-
Hi all:
I want to know what the different between site and area in SPS?
-
Hi,
When I set a fields value, I can click the fx button and insert a predefined function to alter the value. (Such as concat or substring)
Is there a way to define my own function via JScript, and call that function when setting the value of a field?
Thanks,
- Reg.