AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Create new field in...
 
Notifications
Clear all

Questions Create new field in PO with default values

 
Everything Else
Last Post by Andres Hernandez 1 year ago
3 Posts
2 Users
1 Reactions
893 Views
RSS
Andres Hernandez
Posts: 5
 Andres Hernandez
Topic starter
July 11, 2024 8:04 pm
(@ahernandez)
Active Member
Joined: 2 years ago

Hello Everyone, 

 

Can someone help me to create a new field in the PO called "Project Manager", that will be not editable and will have the owner ID once a project is selected?

 

I was trying with the following code:

[PXDBString(100)]
[PXDefault(typeof(Select<PMProject, Where<PMProject.ContractID, Equal<Current<POOrder.ProjectID>>>>), SourceField = typeof(PMProject.OwnerID)]
[PXUIField(DisplayName="Project_Manager"))]

 

But I'm getting these errors:

[2024-07-12 01:09:24.277] \App_Code\Caches\PX_Objects_PO_POOrder_extensions.cs(30): error CS0426: The type name 'ContractID' does not exist in the type 'PMProject'
[2024-07-12 01:09:24.339] \App_Code\Caches\PX_Objects_PO_POOrder_extensions.cs(30): error CS0426: The type name 'ProjectID' does not exist in the type 'POOrder'
[2024-07-12 01:09:24.402] \App_Code\Caches\PX_Objects_PO_POOrder_extensions.cs(30): error CS0426: The type name 'OwnerID' does not exist in the type 'PMProject'
[2024-07-12 01:09:24.480] \App_Code\Caches\PX_Objects_PO_POOrder_extensions.cs(30): error CS0426: The type name 'ContractID' does not exist in the type 'PMProject'

 


Topic Tags
customization
2 Replies
alconroy
Posts: 32
 alconroy
July 15, 2024 12:51 pm
(@alconroy)
Eminent Member
Joined: 4 years ago

try lower cases on your fields

 

[PXDefault(typeof(Select<PMProject, Where<PMProject.contractID, Equal<Current<POOrder.projectID>>>>), SourceField = typeof(PMProject.ownerID)]


Reply
Andres Hernandez
Posts: 5
 Andres Hernandez
Topic starter
July 15, 2024 7:18 pm
(@ahernandez)
Active Member
Joined: 2 years ago

Thank you that works


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Related Topics
  • Feeling Stuck on Making a Sandbox of our Database
    2 months ago
  • Allow user to only see their own Journal Transactions
    1 year ago
  • Is it possible for acumatica to automatically pull up the customer information and show it as a pop up ?
    1 year ago
  • Adding a Customer Status w/Logic attached
    2 years ago
  • Add Project Inventory ID into Employee Time Cards screen
    2 years ago
Topic Tags:  customization (15) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 13 Online
  • 2,412 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×