So I created a sample list in SharePoint 2007. I also have InfoPath 2007. The list columns are; Bolt, Bolt Cost, Washer, Washer Cost, Nut, Nut Cost, and a Calculated field that displays a subTotal.
I then opened InfoPath and linked to the list. In InfoPath, I associated my dropdown boxes so that if a user selects a specific Bolt, only the corresponding washers and nuts are displayed. I did not add any of the cost columns as I was hoping to add the hidden subtotal field. I also added a Quantity field and finally a box that would take the total and multiply the quantity and display to the user in the final read only field.
I have since learned you cannot have a calculated or lookup field. I did read on the web where you can use XML and the GUID and to add the subtotal field, however when doing so, all I get is a "float;#1.50 0000000000" listing and my final total field reads NaN. I understand the NaN means I've got something wrong such as a numeric filed trying to add a text field. However, I don't understand the float issue.
Nonetheless, I'm prepared to abondon the current design and add all of the cost fields, perhaps hidding them, but I am not sure how to associate (filter) the cost boxes to the users selections. The Drop Down boxes I'm using have a filter button, but the text boxes do not. Any suggestions?
**Update: Since posting above, for grins I added went ahead and added dropdown boxes for the costs and associated them to the existing dropdown choice boxes. The data is filtered correctly. However, I have to obvisouly select the drop down box to enable or activate the costs. The math is working. Guessing I need to now figure out how to replace the temporary dropdown cost boxes with expression boxes or text fields that are filtered.
***Update: I think I'm on to something... Looks like I can use a list box to return a value and have the filter functionality I am seeking. Life is good!
Thank you