CodeSmith Community
Your Code. Your Way. Faster!

Using the ManyToManyViewRelationship Control

Latest post 08-11-2008 1:40 AM by Xcalibur. 30 replies.
  • 07-20-2006 9:29 PM In reply to

    Re: Using the ManyToManyViewRelationship Control

    very nice... It is difficult for netTiers beginners follow up. can you provide complete solution files?
    • Post Points: 5
  • 07-25-2006 1:18 PM In reply to

    Re: Using the ManyToManyViewRelationship Control

    Hi Bobby and others.

    Thanks so much for your great idea and post using the ManyToManyViewRelationship control. I hope this isn't a dopey question that has an obvious answer. Is source code for the control available? Or is it part of your internal operation?

    I checked all over for the control, including the nettiers site and sourceforge. The replies you get seem to indicate that it is part of some package.

    If it is not available, do you have a good tutorial or place to get stared on how to create a custom control that has embedded tags, uses binding, and the things that you do in your control? I'd be very interested in a good starting place.

    And if it is a dopey question, I apologize. But do look forward to whatever the answer might be.

    Thanks for your post. It's a great concept that I look forward to adding to my toolchest.

    bruce

     

     

    • Post Points: 35
  • 07-26-2006 9:51 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 726
    • Points 16,910

    Re: Using the ManyToManyViewRelationship Control

    concordmfg,

    The source code is a part of the project solution whenever you run .netTiers templates and set 'GenerateWebAdmin' property to true. You would then find it under [Namespace].Web.Data.ManyToManyViewRelationship.cs

    Thanks

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 5
  • 08-02-2006 8:24 PM In reply to

    • bdiaz
    • Top 10 Contributor
    • Joined on 02-20-2006
    • Houston, TX
    • Posts 504
    • Points 15,290

    Re: Using the ManyToManyViewRelationship Control

    The tab control is a part of the ComponentArt.Web.UI control library.

    Better late than never, right?  Smile [:)]

    Bobby Diaz ------------------------------------------ Member of the .NetTiers team http://www.nettiers.com ------------------------------------------
    • Post Points: 35
  • 08-02-2006 10:36 PM In reply to

    • Alex
    • Top 10 Contributor
    • Joined on 07-26-2005
    • Australia, Canberra
    • Posts 526
    • Points 10,645

    Re: Using the ManyToManyViewRelationship Control

    Right, thanks Bobby, I've looked at prices and they are not so nice as controls :)
    Best regards,
    Alex.
    • Post Points: 5
  • 08-29-2006 10:43 AM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: Using the ManyToManyViewRelationship Control

    hello Bobby

    I have been trying to get this example to work today with no success.  I am using the strongly tyes data sets but i think i have replicated what you have.

    Is there anything you need to do different when using the strongly typed Data sources?

     

    Cheers

    David

    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 5
  • 08-29-2006 10:55 AM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: Using the ManyToManyViewRelationship Control

    Gonzo wrote:

    hello Bobby

    I have been trying to get this example to work today with no success.  I am using the strongly tyes data sets but i think i have replicated what you have.

    Is there anything you need to do different when using the strongly typed Data sources?

     

    Cheers

    David

     

    Got this sorted, everything working now.  Turns out it was visual studio acting up. 1 x reboot and everythings working now.

    David

    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 5
  • 09-01-2006 11:36 AM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: Using the ManyToManyViewRelationship Control

    Hi guys
    This may have nothing to do with the many to many example you posted bobby, but its one hell of a strange happening.

    I have my application setup similar to the example posted by Bdiaz, EVERYTHING is working as it should, except when updating, it IS updating the values, but it is adding "      " x amount of white space to the end of each value.

    I feel like my worlds comming to an end here - all day i have been staring at this screen, time for dinner i think.

    Any help would be appreciated.

    David
    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 5
  • 09-03-2006 7:20 AM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: Using the ManyToManyViewRelationship Control

    Noone got any ideas on why this is happening?
    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 35
  • 09-03-2006 11:44 AM In reply to

    • bdiaz
    • Top 10 Contributor
    • Joined on 02-20-2006
    • Houston, TX
    • Posts 504
    • Points 15,290

    Re: Using the ManyToManyViewRelationship Control

    Sorry about the long response time.  This is a long holiday weekend in the states and everyone, myself included, are probably out-of-town until Monday night.

    1. What data type are you using for the fields that are getting padded with extra spaces?  I typically use varchar and have not seen this happen before.

    2. Have you tried stepping through the code to see if the extra spaces are coming from the UI in the InputParameters?

    3. Have you verified that the extra spaces are in the database or are they only on the screen?

    Thanks.


    Bobby Diaz ------------------------------------------ Member of the .NetTiers team http://www.nettiers.com ------------------------------------------
    • Post Points: 35
  • 09-03-2006 2:20 PM In reply to

    • Gonzo
    • Top 75 Contributor
    • Joined on 07-21-2006
    • Glasgow, Scotland
    • Posts 57
    • Points 1,480

    Re: Using the ManyToManyViewRelationship Control

    Hey Bobby
    I sorted this out earlier on today, i use VarChars same as yourself, but after debugging everything and checked my DB it turns out the db for one table had values of nchar(10).

    Have no idea how that happened :D

    Davie
    David Lawton Hyperion Technologies Ltd (UK)
    • Post Points: 5
  • 11-13-2006 6:25 AM In reply to

    • jules_ce
    • Top 200 Contributor
    • Joined on 11-12-2004
    • Posts 20
    • Points 460

    Setting values for audit columns

    Hi guys,

    Thanks for this documentation, it's great stuff.

    I'm still unclear though, on how to set default values for the audit columns of the "link" table. I really just want to be able to set "AddedOn", "AddedBy", "UpdatedOn" and "UpdatedBy" values.

    Thanks very much!

    James
    • Post Points: 5
  • 11-13-2006 6:58 AM In reply to

    • jules_ce
    • Top 200 Contributor
    • Joined on 11-12-2004
    • Posts 20
    • Points 460

    Re: Setting values for audit columns

    Ah nevermind, I found the answer :-)

    For anyone who comes across this issue in the future, simply set the "InsertDateTimeNames" property of the datasource control to the name of the column you wish to have contain the date that the record was added. The other properties are "UpdateDateTimeNames", "InsertUserNames" and "UpdateUserNames".

    Cheers,

    James
    • Post Points: 35
  • 10-02-2007 1:14 PM In reply to

    • Don
    • Top 100 Contributor
    • Joined on 11-03-2006
    • Posts 48
    • Points 1,000

    Re: Setting values for audit columns

    Is there an automatic way to specify the user names for either the InsertUserNames or UpdateUserNames columns?  I get that you provide the columns, but how can I set the values to my web app user's GUID?

    Currently, I have the data for the username present in a session variable and I'd like to figure out how to fill this in to the value of the data source.

    • Post Points: 5
  • 08-10-2008 12:16 PM In reply to

    • Xcalibur
    • Not Ranked
    • Joined on 06-10-2008
    • Posts 5
    • Points 85

    Re: Using the ManyToManyViewRelationship Control

    What i dont understand is the GetByPersonIdFromPersonAddress select method.  I dont seem to have any select methods like this in my objects that i can see.  Where did this come from and how can i work out what i should be calling on my data sources?

    Furthermore, can the example in this thread be given using strongly typed datasources?  That would be nice although i suspect the answer to the first question might prevent this.

    cheers!

    • Post Points: 5
Page 2 of 3 (31 items) < Previous 1 2 3 Next > | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems