Thursday, January 08, 2009
To start or answer a thread you will need to login...


Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement.

 

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service.

 

We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Smart-Thinker E...  Place RSVP Module Action as link or button on EventDetail.ascx
Previous Previous
 
Next Next
New Post 2/12/2008 9:01 AM
Unresolved
  Dan
6 posts
5th Level Poster


Place RSVP Module Action as link or button on EventDetail.ascx  (United States)

I am trying to place an RSVP linkbutton on the EventDetail.ascx. It is not obvious to our users to look for the RSVP action under the module settings. I was not able to expose the URL wwwdev.eft.fiserv.net/EventCalendar/EventDetails/tabid/517/ctl/RSVP/mid/1126/ID/2/Default.aspx by using '<%# EditUrl("ID", Eval("EventID").ToString(), "RSVP") %>' . Can someone assist with the correct syntax to expose the RSVP URL?

Thanks in advance

Dan

 

 

 
New Post 2/14/2008 8:14 PM
  Rodney Joyce
3064 posts
www.DNNDir.com
1st Level Poster




Re: Place RSVP Module Action as link or button on EventDetail.ascx  (Australia)

Hi Dan,

The RSVP action placement depends on your container - for example, on PokerDIY I moved it to the bottom so it was more obvious to the user - so you can use a different container if this is a problem.

I'm going to use PokerDIY as an example - on the Upcoming Poker Games screen, I show the RSVP link, which is the one you want. It looks like you have the correct URL format (http://www.pokerdiy.com/Games/PokerGame/tabid/374/ctl/RSVP/mID/1653/ID/10718/Default.aspx)

Actually - I just found this post where someone was trying to do something similar - does that help?


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 2/15/2008 5:27 AM
  Dan
6 posts
5th Level Poster


Re: Place RSVP Module Action as link or button on EventDetail.ascx  (United States)

Thanks for your response Rodney. Yes I did see the post you are referring to, I tried to extract the RSVP URL to the page by adding the following:

asp:Hyperlink id="linkRSVP" runat="server" NavigateURL='<%# DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "RSVP", "mID=" + ModuleId.ToString() , "ID=" + Eval("EventID").ToString()) %>' resourcekey="RSVP.Action" /> 

 

But I am unable to get the NavigateURL to write the address out. I then tried to extract the module RSVP Action button to the page by adding

<%@ Register TagPrefix="dnn" TagName="ACTIONS" Src="~/Admin/Containers/SolPartActions.ascx" %>

<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON2" Src="~/Admin/Containers/ActionButton.ascx" %>

But could not just extract the RSVP, I would rather not create a new container just for this module.

 

 
New Post 2/17/2008 9:47 PM
  Rodney Joyce
3064 posts
www.DNNDir.com
1st Level Poster




Re: Place RSVP Module Action as link or button on EventDetail.ascx  (Australia)

Dan - why does your NavigateURL not work? It looks like it should work? Actually, try EditURL instead -

EditUrl("ID", eventID.ToString(), "RSVP")


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 2/18/2008 3:59 AM
  Dan
6 posts
5th Level Poster


Re: Place RSVP Module Action as link or button on EventDetail.ascx  (United States)
Modified By Dan  on 2/18/2008 6:12:52 AM)

I actually tried the editUrl and eventID that throw an error (The name 'eventID' does not exist in the current context).

Error: Event Details is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: f:\WebSites\FiservEFTIntranetPortal\DesktopModules\Smart-Thinker - Events\EventDetail.ascx(121): error CS0103: The name 'eventID' does not exist in the current context ---> System.Web.HttpCompileException: f:\WebSites\FiservEFTIntranetPortal\DesktopModules\Smart-Thinker - Events\EventDetail.ascx(121): error CS0103: The name 'eventID' does not exist in the current context at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

What is the syntax (CommandName etc...) to expose the rsvp link from the setting menu using the ActionButton?

 
New Post 2/18/2008 12:00 PM
  Dan
6 posts
5th Level Poster


Re: Place RSVP Module Action as link or button on EventDetail.ascx  (United States)
Modified By Dan  on 2/18/2008 2:01:33 PM)

I added an expression builder class but the ModuleId always returns -1

 <asp:label id="lblUrl" runat="server" Text='<%$ Code: EditUrl("ID", Request.Params["Id"].ToString(), "RSVP") %>' />

 

