Can't get back to 'All Records'

Hi,
I have a major problem that has suddenly surfaced (may have been there for a while, but not spotted until now…)
Let’s say I have created two ‘programs’

  1. Products
  2. Suppliers
    Each one has a ‘dtl’ and ‘tbl’ view
    They are related to each other via supplier ID (i.e. a Supplier lots of Products)
    For the Products program, I have added a tab to show the Supplier, so when someone is viewing a product in top pane, it shows supplier details below (the ‘dtl’ view)
    (BTW, I am using the FW tabs option)
    In the navigation menu, if the user then clicks the ‘Supplier’ node which uses the ‘Supplier’ program & displays using the supplier ‘dtl’ view, this then opens a new tab showing the supplier of the product that was being viewed in the products tab.
    BUT, if the user then wants to search in that tab for another supplier, or show all, or anything else, that tab seems to be ‘locked’ to the supplier record of the product in the other tab and there doesn’t seem to be a way to ‘unlock’ it.
    I am calling my own function to do this which in turn is doing this
function CAT_MaintainSupplier ()
{
	var _form = 'supplier_dtl';
	var _program = 'Suppliers';
	var _return = globals.svy_nav_showForm ( _form, _program , true );
}

There is a similar function call for products. [Tried changing Suppliers back to just a program call instead of above function code call, same problem]
Please help, as my deadline on this is VERY near and I don’t want the user’s screaming at me 8-)
[one more thing, if there is a code fix for this, please can you list it here, as my FW code-base is now out of sync with the repository for various reasons…]
Thanks
Rafi
[EDIT/UPDATE: If I display the ‘Suppliers’ program first in a tab, then show the ‘Products’ program’ in a tab, I can continue to use the first ‘Suppliers’ tab without a problem…]

If you go from a related tab to the details the framework with add a foundset filter. But if you call the showForm method directly it should not add those foundset filters.
You are saying it does? If you use globals.svy_nav_showForm ( _form, _program , true ); ?

Hi Sanneke,

sanneke:
If you go from a related tab to the details the framework with add a foundset filter. But if you call the showForm method directly it should not add those foundset filters.
You are saying it does? If you use globals.svy_nav_showForm ( _form, _program , true ); ?

Yes, I am saying that when I call showForm directly, as you wrote, it is adding the found set filter…
Is there some way I can stop it doing that??
Thanks

Rafi

To be sure I tried this but it seems to work fine.

My setup.

Suppliers and related Products_tbl

On the suppliers_dtl form I added a button with this code:

function gotoProducts(event) {
	var _form = 'products_tbl';
	   var _program = 'Products';
	   var _return = globals.svy_nav_showForm ( _form, _program , true );
}

Shows the products with all the records.

I don’t want to have to add buttons that user would have to click instead of using normal navigation tree.
It looks like whatever forms are configured in the ‘Configurator’ for each program get locked into the related foundsets from the other.
So when both tabs are open showing related records in lower half, when you switch tabs, that tab is then locked to that foundset.
In the Configurator/Programs/Tabs/Tab Details I had the ‘Modes’ set to ‘Default Access’, tried unchecking it, made no difference (I don’t know what it means anyway - nothing in docs [are you updating docs to be a bit more extensive??])
Then I tried duplicating the dtl & tbl forms and setting the Programs in the Configurator to use the duplicates and left my methods that are called by Nav Menu to still call the originals and then when a form in tab gets ‘locked’ if i click menu, it then shows all the records (as I assume it is replacing duplicate form by original and that form isn’t foundset locked).
This is a big hack and I don’t want to have to duplicate EVERY form in my solution that is used/viewed and then have to update the Configurator or my functions to use the one or the other…
Can you provide me with a modified method for ‘dc_loadAll’ that I can see looks for which nav button bar it was called from and if it is the top/main one, clear any foundset filters?? (or ask user if they want it cleared)
[I don’t have time to examine all the code of FW to work out how to do this at this stage in my project]
Thanks

Rafi

It seems that the switch tab doesn’t show the right foundset. This will be solved in the next version of the frameworks.

sanneke:
It seems that the switch tab doesn’t show the right foundset. This will be solved in the next version of the frameworks.

Thanks for your help on this Sanneke :)