Need to compare between the date that the user was entered in the lookup table to the revisit month selected.
add panel:
<panel depends="$add$">
<title>Add User</title>
<table>
<search>
<query>
| inputlookup USB.csv
| append [ | makeresults
| eval user="$user_tok$", description="$description_tok$", revisit="$revisit_tok$", Action="$dropdown_tok$"]
| eval today=strftime(
| table _time, user, category, department, description, revisit
| lookup lookup_im user as user OUTPUT category department
| outputlookup USB.csv</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<done>
<unset token="add"></unset>
</done>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
reauthorize panel:
<panel depends="$reauthorize$">
<title>Reauthorize User</title>
<table>
<search>
<query>
| inputlookup USB.csv
</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
I have four fields, User Description, Revisit, and Action. The User and Descriotion are text fields while revisit and action are dropdown values.
Revisit: 1 month, 2 month, 3 month, 4 month, 5 month, 6 month.
Action: add, remove, reauthorize
When a user is added I need to record the time and check it against the revisit month that was chosen so that if it is past the revisit month then the user is inactive. This will be written to the usb.csv lookup table.
@somesoni2