tag:blogger.com,1999:blog-69579052012995317242024-03-12T21:14:59.014-07:00Sunil ShresthaWelcome to my new blog site.Anonymoushttp://www.blogger.com/profile/04389302319093300125noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6957905201299531724.post-88717129207243824352018-08-15T05:39:00.002-07:002018-08-15T05:39:53.067-07:00SharePoint List Attachment Field Validation through Info Path<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
1.) Create a field in addition to the attachments field. In my case, I called the field I created Attachment Validation.</div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
2.) Drop your field onto the form and remove the borders and background. Then set the default text to ‘Attachments:’</div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px 0px 0px 30px;">
<img alt="InfoPath 2010 Attachments Field Validation" class="alignnone size-full wp-image-137" data-attachment-id="137" data-comments-opened="1" data-image-description="" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":""}" data-image-title="InfoPath_Attachments_Field" data-large-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=510?w=510" data-medium-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=510?w=300" data-orig-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=510" data-orig-size="777,182" data-permalink="https://maxmorrow.wordpress.com/2012/05/03/infopath-2010-validating-the-attachments-field/infopath_attachments_field/" sizes="(max-width: 510px) 100vw, 510px" src="https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=510" srcset="https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=510 510w, https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=150 150w, https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=300 300w, https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png?w=768 768w, https://maxmorrow.files.wordpress.com/2012/05/infopath_attachments_field.png 777w" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(204, 204, 204); height: auto !important; margin-bottom: 10px; max-width: 98%; padding: 5px;" title="InfoPath_Attachments_Field" /></div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
3.) Finally, lets apply some validation to this field. Right click the field on your form and select <strong>Rules > Manage Rules.</strong></div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px 0px 0px 60px;">
In my case, I needed to make sure there was at least one attachement. So, I counted the :attachmentURL instances and checked if there were more than 0. To do this, I used a custom expression:</div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px 0px 0px 60px;">
<a href="https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png" style="color: #2089cc; outline: none;"><img alt="" class="alignnone size-full wp-image-136" data-attachment-id="136" data-comments-opened="1" data-image-description="" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":""}" data-image-title="InfoPath_Expression" data-large-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png?w=510?w=510" data-medium-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png?w=510?w=300" data-orig-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png?w=510" data-orig-size="619,127" data-permalink="https://maxmorrow.wordpress.com/2012/05/03/infopath-2010-validating-the-attachments-field/infopath_expression/" sizes="(max-width: 510px) 100vw, 510px" src="https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png?w=510" srcset="https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png?w=510 510w, https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png?w=150 150w, https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png?w=300 300w, https://maxmorrow.files.wordpress.com/2012/05/infopath_expression.png 619w" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(204, 204, 204); height: auto !important; margin-bottom: 10px; max-width: 98%; padding: 5px;" title="InfoPath_Expression" /></a></div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
Now with all of that complete you will have a separate field that validates the attachments field and if there are no attachments, the text in the left hand column will be surrounded in the standard red dashed border.</div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
<a href="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png" style="color: #2089cc; outline: none;"><img alt="InfoPath 2010 Validation on Attachments Field" class="alignnone size-full wp-image-138 aligncenter" data-attachment-id="138" data-comments-opened="1" data-image-description="" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":""}" data-image-title="InfoPath_2010_Attachments_Validation" data-large-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png?w=510?w=510" data-medium-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png?w=510?w=300" data-orig-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png?w=510" data-orig-size="743,167" data-permalink="https://maxmorrow.wordpress.com/2012/05/03/infopath-2010-validating-the-attachments-field/infopath_2010_attachments_validation/" sizes="(max-width: 510px) 100vw, 510px" src="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png?w=510" srcset="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png?w=510 510w, https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png?w=150 150w, https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png?w=300 300w, https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_validation.png 743w" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(204, 204, 204); display: block; height: auto !important; margin-bottom: 10px; margin-left: auto; margin-right: auto; max-width: 98%; padding: 5px;" title="InfoPath_2010_Attachments_Validation" /></a></div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
<strong>NOTE:</strong></div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
To get to the ‘:attachmentsURL’ field you need to create the validation make sure you go into Advanced View of the fields.</div>
<div style="background-color: #f2f2f2; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 24px; margin-bottom: 1em; padding: 0px;">
<a href="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_url_field.png" style="color: #e2415b; outline: none;"><img alt="InfoPath 2010 Attachments :attachmentURL field advanced view" class="size-full wp-image-139 aligncenter" data-attachment-id="139" data-comments-opened="1" data-image-description="" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":""}" data-image-title="InfoPath_2010_Attachments_URL_Field" data-large-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_url_field.png?w=510?w=208" data-medium-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_url_field.png?w=510?w=208" data-orig-file="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_url_field.png?w=510" data-orig-size="208,45" data-permalink="https://maxmorrow.wordpress.com/2012/05/03/infopath-2010-validating-the-attachments-field/infopath_2010_attachments_url_field/" sizes="(max-width: 208px) 100vw, 208px" src="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_url_field.png?w=510" srcset="https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_url_field.png 208w, https://maxmorrow.files.wordpress.com/2012/05/infopath_2010_attachments_url_field.png?w=150 150w" style="background: rgb(156, 209, 225); border: 1px solid rgb(56, 161, 229); display: block; height: auto !important; margin-bottom: 10px; margin-left: auto; margin-right: auto; max-width: 98%; padding: 5px;" title="InfoPath_2010_Attachments_URL_Field" /></a></div>
</div>
Anonymoushttp://www.blogger.com/profile/04389302319093300125noreply@blogger.com0tag:blogger.com,1999:blog-6957905201299531724.post-86587676142752033402018-08-13T03:26:00.003-07:002018-08-13T03:26:29.469-07:00Make only any 3 check box clickable in multiple selection list box of SharePoint list field through Info Path.<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<ul style="text-align: left;">
<li>First Create a field called "CountAC" and set fields value of count the clicked check boxes. Like:</li>
</ul>
<div>
<a href="https://1.bp.blogspot.com/-R0CuOJ0K4Bk/W3FO8DlBq4I/AAAAAAAAAxU/nRoq09O0FkoubR93XE0Tqx4A-N6QG53egCLcBGAs/s1600/MultipleSelectionListBox3.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="700" data-original-width="928" height="241" src="https://1.bp.blogspot.com/-R0CuOJ0K4Bk/W3FO8DlBq4I/AAAAAAAAAxU/nRoq09O0FkoubR93XE0Tqx4A-N6QG53egCLcBGAs/s320/MultipleSelectionListBox3.PNG" width="320" /></a></div>
<div style="text-align: left;">
<ul style="text-align: left;">
<li>now create a rule to validate at most 3 check box.</li>
</ul>
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-sWa1Do2ztEs/W3FO8MTVyGI/AAAAAAAAAxY/UaqmFssjR2EaJDF5kHssZXHTJf2OBx6VQCLcBGAs/s1600/MultipleSelectionListBox1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="204" data-original-width="719" height="90" src="https://2.bp.blogspot.com/-sWa1Do2ztEs/W3FO8MTVyGI/AAAAAAAAAxY/UaqmFssjR2EaJDF5kHssZXHTJf2OBx6VQCLcBGAs/s320/MultipleSelectionListBox1.PNG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-TIhZkqVMmmk/W3FO8M6EJQI/AAAAAAAAAxQ/MpKnYL6TDmU4tQfwo_zpROxH4p7M1rXdgCLcBGAs/s1600/MultipleSelectionListBox2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="464" data-original-width="256" height="320" src="https://3.bp.blogspot.com/-TIhZkqVMmmk/W3FO8M6EJQI/AAAAAAAAAxQ/MpKnYL6TDmU4tQfwo_zpROxH4p7M1rXdgCLcBGAs/s320/MultipleSelectionListBox2.PNG" width="176" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<ul style="text-align: left;">
<li> Now add a clear button to set the fields value and CountAC value to null for editing purpose.<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-tUsRhbBDttE/W3Fcc1xL1lI/AAAAAAAAAx4/ZhapyVetoQwV83sv4qKrHYHe-VNe8s8ewCLcBGAs/s1600/MultipleSelectionListBox5.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="139" data-original-width="687" height="64" src="https://2.bp.blogspot.com/-tUsRhbBDttE/W3Fcc1xL1lI/AAAAAAAAAx4/ZhapyVetoQwV83sv4qKrHYHe-VNe8s8ewCLcBGAs/s320/MultipleSelectionListBox5.PNG" width="320" /></a><a href="https://3.bp.blogspot.com/-YslGkdP4CdY/W3FccwGqYkI/AAAAAAAAAx8/tZV75xcLvI8HTqmhqanmltFSfj6gOLnfACLcBGAs/s1600/MultipleSelectionListBox4.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="620" data-original-width="259" height="320" src="https://3.bp.blogspot.com/-YslGkdP4CdY/W3FccwGqYkI/AAAAAAAAAx8/tZV75xcLvI8HTqmhqanmltFSfj6gOLnfACLcBGAs/s320/MultipleSelectionListBox4.PNG" width="133" /></a></div>
</li>
</ul>
</div>
Anonymoushttp://www.blogger.com/profile/04389302319093300125noreply@blogger.com0tag:blogger.com,1999:blog-6957905201299531724.post-87891372645679565162017-04-12T22:15:00.003-07:002019-03-09T23:21:26.457-08:00Removing Shorcut Virus using Command Prompt<div dir="ltr" style="text-align: left;" trbidi="on">
<h4>
Steps To Delete Shortcut Virus By Using CMD:</h4>
<div style="text-align: left;">
If you do not wish to install any other <b>shortcut virus remover </b>application
, then you can simply remove shortcut virus from your PC/laptop or
pendrive by using a command prompt (CMD). Even if you are a non-techy
person then also you can easily remove shortcut virus from your pendrive
or PC by following the CMD tutorial. </div>
<ol>
<li>Open command prompt (CMD). (Go to Run >> type CMD >> Hit enter )</li>
<li>Type the drive letter of your removable device and a colon after it and hit enter. (Eg: <b>g:</b>)</li>
<li>Now type: <b>attrib g:*.* /d /s -h -r -s </b>. (Replace <b>g: </b>with the drive name of your drive)</li>
<li>Hit enter.</li>
</ol>
<br />
<ol>
</ol>
</div>
Anonymoushttp://www.blogger.com/profile/04389302319093300125noreply@blogger.com0tag:blogger.com,1999:blog-6957905201299531724.post-35758681381441063052017-04-05T23:38:00.001-07:002017-04-05T23:38:06.288-07:00Adding New Custom Themes in SharePoint 2013<div dir="ltr" style="text-align: left;" trbidi="on">
<code><span class="tag"><SharePoint:CssRegistration</span><span class="pln"> </span><span class="atn">ID</span><span class="pun">=</span><span class="atv">"CssRegistration1"</span><span class="pln"> </span><span class="atn">Name</span><span class="pun">=</span><span class="atv">"Themable/corev15.css"</span><span class="pln"> </span><span class="atn">runat</span><span class="pun">=</span><span class="atv">"server"</span><span class="pln"> </span><span class="tag">/></span><span class="pln">
</span></code><br />
<pre class="default prettyprint prettyprinted"><code><span class="tag"><SharePoint:CssRegistration</span><span class="pln"> </span><span class="atn">ID</span><span class="pun">=</span><span class="atv">"CssRegistration2"</span><span class="pln"> </span><span class="atn">Name</span><span class="pun">=</span><span class="atv">"/Style Library/css/customized.css"</span><span class="pln"> </span><span class="atn">runat</span><span class="pun">=</span><span class="atv">"server"</span><span class="pln"> </span><span class="atn">After</span><span class="pun">=</span><span class="atv">"corev15.css"</span><span class="pln"> </span><span class="tag">/></span></code></pre>
<br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/04389302319093300125noreply@blogger.com0tag:blogger.com,1999:blog-6957905201299531724.post-7319267003582091012015-11-25T02:50:00.003-08:002017-04-12T22:06:34.869-07:00Changing Permission for folder & its files in Ubuntu(Linux)....<div dir="ltr" style="text-align: left;" trbidi="on">
sudo chmod -R 777 folder name <br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/04389302319093300125noreply@blogger.com4