CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Show Page order

Print topic Send  topic

Author Message
maclonghorn

Posts: 22
Posted: 02/11/2010, 9:34 AM

I am using the grid with navigable detail view, and I have another editable grid on the detail page that shows related child records to the master. If you have used the example, you know that the ID of the record is not passed in the URL, only the filter/sort options. So in order to show the proper child records, you have to grab the parent ID in something like BeforeBuildSelect for the child grid. Everything works great as long as the parent grid is displayed before all the others.

In my page PHP code at the bottom, in the Show Page section, I have the parent and child grids with their Show() methods. However, the child is put before the parent, and so now I'm having a problem with the child records b/c there is no parent ID yet. I can reorder these and it works again, but CCS may reorder them again automatically. How can I set these in the designer so that CCS will order them properly, and I don't have to set them manually?
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 05/16/2010, 11:52 AM

maclonghorn,
Have you been able to figure this out or do you still need assistance??
View profile  Send private message
maclonghorn

Posts: 22
Posted: 05/18/2010, 9:49 AM

I had to start passing the ID of the detail in the URL, which has actually worked out better. But, No, I did not get this question answered: "How can I set the order of display (ie, the Show method) of the different elements in the designer so that I don't have to set them manually?"
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 05/18/2010, 7:21 PM

maclonghorn
This almost sounds like a glitch in CCS. The reason I say that is because if you are putting it in a specific order and CCS is changing that order then it may be an issue with the IDE. I have had to deal with this glitch before (not lately) and what I did to get around it was to copy the grids to a different page, delete the problem page and recreate the page and add the grids in the order that I want it to be in. Let me know if this works for you but of course your current solution works just a well.
View profile  Send private message
maclonghorn

Posts: 22
Posted: 05/19/2010, 12:53 PM

Well, when I'm building the page from scratch it does put everything in the order it was added to the page, but if I add a component that needs to be loaded first (eg, b/c I'm going to do something with the data), it puts it at the end of the Show list. So I didn't know if there was a way to "reorder" the loading of components, other than manually. As I mentioned, I found a workaround, but I think it would be nice to be able to specify the "load/show order" for components on the page, regardless of the order they were added to the page.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 05/19/2010, 8:50 PM

maclonghorn,
Is it necessary to have to component load first or would it be just as effective to manipulate the data (in the component) in the before show event??
View profile  Send private message
maclonghorn

Posts: 22
Posted: 05/26/2010, 4:49 PM

Yes. I have two forms and the data in one depends on data in the other.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.