Here is the output: http://wwwdev.eft.fiserv.net/EventCalendar/EventDetails/tabid/517/ctl/RSVP/mid/-1/ID/3/Default.aspx

This has been a total nightmare I only have the source code for 3.5 when are you going to release the new version?

 

 
New Post 2/18/2008 2:45 PM
  Rodney Joyce
3064 posts
www.DNNDir.com
1st Level Poster




Re: Place RSVP Module Action as link or button on EventDetail.ascx  (Australia)

 Dan wrote

I actually tried the editUrl and eventID that throw an error (The name 'eventID' does not exist in the current context).

Error: Event Details is currently unavailable.

What is the syntax (CommandName etc...) to expose the rsvp link from the setting menu using the ActionButton?

You can only use evenID if you have declared it as a variable and it ha sa value by the time you use it (it is set in the LoadEventDetails method).

"What is the syntax (CommandName etc...) to expose the rsvp link from the setting menu using the ActionButton?" - I am not sure what you mean by this but the code to generate the ModuleAction is the same as the one I put above - eg.

actions.Add(GetNextActionID(), Localization.GetString("RSVP.Action", LocalResourceFile), ModuleActionType.AddContent, "", "", EditUrl("ID", eventID.ToString(), "RSVP"), false, SecurityAccessLevel.Edit, true, false);

 

 


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 2/18/2008 2:49 PM
  Rodney Joyce
3064 posts
www.DNNDir.com
1st Level Poster




Re: Place RSVP Module Action as link or button on EventDetail.ascx  (Australia)

 Dan wrote
Here is the output: http://wwwdev.eft.fiserv.net/EventCalendar/EventDetails/tabid/517/ctl/RSVP/mid/-1/ID/3/Default.aspx

This has been a total nightmare I only have the source code for 3.5 when are you going to release the new version?

The new version will be out in a month, but I am not sure why it how it will help you? You're still going to have the exact same issue? I really don't think it should be that hard to do what you are doing, all you have to do is follow how I did it on the Upcoming Events page or grab the code from the ModuleActions and put it in the PageLoad. It should take you under an hour if you go through my code line by line.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 2/19/2008 4:41 AM
  Dan
6 posts
5th Level Poster


Re: Place RSVP Module Action as link or button on Event Detail.ascx  (United States)
Modified By Dan  on 2/19/2008 6:43:33 AM)

Well the fact that we are running 3.6 and I only have the source code for 3.5 is an issue considering we purchased your product. I would expect that when a new version is posted, source code should be included. As to your statement "you are not sure why it would help me" do you recall your response to my feature request on the RSVP button on the event detail page.

 

At 12/02/2008 16:01 a comment was posted to a suggestion you are tracking:- RSVP Button on Event Detail Page.

Yes, this will be implemented as a Token in a future version (the next big version is detail templating, and I want to get this in the version after that)

I assumed it would be in the next version, guess I misinterpreted you response. If I had the current source I would code the enhancement myself.

Thanks

 
New Post 2/19/2008 4:52 AM
  Rodney Joyce
3064 posts
www.DNNDir.com
1st Level Poster




Re: Place RSVP Module Action as link or button on Event Detail.ascx  (Australia)

Yes, the difference in source/install is a problem (my fauly entirely) - but I really don't think it will help in this case. I have not nearly fiinshed the Token Replacement engine (it's a rewrite) we don't even have the install version for 4.3.7 yet.

Ok, we obviously both want to get this working ASAP - this is the way I see it - you know the URL you need to construct. You know the variables in the URL - EventID, MID etc. What I don't understand is why you can't just build up the string in the PageLoad and assing it to a link button? Is it the NavigateURL/EditURL functions that are gibing you trouble? (leave them out in this case hardcode the output). Please try to explain what is not working.

 

Maybe start from the back and hardcode the URL and assing it to a button and then replace the variables one by one to ensure they work?


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 2/19/2008 5:18 AM
  Dan
6 posts
5th Level Poster


Re: Place RSVP Module Action as link or button on Event Detail.ascx  (United States)

