Thread: [Rainbowportal-devel] more Modulegallery stuff
Brought to you by:
danijel_kecman,
manudea
From: Chris F. <ch...@cf...> - 2003-11-24 02:57:11
|
I have found what I think will be an acceptable workaround for the refresh issue. The primary concern and reason for wanting to do the refresh was -to ensure that a item exists in the parent table so that I have a value in the child table for the foreign key relationship back to the parent table. -to fix navigation. If I went edit page->upload page and back the edit page would be blank still because the edit page that referred to the upload page had a ItemId of 0 upon submission. Going to simply open the upload page in a _new browser window and redirect the edit page back to the gallery. What I still need someone to help with. 1: Where is the code for the creation of a "module instance on a page title bar", the bar that shows the rb_Modules.ModuleTitle and then the add button(folder) and the collection properties button. Basically I need to know what the layout information is so that I can duplicate this look and have it work with the themes and such. 2: Workflow trigger to work for child tables. The layout is simple yet could be confusing. The field naming could be misleading but I decided to do it that way so that the code is consistent. The tables are rb_ModuleGallery(primary key is ItemId a autoincrement integer) rb_ModuleGallery_st(workflow table, identical to rb_ModuleGallery except in name). rb_ModuleGallery_Downloads ItemId Primary Key, autoincrement integer. Identifies the FILE ModuleId int. FK relates to rb_ModuleGallery.ItemId or rb_ModuleGallery_st.ItemId Problem is that when items are moved from the workflow table to the primary table the ItemId is changed sometimes(since not all workflow submissions will be approved) and thus the foreign key in the child table needs to be updated with this also. Actually there is more than that but I'll handle the rest. Getting so close but I keep finding small issues that should be solved now rather than later. Thanks to Jakob for helping solve the ModuleSettings issue. Anyone who can answer these, let me know. It is incredible how much difficulty is added by extending the common templates to do something more. Chris Farrell At 02:22 AM 11/23/2003 -0500, you wrote: >Let me think about it for a minute, maybe an iframe and refresh that frame > >-----Original Message----- >From: Chris Farrell [mailto:ch...@cf...] >Sent: Sunday, November 23, 2003 1:57 AM >To: Daniel Elebash >Subject: RE: [Rainbowportal-devel] how to refresh a page programatically? > >Ok, here is the situation. This gallery has MORE code-files than a typical >module. There >is not just a control and edit page setup. There is a control, edit page, >view page, and finally >a recently added page to handle file uploads. > >First the module entry is created in the parent table >rb_ModuleGallery. Once that entry is created, >I now have the ItemID. That ItemID is used in the child table >rb_ModuleGallery_Downloads to >relate the downloadable(many) files for each module back to the parent >entry. > >In the creation process, I do not want them to be able to actually upload >any files until the submit >a module to the primary table so that I have that ItemId. Also, if files >were uploaded but no module >created in the primary table for some reason, that would cause a logic >error as the ItemID for the >moudle would not be used on that module and a latter module would "inherit" >those files. See the >problem? > >What I want is that as the edit page is submitted with the update button, >the edit page does >NOT redirect to another page, rather I want it to refresh itself so that >the data is submitted and >the page is reloaded with the information and has a actual itemID and that >stuff. When the >ItemID is NOT zero, the file upload section becomes visible and they can >add files. > >The problem is that I cannot make my own link. Doing this would >-require carrying a ton of values such as tab_id, portal name, etc etc. >-break the links if the URL style changes. > >I need some way to refresh the page. I tried >Response.Redirect(Request.ServerVariables("URL")); That did not >work. Response.Refresh is gone, >was great in ASP, gone in ASP.Net. > >Understand now or did I make it worse? > >Chris > > > >At 12:56 AM 11/23/2003 -0500, you wrote: > >Can you explain a little more as to what is not refreshing? The redirect > >should work, I have used this before with no problem. > > > >You can try Button1 > >.Attributes.Add("onClick","location.href='yourpage.aspx") > > > >Or use the Meta tag to refresh at a set interval > > > >Also check your cache on the controls, maybe the page is reloading but > >pulling from cache > > > >Hope this helps. > > > > > >-----Original Message----- > >From: Chris Farrell [mailto:ch...@cf...] > >Sent: Sunday, November 23, 2003 12:33 AM > >To: rai...@li... > >Subject: [Rainbowportal-devel] how to refresh a page programatically? > > > >Guys, > > Stuck on this, can't get it to work. On a edit page, I need to refresh > >the page after the form is > >submitted instead of directing to another page. There is no > >Response.Refresh like in regular ASP, > >that isn't working. I tried redirecting to the same page, getting the URL > >via > >Request.ServerVariables("URL") and that didn't work either. > > > > Gotta be able to refresh to this page! Help! > > > >Chris Farrell > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >Does SourceForge.net help you be more productive? Does it > >help you create better code? SHARE THE LOVE, and help us help > >YOU! Click Here: http://sourceforge.net/donate/ > >_______________________________________________ > >Rainbowportal-devel mailing list > >Rai...@li... > >https://lists.sourceforge.net/lists/listinfo/rainbowportal-devel > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >Does SourceForge.net help you be more productive? Does it > >help you create better code? SHARE THE LOVE, and help us help > >YOU! Click Here: http://sourceforge.net/donate/ > >_______________________________________________ > >Rainbowportal-devel mailing list > >Rai...@li... > >https://lists.sourceforge.net/lists/listinfo/rainbowportal-devel |