Editing in Your Own FileMaker Layout

Overview

By default, DayBack presents your events in its built-in popover.

While you can add new fields to the Custom Fields drawer, if you have a ton of field, you may want to use your own layout instead of DayBack's popover.  

Option 1: Use Your Own Layout Instead

Stop using DayBack's built-in popover entirely and go right to your layout in a card window instead. Here's how:

Be sure the layout name you choose is based on the same table occurrence as the source you're working on; click the "Validate..." button in DayBack's admin settings to make sure you've picked a layout name that will work.

Option 2: Go To Your Layout From DayBack's Popover

You can jump to your own layout from the action drawer in DayBack's popover. This is helpful if you want to preview the event in DayBack before editing it in your own layout.

The button action for this behavior is in DayBack's Sample Events source and you can copy it from there to any of your own sources. The syntax is...

dbk.navigate('Event Detail', event)

...where 'Event Detail' is the name of the layout you want go to. This layout has to be based on the same table occurrence as the event's calendar source. You can find and make this button here:

Option 3: Bring Up a Card Window from DayBack's Popover

This is a great option for people who like DayBack's buit-in popover but want to sometimes see more fields, portals, or their own FileMaker layout objects when editing an event. This button action brings up your own layout in a card window when you click a button in the action drawer:

Any edits you make in the popover are saved before the card window comes up, and the card window edits are saved again before you're returned to the popover. The syntax is...

dbk.showEventOnLayout('Event Detail', editEvent)

...where 'Event Detail' is the name of the layout you want bring up. This layout has to be based on the same table occurrence as the event's calendar source. You can find and make this button the same way as the button in option 2.


Going The Other Way

From your layout to opening the event in DayBack

To navigate to an event in the calendar from your own layout, simply run the "Close And Update Event - DayBack" script and pass the following parameter, replacing "MyTable::MyStartDateField" with the start date field, and "MyTable::MyIdField" with the id field of your record:

JSONSetElement ( "{}" ; 

	[ "date" ; MyTable::MyStartDateField ; JSONString ];
	[ "id" ; MyTable::MyIdField ; JSONString ]

 )

Still need help? Message Us Message Us