View Complete Post
I am creating a user control that I would like to be able to generate the form entry fields based on what custom data object the form is bound to. Basically, I have a drop-down box that allows the user to pick what type of data object they are working with
(user, address, etc.) That choice will bind the user control to the related data object. No big deal there. I am stuck, however, on how to generate the form fields based on the properties of the object. I feel like I have seen examples of this in WPF but am
not able to find them now. All form fields will be simple label, textbox combinations in a stackpanel.
I know more detial will probably be required. Let me know what specifically you would like to know. Any help of direction is greatly appreciated.
I am modifying the infio path form 2007 from my state machine workflow to constantly update the status fields in the request form.
below is the method i created for the same..
private void updateInfoPathRequestForm(string xpathNode, string nodeValue)
SPUserToken token = workflowProperties.Web.CurrentUser.UserToken;
using (SPSite _site = new SPSite(workflowProperties.Site.ID, token))
_site.AllowUnsafeUpdates = true;
using (SPWeb _web = _site.OpenWeb(workflowProperties.Web.ID))
SPListItem item = _web.Lists[workflowProperties.List.ID].Items[workflowProperties.Item.UniqueId];
I have a dynamic accordion on a page. Set its datasource to an
object of paged data source.The user control is in the accordions
content template. When i was writing code the properties were showing
but after giving the values of databases as
but the values shows null, these properties are shown as textboxes text property by user control.
MoreOver when I checked the values of database Items.So i made a textbox instead of usercontrol here as
<asp:TextBox ID="txtTest" runat="server"
It is showing the correct value. And if i pass the value directly it is also showing correctly like
<uc:UserControl1 runat="server" Property1="XYZ")%>' Property2="ABC")%>' ></uc:UserControl1>
. where I am wrong
the problem is eval is not passing the value to usercont
I've been trying to figure out a problem that I've had for the past week and believe that the issue is something with a user control that I created. In short, the properties for the user control are recognized by intelisense when I register the control and then add it in the markup for a page. However, the values that I set in the markup are ignored by the class as if the properties don't exist.
<%@ Register Src="../../controls/contactdetail.ascx" TagName="ContactDetail" TagPrefix="tfc" %>
<tfc:ContactDetail runat="server" ID="UserControlContactDetail" Title="Contact-Detail" ContactId="1580" EnableViewState="true" />
User Control Class
Partial Class control_ContactDetail
Public Property ContactId() As Integer
Set(ByVal value As Integer)
_ContactId = value
Private _ContactId As Integer
Public Property Title() As String
we'd like to provide an Info Path Forms Services based form to give users an easy web based ability to upload new documents with some metada and doeing some plausability tests to check if the metadata do make sense. The form will be presented to external users to provide documents in a structured and qualified way.
So we created the InfoPath form and added a repeating "File-Attachment" control to the form. But with this control the files are attached to the InfoPath form itself and not uploaded to a document library. And so the internal users can not easyly work with the documents.
So what would options do we have to customize InfoPath to provide an possiblility to upload documents to a document library?
is it possible to enable a button control based on another button control. so when a user click on a button it enable another button. only if the first button is clicked the second button can be click aswell
I am facing an error in info path form web enabled.
When i open a new form, it opens and saved. Even the sendingemail is also working.
But when i try to open the already saved form. The form is not opening it is displaying the error that the form has been closed. Or it is not getting the form from the location..