locked
How to change ListActionPath RRS feed

  • Question

  • User188291263 posted

    Basically i have a problem, my menu contains links to all scattfold tables,with List.aspx.
    I have some table where i want user to go directly to Edit or Insert, and be able to add only one row.
    I tried different DynamicDataRoute,didnt help.

    In my current solution is  I just coy default Edit.aspx,to custom pages and rename it as List.aspx, which is working,if i have existing row.
    Maybe i can write in custom page validation,if record not exist then insert.

    But i think im on wrong route. Anyone have any idea?
    I dont want user to have more than  1 record, and i dont want to display List or DetailList.

    Please help


     

    Monday, August 25, 2008 10:37 PM

All replies

  • User1641955678 posted

    I think what you're calling the 'menu' is the default.aspx page, which by default links to the List action of the pages.  You should be able to customize this page to make it do what you want.  e.g. once you get a MetaTable object, you can call GetActionPath("Insert") to get the link to the Insert page.  By default, it uses MetaTable.ListActionPath, which is equivalent to GetActionPath("List").

    David

    Tuesday, August 26, 2008 11:37 AM