Page 1 of 1

problem with my subfile

Posted: Fri Dec 12, 2014 8:19 am
by oumouna
Hi,
I have a subfile and a button to add new record. The subfile is loading by program from a query that I define. My problem is at launching, when there are no record, the lines of the subfile don't appear; when I click on the button to add new record I have no action, no line is adding to permit me to write on the subfile. What should I do to make lines appear even is there is no record?

Re: problem with my subfile

Posted: Fri Dec 12, 2014 10:03 am
by emhill
First make sure your indicator to display the subfile (property "display subfile") is on when performing the EXFMT of the subfile control record.

Re: problem with my subfile

Posted: Fri Dec 12, 2014 1:05 pm
by Scott Klement
I have not heard of this problem before. Can you provide more details?

Re: problem with my subfile

Posted: Mon Dec 15, 2014 4:14 am
by oumouna
On the image "Capture", that is what I have. The lines of the subfile don't appear the SFLDSP indicator is on. when I click on the link "Nouvelle pièce d'Etat Civil" I must have a new line like on the image "Capture1" to write my new record but I don't have it.
Capture.PNG
Capture.PNG (30 KiB) Viewed 372 times
Capture1.PNG
Capture1.PNG (4.15 KiB) Viewed 372 times

Re: problem with my subfile

Posted: Mon Dec 15, 2014 3:01 pm
by Scott Klement
I wonder if this is because you have it in a tab panel. Tab panels work (under the covers) by setting the "visibility" property of the HTML elements. When a tab is displayed, the visibility of the items on that tab is set to "visible", and when it's not displayed, it is set to "hidden".

Sometimes it helps, especially for complex elements like grids, to have a container between the tab and the items that are being hidden. For example, put a "simple container" layout on your tab panel, and drag/drop all of the elements on that panel inside the layout. This way, the tab panel is just hiding the layout, and the items on the layout are being hidden by virtue of the fact that they are "inside" the layout. This often solves problems like this.

I have not had this problem myself (where the headings/scrollbar are visible but the rows are not). But, if I have time later, I will try to set up a similar screen on my box to see if I can reproduce the problem.

If you need quicker help, please remember that you can contact our professional support by e-mailing support@profoundlogic.com