Skip to main content
Question

Date/Time Format for Entity Configuration >> Custom Attribute

  • September 29, 2022
  • 3 replies
  • 260 views

Forum|alt.badge.img+2

In IFS Cloud, I added a custom attribute to the CustomerOrder entity to store date/time information. My custom attribute sits next to the standard attribute WantedDeliveryDate on the Customer Order screen.

When I enter a value for the standard attribute, it is formatted as: 10/1/22, 10:41 AM

When I enter a value for my custom attribute, it is formatted as: 2022-10-01T10:41:00Z

How can I get my custom attribute to display date and time in this format: 10/1/22, 10:41 AM?

I checked my computer’s regional settings, but since the standard attribute displays correctly, I don’t think regional settings are the issue. Where can I supply a formatting mask for my custom attribute?

I checked Page Designer on CustomerOrder but didn’t see a formatting property

3 replies

Navinth Bakmeedeniya
Hero (Employee)
Forum|alt.badge.img+14

The projection metadata (both client & Server) are generated in the same way for both attributes.

E.g.

Entity: CustomerOrder in CustomerOrderHandling API

Standard attribute: WantedDeliveryDate

CustomAttribute: Cf_Naba_Date_Test)

 

 Entity attribute Client Metadata for CustomerOrderHandling

 

 

 

Entity attribute Server Metadata for CustomerOrderHandling

 

 

 


In addition, I don’t see any different in server response formatting for Get/GetByKey endpoints of CustomerOrderSet entity set

 

Hence, the difference seems due to some different handling somewhere within Client FW.

@tofuse @LakmaliRD any input here?


Forum|alt.badge.img+2
  • Author
  • Do Gooder (Customer)
  • 3 replies
  • September 30, 2022
Navinth Bakmeedeniya wrote:

The projection metadata (both client & Server) are generated in the same way for both attributes.

 

 

 

 

Navinth, thank you for this. Are you saying you were able to reproduce the behavior in question?

 


Navinth Bakmeedeniya
Hero (Employee)
Forum|alt.badge.img+14

@Tech Phil If remember correctly, I focused only the configuration injected metadata for the projection, where we have seen no issues there.


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