[pmwiki-users] ZAP Data -- Thread Numbering

Sivakatirswami katir at hindu.org
Sat Dec 9 20:13:56 CST 2006


More on this....

It seems that by putting the directive at the beginning
of the form may help (I see that in the forum source at zapsite.org)

  (:zapform `Project`Owner`Priority`Status`Description`savedata`datapage` :)
(:input hidden datapage "TODO-{Project}.#" :)

I am now getting the {Project} passed to the new page:

e.g. TODO-ServerAdmin.00

But, no incrementing the thread number...If we create a new TODO
in with the same Project we over write the first created page.

In my planned implementation we will have a group of TODO's for each 
"project"
(where the design is that any given project name = a group name)
But, I'm hoping for a single contiguous series of thread numbers across all
projects... like this (assumes they would be created in this order, over 
time)


TOD0-AjaxSlideShows.10001
TOD0-AjaxSlideShows.10002
TOD0-ServerAdmin.10003
TOD0-AjaxSlideShows.10004
TODO-LandManagement.10005
TOD0-AjaxSlideShows.10006
TOD0-MailingListMigration.10007  # a new project gets started up...

question: does the ZAP thread algorithm require the group to be the same
for a single series of numbers?


Sivakatirswami wrote:
> I upgraded to the lastest ZAP.php,
> 
> --ZAPversion'] = "'December 8, 2006-2'";
> 
> Caveman mentioned thread bug was fixed...
> 
> But I can't get it to work
> 
> I know he is busy with bigger issues...
> Can anyone see what I may be doing wrong?
> 
> Do I need to config anything else to implement
> thread numbering?
> 
> (:zapdata:)
> (:zapform `Project`Owner`Priority`Status`Description`savedata`datapage` :)
> Project: (:select Project:)
> (:option "{$Project}":) {$Project}
> (:option "LandManagement":) LandManagement
> (:option "SystemAdmin":) SystemAdmin
> (:option "AjaxInitiative":) AjaxInitiatives
> (:option "AudioLibrary":) AudioLibrary
> (:option "MailingLists":) MailingLists
> (:selectend:)  Owner: (:select Owner:)
> (:option "{$Owner}":) {$Owner}
> (:option "Sivakatirswami":) Sivakatirswami
> (:option "Sadhunathan":) Sadhunathan
> (:option "Andre":) Andre
> (:option Caveman":) Caveman
> (:selectend:) Priority: (:select Priority:)
> (:option "{$Priority}":) {$Priority}
> (:option "1-Urgent!":) Urgent!
> (:option "2-High":) High
> (:option "3-Medium":) Medium
> (:option "4-Low":) Low
> (:selectend:) Status: (:select Status:)
> (:option "$Status}":) {$Status}
> (:option "Open":) Open
> (:option "In Progress":) In Progress
> (:option "Pending":) Pending
> (:option "Hold":) Hold
> (:option "Complete":) Complete
> (:selectend:)
> Description: (:input text Description "{$Description}" 
> size="50":)(:input hidden savedata 
> "Project,Owner,Priority,Status,Description":)(:input submit value="Submit":)
> (:input hidden datapage "TODO-{Project}.#" :)
> 
> (:zapend:)
> 
> We get msg "Form Submitted... Data has been succesfully... etc"
> 
> expected: e.g. TODO-AjaxInitiative.10001
> 
> Instead: I get a recent changes entry like this: but you can see, no 
> serial number is poke into "#"
> 
> text=* [[TODO-SystemAdmin/#]]  . . . December 09, 2006, at 04:54 PM by 
> [[~Sivakatirswami]]: [==]%0a
> 
> and no file is written to wiki.d
> 
> I then tried using a fixed name
> 
> (:input hidden datapage "TODO-Test.#" :)
> 
> Now I get a file: "TODO-Test.00" In Wiki.d
> Attempt to great a second one overwrites the first.. it is not 
> incremented to TODO-Test.01
> Anyway, I though it was 5 digits?  10001??
> 
> 
> Cheers from Hawii
> 
> Sivakatirswami
> www.himalayanacademy.com




More information about the pmwiki-users mailing list