Controlling edit and insert values in edit/insert template
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
-------
insertIn 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
Hi,
I think this article can help you to get started to develop web part: http://msdn.microsoft.com/en-us/library/ms367238.aspx
Hope it helps.
Xue-Mei ChangTechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
Xue-Mei Chang- Marked As Answer byXue-Mei Chang-MSFTMSFT, ModeratorFriday, November 13, 2009 1:41 AM
All Replies
Hi,
For your first requirement, you want to c4 not to be editable, you can do this using JavaScript as this thread, just adding codes in the “for” circulation, the code samples: if(tags[i].title ==”c4”) { tags[i].disabled=" disabled";}.
I think it is not possible to pass the filter parameter in dfwp1 to dfwp2 as a default value when inserting without coding.
Thanks for your understanding.
Xue-Mei Chang
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
Xue-Mei Chang- Hi,
Would you please let me know current status of your issue?
If you need further information, please feel free to let me know.
Have a nice day!
Xue-Mei ChangTechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
Xue-Mei Chang - Hi,
We gave up on using SPD.
Decided to develop web part for this highly controlled data entry task.
Can you point us to some 'fast' ressources for 'beginning web part development' ? Hi,
I think this article can help you to get started to develop web part: http://msdn.microsoft.com/en-us/library/ms367238.aspx
Hope it helps.
Xue-Mei ChangTechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
Xue-Mei Chang- Marked As Answer byXue-Mei Chang-MSFTMSFT, ModeratorFriday, November 13, 2009 1:41 AM

