Hi,
I’m building a simple weekly agenda and I’d like to know what choice will give me better performance and less problems
Since I can’t (at the moment), build a single form and use it in different tabpanel on the same form, I created 7 copies of the Appointments form, each one reached by a different relation (tipically
globalsday1 = appodate
globals.operatorid = operatorid;
globalsday2 = appodate
globals.operatorid = operatorid
etc…
I set all the forms to have their own foundset, attached a method to the field globals.operatoreid that sets the date to day1, day2… Then I put a button on top of each tabpanel, meant to create a related record in appointment and move to appo_details form to complete the needed data (startdate, enddate, notes…).
Is it a good approach? Or is it better to use portals, instead? I noticed that sometimes tabpanels don’t refresh correctly, when I change the operatorid: is there a way to force the update of the relation? Would it be better to substitute the relation with a series of searches?
Last question: sometimes, using
forms.agenda_week.appoday2.newRecord();
forms.PatientSelect.controller.show();
The focus ends on the first related record, not on the one just created: how can I avoid this behaviour?