How do I find out what a web part's doing
-
Hi - I'm a Sharepoint novice, but I've inherited an undocumented site & need to change something & I'm stuck. The users click a cell in a Sharepoint web part, and an email gets sent. Some of the text in this email needs to be changed. This should be easy, but I'm going round in circles. F12 tells me that the href is :-
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_9aea7398_eed8_4d9d_9ccf_6eadc55097f5$grdProfiles$ctl02$approvedColumn", "", true, "", "", false, true))
OK, this is obviously generated & I haven't searched for this. I have found the web part in the Webpart Gallery, but when I click the Edit link, all I can change is the name, title, description etc. I assume that there is some code somewhere merging the data from the selected record with an email template, but how do I find that code & hence the template? I have searched for the string I want to change in all files in Sharepoint Designer without finding it. The only unfollowed avenue I have is that when I download the XML, there is an importErrorMessage - Cannot import this Web Part, even though it displays fine for the users. Any clues on how to follow it? I'm beginning to lose the will to live with Sharepoint! Any suggested courses of action will be welcomed (unfortunately, ditching Sharepoint won't be one I'll be able to follow). Regards, Stewart [EDIT - by further Googling I discovered the .wps extension, logged on to the server & searched for these. The correct candidate was pretty easy to spot. Copied it, changed the extension to .cab, extracted the files, ran ILSpy against the .dll and discovered that it simply updates a field on a record. Current suspicion is that this triggers a workflow - but I haven't found one that sends an email with the correct text yet - I've found the one that gets sent on creation, but not on update. More digging]
-
Hi - I'm a Sharepoint novice, but I've inherited an undocumented site & need to change something & I'm stuck. The users click a cell in a Sharepoint web part, and an email gets sent. Some of the text in this email needs to be changed. This should be easy, but I'm going round in circles. F12 tells me that the href is :-
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_9aea7398_eed8_4d9d_9ccf_6eadc55097f5$grdProfiles$ctl02$approvedColumn", "", true, "", "", false, true))
OK, this is obviously generated & I haven't searched for this. I have found the web part in the Webpart Gallery, but when I click the Edit link, all I can change is the name, title, description etc. I assume that there is some code somewhere merging the data from the selected record with an email template, but how do I find that code & hence the template? I have searched for the string I want to change in all files in Sharepoint Designer without finding it. The only unfollowed avenue I have is that when I download the XML, there is an importErrorMessage - Cannot import this Web Part, even though it displays fine for the users. Any clues on how to follow it? I'm beginning to lose the will to live with Sharepoint! Any suggested courses of action will be welcomed (unfortunately, ditching Sharepoint won't be one I'll be able to follow). Regards, Stewart [EDIT - by further Googling I discovered the .wps extension, logged on to the server & searched for these. The correct candidate was pretty easy to spot. Copied it, changed the extension to .cab, extracted the files, ran ILSpy against the .dll and discovered that it simply updates a field on a record. Current suspicion is that this triggers a workflow - but I haven't found one that sends an email with the correct text yet - I've found the one that gets sent on creation, but not on update. More digging]
What is the text of the email? Is it an alert email (which is sharepoint generated)?
-
Hi - I'm a Sharepoint novice, but I've inherited an undocumented site & need to change something & I'm stuck. The users click a cell in a Sharepoint web part, and an email gets sent. Some of the text in this email needs to be changed. This should be easy, but I'm going round in circles. F12 tells me that the href is :-
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_9aea7398_eed8_4d9d_9ccf_6eadc55097f5$grdProfiles$ctl02$approvedColumn", "", true, "", "", false, true))
OK, this is obviously generated & I haven't searched for this. I have found the web part in the Webpart Gallery, but when I click the Edit link, all I can change is the name, title, description etc. I assume that there is some code somewhere merging the data from the selected record with an email template, but how do I find that code & hence the template? I have searched for the string I want to change in all files in Sharepoint Designer without finding it. The only unfollowed avenue I have is that when I download the XML, there is an importErrorMessage - Cannot import this Web Part, even though it displays fine for the users. Any clues on how to follow it? I'm beginning to lose the will to live with Sharepoint! Any suggested courses of action will be welcomed (unfortunately, ditching Sharepoint won't be one I'll be able to follow). Regards, Stewart [EDIT - by further Googling I discovered the .wps extension, logged on to the server & searched for these. The correct candidate was pretty easy to spot. Copied it, changed the extension to .cab, extracted the files, ran ILSpy against the .dll and discovered that it simply updates a field on a record. Current suspicion is that this triggers a workflow - but I haven't found one that sends an email with the correct text yet - I've found the one that gets sent on creation, but not on update. More digging]
Hi, please visit this site. You can find web parts information. http://www.agilinesharepoint.com/
-
Hi - I'm a Sharepoint novice, but I've inherited an undocumented site & need to change something & I'm stuck. The users click a cell in a Sharepoint web part, and an email gets sent. Some of the text in this email needs to be changed. This should be easy, but I'm going round in circles. F12 tells me that the href is :-
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$m$g_9aea7398_eed8_4d9d_9ccf_6eadc55097f5$grdProfiles$ctl02$approvedColumn", "", true, "", "", false, true))
OK, this is obviously generated & I haven't searched for this. I have found the web part in the Webpart Gallery, but when I click the Edit link, all I can change is the name, title, description etc. I assume that there is some code somewhere merging the data from the selected record with an email template, but how do I find that code & hence the template? I have searched for the string I want to change in all files in Sharepoint Designer without finding it. The only unfollowed avenue I have is that when I download the XML, there is an importErrorMessage - Cannot import this Web Part, even though it displays fine for the users. Any clues on how to follow it? I'm beginning to lose the will to live with Sharepoint! Any suggested courses of action will be welcomed (unfortunately, ditching Sharepoint won't be one I'll be able to follow). Regards, Stewart [EDIT - by further Googling I discovered the .wps extension, logged on to the server & searched for these. The correct candidate was pretty easy to spot. Copied it, changed the extension to .cab, extracted the files, ran ILSpy against the .dll and discovered that it simply updates a field on a record. Current suspicion is that this triggers a workflow - but I haven't found one that sends an email with the correct text yet - I've found the one that gets sent on creation, but not on update. More digging]
for more information please visit below site. http://www.agilinesharepoint.com/
-
What is the text of the email? Is it an alert email (which is sharepoint generated)?
Hi The text may well be Sharepoint generated, or come form a workflow (that I've been unable to find). Here's the message, with details removed to protect the guilty ;) **** An account has been created for you in our new Portal. We will notify you via email, that will contain a username and password, once your account has been activated and is ready for use. If you don�t receive this confirmation within 48 hours then please email xxx@xxx.co.uk or call 0845 999 9999. If you did not request a new account to be set up, please notify us immediately at xxx@xxx.co.uk or call 0845 999 9999. **** I was about to post the text of the message that I had found in a workflow to show that it wasn't this one, but when I did, it turns out it is the right one, just that the Configure Action dialogue isn't showing me the full text (I had to faff with the emulation using F12 to make it show me anything). See - just by asking a question, you have shown me the way. Ain't CodeProject wonderful. Many thanks & best regards, Stewart
-
Hi The text may well be Sharepoint generated, or come form a workflow (that I've been unable to find). Here's the message, with details removed to protect the guilty ;) **** An account has been created for you in our new Portal. We will notify you via email, that will contain a username and password, once your account has been activated and is ready for use. If you don�t receive this confirmation within 48 hours then please email xxx@xxx.co.uk or call 0845 999 9999. If you did not request a new account to be set up, please notify us immediately at xxx@xxx.co.uk or call 0845 999 9999. **** I was about to post the text of the message that I had found in a workflow to show that it wasn't this one, but when I did, it turns out it is the right one, just that the Configure Action dialogue isn't showing me the full text (I had to faff with the emulation using F12 to make it show me anything). See - just by asking a question, you have shown me the way. Ain't CodeProject wonderful. Many thanks & best regards, Stewart
Glad to be of some assistance :cool: A couple of tools which may be helpful too are: SharePoint Manager - http://spm.codeplex.com/[^] SharePoint Log Viewer - https://sharepointlogviewer.codeplex.com/[^] Good luck with it all! -DB