-
What is doing the serialization from the DB into the XML? I think this should not be elimnating the nodes from the schema, but just doing a /> ending to the element. I would check into fixing it at the serialization side, but if you can't do that you can write code in the form that looks for these missing nodes and adds them in with a blank ...
-
I don't know exactly how your schema looks, but what drgkreddy suggested should do the trick. You default value formulas for the two circled boxes woud look something like this:
count(xdXDocument:get-DOM()/my:Tracker/my:Agents/my:Agent[my:Ob1 = C])
+ count(xdXDocument:get-DOM()/my:Tracker/my:Agents/my:Agent[my:Ob2 = C])
+ ...
-
Hi Torrwin and welcome to the forum!
First you might want to check out these HowTos:http://www.infopathdev.com/howto/tutorials/default.aspx?s=Lists
If you are still having trouble after that could you provide a little more information about your schema, the number of cascading drop-downs and what kind of filtering you are trying to do?
-
That sounds really weird. You might try double-clicking on the repeating table and then clicking Rules to add rules that clear all of the fields as soon as a new section is inserted. This is all I can think of for now.
Otherwise, you might check the installation of InfoPath wherever this problem is occuring.
-
Hi Sam,
You should be able to do this with Rules instead of code. Double-click FieldB, click Rules, click Add, and then click Edit Condition. Set the drop-downs to ''FieldB'' ''is equal to'' 'x'. Click Ok. Now click Add Action and select ''Set Fields Value'' from the drop-down list. Select FieldA in the first box, and then input the default ...
-
I would suggest downloading the InfoPath SDK which is available in the left sidebar of this website. You have your choice of JScript, VBScript, C#.NET, or VB.NET. For the latter two you will need visual studio with the InfoPath toolkit installed, but for the other two you can choose in the form. I recommend JScript or C#.NET.
You could also take ...
-
Hi Andrew,
To do what you are wanting, I am pretty sure that it will require code. What you will want to do is create another secondary data source with a schema to suit your UI needs. Then, build the UI off of this, and once you are ready to submit the CAML to SharePoint you will need to write some code to copy the values from the ''pretty'' ...
-
That is pretty weird. Maybe before you submit the data to the web service you could write some code client-side to look for and remove all of these unwanted values?
Sorry, but I don't know where these are coming from.
-
You could put it anywhere, really. To try it out, place a button on the view, double-click ''Edit Form Code'', and then paste the code in the OnClick event handler.
-
Unfortunately, you will have to manually rewrite all of your code into the .cs files. If you start a new InfoPath project and import your old template as the template that is used in the project, then the old .js file will still be there, but it won't be doing anything. What you could do is copy the code from the .js file and then translate ...