[TYPO3-irre] Is it possible? Could a form be defined according to a record value.
mario
chiari.hm at flashnet.it
Sun Nov 11 22:03:10 CET 2007
Hi Malte,
thanks for your reply.
I have seen the example you refer to (fig 11, isn't it?), but I did not
explain myself very well.
It seems to me that what I need is more complicated than that.
Say both tasks A and B are assigned to Joe. Now, Joe may only Pass or
Fail task A, but he may get any point from 0 to 10 for task B. When I
insert grades for Joe, I would like to have different forms for A and B,
say a simple checkbox for the former case, a select form for the latter
one. Later a further task C is added with a even different grading
policy (say such that you need a textarea form).
Speaking in terms of the Hotel, Offer and Price example, the point seems
to be that which form I want to see as to insert a price for a given
hotel_offer record would depend on the Offer record itself.
Hope I am saying something which makes sense :-)
my best
mario
On Sun, 2007-11-11 at 10:42 +0100, Malte Jansen wrote:
> Hi mario,
>
> you need 3 tables, there is an example in the irre-diploma-thesis (or
> tutorial) with hotels. There you have what you need...
>
> tables:
> - person
> - person_task (with personID,policiesID)
> - policies (with grading/not graded)
>
> Cheers,
>
> Malte
>
> mario schrieb:
> > Hi,
> >
> > any hint on how to implement the following is very welcome.
> >
> > Say I have both a Persons table and a Tasks table, a Persons_Tasks
> > table to assign tasks to persons, and a Grades tables to grade how a
> > person did on a task.
> > Thanks to IRRE, I may use m:n relation with attributes. So far, so good.
> >
> > Now, let us say that different tasks have different grading policy:
> > pass/fail, grades from 1 to 5, a text comment; and so on. Which policy
> > is associated to a given task is stored within a field of the Tasks
> > table, say the field Policy.
> > (I do not even have a fixed set of possible policies).
> >
> > Thus, I would like that the BE form to insert a grade into the Grades
> > table is defined according to the value from the field Policy.
> >
> > Is this possible, how? Is there something already ready?
> >
> > Thanks a lot
> > mario
More information about the TYPO3-project-irre
mailing list