Auto Generation

Project:ProjectPier
Version:0.8.8-alpha
Component:Code
Category:task
Priority:normal
Assigned:twinkle_stars
Status:closed - fixed
Description

Is there any way to auto generate a code for projects using First Two letters of project name with todays month,year and
category type

#1

No. It would need coding.

#2
Status:new» open - needs more info

hi,

Thanks for your reply.
I need to know where to implement the code.
can you tell me a suggestion

#3

application/models/ProjectController.php

method add()
initialize a new field with the generated projectcode
save the value to the database

application/models/project/base/BaseProject.php
add new field 'code' => STRING
add get/set method

add new field 'code' to table projects

change application/views/project where you want to display the field

#4

hi,

I dont want to display the field "code". just the value must be passed as a hidden in form and save in database.
how to create a hidden box with the new variable

#5

Do everything as indicated before but in view change:

input type=text name=code ...

to

input type=hidden name=code...

Field will be hidden in screen but still saved in database.

#6
Status:open - needs more info» closed - fixed

Hi,

Thanks For Your Reply
i completed the task by adding the hidden values into database.

#12

could any of you please tell exactly how to do all this stuff?
i am having a hard time understanding what to do

#19

Hi Neil, yeah, this is developer talk. Let me see if I can whip up something simple for you.