Read project details (javascript)

Hi,
I cannot figure out how to read the details of a project, ex. I can get the Name, ID, CreatedDate etc. but not the Owner, StartDate, EnterpriseProjectType etc..
I tried with the following code, what am I doing wrong?
projectContext.load(proj);
projectContext.load(proj.get_owner());
projectContext.executeQueryAsync(function () {
var name = proj.get_name();
var ept = proj.get_enterpriseProjectType();
var owner = proj.get_owner();
}, function (sender, args) {
alert('Error: ' + args.get_message());
The Owner and EPT variables are assigned an object, but I cannot figure out which type of object. would expect it to be a string.
I also tried with:
projectContext.load(proj, 'Include(Name, Id, Owner)');
Please, any help is appreciated.

After a long search and through the CSOM API I found that the owner is actually a SharePoint object.
projectsBasic.forEach(function (proj, index) {
if (proj.get_id() == projectuid) {
projectContext.load(proj);
var owner = proj.get_owner();
projectContext.load(owner);
var ept = proj.get_enterpriseProjectType();
projectContext.load(ept);
projectContext.executeQueryAsync(function () {
var name = proj.get_name();
var cd = proj.get_createdDate();
var eptname = ept.get_name();
var ownerName = owner.get_title();
}, function (sender, args) {
alert('Error: ' + args.get_message());
Notice the get_title instead of get_name
http://technicaltrix.blogspot.dk/

Similar Messages

  • Published project details

    I am new to Oracle BPM/Aqualogic BPM application. This may be a very basic question.
    Where does the published project details stored when we publish the project in ALBPM Studio 5.7
    I assume, these data are stored in engine database. if my assumption is right, where or how this engine database details are configured?
    Thanks in advance,
    Suresh Arumugam

    Hi sabithad,
    The issue you are facing is because of the conflict of permissions, event handlers always works through administrative user credentials whereas the project is open in edit mode by the logged-in user. And you are tyring to update custom field at the back
    end with Administrative credentials, while project queue is in process by logged-in users credentials. Its not gonna work this way :) 
    The best option is to use Javascript on your PDP using CEWP, you can either build your complete logic in JavaScript and place that code on your PDP. OR you can use the combination of JavaScript and PSI and create a webpart to be placed on PDP.
    below blog link willgive you directions to go ahead with, but for sure the solution to your query is
    JavaScript :)
    http://epmxperts.wordpress.com/2012/05/21/generate-unique-id-for-project-using-a-webpart/
    hope this helps.
    Khurram Jamshed - MBA, PMP, MCTS, MCITP (
    Blog, Twitter, Linkedin )
    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • Error reading project file : no protocol

    I have followed the instructions exactly as in the j2ee tutiorial ,but, when I run asant , an error occurs:
    : Error reading project file : no protocol: ../../common/targets.xml
    Urgent!

    Could you please provide a bit more detail such as which sample you are using? Also are you using the latest version of the tutorial and have you configured your build.properties in the samples/common directory?

  • Unable to edit the Project details from PWA in Project server 2013

    I am Migrating the project from MS Project 2007 to MS Project 2013.In that i save the project as a file first in 2007 and then open that file in  MS Project 2013 And publish it.But in some Project when i am Trying to change the projects details from
    PWA in Project server 2013 and then trying to save then the projects are not saving and are generating the error as shown below
    •GeneralQueueException:◦GeneralQueueException (9131). Details: id='9131' name='GeneralQueueException' uid='f7bb5d93-20e9-e411-b302-005056ae159c' messageID='2' exception='System.TimeoutException: This request operation sent to net.pipe://localhost/pscalc_13c43af4a7d34a2c8145b776b325a865
    did not receive a reply within the configured timeout (00:05:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a
    reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client. Server stack trace: at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message
    message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
    msgData, Int32 type) at Microsoft.Office.Project.Server.Interfaces.ICalcService.OpenProjectRemappedProject(CalcServiceCallState callState, Guid realProjectGuid, Guid remappedProjectGuid, EngineSessionState& sessionState, EngineSessionType sessionType,
    PSError& psError) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceChannel.OpenProjectRemappedProject(CalcServiceCallState callState, Guid realProjectGuid, Guid remappedProjectGuid, EngineSessionState& sessionState, EngineSessionType sessionType,
    PSError& psError) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.<>c__DisplayClass2.<OpenProjectRemappedProject>b__1(ICalcServiceChannel calcServiceChannel, PSError& localPsError, EngineSessionState& localSessionState)
    at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.<>c__DisplayClass6e`1.<RunCalcServiceOperation>b__6c() at Microsoft.Office.Project.Server.Base.IdentityUtilities.<>c__DisplayClass1`1.<RunWithAccessToAppTierServices>b__0()
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback
    secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at Microsoft.Office.Project.Server.Base.IdentityUtilities.RunWithAccessToAppTierServices[T](Func`1 action) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.RunCalcServiceOperation[T](CalcServiceOperation3`1
    func, EngineSessionState& sessionState, String scopeName) at Microsoft.Office.Project.Server.BusinessLayer.CalcServiceProxy.OpenProjectRemappedProject(Guid realProjectGuid, Guid remappedProjectGuid, EngineSessionState& sessionState, EngineSessionType
    sessionType) at Microsoft.Office.Project.Server.BusinessLayer.ProjectEngineUpdate.OpenProject() at Microsoft.Office.Project.Server.BusinessLayer.ProjectEngineUpdate.HandleUpdate() at Microsoft.Office.Project.Server.BusinessLayer.ProjectQueueDispatch.HandleProject2(MessageContext
    mContext, ProjectMain project, ServerEventManager sem, ProjectDataSet dataset, Guid projectUid, Guid sessionUid) at Microsoft.Office.Project.Server.BusinessLayer.ProjectQueueDispatch.InternalDispatchMessage(IPlatformContext context, Message msg, Group messageGroup,
    JobTicket jobTicket, MessageContext mContext)'. 
    •Queue:◦GeneralQueueJobFailed (26000) - ProjectUpdate.ProjectUpdate2Message. Details: id='26000' name='GeneralQueueJobFailed' uid='f8bb5d93-20e9-e411-b302-005056ae159c' JobUID='a6fa36de-1fe9-e411-b302-005056ae159c' ComputerName='1af8030b-7714-4c8f-8738-903b73e87a82'
    GroupType='ProjectUpdate' MessageType='ProjectUpdate2Message' MessageId='2' Stage='' CorrelationUID='0a4aff9c-dd6b-7015-87a8-29d876e1540c'. For more details, check the ULS logs on machine 1af8030b-7714-4c8f-8738-903b73e87a82 for entries with JobUID a6fa36de-1fe9-e411-b302-005056ae159c. 
    What will i do .Please help.

    Hi Jeremy,
    Thanks for the reply .I try the steps that is given in link above but its not working.Please suggest something.What
    should i do.

  • Data input in table format on a Project Detail Page

    Hello,
    Does anyone know of a way to input data for a Project Detail Page (e.g. Project Detail Page) in PWA 2013 using an Excel like view (table view)?
    Also, is it possible to edit more than one project at a time in this view?
    Thank you
    Michael

    Hi Michael,
    If you're using Project Server 2013, you have some 3rd party apps (free or not free) which propose an Excel-like spreadsheet to bulk edit project custom fields, such as
    Nearbaseline or
    FluentPro.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Project Detail History

    Hi,
    I am using project server 2010,I have requirement to show the project details history value,is it possible I can fetch the version history of project details custom fields value.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hello,
    So to confirm you want to know a project custom field value for a previous version of a project? You could potentially access this information from the Archive store using the PSI Read Project method and specifying the archive store:
    https://msdn.microsoft.com/en-us/library/gg209668(v=office.14).aspx and use the custom field table:
    https://msdn.microsoft.com/en-us/library/websvcproject.projectdataset.projectcustomfields_di_pj14mref(v=office.14).aspx
    Or alternatively you could look at doing snapshots, the simplest way in via a SQL job:
    https://pwmather.wordpress.com/2012/04/27/projectserver-data-snapshot-for-reporting-ps2010-msproject-sp2010-excel-ssrs-sql/
    Snapshots could also be event driven, run from SharePoint timer service etc.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Is it possible to have "Condition based custom project field entry in project detail page"

    Hello All,
    In PWA, In Project details page, when we add Displayed Project fields into the Project Information page, Is it possible that I have a custom enterprise field and based on its selection, I can choose the other field in that page.
    I mean, say i have a Custom field in project page as 'Hardware' which has a lookup of say :
    CD
    DVD
    Flash Drive
    External HDD
    Cloud etc.,
    Then when a user selects any one of these. then the below appearing options will be based on this selection. 
    Say user selects cloud, then the next project field should be like Public, Private or Hybrid. Which is not same when user selects other fields.
    I did not find any OOB solution for this. So can anyone please guide me how can I achieve this in PWA, so that these fields may be used as enterprise custom fields, which can be later used for Reporting purposes.
    Thanks,
    Shanky

    Hello,
    You could adopt this no code out of the box option approach:
    http://psbehindthescene.blogspot.co.uk/2014/04/cascading-custom-fields.html
    Or potentially look at adding JavaScript code to the page to do this programmatically - not looked at doing this but it should be possible.
    Another option might be Fluent Pros Auto Complete Manager - this might offer this functionality but I have never used it:
    http://www.fluentpro.com/productsautocomplete.html
    Paul 
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Addition of custom links on Project Details screen to update Project

    Hi,
    I request help to implement a customization in Ms Project Server 2010. I would like to add a custom link on lefthand side menu of Project Details page. The link would display a page with key fields. On entering information in the fields and clicking Submit,
    a custom code that triggers MS SharePoint 2010 workflow should be triggered.
    The user triggering the workflow will only have read access to the Project. I would like to get technical information and code snippets to implement the requirement. Any help in this regard would be appreciated.

    Hi,
    I'm not a developer thus I'll let other folks jump in but I'd have 2 comments:
    If the user triggering the workflow needs to enter values in custom fields and do kind of a save operation as per your description, he cannot have only read access to the project. He needs a read-write access.
    Note that folks on this forum kindly give on their spare time to help the community about concerns, questions and issues on Project. What you are asking for looks like more to a consultation request (due to the fact that you are not yet facing any issues
    since you haven't even started working on it), meaning what we do in our daily job (and are paid for). Hope some colleagues can anyway give you some tracks to start.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Unable open Project details or a project from PWA Project server 2010 with Alias name

    Hi,
    I am unable to open the Projects from Project center with the Alias name with the server name i am able to open the projects, version is  project server 2010,
    My system is ABC.DC.IN  alias name i have given is DEF.AD.COM  
    With the system name i can able access PWA and all are working fine.
    As i have observed with alias name i can able to login to  pwa and all the server  setting approval center all are working fine but only in the project center i am not able to open the projects (http://DEF.AD.COM/pwa/ProjectDrillDown.aspx .xxxx)
    its is coming in the below of the ie. 
    But with Alias name these are the issues i am facing,
    1.when longing with alias name its asking two times for user name and password
    2.when i click on a project from project center its taking some time and asking for user name and password after i enter user name and password "PAGE cannot displayed" error i am getting.
    can any one Help me. 
    vijay kommireddi

    Hi Eric,
    Thanks for your Reply.
    As you said i have added in Manged Path as  (Testpwa/projects.aspx as <Wildcard inclusion>) But still problem is there it is asking user
    name password again if click on any project in project center and  and showing page cannot be displayed error. 
    This is url its is showing in the below of the IE ( http://def.ad.com/testpwa/projectdrilldown.aspx?ProjUid=e28c6d43-85b6-478d-9542-2961cc81a69e)
    I have observed one more thing if click on Project
    details then only this issue  is coming project schedule and project information
    is also opening with Alias name.
    My farm version is 14.0.7015.1000
    Vijay Kommireddi

  • Project Server 2010 - Unable to open project, no valid Project Detail Page could be found for the project error

    I have a workflow being deployed for the first time on a farm. When I create a project with an EPT connected to the workflow it runs and can enter the required field in a PDP.  Then I Submit the workflow to go to the next stage and I get the "Unable
    to open project, no valid Project Detail Page could be found for the project" error.  After that the project is stuck on the same error.  All of the 18 stages have PDP and Schedules assigned to them.
    Any ideas on why the workflow cannot see the PDPs?  Is there a farm permissions that I am missing?  Thanks!

    Hi David,
    It starts to be a bit technical for me, but here is what I found on the web (seems to be an authentication issue with Sharepoint 2010):
    http://social.technet.microsoft.com/Forums/en-US/120ab535-63d2-4205-a51f-1987e9c0cf79/sharepoint-fba-the-content-type-texthtml-charsetutf8-of-the-response-message-does-not-match-the
    http://social.msdn.microsoft.com/Forums/silverlight/en-US/5cc70ff6-50d9-4cd3-b092-12007f4e495b/response-message-contenttypebindingtype-mismatch
    http://stackoverflow.com/questions/5263150/the-content-type-text-html-charset-utf-8-of-the-response-message-does-not-match
    Hope it will help you going forward in resolving your issue.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Project Server 2010 Webpart for Project Detail Pages

    Hello,
    I do have a requirement where I need to develop a Project Server Web Part to show some calculated project information based on some business rule from Reporting database.
    That webpart I have to add in Project Detail Pages to show calculated project information for the Project I have selected/clicked from Project Center.
    So please tell me how can I link my webpart with ProjUID in URL like "PWA/Project%20Detail%20Pages/ProposalStageStatus.aspx?ProjUid=2b24d36b-7796-4789-ada3-d895d218fc14"
    So that it shows data corresponding to opened project in Project Server.
    Thanks and let me know in case have any doubts in understanding the requirement.

    Hi YLee_1980,
    If I understand your requirement correctly then you can use ProjUID querystring paramater to get specific ProjectUID like below
     HttpContext.Current.Request.QueryString["ProjUid"];
    Then after getting ProjectUID you can use it anywhere in your SQL query, PSI method calling etc etc.
    Also you can look into PS 2010 Solution Starter
    custom solutions Kit to enhance your knowledge on PS 2010 development. That would a great starting point.
    Thanks much hope this will help
    Sachin Vashishth MCTS

  • How to read the details in the context node of the custom controller

    Hi friends,
        My requirement is i enhanced the component ICCMP_BP_DETAILS , now on EH_ONSAVE i want to read the details of the Context node in the Custom COntroller .
    In custom controller from ICCMP_BP_DETAIL/CuCoBPDuplicate  From this in context node CUSTOMER is there in that attributes first name last name is there i want to read those details
    so can u pls provide the logic for this how can i get the values.
      am very new to the BSP programming
    Regards
    Yogesh

    Hi Suchitha,
    when i am following the above code the lr_entity is not Bound, so can u pls suggest is there any thing is missing
    i used the below mention code but lr_entity is not bound
    DATA: lr_cuco type ref to CL_ICCMP_BP_CUCOBPDUPLICA_IMPL.
                lr_entity type ref to cl_crm_bol_entity.
    lr_cuco ?= me->get_custom_controller( 'ICCMP_BP_DETAIL/CuCoBPDuplicate') .
    CHECK lr_cuco IS BOUND.
    lr_entity ?= lr_cuco->typed_context->customer->collection_wrapper->get_current( ) .
    CHECK lr_entity IS BOUND .
    lr_entityIF_BOL_BO_PROPERTY_ACCESSGET_PROPERTY_AS_VALUE( iv_attibute =  'FIRST_NAME' ev_attribute = lv_firstname ) .
    Please correct the code if any thing is missing
    Regards,
    Yogesh

  • Can you allow users to view a calendar without granting "Read - Full Details"?

    Outlook 2007, Exchange 2010
    We would like users to be able to view Room calendars side by side in Outlook. Its fine if they can see basic details (subject, organizer), but we don't want them able open and read the meeting body. 
    Is it possible to have a side by side view without granting "Read - Full Details"?
    David.

    Hi David,
    In Outlook 2007, "Free/Busy time, subject, location" permission only applies when checking the user's free/busy information and not when looking in another user's Calendar folder. In Outlook 2007, if you want to let the calendars be shown side
    by side, you need to grant the user Folder Visible permission. But in this way, the user can read meeting details.
    For more information, here is a blog for your reference.
    Free/Busy and Calendar Permissions in Outlook 2007 running against Exchange 2007 or later
    http://blogs.technet.com/b/outlooking/archive/2010/01/13/free-busy-and-calendar-permissions-in-outlook-2007-running-against-exchange-2007-or-later.aspx
    Hope this can be helpful.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • Reading project... stops at 28%

    Just installed Leopard to a new volume, and hat all Application files transferred to it during the install. Final Cut Pro works with the exception of one (the most important one!) project. When trying to open it, it stalls at 'Reading project... 28%'. Always at 28%. Tried with some auto-save files, same thing. Any ideas? Would assume it has nothing to do with the Preferences, as they're brand new as a result of the install of the new OS to the new volume.
    Thanks!

    Unmount your media volume and then open that project. Does it open? If so, you have a corrupted media file, probably a render file.
    (But make sure you unmount all media volumes, so that no media files for that project are mounted.)
    EDIT: It could also be caused by a filter on a clip that isn't being loved by the OS for some reason.

  • How to create ZPS Report showing specific Project details?

    Hi,
    How do I create a custom  ZPS report which shows Project details and progress The requirements are to see 20 fields in one single report . The fields which  to be seen in the report are Labor Cost, Material Cost,Labor hrs,finish dates, billing plan, Milestones, NWA,Responsible person,Work Center,Warranty information all in one report.
    Please advise how to create such a report.
    Thanks much!

    you can use
    ABAP
    Query
    Report Painter / Writer
    to create your won reports
    The choice will depend on what exactly you want

Maybe you are looking for

  • Business systems defined in SLD not visible in Integration Directory.

    Hi, After having finished with the SLD configuration involving defining the product, software component, TS and BS. Then I imported in the Integration Repository from SLD and then defined message interfaces, types etc. After that, in Integration Dire

  • Catching and rethrowing a SOAP Fault from an OSB 11g Proxy service

    Hello, We have a chain of proxy services (that last one of which calls a business service) in our 11.1.1.6 OSB project.  At one of the lower levels, we successfully throw a fault like this: <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap

  • None of the selected updates could be installed.

    Installed Lion yesterday. Also installed the Java update. The software update feature on Lion is telling me to download updates for iTunes, HP printer stuff, etc. However after it finishes downloading i get the following message: "None of the selecte

  • Weird frame on Desktop

    Hello, I noticed this morning that random links on websites were not working and then the scrolling feature on my mouse was screwy and then I get this thing that looks like scrapbook corners arranged in a frame that I can move around the desktop but

  • Anyone got an algorithm on how to do a program like this ???

    Let numbers be an array of integers. Write the code segment to reverse the elements in the array: the first element becomes the last; the second element becomes the second last; and so on.