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
PXUIVisible
 
Notifications
Clear all

Questions PXUIVisible

 
Everything Else
Last Post by Tim Rodman 7 years ago
3 Posts
2 Users
0 Reactions
3,834 Views
RSS
Wyatt.ERP
Posts: 128
 Wyatt.ERP
Topic starter
December 5, 2018 11:48 am
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

I am playing around with the PXUIVisible attribute.  I would like to have a "child" field's visibility react to the value of a second "parent" field.  If the value of the parent is set upon loading, the child's visibility will be correct.  It does not seem to react to changes to the parent field though.  So to get the desired effect using only PXUIVIsible, the parent would have to be set, then record saved. 

I'd like to avoid adding an event handler in the Graph and get the field to react to changes only using a combination of PXUIVisible and other attributes.  Is this possible?

*Edit, record only needs to be saved for the screen to adjust the child's visibility.


Topic Tags
PXUIVisible attribute
2 Replies
Wyatt.ERP
Posts: 128
 Wyatt.ERP
Topic starter
December 5, 2018 5:40 pm
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

I was able to sort this out!  The parent is a custom dropdown field and I had to set CommitChanges property to True on the UI element.  Now the screen reacts to the changes just using the attribute.  It ended up something like this:

        #region UsrMyParentField
[PXDBString()]
[MyGraphExtDropdown.List()]
[PXUIField(DisplayName = "MyParentField")]
public virtual string UsrMyParentField { get; set; }
public abstract class usrMyParentField : IBqlField { }
#endregion


#region UsrMyChildField
[PXDBInt]
[PXUIField(DisplayName = "MyChildField")]
[PXUIVisible(typeof(Where<TheDACExt.usrMyParentField, Equal<MyGraphExtDropdown.listValue>>))]
public virtual int? UsrMyChildField { get; set; }
public abstract class usrMyChildField : IBqlField { }
#endregion

Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
December 8, 2018 9:53 am
(@timrodman)
Famed Member
Joined: 10 years ago

Hey Wyatt.ERP,

You're probably better off posting this on StackOverflow. There are a lot of developers that frequent that area. Mostly end users and power users here.

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


Reply
Forum Jump:
  Previous Topic
Next Topic  
Topic Tags:  PXUIVisible attribute (1) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 44 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
Latest Post: Pick List report suddenly not splitting on Shipment
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

  • Julie Baker
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.

‹›×

    ‹›×