Skip to main content
Level 3
August 31, 2020
Respondido

Custom modifications in delivery Input form

  • August 31, 2020
  • 3 respostas
  • 1500 Visualizações

Hi all,

 When creating a new delivery template below fields needs to be filled in delivery properties general tab.

 

Here I need to test the condition if campaign is valid to date is less than or equal to today, Then the campaign is valid to date should save 30 days prior to current date while save the delivery template.

 

My question is,

1. how to check the campaign is valid to date is less than or equal to today?

2. If  campaign is valid to date is less than or equal to today, how to set campaign is valid to date is prior to current date?

3. In which Input form above changes need to be done?

 

Thanks in Advance.

 

Best Regards,

Ram.

Este tópico foi fechado para respostas.
Melhor resposta por Milan_Vucetic

Hi @ramprakasht3196

you should edit nms:delivery and nms:newDelivery forms.

  • lower or equal to - @your_date_field <= GetDate()
  • equalt to or grater - @your_date_field >GetDate()

Regards,
Milan

3 Respostas

Milan_Vucetic
Level 9
August 31, 2020

Hi @ramprakasht3196

you should edit nms:delivery and nms:newDelivery forms.

  • lower or equal to - @your_date_field <= GetDate()
  • equalt to or grater - @your_date_field >GetDate()

Regards,
Milan

Level 3
September 1, 2020

Hi,

Thanks for your response. equalt to or grater - @3371165_date_field >GetDate() is working fine.

Now I need to set date as currentdate+ 30 days.

I used below code. will it works?

 

<set expr="GetDate()+30" xpath="@campaignValidityDateTo"/>

 

Thanks,

Ram.