Configuring OFBiz Working Time Settings

I am setting up a calendar in the Work Effort application where I need to limit the number of fields displayed when a new event is added (event type is EVENT). I changed the EditWorkEffort form in WorkEffortForms.xml to ignore fields I don't want to display. I am using the use-when attribute to check if the context keys workeffort, workEffortId is null and workEffortTypeId is EVENT. If the above conditions return true, then I ignore this field with an ignored tag. Otherwise, the fields are displayed as they were before a new workeffort was created for a new task (event type - TASK) or when a new work is created (event type - AVAILABLE).

Now the above logic gives me the desired result in case of a new event (event type is event). But when I add a new task (event type - Task) or new work effort (event type - Available), all the fields of the WorkEffort object are displayed (this is correct), but the layout is distorted (this is my problem). When I checked the final generated html source I can see that colspan = 4 is added to the html td for the corresponding fields wherever I use the use - when the tag.

I hope I have explained my expression about the problem. I need to fix a layout issue. And also am I doing the right thing for my setup or is there a better way to do this?

+1


source to share


1 answer


If you want the fields not to display better, use a tag <ignore>

, then they will never display. If you still want to use 'usewhen' then see the 'position' parameters, which can get confusing easily.



If you also look at "sorting", you can display fields in a specific order.

+1


source







All Articles