Ask a questionAsk a question
 

AnswerControlling edit and insert values in edit/insert template

  • Saturday, October 31, 2009 1:49 PMTRoennow Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

    We are working on a SharePoint web-app for a customer that insists on a 'no code solution' - that is 'everything must be created using SPD'.

    We are having trouble creating a UI (in SPD) that is advanced enough to satisfy the customers requirements.

    A generic presentation follows:

    1) DataFormWebPart (dfwp1) expose items from SharePoint list (L1)

    c1 c2 c3
    -------------------------
    1   a   .
    2   b   .
    3   c   .

    2) Web Part Connection connects dfwp1 (Send Row of Data to) with dfwp2 (Get Filter Values From) using value/link defined on c2 i dfpw1.

    3) DataFormWebPart (dfwp1) expose items from SharePoint list (L2) filtered on current selection in c2 - Show edit/delete/insert Link are active.

              c4 c5 ...
    ------------------------------------
    edit     a   m  .
    delete
    ------------------------------------
    edit     a   n   .
    delete
    -------
    insert

    In database terminology you would say that c4 is a foreign key pointing to c2

    What we want to achieve is:

    1) clicking edit: value in c4 must NOT be editable

    2) clicking insert: value i c4 must be equal to value in 'active' c2 cell and must NOT be editable.

    Any suggestions - please.

Answers

All Replies