-
I got the following recommendation from Microsoft:
Clear the ''cannot be blank'' checkbox for the field on view ''B''.
Create an item in your data source to contain the name of the current view and use the OnSwitchView event handler to update the field name when the view changes (C# code):
thisXDocument.DOM.selectSingleNode( ...
-
Franck,
Thanks for your response. I'd like to but I'm having trouble finding reference material. I'm using JScript and would like to use the default submit functionality followed by a refresh.
Thanks in advance,
Brian
-
Why don't you take over the Submit behavior by code (with OnSubmitRequest())?
Regards,
Franck Dauché
-
Hi Frank,
Yes I'm aware of the ForceUpdate function, however I'm not sure were to put it. I want to use the default submit behavior.
Thanks,
Brian
-
Hi Brian,
Did you try: thisXDocument.View.ForceUpdate();
Regards,
Franck Dauché
-
Hi,
You could use: thisApplication.ActiveWindow.XDocument.Errors.DeleteAll(); to clear all the errors before submitting.
Regards,
Franck Dauché
-
Hello.
I have 2 views ''A'' and ''B''.
''A'' is default view.
There are field in view ''B'' that cannot be blank.
When I submit view A, I have an error that field from ''B'' cannot be blank, and i want just submit view ''A''.
What can i to do?
-
I guess it would depend on the .NET user control you are creating.
http://go.microsoft.com/?linkid=2316315
This webcast shows examples where no cab file were used, but since you are using COM interop (you are using .NET) the MSI is necessary.
As i read it, you create a Setup Project (add project > setup and deployment projects) then add a CAB ...
-
How can I force my current view to refresh after the default submit command?
Brian
-
I removed the rules from the button and added:
xdXDocument:GetDOM(''VesselDesc'')/dfs:myFields/dfs:dataFields/d:VesselDesc/@Name[../@VesselDescID = current()/../@VesselDescID]
to the text box value property and it works fine.
Brian