Leaderboard

Rank Member Pts

Welcome to DNNDev University

DNNDev University LogoJust like a university without the grades and student loan. Think of it more as a merging of the student union and open classrooms. Ask questions, get answers, learn, teach, make friends and contacts.

Find Out More

 

Here's What's Happening on Campus

Angus Beare

Angus Bearecreated the topic: Help finding cause of XMP error

Hi, I have a site using several xmp templates. It works fine and under normal use and I cannot manually replicate the issue but the event log is full of these errors (see below). Clearly it's a date type mismatch but when does it happen? It doesn't …

17 hours ago

  • NewestOldest
  • Patrick RyanHi Angus. So, we have a SQL error here, stating that some value (string) being passed into what's likely a stored procedure (assuming) can't be converted or coerced into an integer. I'd expect it to throw a big ugly error on the screen, which from what I'm understanding is what you're saying you can't reproduce, or even trigger the error in the event viewer. I don't know the details, but I'm assuming your passing values to a stored procedure based on tokens, perhaps user based tokens? Flying bli ...5 hours ago
  • Angus BeareHi Patrick
    Thanks for your response. There are three templates on the page but only one of them is taking params:

    So I think it must be this one:

    http://dnndev.com/fiddle/fid/656.aspx

    I believe the issue is being caused by a bot. I cannot repeat the issue when logged in or not.

    For now I have tried adding this to the parameter: datatype="Int32"

    I'll leave it overnight and see if it's still ...4 hours ago
  • Patrick Ryan@Angus Beare Probably the one. I had an unexplainable and similar situation a while back with a client. It digs too deep into the weirdness spectrum. Try giving the parameter a default value of 0 after you've confirmed the origin of the error if you want to eliminate it. 4 hours ago
Anonymous

Anonymousanswered the question How to add detail records?

Hi David, The custom form control that Patrick mentions is our "Add Another" control which allows you to have a field, let's say, 3 times on a form, with an "add another" plus icon or link which lets you click to add multiple additions of that field. …
Patrick Ryan also answered the question Patrick Ryan also answered the question

3 days ago

Kelly W

Kelly Wearned the privilege Edit own topic or reply

Earned the Edit own topic or reply privilege!
Mike PalmerSteve Krantzman Starrand 117 others also earned the privilege Mike Palmerand 119 others also earned the privilege

3 days ago

Kelly W

Kelly Wcreated the topic: How to use <email> tag with field token</email>

Hey folks, I'm 3 month old XMP newbie from the VB world, liking it pretty good .. but, I'm not sure where I'm going wrong here. I have an "Add" form that uses a select command from a different table to retrieve an email address based on a url string …

3 days ago

  • NewestOldest
  • Patrick RyanHi Kelly! Welcome to the world of XMP! Actions are executed after a successful form submission, and values from field tokens must be stored in a control to be accessible after form submission. So all you need to do is add a hidden textbox to your form. So the reply doesn't eat my code example, I'll be a bit cryptic. [Textbox Id="CEmail" Datafield="CEmail" DataType="String" Visible="False" /]3 days ago
  • Kelly WI added the hidden field and boom, she worked perfectly! Wow .. okay, I assumed if it was hidden I couldn't access the value. That opens up a whole bunch of possibilities then. :)

    Wonderful, thanks Patrick3 days ago
  • Patrick Ryan@Kelly W - You're welcome. Keep in mind that rules apply when Visible="False". It will not be rendered in the DOM/HTML, so client-side manipulation of the control can't happen. Form actions are executed on the server, and from there your form action has access to all the controls, visible or not. It picks up the value from the datafield property. Same with submit commands. 3 days ago
charlie burns

charlie burnscreated the topic: HtmlInput

Hi I am having problem with the html Input tag. I am getting the following error Length cannot be less than zero. Parameter name: length Description: An unhandled exception occurred during the execution of the current web request. Please review the …

1 week ago

Patrick Ryan

Patrick Ryananswered the question LoadFeed has LoadingImageUrl - what about feeds called from JQuery/Ajax

I use the beforeSend method for showing a loader, but it's totally up to you. I'll throw in some fadeIn, and fadeOut for a little extra style. Preferred method? Not really. It's just important to understand how the request works and ensure you get a …

1 week ago

Patrick Ryan

Patrick Ryananswered the question RadioButton List format

Sounds tricky! I think you can get away with generating HTML for the label text, because this works: <ListItem Value="Something"> Label Text <img src="..." /> </ListItem> So in your ControlDataSource, you can construct html for the …

1 week ago

Patrick Ryan

Patrick Ryananswered the question Updating Sort Order via JS (coding example)

The easier, out of the box way I can think of doing this would to be to use something like jQuery Sortable ( https://jqueryui.com/sortable/ ), although there are plenty of libraries that can serve this purpose. I don't have a code example, but a search …

1 week ago

Peter Holland

Peter Holland

Does anyone know how the <~validate~> tag works with expressions now for custom html forms? Using the expression attribute as the legacy documentation suggests returns the error message: "Type 'System.Web.UI.LiteralControl' does not have a public property named 'expression'" Thanks in advance!

1 week ago

Patrick Ryan

Patrick Ryanvoted on secure feed

Hi Richard,


Use the ViewRoles property. From the docs...


ViewRoles: New to version 4.0. Takes a comma-delimited list of DNN security roles. If the user is logged in and is a member of one of the roles, or is a Host/SuperUser or Admin, the user will be able to see the feed. If the user is not logged-in or is not in one of the roles, he or she will not be able to see the feed. If ViewRoles is empty or is not specified, all users will be able ...

1 week ago