• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

With %IF{}% it is possible to generate improved default selections for ActionTracker forms, making things a little less confusing for the user. I've attached a version which does this.

Here's an example of the logic behind this:

<!--
   * Set QSTATE = %URLPARAM{"qstate" default="open"}%
-->

|  State: | <select name="qstate"> \
<option %IF{"$ QSTATE = 'any'"   then="selected"}%>any\
<option %IF{"$ QSTATE = 'open'"   then="selected"}%>open\
<option %IF{"$ QSTATE = 'late'"   then="selected"}%>late\
<option %IF{"$ QSTATE = 'closed'" then="selected"}%>closed\
</select> |  

And later,

%ACTIONSEARCH{ who="%QWHO%" %IF{ "$ QNOTIFY != '.*'" then="notify='%QNOTIFY%'" }% %IF{ "$ QSTATE != 'any'" then="state='%QSTATE%'"}% %IF{ "$ QWITHIN != ''" then="within='%QWITHIN%'" }% sort="%QSORT%" topic="%QTOPIC%" web="%QWEB%" }%


Done

CC

ItemTemplate
Summary ActionTrackerPluginQBE could use %IF{}% to improve the form generation
ReportedBy TWiki:Main.DiabJerius
Codebase 4.0.2
SVN Range Sat, 06 May 2006 build 10108
AppliesTo Extension
Component ActionTrackerPlugin
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins 11560
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-09-23 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback