Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. How do I find out what a web part's doing

How do I find out what a web part's doing

Scheduled Pinned Locked Moved SharePoint
questionjavascriptsharepointsysadminxml
6 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Worried Brown Eyes
    wrote on last edited by
    #1

    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]

    D U 3 Replies Last reply
    0
    • W Worried Brown Eyes

      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]

      D Offline
      D Offline
      DanielBrownAU
      wrote on last edited by
      #2

      What is the text of the email? Is it an alert email (which is sharepoint generated)?

      W 1 Reply Last reply
      0
      • W Worried Brown Eyes

        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]

        U Offline
        U Offline
        User 12060416
        wrote on last edited by
        #3

        Hi, please visit this site. You can find web parts information. http://www.agilinesharepoint.com/

        1 Reply Last reply
        0
        • W Worried Brown Eyes

          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]

          U Offline
          U Offline
          User 12060416
          wrote on last edited by
          #4

          for more information please visit below site. http://www.agilinesharepoint.com/

          1 Reply Last reply
          0
          • D DanielBrownAU

            What is the text of the email? Is it an alert email (which is sharepoint generated)?

            W Offline
            W Offline
            Worried Brown Eyes
            wrote on last edited by
            #5

            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

            D 1 Reply Last reply
            0
            • W Worried Brown Eyes

              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

              D Offline
              D Offline
              DanielBrownAU
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups