Posts

Showing posts from May, 2025

Get Item Image in WHS Mobile APP base on Unit

Image
 I have a requirement in which user want to see the item images based on unit wise  for that what i did i customize this form and add unit id( DSTUOM  field name in table ) their as discussed in Screenshot than whad i did  create extention of this class EcoResProductImage which code is  [ExtensionOf(tableStr(EcoResProductImage))] final class EcoResProductImage_DSTWMSIntegration_Extension {     protected static ImageReference getImageFrom2Records(Common _firstRecord, Common _secondRecord, EcoResProductImageSize _ecoResProductImageSize)// = EcoResProductImageSize::Normal)     {         ImageReference  ImageReferenceLocal,ImageReferenceTmp;         InventTable     InventTableLocal;         DSTWMSItemImageTmp  DSTWMSItemImageTmpLocal,DSTWMSItemImageTmpLocalV2;         ImageReferenceLocal = next  getImageFrom2Records(_firstRecord,_secondRe...

if want to change the title of WHS Mobile app

Class WHSMobileAppServiceXMLTranslator  we can extend this method as well  /// <summary>  /// Returns the page's title.  /// </summary>  /// <param name = "_pagePattern">The pattern of the page.</param>  /// <param name = "_pass">The pass</param>  /// <param name = "_controlsList">The control list.</param>  /// <returns>The page's title.</returns>  protected str pageTitle(WHSMobileAppPagePattern _pagePattern, WhsrfPassthrough _pass, List _controlsList)  {      if (_pagePattern == WHSMobileAppPagePattern::Menu)      {          return this.findFirstNonErrorControlLabel(_controlsList);      }      if (_pass && _pass.exists(#MenuItem))      {          return WHSRFMenuItemTable::find(_pass.lookup(#MenuItem)).rfTitle;      }   ...

WMS update WMs Location in D365 FO

   /// <summary>   /// Updates data in the given user session   /// or creates new one if session doesn't exist.   /// </summary>   /// <param name="_userId">   /// Identifier of the user.   /// </param>   /// <param name="_con">   /// Data container.   /// </param>   /// <param name="_inventLocationId">   /// Inventory location value to be set on the session.   /// </param>   /// <param name="_xml">   /// form state XML.   /// </param>   /// <param name="_languageId">   /// The language ID of the user session.   /// </param>   /// <param name="_xmlTranslator">   /// The translator of the xml.   /// </param>   /// <returns>   /// Session that has been updated or created.   /// </returns>   protected static WHSWorkUserSession updateWorkUserSession(   ...

end of Day in d365 FO x++

     utcdatetime toUtcDateTime =     DateTimeUtil::newDateTime(_toDate,86399);