Kulinganisha / Mtihani kwa Tarehe Blank katika SharePoint Workflow Designer

Mazingira: Katika workflow SharePoint Designer, you need to determine if a date field is blank.

Tatizo: SPD does not provide a direct method for comparing dates to anything other than a date. You cannot create a condition like this: "If [Tarehe Shamba] equals blank".

Ufumbuzi: Convert the date to a string. Use string comparison to determine if the date is blank.

Screen shots:

The following screen shots show how to do this. In this scenario, shamba juu ya bidhaa, "Environmental Permits:First Permit Reminder Date", ni kuwasilishwa na moto workflow katika kukabiliana.

picha

picha

Maelezo:

Wakati mimi walijaribu hii, I was pleasantly surprised to learn that it works. I was worried that SharePoint Designer might disallow the string assignment (Kutofautiana:StringReminderDateDate) lakini haikuwa kuruhusu.

Mimi pia alikuwa na wasiwasi kwamba kuruhusu ni, thamani inaweza kuwa batili na ama kulipua WF katika Runtime au labda kuongeza joto duniani 1/2 shahada, lakini wale wasiwasi walikuwa unfounded.

</mwisho>

Tags technorati:

5 mawazo juu ya "Kulinganisha / Mtihani kwa Tarehe Blank katika SharePoint Workflow Designer

  1. Tim

    Maswali:
    1) Nilipojaribu juu, it’s not working because the value of a blank date seems to be "?????" (Naamini hii ni transposed NULL thamani). Wakati mimi kuonyesha yaliyomo ya kamba nguvu, 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" katika workflows? Kama ni hivyo, unaweza kueleza jinsi? Nimekuwa alikuwa bahati hakuna kujaribu, na nimekuwa tu wameweza dondoo maadili ambayo zipo katika orodha.

    Kujibu
  2. Joseph
    Mbona si mtihani tu hali:
    Kama Shamba ni mkubwa kuliko au sawa na Leo
    au Shamba ni chini ya au sawa na Leo
    This would give you an "if field is not blank, kufanya hivyo, mwingine (shamba ni tupu) kufanya hivyo"
    Kujibu
  3. Hakuna jina
    Kubwa ncha. Kazi kikamilifu.
    Sasa mimi nina kuangalia kwa njia toset tarehe mashirika yasiyo ya required kwa tupu ndani ya workflow. Mawazo yoyote?
    Kujibu

Kuondoka Reply

Anwani yako si kuchapishwa. Mashamba required ni alama *