AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register

— The Forums are now read-only —

— All new activity now takes place here: —

AugForums.com Discord Server
Forums
AUG Forums
Everything Else
Custom Selector
 
Notifications
Clear all

Questions Custom Selector

 
Everything Else
Last Post by Wyatt.ERP 7 years ago
4 Posts
3 Users
1 Reactions
6,243 Views
RSS
Posts: 10
 Justin Rolfs
Topic starter
September 12, 2019 5:39 pm
(@justin-rolfs1)
Member
Joined: 7 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: 3204
 Tim Rodman
Admin
September 28, 2019 8:39 pm
(@timrodman)
Famed Member
Joined: 11 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: 7 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: 6 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
  • Feeling Stuck on Making a Sandbox of our Database
    6 months ago
  • Allow user to only see their own Journal Transactions
    2 years ago
  • Create new field in PO with default values
    2 years ago
  • Is it possible for acumatica to automatically pull up the customer information and show it as a pop up ?
    2 years ago
  • Adding a Customer Status w/Logic attached
    2 years ago
Topic Tags:  selector (3) , drop down (2) , customization (15) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,533 Topics
  • 11 K Posts
  • 34 Online
  • 2,437 Members
Our newest member: Matt Butler
Latest Post: Nested SubReport Issue
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

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

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

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

‹›×

    ‹›×