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
Custom Selector
 
Notifications
Clear all

Questions Custom Selector

 
Everything Else
Last Post by Wyatt.ERP 6 years ago
4 Posts
3 Users
1 Reactions
4,920 Views
RSS
Posts: 10
 Justin Rolfs
Topic starter
September 12, 2019 5:39 pm
(@justin-rolfs1)
Member
Joined: 6 years ago

I'm wanting to create several drop-down or selector fields in a customization for Cases.  Is there a set of good documentation on how to create either classic drop-down fields or selectors?  I'd like to do most things with a selector because the user can add additional options as necessary.  The best site that I can find for these instructions is https://blog.zaletskyy.com/custom-selector-in-acumatica .  Thanks for your help.

Topic Tags
selector drop down customization
3 Replies
Tim Rodman
Posts: 3192
 Tim Rodman
Admin
September 28, 2019 8:39 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Justin,

I'd recommend asking this on StackOverflow. You'll get better help there on customizations:

https://stackoverflow.com/questions/tagged/acumatica

Reply
Posts: 10
 Justin Rolfs
Topic starter
September 30, 2019 10:57 am
(@justin-rolfs1)
Member
Joined: 6 years ago

Thanks.  I'll check that out.

Reply
Wyatt.ERP
Posts: 128
 Wyatt.ERP
October 3, 2019 4:21 pm
(@wyatt-erp)
Estimable Member
Joined: 5 years ago

Without going into how to add a custom field, here's a sample selector attribute for turning a regular old int field into a selector for CRCase:

[PXSelector(typeof(
 //What table to look at (CRCase), and what related field you want to save into the DB (caseID).  Also a Where to filter for only status = open
        Search<CRCase.caseID
        , Where<CRCase.status, Equal<CRCaseStatusesAttribute.Open>>>
    )
 //The fields shown in the Grid.  You can add more or less, just keep within the { }s.  
 //To show fields from other tables, you need to add a join into your Search.
    , new Type[] { typeof(CRCase.caseCD), typeof(CRCase.status), typeof(CRCase.subject) }
 //The surrogate key.  What you'll see as the "Value" in the field
    , SubstituteKey = typeof(CRCase.caseCD)
 //Comes after the "-" (EX: customers will have "BAcctCD - AcctName" -> in this case BAccount.acctName is the DescriptionField)
    , DescriptionField = typeof(CRCase.subject)
 //Caches the results
    , CacheGlobal = true)]

Add this attribute to your field and you should be good to go.

Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Related Topics
  • Allow user to only see their own Journal Transactions
    6 months ago
  • Create new field in PO with default values
    10 months ago
  • Is it possible for acumatica to automatically pull up the customer information and show it as a pop up ?
    11 months ago
  • Adding a Customer Status w/Logic attached
    1 year ago
  • Add Project Inventory ID into Employee Time Cards screen
    1 year ago
Topic Tags:  selector (3) , drop down (2) , customization (14) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,518 Topics
  • 10.9 K Posts
  • 12 Online
  • 2,309 Members
Our newest member: Jason Rhodes
Latest Post: Table linkage for adding a customer location note to the SO Shipment form
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.

‹›×

    ‹›×