Skip to main content
Question

Can't get custom field to appear on Mobile App (EP301020 - Expense Receipts)

  • Dec 2, 2026 1:18 PM UTC
  • 2 replies
  • 16 views
  • Translate All

Forum|alt.badge.img

I’m trying to get a custom field to appear on the Mobile App in 26r1. It seems like any field I try to add simply doesn’t appear. No errors, just isn’t there. I can remove a field, so I know my customization is publishing. I’ve used the name from the WDSL, tried adding the group, refreshed the mobile (and removed existing fields so I know I’m getting the update.)

The custom field is in both the ASPX and Modern UI versions of the desktop form.

I’m sure I’m missing something stupid, but I can’t see what it is.

 

The DAC

    public sealed class EPExpenseClaimDetailsTEKServiceTradeExt : PXCacheExtension<PX.Objects.EP.EPExpenseClaimDetails>
{
public static bool IsActive()
{
// Todo: Decide when to turn this on?
return true; // PXAccess.FeatureInstalled<FeaturesSet.rutRotDeduction>();
}

#region UsrTEKServiceTradeJobID
[PXDBLong]
[PXUIField(DisplayName = "ST Job #")]

[PXSelector(typeof(SearchFor<TCServiceTradeJob.sTJobID>.In<SelectFrom<TCServiceTradeJob>.OrderBy<TCServiceTradeJob.createdDateTime.Desc>>),
typeof(TCServiceTradeJob.sTJobNumber),
typeof(TCServiceTradeJob.name), CacheGlobal = true, SubstituteKey = typeof(TCServiceTradeJob.sTJobNumber), DescriptionField = typeof(TCServiceTradeJob.name))]

public Int64? UsrTEKServiceTradeJobID { get; set; }
public abstract class usrTEKServiceTradeJobID : PX.Data.BQL.BqlLong.Field<usrTEKServiceTradeJobID> { }
#endregion

 

Field Name in WDSL

<s:complexType name="ClaimDetails">

<s:sequence>

...

<s:element minOccurs="0" maxOccurs="1" name="Location" type="tns:Field"/>

<s:element minOccurs="0" maxOccurs="1" name="STJob" type="tns:Field"/>

 

Code from Mobile In Customization Package
 

update screen EP301020 {

  update container "ClaimDetails" 

    {

    add field "STJob" {

      placeAfter field "ExpenseItem"

      special = AllowEdit

      SelectorDisplayFormat =  KeyDescription

      pickerType = Searchable

      selector {

        fieldsToShow = 2

        add field "STJobNumber"

        add field "Name"

      }

      }

 

    add field "STJobItemID"

    

    }

}

 

 

 

 

2 replies

darylbowman
Captain II
Forum|alt.badge.img+17

Try this:

update screen EP301020 {
update container "ClaimDetails" {
add field "DetailsExpenseDetails#STJob" {
placeAfter field "ExpenseItem"
special = AllowEdit
selectorDisplayFormat = KeyDescription
pickerType = Searchable
}
}
}

 

Translate

Steve Milner
Varsity III
Forum|alt.badge.img+8
  • Varsity III
  • Dec 2, 2026 5:33 PM UTC

My replies are created in part with the help of proprietary AI, built with my AI skills, curated and maintained myself. Most replies are tested on local instances before they go up, and all are reviewed before posted.

@travisk91 Daryl's # syntax is the right shape. The catch is the container name in front of it, and the WSDL won't give you that one.

On 26 R1 the WSDL for EP301020 groups fields by data view, so Location and your STJob both land under ClaimDetails. The stock mobile map only adds header fields to ClaimDetails directly. Everything from the Details tab comes in with a prefix: DetailsExpenseDetails#Description, DetailsTaxInfo#TaxZone, DetailsFinancialDetails#Billable, and Location as DetailsFinancialDetailsExpenseReceipt#Location. Those prefixes are the ASPX tab text and group caption run together. The ASPX is the one that counts, because the mobile map reads a form that has both UIs from the Classic version.

So DetailsExpenseDetails only covers the Expense Details group on the Details tab. Your field is on its own tab, and going by the stock pattern its prefix comes from that tab's text and group caption in your ASPX. Location is the closest stock example to yours. It sits in the same WSDL spot, and its prefix picks up ExpenseReceipt on the end. STJobItemID is in the same group, so it'll share whatever prefix works for STJob.

No error is normal here. By default the mobile site map runs in production mode, which skips any instruction it can't resolve and logs nothing. On a dev site, add <add key="mobileSitemapDebug" value="True" /> to appSettings in web.config. It then logs every error and stops at the first one, so you'll know whether your name resolves. Saving web.config restarts the site, so keep it off production.

Translate