Attached to this post you will find version 6.0.1.86 of the frameworks. This version is for servoy 6.0.1 and higher.
The sampleuse_navigation file includes all the modules and contains data, this is best for new installs. The svy_navigation file includes all the modules, but no data, this one is for updating your existing installation.
This is the list of all the main changes/enhancements:
new - Tooltip text on frameworktabs
new - Allow use of related field as header field
new - Allow field color change for not editable field in edit mode, see svy_nav_style
new - Lookup window allow in browse mode
new - Lookup window fieldkey - if you want to return the value of a different other then the PK
new - getButtonObject, to set the btn_new/btn_edit/btn_delete/btn_duplicate specific for each record
new - setButtons to update the dc bar buttons
new - Tree uses css instead of fixed style properties
new - Apply startup arguments to globals.onOpen()
new - Foundset filters for lookup windows can also be global methods
new - Added context menu for tabs with options: close tab, close other tabs, close all tabs
new - In the print menu a print form option to print the form with tab the user is looking at. Enabled/Disabled by navigation properties.
new - Program foundset filters can also have query values with globals in them.
new - Document management modele integrated with the frameworks → This is in the beta stage at the moment; Turn on using the “document_managment” property in the navigator.
new - svy_nav_newRecordOnTabProgram (Switch to the tab of the programname provided and create new record)
new - svy_nav_switchTabProgram (Switch to the tab of the programname provided)
new - popmenu has show in property, to show in Main/Tab or Both
new - Added sequence field add field properties, used to sort fields in lookup
new - Selecting items in lookup by doubleclick
new - Possibility to filter framework database on solution name; for using 1 frameworkdb for multiple solutions
new - Context menu for tabs with options: close tab, close other tabs, close all tabs
new - Check for CAPS_LOCK in login form (Smart client only)
new - Check at startup if frameworkproperties should be updated, based on new dataversion-property
new - Hook dc_delete_pre_action; Is called inside the transaction.
new - Button to delete all framework properties
enh - Advanced search is renewed with a tree to create the or/and statements
enh - enhanced the search functionality which makes it possible to search in 2 levels deep in the bottom (related) part of the framework.
enh - Added that menu tree is refreshed automatically when adding items in configurator
enh - Add filter for owner (for owner specific data that is not organizationspecific)
fix - All the svy.lbl i18n keys are replaced with svy.fr.lbl
fix - Lookup windows that are used to only create a new record can also set the return pk
fix - Nicer image when having more tabs.
fix - Error with more tabs when you don’t use multiple tabs per program
fix - Selecting a item with the lookup window is slow the first time
fix - Tooltips for templates view 2
fix - default template types
fix - solved all the warnings in 6.0.1
fix - Give elements on fr forms a name
fix - Bug which caused an invalid login as super administrator.
fix - Bug which caused wrong display of administrator level at users.
fix - Switched “table/tab” and “table” at framework properties.
fix - fixed a bug which caused the following tabled not to be cleaned at “remove data”: nav_menu_items_context_menu, nav_advanced_search, nav_advanced_search_criteria
fix - fixed a bug which caused an SQL exception when adding entities based on an organization filter in the security navigator.
fix - fixed a bug which caused an error when parameter “startup_program” is defined but the user does not have rights to start. it.
fix - fixed a bug which caused the last logged in user not always to be remembered.
fix - fixed a bug which caused elements outside of the body to be removed when using a custom table view.
fix - Background of tabform is removed when closing tabs
fix - No tab is openened for startup program
fix - Wrong reference of svy_sec_login form in navigation
fix - Switching framework database on solution open didn’t work correct if the frameworkdb was called “svy_framework”
fix - Removed onPreLogin hook, this wasn’t working anymore since we are using enhanced security. The login solution can’t call methods from other solutions.
fix - Fixed that svy_nav_showForm didn’t open tab
fix - Show startup form/program from properties when closing all tabs (instead of hardcoded svy_nav_fr_home_dtl)
fix - Fixed that globals.svy_mod_showFormInDialog() can show non-modal dialogs
fix - Fixed: Compare button in compare form was enabled when first showing the form
fix - Changed rollover cursor to hand for all buttons in button bar
SVN
I can see that there is a ‘tag’ on the SVN for this release, but is it going to become a ‘branch’, or should I check things out from the ‘tag’ now to get the latest SVN version of the FW??
Hi,
I’m a bit frustrated now…
I just cleared out the old copy of the FW from my solution and checked out the new one.
There were some errors, so I cleared all FW stuff and imported the export so I got all new table stuff & pointed them all at the correct resources project etc.
Now when I run the solution (after a few restarts of Servoy) I am getting lots of runtime errors, like
LOC SS908
Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
MSG: TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js:241 (onRenderProgramDocuments)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:1426 (svy_nav_onOpen)
Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
MSG: TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js:241 (onRenderProgramDocuments)
Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot find function getButtonObject. (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js#2447)
MSG: TypeError: Cannot find function getButtonObject. (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js#2447)
Exception calling global method 'svy_nav_tree_node_selected' with arguments [6, nav_menu_items, 39, 133, null] in async mode on solution eStock
TypeError: Cannot find function getButtonObject. (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js#2447)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:2447 (svy_nav_setBrowserbar)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:371 (svy_nav_dc_setStatus)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:1875 (svy_nav_showForm)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:2118 (svy_nav_tree_node_selected)
Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
MSG: TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
TypeError: Cannot read property "controller" from undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js#241)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_fr_bottom_bkmk_short.js:241 (onRenderProgramDocuments)
which seems to be to do with it not picking up correctly all my settings/programs/menus in the configurator, as I managed to clear one initial error by going into the config. and remove and then recreating the properties of the config. and not have it use my ‘start’ program.
Does this mean I am going to have to remove ALL my settings/programs/menus from the config. and then re-create them??
If so, that is going to be a SERIOUS issue for myself & I would think others, especially as in one of the other posts you aren’t offering a way of moving settings/programs/menus from one config. to another (without a sponsor).
My data is there, but obviously there is some UUID or something that I can’t see that is causing the issue (I am guessing…)
PLEASE help.
sanneke:
It seems to me that a bookmark program is not reachable
I think it is something to do with the new features you have added and how the FW handles ‘empty’ foundsets for the bookmarks and documents, as when I comment out the bits that are throwing errors, it seems to be ok in a new fresh (data removed) system…
e.g. I get this error
LOC SS908
Exception Object: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "setUpFoundset" of undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_base.js#110)
MSG: TypeError: Cannot call method "setUpFoundset" of undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_base.js#110)
Exception calling global method 'svy_nav_tree_node_selected' with arguments [3, nav_menu_items, 28, 132, null] in async mode on solution eStock
TypeError: Cannot call method "setUpFoundset" of undefined (/Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_base.js#110)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/forms/svy_nav_base.js:110 (onRecordSelection)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:398 (svy_nav_dc_setStatus)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:1875 (svy_nav_showForm)
at /Users/rafig/servoy_workspace_6_rnoh/svy_nav_navigation/globals.js:2118 (svy_nav_tree_node_selected)
from these lines of code
// Reload documents for the current program
if (globals.nav_program_name != 'svy_documents')
forms['svy_doc_program_documents'].setUpFoundset(_event);
which if I comment out, then works (of course), but I think is to do with FW needing more logic around these lines to deal with empty found set
[I also commented out the bit of code that failed in my earlier post to allow it to work, again I think it’s to do with null/empty]
Thanks
// Reload documents for the current program
if (globals.nav_program_name != 'svy_documents' && globals.nav.program[globals.nav_program_name].table_name && forms['svy_doc_program_documents'] && forms[globals.nav.form_view_01].foundset.getSize()>0)
{
forms['svy_doc_program_documents'].setUpFoundset(_event);
}
We have discovered why lately there where multiple clicks in the tree needed sometimes.
In servoy it changed that setting the path doesn’t trigger the tree anymore, but we where still testing for this.
In the method “svy_nav_tree_node_selected”.
You can remove the following lines:
if (globals.nav.setMenuTree == 1) // if the tree is called because showForm set the right node, don't navigate
{
globals.nav.setMenuTree = 0
return
}
sanneke:
We have discovered why lately there where multiple clicks in the tree needed sometimes.
In servoy it changed that setting the path doesn’t trigger the tree anymore, but we where still testing for this.
In the method “svy_nav_tree_node_selected”.
You can remove the following lines:
if (globals.nav.setMenuTree == 1) // if the tree is called because showForm set the right node, don't navigate
{
globals.nav.setMenuTree = 0
return
}
Wow!
That’s better, just tried it, and each program launched correctly from 1 click!
Thanks.
Could you please verify if you have module “svy_document_management” and if it is attached to your main solution? The problem was that this module has not been attached to solution “svy_nav_navigation”, only to “sampleuse_navigation”.
This issue has been resolved for the next version by creating a new top solution which also holds this particular module.
Could you please verify if you have module “svy_document_management” and if it is attached to your main solution? The problem was that this module has not been attached to solution “svy_nav_navigation”, only to “sampleuse_navigation”.
This issue has been resolved for the next version by creating a new top solution which also holds this particular module.
No it wasn’t.
I have added it and all seems to be ok now
Thanks
We have discovered an abnormal behaviour in the last release of the framework, and i think it’s something you want to fix, thus it worked in previous releases.
We have probed also this behaviour into sampleuse_navigation and it occurs also.
The scenario is the next:
You push edit button over any record, so, you come into edit mode, and in consequence, so many elements, like tree, turns deactivated.
You close the tab using the cross (always in edit mode)
I am surprised that this behavior occurs because the framework should also disable the tabs when going into add or edit mode. I just tested it and here it works fine.
Could you please check if you can find the following piece of code in method svy_nav_setNavigationBar?
vschuurhof:
I am surprised that this behavior occurs because the framework should also disable the tabs when going into add or edit mode. I just tested it and here it works fine.
I am also suprised by your answer, Vincent. I do not usually write posts without probing well what i’m saying.
Maybe my explanation was not clear enough.
I will try to explain again, slowly, and step by step. The latest set of screenshots is also valid for my explanation.
First of all, i’ll say that i have probed this on two different window 7 machines, using Smart Client, with the last released version (the one available for download in this post). The behaviour remains. And yes, we have the code you ask for in your last post, and the bug remains.
STEPS:
Import sampleuse_navigation
Start the solution
Open Suppliers (Appears opened by default)
Open Order Details
Edit first one order detail (Now tree turns disable BUT tabs DON’T)
Close both tabs using red cross over the tab
If you follow these simple steps, you will see what i’m trying to say to you. Tree is disabled now and i have no posibility of opening new nodes into the framework solution.
We would be very pleased if you can check this and give us a solution.