What I understood from your question is, in UI where you are selecting control as pxDataTime you want to send the Data Format dynamically from the section where you are using it. So, why that is required? While selecting the control, in the properties of the control you have many different format you may specify there. Are not they satisfying your requirement? If you want to have some other format, pxDateTime control will not work. You have to write your own control.
Our customer has business in multiple countries. As per requirement, in the first screen user will select the country, sub contractor company, date format, currency, etc., and submit the quote. Once the quote is approved, we need to display the date and currency values in the selected format throughout the case life cycle.
So,checking is there any way to pass the custom format value dynamically to pxDateTime control itself?
Note that even if there's no way to dynamically control the format parameter, you could achieve same result by designing your flow to take two different branches according to the desired format, with each branch calling the date-control with the appropriate format parameter, or even using two different date-controls entirely.
Ok here would be my approach. Have one property which will hold the format and that will be calculated based on your logic. Now in your section do not use just the property to populate the date field. Rather use a section only for the Date field and embed that section in your actual section. Now, circumstance the section containing the date field based on the dateFormat property value.
Arnab, Thanks for your response. Yes, it will work. But we have almost 20-30 date fields in 6-8 different screens. We have around 6 date formats. We will have to create 8 * 6 screens. It is tough to maintain all sections if we get any future enhancements.