Skip to main content
Solved

We have renamed inventory ID field to "Cost code" under purchase order detail screen and now this field is not appearing on the mobile app


Forum|alt.badge.img

Hi,

We have renamed inventory ID field to "Cost code" under purchase order detail screen and now this field is not appearing on the mobile App. 

 

 

Can someone please help me on this ?

Thanks :-)

Best answer by sweta68

Hi @psoni1585 ,

Yes, sure. below is the code snippet I have used to display Cost codes field.

update screen PO301000 {
   update container "Details" {
    add field "CostCodes" {
      displayName = "Cost Codes"
     placeAt 0
      listPriority = 98
      selectorDisplayFormat = Key
      selector {
        fieldsToShow = 2
        add field "InventoryID" {
          forceType = "String"
        }
        add field "Description" {
          forceType = "String"
        }
        add field "ItemClass" {
          forceType = "String"
        }
        add field "ItemStatus" {
          forceType = "String"
        }
      }
    }
  }

}

Regards,

Sweta

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

5 replies

dcomerford
Captain I
Forum|alt.badge.img+15
  • Captain I
  • 579 replies
  • August 28, 2023

Hi

The Display Name is what the mobile app is looking for so if you changed it you will also need to change the mobile app screens as well to add this field instead of the InventoryID fields

 


Forum|alt.badge.img+10
  • Semi-Pro III
  • 229 replies
  • August 28, 2023

Hi @psoni1585 ,

You should extract the "name" from the WSDL schema of the purchase order screen since you've renamed the "InventoryID" field to "Cost Code."

I successfully added the Cost Codes field to the mobile app screen using the 'Update Existing Screen' option from Mobile Application Section through Customization Editor, following the same configuration used for the Inventory ID field. This allowed me to display the Cost Codes field in the mobile app interface.

Cost Codes field

Hope, it helps!

Regards,

Sweta


Forum|alt.badge.img
  • Author
  • Varsity I
  • 43 replies
  • August 28, 2023

@sweta68 

 

Appreciate your quick response. We are implementing MYOB Advanced for a client, and I tried with below code, but it didn't work.

Can you provide me code for the same ?

 

 


Forum|alt.badge.img+10
  • Semi-Pro III
  • 229 replies
  • Answer
  • August 28, 2023

Hi @psoni1585 ,

Yes, sure. below is the code snippet I have used to display Cost codes field.

update screen PO301000 {
   update container "Details" {
    add field "CostCodes" {
      displayName = "Cost Codes"
     placeAt 0
      listPriority = 98
      selectorDisplayFormat = Key
      selector {
        fieldsToShow = 2
        add field "InventoryID" {
          forceType = "String"
        }
        add field "Description" {
          forceType = "String"
        }
        add field "ItemClass" {
          forceType = "String"
        }
        add field "ItemStatus" {
          forceType = "String"
        }
      }
    }
  }

}

Regards,

Sweta


Forum|alt.badge.img
  • Author
  • Varsity I
  • 43 replies
  • August 30, 2023

Hi @sweta68

 

Appreciate your help.. I managed to add renamed field cost code in the MYOB Advanced Mobile App purchase order screen.

Just in my case it’s appearing as CostCodeInventoryID under WSDL schema of purchase order and i used same and now cost code is appearing on the mobile app. 

 

 

Thanks

Pankaj Soni 


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