none
Enter a value into a POL project table field using Javascript... RRS feed

  • Question

  • Hi 

    Does anyone have any JS code to put a value into a POL project field

    Many thanks 

    James 


    Andrew Binnz

    Thursday, February 22, 2018 5:16 AM

All replies

  • Hi Andrew,

    You will need to be a bit more specific about your requirements. Where is this code running? How does it function? button click or page load etc. What are the target fields, free text, date etc.? Where does the value come from?  You wont find the code you need but will find examples that you could use to as a starter etc.

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS | MVP | Downloads

    Thursday, February 22, 2018 10:10 PM
    Moderator
  • Hi Paul

    I've got a simple dashboard via Content Editor web part in a project's project site.  The JS code is stored in Site Assets.  When the web part loads it accesses the risk register and an in the dashboard there is a field that states if the project is 'At Risk' or not. 

    What I want the script to do then is put this single line text value into a custom field in the project table so that it can appear in the Project Centre view.   Naturally this assumes that the project is not checked-out first. 

    Hope this makes sense.

    Many thanks 

    James 



    • Edited by JamesP435 Friday, February 23, 2018 2:51 AM
    Friday, February 23, 2018 2:51 AM
  • Hi James,

    What code have you got so far? Maybe post your code so far and we might be able to give you some pointers if you're nearly there etc.

    Paul


    Paul Mather | Twitter | http://pwmather.wordpress.com | CPS | MVP | Downloads

    Friday, February 23, 2018 6:54 AM
    Moderator