Skip to main content
Solved

Aligning fields after adding a Form control


Forum|alt.badge.img+6

I have a custom screen with some fields in a column. I need to add fields from another view into the same column so I added a Form control. However, once I’ve done so, the alignment of the Form seems to be offset to the left.

Rendered output
Current setup in the screen designer

What setting/property am I missing?

Best answer by Naveen Boga

Hi @Django  Have you added the PXLayOutRule in the .aspx page like below?

 

 <px:PXLayoutRule runat="server" StartColumn="True" LabelsWidth="M" ControlSize="XM" />

 

If the above is not fixed, please share the customization project here, if possible.

View original
Did this topic help you find an answer to your question?

6 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • Answer
  • June 6, 2023

Hi @Django  Have you added the PXLayOutRule in the .aspx page like below?

 

 <px:PXLayoutRule runat="server" StartColumn="True" LabelsWidth="M" ControlSize="XM" />

 

If the above is not fixed, please share the customization project here, if possible.


Forum|alt.badge.img+6
  • Author
  • Captain II
  • 548 replies
  • June 6, 2023

That did it!  Thank you!

Updated Screen Designer configuration
Fields now in alignment

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • June 6, 2023

Awesome :) Thanks for sharing the update!


  • Freshman I
  • 1 reply
  • November 30, 2023

Just sharing for anyone who reach this post. I was having a similar issue, this solution didn't work 100% for me but I added the following property to the Form and it worked:

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2749 replies
  • November 30, 2023

Thank you for sharing this with the community @edsousa!


andriikravetskyi35
Jr Varsity I
Forum|alt.badge.img+1

Hi Community,

Acumatica also allow to add field from another table (another View object) to any Form, Tab or Panel by this approach: DataField = “nameOfView.UsrAnyFieldName”

<px:PXNumberEdit runat="server" ID="CstUsrProductWeight" DisplayFormat="##0.000000" CommitChanges="True" DataField="Item.UsrProductWeight" />

My custom Tab has Form that based on one table and View object, but I add field to Tab from InventoryItem table on Stock Item screen:

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings