Müqayisə etmək / SharePoint Workflow Designer boş Tarihler üçün test

Ssenari: SharePoint Designer iş olaraq, you need to determine if a date field is blank.

Problem: SPD does not provide a direct method for comparing dates to anything other than a date. You cannot create a condition like this: "If [Tarix sahəsi] equals blank".

Həll: Convert the date to a string. Use string comparison to determine if the date is blank.

Ekran Görüntüleri:

The following screen shots show how to do this. Bu ssenaridə, bir maddə üzrə bir sahədə, "Environmental Permits:First Permit Reminder Date", təqdim və cavab olaraq iş yanğınlar edir.

image

image

Qeydlər:

Mən bu cəhd zaman, I was pleasantly surprised to learn that it works. I was worried that SharePoint Designer might disallow the string assignment (Dəyişən:StringReminderDateDate) lakin bu imkan etdi.

Mən də imkan narahat idi, dəyəri null olmaq və ya zamanı da WF partlatmaq və ya bəlkə qlobal temperatur qaldırmaq bilər 1/2 dərəcəsi, lakin bu narahatlıqlar əsassız.

</son>

Technorati Tags:

5 Haqqında "fikirləriMüqayisə etmək / SharePoint Workflow Designer boş Tarihler üçün test

  1. Tim

    Suallar:
    1) Mən yuxarıda cəhd zaman, it’s not working because the value of a blank date seems to be "?????" (Bu bir transposed NULL dəyəri inanıram). Mən dinamik simli məzmunu görüntülediğinizde, it shows up as "?????".

    2) Joe – when you wrote "If Field is greater than or equal to Today or Field is less than or equal to Today", do you mean that you can use variables like "Today" axınları ilə? Əgər, necə izah edə bilər? Mən heç bir şans çalışır ki, sonra, və mən yalnız siyahıları mövcud olan dəyərlər çıxarış edə olduğunuz.

    Cavab
  2. Joseph
    Niyə yalnız şərti test deyil:
    Alan və ya daha çox gün bərabər olduqda
    və ya Alan daha az və ya gün bərabərdir
    This would give you an "if field is not blank, Bunu, daha (sahədə boş) Bunu"
    Cavab
  3. No name
    Böyük ucu. Mükəmməl çalışır.
    İndi mən bir şəkildə toset üçün iş daxilində boşaltmaq qeyri-tələb olunan tarix arıyorum. Hər hansı bir fikir?
    Cavab

Bir cavab buraxın Tim Cavab ləğv

E-poçt ünvanından dərc olunmayacaq. Lazım alanlar qeyd olunur *