Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Domenico Neri 10 posts 30 karma points
    Jul 14, 2011 @ 19:36
    Domenico Neri
    0

    Custom Datatype question

    Hello,

    I'm using a custom datatype who retrieve data from a custom table using webcontrol wrapper and fill a dropdownlist. All is working when I select a value and save a page.

    When I navigate a page, I see the umbraco:field associate to my control as a ID of the table, but I want to show the value. How can I do it?

    I've passed hours looking for a solution, but without lucky.

    Thanks in advance.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Jul 15, 2011 @ 05:56
    Richard Soeteman
    0

    Hi,

    This is because the value is stored as a single string and it will only store the value beause you've assigned the value.You can solve this issue in several ways.

    1. Store the text value instead of the id value

    2. Store both Id and Text value in an xml format and use a macro to retrieve the text value.

    Cheers,

    Richard

  • Domenico Neri 10 posts 30 karma points
    Jul 15, 2011 @ 10:36
    Domenico Neri
    0

    Thanks for the answer Richard.

    I think the better ways is to retrieve the text from my table by the id stored in the document with a macro, but I don't know how to write a macro to do it.

    Can you help me doing it?

    Thanks.

     

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Jul 15, 2011 @ 14:14
    Richard Soeteman
    0

    Would love to, but kinda in a hurry. I suggest you checkout the free video's regarding macro's this will help you withy the concept and if you are a .net developer yous hould be fine.

    Cheers,

    Richard

  • Domenico Neri 10 posts 30 karma points
    Jul 15, 2011 @ 14:39
    Domenico Neri
    0

    I am looking the videos. Not only the free one. I've a subscription to Umbraco TV, but can't find what I'm looking for.

Please Sign in or register to post replies

Write your reply to:

Draft