-
well create seperate section for all the cars then based on which checkbox is checked show the relevant section..
on each section have a conditional formatting
if relevant_checkbox is not equal to 1
hide this section
-
string[] domain = loginId.Split('\\');
entry = new DirectoryEntry("LDAP://MyServer/DC=MyDomain,DC=net", "username", "password");Dsearch = new DirectorySearcher(entry);if (domain.Length == 2)
{Dsearch.Filter = "(&(objectClass=user)(samAccountName=" + domain[1] + "))"; ...
-
is there some kind of list, table or such thing where you store the user information, as to who is manager who is employee.. if so you can create a secondary data connection to that list/table and compare the logged in user to that and check what is the role of the person and based on that change the views or hide/unhide the sections/fields
-
when we use managed code to submit the form, it is our responsibility to let the form know whether the submittion was sucessfull or not. we do this by settign the
CancelableArgs.Cancel to true or false.
try getting both the submits in only one try, so that if one fails the other doesnt execute. also no need to set the ...
-
the field on which you have this changed event, you need to set its postback settings to always.
right click the field -> properties -> browser forms -> postback settings -> always.
-
for the data to show up in doc lib as a row of data you will have to promote the fields.
to promote the fields goto
tools -> form options -> property promotions
and add the fields that you want to be listed up in the row,
to submit the form as an email, you will need to create a data connection
go to tools -> data connections ...
-
-
well there is no explicit way of showing a field or section using a conditional formatting. if the condition on the conditional formatting fails, the formatting does not apply, so if you want your field to be visible say if field1 = 'a"
write a conditional formatting
if field1 is not equal to a
hide the field.
-
to hide sections u can use conditional formatting, or you can better create seperate views to be shown on who the user is.
-
try this.
DirectorySearcher search = new DirectorySearcher();
search.Filter = String.Format("(SAMAccountName={0})", userName);
search.PropertiesToLoad.Add("cn");
SearchResult result = search.FindOne();