Skip to main content
Solved

Adding fields in Mobile app


Forum|alt.badge.img+3

Hello all,

I have been trying to get displayed some fields of the Details tab of the Invoices (SO303000) in the Acumatica mobile app. I have been following the T410 guide and have added the following,
 


But the mobile app doesn’t show up the fields that have been added under the “Details” Container.
 

 

Best answer by RohitRattan88

@Harshita I had a chance to review your customization project. I had to make a few changes just to get Invoices screen load on my device. I was getting duplicate element error, which I was able to bypass by commenting header fields which are also displayed on row 

add container "InvoiceSummary" {    
     #add field "Customer"
     #add field "Date"
     #add field "Type"
     #add field "Status"
     #add field "Description"
     #add field "Amount"
     add field "Balance"
     add field "DiscountTotal"
     add field "VATExemptTotal"
     add field "VATTaxableTotal"

     add layout "InvoiceHeader" {
     layout = "HeaderSimple"
     add layout "InvoiceHeaderRow1" {
       layout = "Inline"
       add field "Type"
      add field "Date"      
     }      
     add layout "InvoiceHeaderRow2" {
     layout = "Inline"
     add field "Status"
     add field "Amount"
     }
     add layout "InvoiceHeaderRow3" {
     layout = "Inline"
     add field "Customer"
     }
     add layout "InvoiceHeaderRow4" {
     layout = "Inline"
     add field "Description"

Just to get things rolling and as part of testing I added SO3030PL screen as described in guide https://help.acumatica.com/(W(230))/Help?ScreenId=ShowWiki&pageid=c8e0561d-7d44-4313-b380-e3bb12860796

 

Details tab seems to be loading and displaying correctly for me. Review the attached package and see if it works for you

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

8 replies

Forum|alt.badge.img+9
  • Semi-Pro III
  • 229 replies
  • October 30, 2023

Hi @Harshita ,

Have you updated sitemap? I Believe you missed that.

Also, you need to use Update container instead of add container.

Could you please go through the below link.

Mobile App

Hope, it helps!

Regards,

Sweta


Forum|alt.badge.img+3
  • Author
  • Captain II
  • 317 replies
  • October 30, 2023
sweta68 wrote:

Hi @Harshita ,

Have you updated sitemap? I Believe you missed that.

Also, you need to use Update container instead of add container.

Could you please go through the below link.

Mobile App

Hope, it helps!

Regards,

Sweta

So as per the link you shared above:
tried this:
But when I try to save this, the content get disappeared


Have updated the sitemap too.


dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 643 replies
  • October 30, 2023

I dont believe there is anything wrong with your add container the issue is you are not telling the mobile app how to display it so you need to add a layout in this case a Tab see below.

 

add layout "DetailsTab" {

displayName = "Details"

layout = "DataTab"

add containerLink "Details"

}


Forum|alt.badge.img+3
  • Author
  • Captain II
  • 317 replies
  • October 30, 2023
dcomerford wrote:

I dont believe there is anything wrong with your add container the issue is you are not telling the mobile app how to display it so you need to add a layout in this case a Tab see below.

 

add layout "DetailsTab" {

displayName = "Details"

layout = "DataTab"

add containerLink "Details"

}

Hello @dcomerford ,
I tried as following:
 

But still it displays the same, it is also not updating the display of Invoice Summary as it is mentioned in T410 (Page 14).


dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 643 replies
  • October 30, 2023

Can you send me your package as it is and i will have a look at it


Forum|alt.badge.img+3
  • Author
  • Captain II
  • 317 replies
  • October 30, 2023
dcomerford wrote:

Can you send me your package as it is and i will have a look at it

Attaching the pkg @dcomerford 
Thanks a lot.!!


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • 253 replies
  • Answer
  • October 30, 2023

@Harshita I had a chance to review your customization project. I had to make a few changes just to get Invoices screen load on my device. I was getting duplicate element error, which I was able to bypass by commenting header fields which are also displayed on row 

add container "InvoiceSummary" {    
     #add field "Customer"
     #add field "Date"
     #add field "Type"
     #add field "Status"
     #add field "Description"
     #add field "Amount"
     add field "Balance"
     add field "DiscountTotal"
     add field "VATExemptTotal"
     add field "VATTaxableTotal"

     add layout "InvoiceHeader" {
     layout = "HeaderSimple"
     add layout "InvoiceHeaderRow1" {
       layout = "Inline"
       add field "Type"
      add field "Date"      
     }      
     add layout "InvoiceHeaderRow2" {
     layout = "Inline"
     add field "Status"
     add field "Amount"
     }
     add layout "InvoiceHeaderRow3" {
     layout = "Inline"
     add field "Customer"
     }
     add layout "InvoiceHeaderRow4" {
     layout = "Inline"
     add field "Description"

Just to get things rolling and as part of testing I added SO3030PL screen as described in guide https://help.acumatica.com/(W(230))/Help?ScreenId=ShowWiki&pageid=c8e0561d-7d44-4313-b380-e3bb12860796

 

Details tab seems to be loading and displaying correctly for me. Review the attached package and see if it works for you


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • 253 replies
  • October 30, 2023

Also, if you want this screen to be an Edit/form screen, I would suggest not to use header section(add layout ...) as fields there would not be editable, hence restricting your ability to edit records 


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