old school is draw two subfoms. one off screen. then swap as needed. with move-object. works a charm ;)
> On Dec 24, 2017, at 8:37 AM, truegold via 4D_Tech <[email protected]> > wrote: > > Hi All, > > I have a parent form which has a subform container. Above the subform > container is a tab control object (5 tabs). Clicking on a tab selects the tab > an triggers (underlying code) a change to the underlying subform. Works great. > > But I discovered I need one of the subform pages, let’s call it “Edits”, to > change, based upon a different context, to either a different page or a > different subform using code. The key here is that some action in the parent > form needs to cause the subform container to display a different form. > > Seems easy… But I haven’t been able to get it to work. > > Parent Form (Tab control) > -> Subform container > -> actual subform > > Logically it seems that I need to programmatically set the correct tab and > tell the subform container to change the subform displayed. And then, of > course, have the subform appear in the subform container. > > At the point where I need things to happen I’m not in a subform so I can’t > use CALL SUBFORM CONTAINER. I can’t use EXECUTE METHOD IN SUBFORM because I > am at the parent level. Well if I had a multi-page subform then I might need > to use the command. > > I’ve tried many variations over the last few days. So… I am sure that not > having a clear understanding of what I am doing is contributing to my hit and > miss approach not working. > > So what’s the secret sauce to manage programmatically the subform change > (parent level)? > > Can someone point to where my understanding is off? Or other ideas? > > Appreciate, > John… > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

