-
Hi Christophe, Welcome to the board.
Can you provide with more inforamtion here, please copy paste your c# Onclick funtion here.
Probably you are hardcoding values which are not available when the form is published.
Agni
InfoPathDev India
-
Usually if we want add more fields to schema we will add them as optional fields.
If we want to enter values for these fields in the old forms,
Then you need to have an optional section in the UI which is binded to the new field, properties for this section will be
1. Include the control in the form by default.
2. Allow users to delete the ...
-
Hi,
I'm sorry but I am a beginner in Infopath development. I've tried to develop my own
function in C# to handle a click in a button. It works perfectly in debug mode (from VS.NET), but as soon as I publish the form and try to open it in the normal way Infopath crashes and cannot open my form.
I should forget something ?
Any ideas or advices ...
-
I have been fighting an issue where my schema changed and added new fields. The new schema worked fine for new forms but any old form was opened and the new field was not enterable. I originally went down a path thinking that since the schema was created externally and imported into InfoPath that InfoPath couldn't deal with the upgrade as it ...
-
File attachments will be there in the main DOM(thisXDocument.DOM), means this will be part of form XML.
FYI
File attachments are stored in base64 format in the XML.
Agni
InfoPathDev India
-
I've deployed an infopath form to a Windows SharePoint Services.
And my form has a ''File Attachment'' control on it.
What makes me wonder is that where do all the attachments got saved in the sharepoint library?
Clearly it's not saving the attachments on the local machine nor the network drive etc.
Anyone with a clue on this?
It may sound ...
-
Hey all,
Have another issue regarding data types and SQL server. I am getting validation errors when my XPATH expression is computed. I have a field called Price and a field called Discount, and one more called Total. In SQL they are all the Money data type. When I try and run the form and put in values, I get the errors as said above.
I read ...
-
Nevermind, I have figured it out. A mistake on my part.
-
Shiva,
That is exactly what I needed. Now since this form is connected to a database, my values are not posted until I hit submit. How do I do a calculation in the form with values that are not submitted to the database yet? When I follow your instructions and use SUM and bind that to a field, the field where SUM is bound is zero and i'm guessing ...
-
Hello Sainzmichael,
What you want to do can be done directly using the default InfoPath SP1 functionality (without any code). For the subTotal field set the Default value as number(Price) - number(Discount). This will give you the sub total value for each line item.
Now in the grand total field set the Default value as sum(subTotal). What sum ...