I’m having a bit of an issue with loading Frames within a Lazy Tab
What I have is a Tab Sheet with a number of Lazy Tabs. In the Lazy Tabs I have a Frame in which I want to show a Combined Screen.
It works fine if I setup the Frame and Screen in Studio but then I can’t send parameters to the Screen.
If I try to inject the Frame to the code I can’t as it is in a Lazy Tab.
I tried an empty tab and used Code to create a Frame and call OpenFrame with the required parameters which works but then the CUBA doesn’t apply the UserSetting for the window to the loaded Frame such as the Default Presentation applied to the table in the frame.
It seem there is no combination I can get to work.
Is there a way of having a frame defined in the XML and hook in to it before it loads the attached screen to set parameters?
I’m just trying to pass in and entity instance to the frame. This is working fine in the codeI use in my project. I am using the params.ITEM.set which is all good.
That is exactly what I am saying. The settings seem to save fine from what I can tell but aren’t applied as the frame is added dynamically. As far as I can tell adding parameters to a frame can’t be done other than creating the frame in code and adding it to the tab. I can’t inject anything either as the tab is lazy loaded.
In the attached example you will see two screens in the menu "error"and “working”
In both of them try to apply a default presentation and reopen the screen. The error screen will not apply the default presentation but the working screen will.The additional code in the working screen seems to do the trick of apply the default presentation and was taken from inside the CUBA code. I don’t think it is 100% because in my actual project it isn’t totally working for some reason which I haven’t figured out yet.