period filter default value affects the new object
Status
ID
Priority
Type
Closed
28573
Critical
Bug
Profile
Reply
nickcoleClient
1.the period filter default value affects the new object initial value I set the default value for period filter,as 01.jpg,02.jpg, then I click new for a new object,the new object's datetime value initial value become the period filter start value.see 03.jpg though I set initial value for object.see 04.jpg I want the period filter value doesnot affect object initial value.
2. how to set the period filter display format? see 05.jpg. I want set the display format as '2017/2/2-2017/12/31'. I try use Frame.GetController().PeriodFilterAction.CustomizeControl += PeriodFilterAction_CustomizeControl; but it does not work.
Thanks for the provided information, nickcole. We are going to investigate it. Give us some time.
Best regards, Sasha.
nickcole
Thank you. Waiting for good news.
Sasha (Xafari Support)Client
Hi,
You can solve the first issue, if you set a property UseByListViewCriteriaObjectCreating = false: - open Model Editor, - choose Views -> YourObject_ListView -> Columns -> your DateTime property, - set the property UseByListViewCriteriaObjectCreating = false.
Best regards, Sasha.
nickcole
OK. Thanks.
Sasha (Xafari Support)Client
Hello nickcole,
As to your second question,
>> how to set the period filter display format? see 05.jpg. I want set the display format as '2017/2/2-2017/12/31'. I try use Frame.GetController().PeriodFilterAction.CustomizeControl += PeriodFilterAction_CustomizeControl; but it does not work.
a PeriodStruct sets the value (05.jpg) for a PeriodControl and the PeriodStruct uses an overridden method ToString() for this line. If you want to change the display format, you must create a custom struct and control as PeriodStruct and PeriodControl and override a methods.
I hope you find this information helpful. Thanks, Sasha.
nickcole
Thank you for your answer. Do you have plan to provide the capbility for set display format for period filter? If not, can you provide a sample for set ting the display format. Base your answer, I don't know how to realize it. Thanks.
Sasha (Xafari Support)Client
Hi nickcole,
We apologize for the delayed response. Unfortunately, we have not plan to provide the capability for setting a display format for period filter. To solve the issue for 'display format', you can create PeriodControl independently or to set culture for your project as zh-CN (or other).
Feel free to contact us if you experience any further difficulties. Best regards, Sasha.