First off when I recompiled 3.5 source there is a mismatch with the other 3.6 libraries which throws and error. So I had to resort to using in line code in the ascx and accessing the page variables in-line is different then code behind from what I have experienced. Seems to be a timing issue because the moduleId always returns -1, That is the only part of the URL I am missing. The EditUrl returns -1 for the moduleID also that is why I resorted to using the NavigateURL . I am only considering hard-coding as a temporary solution due to the module is only installed on the main portal. I only have the moduleID left to complete the work, so If you have any suggestions it will be greatly appreciated.

Thanks

 
New Post 2/19/2008 9:30 PM
  Rodney Joyce
3064 posts
www.DNNDir.com
1st Level Poster




Re: Place RSVP Module Action as link or button on Event Detail.ascx  (Australia)

Hmm - I'm not sure why ModuleID is -1 (if it was not seeing it it would throw an error, so you are right, it is probably a timing issue when the page is rendered). You could hardcode it for now - when the new version comes out (hopefully before a month, but like to over estimate!) - you can change it to use the ModuleID Token, and then when the next version comes out it will be a Token itself.

 

I think if EditURL is returning -1 then NavigateURL might do the same thing. If you do hardcode ModuleID then bear in mind it will only work on that instance of the Event module.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 11/11/2008 10:06 PM
  George Lew
32 posts
4th Level Poster


Re: Place RSVP Module Action as link or button on Event Detail.ascx  (Malaysia)

Hi Rodney,

I've been trying to do the same thing: Putting a RSVP button on EventDetails.ascx....

I copy the following code from: EventInvitesEdit.ascx
asp:Hyperlink id="linkRSVP" runat="server" Text='RSVP' ImageUrl='<%# ResolveUrl("Images/RSVP.gif") %>' Tooltip="Click here to change this RSVP" NavigateURL='<%# DotNetNuke.Common.Globals.NavigateURL(this.TabId, "RSVP", "MID=" + this.ModuleId.ToString(), "ID=" + DataBinder.Eval(Container, "DataItem.EventID").ToString(), "UserID=" + DataBinder.Eval(Container, "DataItem.UserID").ToString()) %>' />

And pasted it in EventDetail.ascx
Result: <a id="dnn_ctr554_EventDetail_linkRSVP" title="Click here to change this RSVP">RSVP</a> which without href link on view page.

EventsView.ascx (Same Code that you've mention in this post)
asp:Hyperlink id="linkJoin" runat="server" NavigateURL='<%# DotNetNuke.Common.Globals.NavigateURL(eventDetailTabID, "RSVP", "mID=" + eventRSVPModuleID.ToString() , "ID=" + Eval("EventID").ToString()) %>' resourcekey="RSVPJoin.Text" Visible='<%# (Eval("EventRSVPID").ToString() == String.Empty) %>' />

The result is: An error has occurred.
Error: Event Details is currently unavailable.
when viewing the Event's detail.

I've also tried this:
asp:Hyperlink id="linkRSVP" runat="server" NavigateURL='EditUrl("ID", eventID.ToString(), "RSVP")' resourcekey="RSVP.Action" /> 
but the result is:
<a id="dnn_ctr554_EventDetail_linkRSVP">RSVP</a> which without href link also.

Is there any simple way to do it?

My situation: I was not able to use [LinkActions] action button as it has bug in DNN 4.9, (I've reported in Gemini and it has fixed in DNN rc2 lately)
(However, the [LinkActions] does show the RSVP link)

I've seen the PokerDIY RSVP button but that is custom action button right? How do I make one of that? using this:?
%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON" Src="~/Admin/Containers/ActionButton.ascx" %>

If so, what should it be in ????:
dnn:ACTIONBUTTON runat="server" id="dnnACTIONBUTTON"  CommandName="?????????" DisplayIcon="True" DisplayLink="false" />

Thank in advance...

George

 
New Post 11/13/2008 10:16 PM
  Rodney Joyce
3064 posts
www.DNNDir.com
1st Level Poster




Re: Place RSVP Module Action as link or button on Event Detail.ascx  (N/A)

George, you will need the source if you are adding buttons to the ascx file - the code behind needs to compile the associated control.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker E...  Place RSVP Module Action as link or button on EventDetail.ascx
Top Threads Minimize
In the past 1 week, we have 22 new thread(s) and 50 new post(s)
The most popular thread has been Re: Sponsored Enhancement Proposal Estimate - StoryFeed Commenting
The most active thread has been accept Friend Request?
Print  

Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!

Smart-Thinker DNN Forums

© 2008 Smart-Thinker