|
Hello Dan,
I hope this will give you the right way. If yes,
I will be happy to get a feedback.
To see how it work, make a subscription
here:
(it is still in German and a part of our
"MailCenter" that works also fine for the Chamber of Commerce http://www.xop.de/ihk/ in
Germany)
O! yes, - "Fachgebiet" can mean "Your
course"
regards
Mit freundlichen Gr��en, with best
regards
Daniel Richardy
________European Witango Mainland Distributor
__________
SoftDes GmbH - St. Georgener Strasse 13 - D
79111 Freiburg
Web: www.softdes.de Mail: [EMAIL PROTECTED] Phone: +49 - 761 - 4 555 666 Fax: +49 - 761 - 4 555 660 _________________ www.witango.net ___________________ First Search Action in the user record,
who I store the subscriptions in one
single field (Abonennten.Themen) after a subscription
(very fast for the assign in my case of application, because we have
some 1000th of subscriber. On all update, i overwrite just only this field
with the new selected or deselected fields).
But you can make a another assign
to the value "subscriptions" over a rows loop...
<@ASSIGN NAME="subscriptions" VALUE="<@COLUMN 'Abonnenten.Themen'>" SCOPE="User"> Then i build up my Form with a another Search, where i search the "Fachgebiete/Your Courses" <SCRIPT LANGUAGE="JavaScript"><@assign name="Anzahl_Daten" value="<@NUMROWS>" Scope="USER"> <!-- Begin function checkAll() { for (var j = 1; j <= <@NUMROWS>; j++) { box = eval("document.checkboxform.C" + j); if (box.checked == false) box.checked = true; } } function uncheckAll() { for (var j = 1; j <= <@NUMROWS>; j++) { box = eval("document.checkboxform.C" + j); if (box.checked == true) box.checked = false; } } function switchAll() { for (var j = 1; j <= <@NUMROWS>; j++) { box = eval("document.checkboxform.C" + j); box.checked = !box.checked; } } // End --> </script> <FORM Name="checkboxform" METHOD="POST" ACTION="<@CGI><@APPFILE>?_function=update&<@UserReferenceArgument>"> <TABLE BORDER=0> <TABLE Width=480> <TR ALIGN="LEFT" VALIGN="TOP"> <TD><HR><BR>Select your course. Selected fields are allready subscribedBR> <@ROWS> <input type=checkbox name="C<@CURROW>" value="<@COLUMN 'Fachgebiet.UID'>" <@IF EXPR='<@LOCATE STR="@@User$subscriptions" FINDSTR="<@COLUMN 'Fachgebiet.UID'>"> = "0"' TRUE="" False=" checked"> BUT YOU CAN ALSO SHOW NOTHING, IF HE IS ALLREADY SUBSCRIBED !!! > <@COLUMN 'Fachgebiet.Fachgebiet'> <BR> </@ROWS> <BR><BR><CENTER> <input type=button value="Select all" > <input type=button value="Select nothing" > <input type=button value="Reverse the selection" > <BR> <BR> <BR> <INPUT TYPE=SUBMIT VALUE="Save"> </TD></TR> Thats all ! regards
Daniel Richardy
|
- Witango-Talk: Best Way to do... Dan Stein
- Re: Witango-Talk: Best Way to do... [EMAIL PROTECTED]
- Re: Witango-Talk: Best Way to do... Dan Stein
- Re: Witango-Talk: Best Way to do... [EMAIL PROTECTED]
- Re: Witango-Talk: Best Way to do... Dan Stein
