Blitz
workflow notification trigger
open edit form in modal using button from html form web part
i created on page the html form web part and in them i created button with this button i open edit form for selected item in list. may code is
<xsl:variable name="ItemID" select "@ID"/><SCRIPT language = "JavaScript"> function SubmitButton (){ var ID = '<xsl:value-of select="$ItemID"/>' var options = { url: "http://test-net.dri.local/DocLib7/Forms/edit-vodja.aspx?ID=" + ID, width:800, height: 600, dialogReturnValueCallback: DialogCallback}; SP.UI.ModalDialog.showModalDialog(options); } function DialogCallback(dialogResult, returnValue){ meesageId = SP.UI.Notify.addNotification(returnValue, false); }</SCRIPT><input name ="btnSubmit" type="button" value="Одобрење" onclick="SubmitButton();"/>
this code i found in your forum. the edit form is openning in the modal, but is not selected item which i select before click on open button. probably, problem is in
var ID = '<xsl:value-of select="$ItemID"/>'
ID of item. i don't know how resolve this problem.
Query fails when trying to retrieve approved items from a list
I have a list, I want to query on items with a status of Approved and iterate through them. What am I doing wrong? Code:
CamlQuery camlQuery = new CamlQuery()
//Approved=0, Rejected=1, Pending=2, Draft=3, Scheduled=4
camlQuery.ViewXml = "<View><Query><Where><Eq><FieldRef Name =’_ModerationStatus’/>"+ "<Value Type =’ModStat’> 0 </Value></Eq></Where></Query><RowLimit>1000</RowLimit></View>";
ListItemCollection collListItem = sourceList.GetItems(camlQuery); clientContext.Load(collListItem); clientContext.ExecuteQuery();
It gets down to the ExecuteQuery and dies, saying "One or more field types is not installed properly."
Which suggests I have the name of the field I an querying on wrong. But everything I read says ’_ModerationStatus' is the correct internal name.
So, what am I doing wrong?
Down there somewhere, its just ones and zeros.
Download only the first page of each document from Document Library using Client Object Model
Hi All,
I have document library which contains documents. I have written a Client Object model to download the document. But I would like to know. Instead of downloading the entire document, I want to download only the first page of each document. I should not split the first page after download entire file. While download itself, I should get only first page of the document.
Is is possible?
Regards
Poomani Sankaran
Remote Event Receiver is not working while do bulk upload of large size files.
Hi All,
Remote Event Receiver is not working while do bulk upload of large size files.
I have written and deployed Remote Event Receiver in SharePoint online document Library. It will trigger ItemAdded event. The RER is not working while upload 200 files via explorer mode and each files are 20 MB in size. What is the reason of it? Is there any logs for the failed event receiver? Possible to re-initiate?
Regards
Poomani Sankaran
Remote Event Receiver App deployment error in SharePoint Online
Hi All,
I have developed Remote Event Receiver SharePoint Online and I am getting below error in do app deployment. "Sorry, something went wrong with adding the app. Click to retry."
Type | Component | Error | Correlation ID |
---|---|---|---|
Intermittent (Retry operation) | Common App Deployment | The remote event receiver callout failed. Details: The HTTP request was forbidden with client authentication scheme 'Anonymous'. | bfda3dee-d6f8-475d-a274-e9 |
How could i resolve it?
Regards
Poomani Sankaran
SharePoint 2010 - High Memory consumption for w3wp process
I am using sharepoint 2010 foundation.I have just one basic webpart which interacts with different list and show the data.This has two authentication one is default based
on ntlm another is form based which uses our custom membership provider
This was running fine from couple of years but from last few dew days this started showing high memory consumption.
We checked logs (event,uls) but there was no error in that.We did check if there is any update on the system but there was no update from last two year on server.
We installed debugDiag and it showed following error is incrypt32.dll, onetutil.dll
crypt32!I_CryptAllocTls+224: 423.38 MBytes worth of outstanding allocations.
crypt32!I_CryptDetachTls+140: 159.44 MBytes worth of outstanding allocations.
\ONETUTIL.DLL is responsible for 14.64 MBytes worth of outstanding allocations. The following are the top 2 memory consuming functions
it is keep repeating in every row
I have even used windbg to see a dump threads and most of the thread are present in this group
0000000077bd135a ntdll!NtWaitForSingleObject+0xa
000007fefe3410dc KERNELBASE!WaitForSingleObjectEx+0x79
000007fef4f3a2fa cryptnet!CryptRetrieveObjectByUrlWithTimeout+0x263
000007fef4f376fa cryptnet!CryptRetrieveObjectByUrlW+0x20f
000007fefe145864 crypt32!ChainRetrieveObjectByUrlW+0x80
000007fefe14575b crypt32!CCertChainEngine::RetrieveAuthRootAutoUpdateObjectByUrlW+0xbb
000007fefe145477 crypt32!CCertChainEngine::GetAuthRootAutoUpdateCtl+0x287
000007fefe1cb039 crypt32!CChainPathObject::GetAuthRootAutoUpdateUrlStore+0xb1
000007fefe158231 crypt32!CChainPathObject::CChainPathObject+0x54f
000007fefe120fe1 crypt32!ChainCreatePathObject+0xb4
000007fefe11ea61 crypt32!CCertChainEngine::CreateChainContextFromPathGraph+0x375
000007fefe12014b crypt32!CCertChainEngine::GetChainContext+0x8b
000007fefe12007e crypt32!CertGetCertificateChain+0x100
000007fef521fd67 mscorwks!DoNDirectCall__PatchGetThreadCall+0x7b
000007fef27cd462 System_ni+0x1cd462
000007fef27e8f8b System_ni+0x1e8f8b
000007fef27e8b4e System_ni+0x1e8b4e
000007feeeedb805 Microsoft_SharePoint_ni+0x242b805
000007feeedf0394 Microsoft_SharePoint_ni+0x2340394
000007fee5d6b908 Microsoft_IdentityModel_ni+0x1fb908
000007ff00251c03 0x7ff00251c03
000007ff00251a6a 0x7ff00251a6a
000007ff00250408 0x7ff00250408
000007fee5d7f081 Microsoft_IdentityModel_ni+0x20f081
000007fee5dec944 Microsoft_IdentityModel_ni+0x27c944
000007fee5dece57 Microsoft_IdentityModel_ni+0x27ce57
000007fee5dec330 Microsoft_IdentityModel_ni+0x27c330
000007fee8be59b0 System_Web_ni+0x2759b0
000007fee8bd671b System_Web_ni+0x26671b
000007fee92c3971 System_Web_ni+0x953971
000007fee92b43b2 System_Web_ni+0x9443b2
000007fee9295df9 System_Web_ni+0x925df9
000007fee93bdde1 System_Web_ni+0xa4dde1
000007fee93bd9ab System_Web_ni+0xa4d9ab
000007fee93bcc14 System_Web_ni+0xa4cc14
000007fef521e0ba mscorwks!UMThunkStubAMD64+0x7a
000007fee40c51c7 webengine!W3_MGD_HANDLER::ProcessNotification+0x107
000007fee40c6282 webengine!W3_MGD_HANDLER::DoWork+0x312
000007fee40c1ace webengine!RequestDoWork+0x44e
000007fee40c1ef2 webengine!CMgdEngHttpModule::OnAuthenticateRequest+0x22
000007fefb016540 iiscore!NOTIFICATION_CONTEXT::RequestDoWork+0xd8
000007fefb0146a4 iiscore!NOTIFICATION_CONTEXT::CallModulesInternal+0x174
000007fefb01a775 iiscore!NOTIFICATION_CONTEXT::CallModules+0x25
000007fefb016c80 iiscore!W3_CONTEXT::DoWork+0x2cd
000007fefb01a81c iiscore!W3_CONTEXT::IndicateCompletion+0x8c
Any insight how to proceed further will be really great to figure out what is causing memory leak?
thanks in advance
redirect to a home page when on click of save button in a discussion forum thread.
hi,
i am having a add new discussion link in a team site. when i click on the link, it will redirect me to the new discussion thread and i am able to add a new discusiion title and description/ start a discussion.
now, when i click on the Save button, i want to redirect to the team site 's home page instead of already created discussions page.
i saw its a /newform.aspx , so is there a way i can catch theSave button click event and redirect to the homepage.
any help is appreciated.
I want to open my page in same tab instead of new Tab
Hi Forum,
I created a custom Test1 page in my Sharepoint 2010 application.I want to redirect to new Test2 page.But the new Test2 page need to open in the current tab.
I tried using window.open and window.location.href.But it is opening in new Tab page.
Could you please suggest me how to do this.
Rama
Could not load file or assembly 'Microsoft.Owin, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
Edcal
Process multiple csvs in powershell
I have multiple csvs in a folder that are name sequentially (e.g. 1 to 100). How is it possible to invoke multiple powershell child instances through PowerISE. Each of those child instances will read a corresponding csv and process it further. (e.g. instance 1 will invoke 1.csv likewise).
Any way to achieve this?
Write logs in text file on Event Receiver in SharePoint Online
Hi All,
I have created Remote Event Receiver in SharePoint Online successfully. I would like to write custom values and exceptions log in text file. I have deployed all the required and custom dlls in Azure. Please suggest me to write a text file in RER.
Regards
Poomani Sankaran
custom workflow design using visual studio
To generate following notification
Reference number-new submission email notification to be generated where submitter has requested that requires approval and sent to provide to list of reviewers.
status-email sent to submitter when status is Approved or declined
Followup date- Email sent to reviewers when target date is approached-Email notification to the assigned reviewer on the day the date is reached and every 7 days after that date .if there is a reminder email sent after 7 days it needs to be assigned
permission - This field will be the trigger for the notification email to be sent in case of new submission
Blitz
form design
i need to develop below requirement and please help with approach
Form should contain below fields and should contain background colour
list of fields:
Name-free text mandatory
email address-consider use of global email address with check name function mandatory
country -dropdown list
date-popup calendar uk format
details-multiline
Blitz
problem with creating custom document ID
I tryed that create custom document ID using links
my code for method
GenerateDocumentId(SPListItem listItem)
public override string GenerateDocumentId(SPListItem listItem) { if (listItem ==null) { throw new ArgumentNullException("listItem"); } string strUrl = "http://test-net.dri.local"; using (SPSite oSite = new SPSite(strUrl)) { using (SPWeb Web = oSite.OpenWeb()) { SPList currentlist = Web.Lists["Сектор"]; SPListItem vr = currentlist.GetItemByIdSelectedFields(listItem.ID, "Врста ревизије"); string Vvr = (String)vr["Врста ревизије"]; string vrstarevzije = null; switch (Vvr) { case "Финансијских извештаја;": { vrstarevzije = "ФИ"; break; } case "Правилност пословања;": { vrstarevzije = "ПП"; break; } case "Сврсисходности пословања;": { vrstarevzije = "СВРСП"; break; } case "Одазивних извештаја;": { vrstarevzije = "ОДИ"; break; } case "Саставних делова финансијских извештаја;": { vrstarevzije = "СДФИ"; break; } case "ИТ ревизија;": { vrstarevzije = "ИТР"; break; } default: { vrstarevzije = "ОСТ"; break; } } SPListItem vd = currentlist.GetItemByIdSelectedFields(listItem.ID, "Врста документа"); string Vvd = (String)vd["Врста документа"].; string vrstadokumenta = null; switch (Vvd) { case "Документа субјекта ревизије;": { vrstadokumenta = "ДСР"; break; } case "Друга документа;": { vrstadokumenta = "ДД"; break; } case "Радни папири;": { vrstadokumenta = "РП"; break; } default: { vrstadokumenta = "ОСТД"; break; } } string idString = string.Format("{0}-{1}-{2}", vrstarevzije, vrstadokumenta, listItem.ID.ToString()); return idString; } } }in document ID field i dont receive value of my document. i use two field from my document "Врста ревизије" and "Врста документа" the both field are metadata field of my document library.
visual studio sequential workflow email notification trigger
i am new to visual studio workflow and i would appreciate some kind help for the below scenarios
I have list where user add item in new form and save then below email should be trigger based on these conditions
1.new submission email notification to be generated where submitter has requested that requires approval and sent to provide to list of reviewers.
2.status field-email sent to submitter when status is Approved or declined
3.Followup date field- Email sent to reviewers when target date is approached-Email notification to the assigned reviewer on the day the date is reached and every 7 days after that date .if there is a reminder email sent after 7 days it needs to be assigned
Blitz
double accordion menu
hello there;
I am trying to modify this accordion menu (https://info.summit7systems.com/blog/how-to-create-dynamic-accordions-in-sharepoint-pages) to give me this result. On the picture below i want to have like 4 category and when i click on a category it shows the accrodion, if i click on the next category i want it to close the previous one. Does anyone know how i can modify this code for it to work?
Link to image (https://imgur.com/lyF7tcI)
visual studio sequential workflow email notification trigger-- Urgent
i am new to visual studio workflow and i would appreciate some kind help for the below scenarios
I have list where user add item in new form and save then below email should be trigger based on these conditions
1.new submission email notification to be generated where submitter has requested that requires approval and sent to provide to list of reviewers.
2.status field-email sent to submitter when status is Approved or declined
3.Followup date field- Email sent to reviewers when target date is approached-Email notification to the assigned reviewer on the day the date is reached and every 7 days after that date .if there is a reminder email sent after 7 days it needs to be assigned
Blitz
[urgent] unable to copy the email address in datasheet view
i need to copy few person in the datasheet view columns and field type is person/group data type and i tried to copy couple of person but im getting below error
cannot paste the copied data due to data type mismatches or invalid data.some source rows which would have created new rows contained invalid values in required field .these rows were skipped.
kindly help
Blitz
C#, Button to add in Bookmark list
Hi,
I'm new in C#.
My request is to create a button, displayed in all sites, and add the current site viewed to the ["BookMarks list"] from another site.
My questions are :
- How do we get the current site opened ?
- How, by hitting the button, my codes will start ?
I tried by creating a new project and a new page aspx, but while I was thinking, I was afraid that the "current site" will be the one where the aspx get executed so I stopped.
Thanks for your help.