I have been working with two forms in a formset for the first time. All has worked out well as the two forms are simply two perspectives on the underlying data. I switch between them by turning visible on and off.
One of the forms somehow got set to max width in the development environment. This is a nuisance to work with but I didn't bother to fix it until this morning. My fix was to scroll to the right bound of the screen and drag the right side of the screen to the left as far as I could and then repeat. This made it much easier to switch between the forms.
In the same session I deleted a series of controls from form2 and replaced them with new ones. When I built the formset form 1 no longer has any controls showing up either in the form designer or when running the form.
I Investigated and at least some of the form1 controls are still in the ,SCX.
Actually I checked details in the Properties of the Formset for the missing form and discovered the Left setting was -1946 while the same setting for the present form was 8. Setting the negative value to 8 restored the missing controls. I'm quessing I inadvertently garbed the whole form rather than the right bound when I was making the screen narrower.
Now my question is - is there a one click solution in the UI to correct this situation or is manual editing of the properties the best approach?
Thanks in advance,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
My work with formsets never got past the "learning" stage. Meaning I never put one into a production application.
There are some bits that one really needs to understand to work with them. Like common code between them with thisformset. It's a big learning curve to use them. And most people are advised to not use them.
The notion of having a scrollable area on one form by using the scrollbar setting on a second form set on top of the first form was the latest tinkering I did. Someone made a container class that emulates that functionality though.
If one form is the main form, it can start the secondary form. The main form would be set to a Private Datasession. The secondary form would not be a private datasession. This will allow the secondary form to see and use the main forms tables and views.
Why are you wanting to use a formset? I'm sure there are valid reasons to use them.
Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Joe Yoder Sent: Wednesday, May 26, 2021 5:29 PM To: profoxtech@leafe.com Subject: Formset goofy
I have been working with two forms in a formset for the first time. All has worked out well as the two forms are simply two perspectives on the underlying data. I switch between them by turning visible on and off.
One of the forms somehow got set to max width in the development environment. This is a nuisance to work with but I didn't bother to fix it until this morning. My fix was to scroll to the right bound of the screen and drag the right side of the screen to the left as far as I could and then repeat. This made it much easier to switch between the forms.
In the same session I deleted a series of controls from form2 and replaced them with new ones. When I built the formset form 1 no longer has any controls showing up either in the form designer or when running the form.
I Investigated and at least some of the form1 controls are still in the ,SCX.
Actually I checked details in the Properties of the Formset for the missing form and discovered the Left setting was -1946 while the same setting for the present form was 8. Setting the negative value to 8 restored the missing controls. I'm quessing I inadvertently garbed the whole form rather than the right bound when I was making the screen narrower.
Now my question is - is there a one click solution in the UI to correct this situation or is manual editing of the properties the best approach?
Thanks in advance,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]
I came across the possibility and it fit my goal to do a minimum proof of concept system. The forms consist of Pick which allows choosing a record and Detail which then supplies additional info.
I have no intention to use a scrollable form. Maybe what happened to me can only occur when there is a formset. I thought it is a part of the development environment and I assumed it can happen with any form.
On Wed, May 26, 2021 at 6:04 PM Tracy Pearson tracy@powerchurch.com wrote:
My work with formsets never got past the "learning" stage. Meaning I never put one into a production application.
There are some bits that one really needs to understand to work with them. Like common code between them with thisformset. It's a big learning curve to use them. And most people are advised to not use them.
The notion of having a scrollable area on one form by using the scrollbar setting on a second form set on top of the first form was the latest tinkering I did. Someone made a container class that emulates that functionality though.
If one form is the main form, it can start the secondary form. The main form would be set to a Private Datasession. The secondary form would not be a private datasession. This will allow the secondary form to see and use the main forms tables and views.
Why are you wanting to use a formset? I'm sure there are valid reasons to use them.
Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Joe Yoder Sent: Wednesday, May 26, 2021 5:29 PM To: profoxtech@leafe.com Subject: Formset goofy
I have been working with two forms in a formset for the first time. All has worked out well as the two forms are simply two perspectives on the underlying data. I switch between them by turning visible on and off.
One of the forms somehow got set to max width in the development environment. This is a nuisance to work with but I didn't bother to fix it until this morning. My fix was to scroll to the right bound of the screen and drag the right side of the screen to the left as far as I could and then repeat. This made it much easier to switch between the forms.
In the same session I deleted a series of controls from form2 and replaced them with new ones. When I built the formset form 1 no longer has any controls showing up either in the form designer or when running the form.
I Investigated and at least some of the form1 controls are still in the ,SCX.
Actually I checked details in the Properties of the Formset for the missing form and discovered the Left setting was -1946 while the same setting for the present form was 8. Setting the negative value to 8 restored the missing controls. I'm quessing I inadvertently garbed the whole form rather than the right bound when I was making the screen narrower.
Now my question is - is there a one click solution in the UI to correct this situation or is manual editing of the properties the best approach?
Thanks in advance,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Hi Joe,
I haven't used formsets since FPW 2.6 (if my memory is correct). They really aren't necessary these days as you can do everything that they can do with single standalone forms, without getting involved in the complexities/strangeness of formsets.
However I don't think your issue has anything to do with formsets in particular. If I understand your description properly you just set the left value of one of the screens to a large negative number and you want to set it to a different (not negative value). As far as I am aware there is no one click method to do this. you can manually change the value in the properties sheet, or you can use sys(1270) to get a reference to the form when you have it open in the designer and then set its properties in the command window:
move the mouse over the title bar of the form or somewhere on the form that has no controls
x = sys(1270) (in the command window)
x.left = 0
Frank.
Frank Cazabon
On 26/05/2021 5:28 pm, Joe Yoder wrote:
I have been working with two forms in a formset for the first time. All has worked out well as the two forms are simply two perspectives on the underlying data. I switch between them by turning visible on and off.
One of the forms somehow got set to max width in the development environment. This is a nuisance to work with but I didn't bother to fix it until this morning. My fix was to scroll to the right bound of the screen and drag the right side of the screen to the left as far as I could and then repeat. This made it much easier to switch between the forms.
In the same session I deleted a series of controls from form2 and replaced them with new ones. When I built the formset form 1 no longer has any controls showing up either in the form designer or when running the form.
I Investigated and at least some of the form1 controls are still in the ,SCX.
Actually I checked details in the Properties of the Formset for the missing form and discovered the Left setting was -1946 while the same setting for the present form was 8. Setting the negative value to 8 restored the missing controls. I'm quessing I inadvertently garbed the whole form rather than the right bound when I was making the screen narrower.
Now my question is - is there a one click solution in the UI to correct this situation or is manual editing of the properties the best approach?
Thanks in advance,
Joe
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]