3.0.1b2_6.0.6

New BETA 2 version is out.

Attached to this post you will find version 3.0.1b2_6.0.6 of the frameworks. This version is for servoy 6.0.6 and higher.
The sampleuse_navigation file includes all the modules and contains data, this is best for new installs. The svy_framework file includes all the modules, but no data, this one is for updating your existing installation.

Fix - SVYFRMWK-61: Some methods use hard-coded datasource
Fix - SVYFRMWK-68: Lookupwindow problems
the list is not updated after creating a new record
open a lookupwindow in a lookupwindow creates an error
The button “new record” can not be disabled (in ctrl + 1)
some buttons are not translated ( no i18n)
if you click on edit in show record the ok and cancel button are still disabled so all changes are directly saved.
Fix - SVYFRMWK-63: Layout specific tab text is not used
Fix - SVYFRMWK-80: Fields of a foundset filter are not automatically defined at new record
Fix - SVYFRMWK-76: If the second tab on a panel has a custom toolbar and the first doesn’t have it. The custom toolbar is not used.
Fix - Menu is updated after changing organisation
Fix - bring add mode back (also change your data, goto the toolbar with the buttons save and cancel and check the ‘‘add’’ in the modes field)
Fix - Fixed annoying message onFocusGained of the program name in the configurator
Fix - svy_nav_switchTabProgram works again
Fix - Error when opening layout after closing all tabs.

New - SVYFRMWK-64: Prefill toolbar when creating a new program (add the toolbars you can set default and the order)
New - possibility to overwrite all the svy_ forms by creating the forms with your own prefix, the prefix that you use can be set in the properties tab on the property ‘formPrefix’
New - globals.svy_nav_getVisibleFormNames() : Get the formnames that are showing at the moment in the order of the template
New - globals.svy_nav_getVisiblePanelNames() : Get the formnames of the tabpanels where the forms are set on, in the order of the template.
New - Added check if there are unsaved related records when selecting different parent. The user gets the options to save, not save or go back to the previous record.
New - function getMode() on svy_nav_base form. Returns the current mode of your form.

[attachment=0]sampleuse_navigation.servoy[/attachment]
[attachment=1]svy_framework.servoy[/attachment]

sampleuse_navigation.servoy (1.58 MB)

svy_framework.servoy (1.28 MB)

how work the form prefix?

The files I uploaded accidentally didn’t contain all the changes, I updated the files on the original post now.

pentamsi:
how work the form prefix?

In the properties you can set your form prefix, by default it is set to “svy_”, so it will use for example svy_nav_fr_status. If you set the prefix in the properties to for example “penta_” it will use penta_nav_fr_status instead in the method calls. This is only so in the methods the right forms are called.

If you want to use your own main form and opentabs form. You can set these variables in your onOpen method and the framework will also make sure that your forms are shown.

globals.nav.mainFormName = “svy_nav_fr_p_main”;
globals.nav.openLayoutFormName = “svy_nav_fr_p_openTabs”;
globals.nav.postLoginFormName = “svy_nav_fr_postLogin”;
globals.nav.loadingFormName = “svy_nav_fr_loading”;

So you could easily make your own main form where you extend it with the ‘svy_nav_fr_main_base’ form, so you have all the necessary functions.

but if for example i put a penta_ prefix, this would say that i have to create all the forms with this prefix? and the form when is necesary to be? in any module?

Excuse me but i have installed this beta version, but i have another new problem on lookup !
With thre previous beta when i selected the lookup button i had an error message…
Now both in browse (here is correct) and in edit mode (here isn’t correct) if i click on the lookup button nothing happens ! it is like the button is disabled !

Hi produzione,

I don’t have these problems so I am wondering what could be different in your case. Could it be that the form where the button is on is not a form that is extended from the svy_nav_fr_base form?

pentamsi:
but if for example i put a penta_ prefix, this would say that i have to create all the forms with this prefix? and the form when is necesary to be? in any module?

It does’t matter in what module. Because runtime it will all be one solution and in the code there are no references. But the idea is to put it in your own modules so you can overwrite the framework without braking anything.

Another problem!
If i select edit button for one record (in every form i have in my solution) no problem.
If I select new button, the form enter in edit mode but save & cancel button remain disabled and i cannot exit from edit mode…

Okey Sanneke, but i put the name of the form for example msi_[name_form], and in the properties put the prefix, and the framework didn’t get my form. Any idea? or i made it wrong?

In this version i have not the ipad menu instead of the tree menu…In the previous version when the solution started on ipad i had a “special” menu, limited t two levels. Now i have always the tree menu…

pentamsi:
Okey Sanneke, but i put the name of the form for example msi_[name_form], and in the properties put the prefix, and the framework didn’t get my form. Any idea? or i made it wrong?

I have the same problem with the form nav_fr_status_bar.
It seams that the original form is still in the nav_fr_main and is never replaced.

Yo need to make yor own main form, and them replace the tab form with other customized form extended the originals.

Hello,
is it possible to disable/enable certain buttons at runtime in this framework-release? Example: I want to disable only the delete button dependend on a record status. In the old framework we used the easy way: forms.svy_nav_fr_buttonbar_browser.elements.btn_delete.enabled=0

Hi Michael,

You can now do this on your form by overwriting the method ‘isMethodAllowed’. This will be called for each onRecordSelection so you can do record based security with it.

Sample:

function isMethodAllowed(_method) {
	var _allowed = true
	if(_method == 'dc_delete')
	{
		_allowed = false
	}
	return _super.isMethodAllowed(_method) && _allowed
}

Nice, thank you Sanneke,
See you on ServoyWorld in Amsterdam.
Brgds, Michael

produzione:
Another problem!
If i select edit button for one record (in every form i have in my solution) no problem.
If I select new button, the form enter in edit mode but save & cancel button remain disabled and i cannot exit from edit mode…

Hi produzione,
you solve the problem in this mode: edit the SAVE/CANCEL toolbar button and flag ADD checkbox.

Gianluca

Hello once again,
the function getMode() on svy_nav_base is not existing in the solution.
Could you please check this because in the old version I often called the status with ‘globals.nav.mode != ‘browse’)’ and this variable is not filled correct. I have fixed it with setting the variable globals.nav.mode in the function updateUI.

Hello, with the last servoy update Version: 6.1.0 rc2 - build 1414 appears some errors in the Problems tab:

We are getting the same errors as well and are waiting for the pretty new framework with metro-style seen on ServoyWorld :-)