Spacer
s
menumenu
Spacer
Spacer
Login  |  Register search:  
Spacer
Spacer
Support Forum
Is there a way to copy and paste in the drop down box
Last Post 19 Sep 2006 06:59 PM by Steve Provencher. 3 Replies.
AddThis - Bookmarking and Sharing ButtonPrinter Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
AuthorMessages
charlie burns
New Member
New Member
Send Private Message
Posts:5


--
14 Sep 2006 11:22 AM  
Is there a way to copy and paste in the drop down box instead of doing then one by one as i have a few drop down boxes to make with 100s of entries or add my own list or edit the region or country list

it a great module the best i have used rock solid !!!

charlie
Steve Provencher
Moderator
Advanced Member
Advanced Member
Send Private Message
Posts:673


--
14 Sep 2006 12:25 PM  
If this were Form Master for DNN3/4 I would have a easy method you could use, but for DNN2 there is no Import/Export interface.

There is a way but you have to be good with SQL, and XML, and cannot be an existing form with Report Records Attached.

1. Fire up your Query tool
2. Find the ModuleID by selecting Manage Form from the Action menu and look in the url
3. Select FormDefinition from C5SLLC_Form where ModuleID = XXX
4. Make sure you get the entire definition from the Form to /Form
5. Load up the Form Definition in your favorite XML editor
6. Copy the Dropdownlist in question and paste into the document. Make sure you get the entire element from Control to /Control do not include any Validators you can add these after.
7. The ID attribute is made up of DateTime, modify this so if is unique in the document for the pasted Control
8. Change the Label Attribute as this can't be duplicates in DNN2.
9. Save this XML document as BaseForm.xml
10. Navigate to DesktopModules\Code5Systems_FormMaster\assets\xml
11. Rename BaseForm.xml to BaseForm_BAK.xml
12. Copy the Newly created BaseForm.xml to the folder in #10 above
13. Delete the record in #3 above from the database using Delete From C5SLLC_Form where ModuleID = XXX
14. Fire up your DNN site and navigate to the Form you are working on. Form Master will discover there is not a record in the database for it's moduleID and will load the BaseForm.xml from the Folder in #10 above.
15. Revert the BaseForm.xml to the Original one.
16. Settings for the form will not be preserved like the Name, the Send To action etc. and will have to be set manually.

Note: In DNN3/4 forms can be duplicated using Import/Export in DNN2 this method can be used.
charlie burns
New Member
New Member
Send Private Message
Posts:5


--
19 Sep 2006 06:36 PM  
Thanks a lot for that !

Sorry i have ver 4 not 2 (i posted it in the wrong section sorry)do i do it the same way or is there an easier way? as the way you sugested seem to be complex.

thank

Charlie

Steve Provencher
Moderator
Advanced Member
Advanced Member
Send Private Message
Posts:673


--
19 Sep 2006 06:59 PM  
1. Export the module using the Export item in the Module Action Menu
2. Open the FormMaster.Content.[MODULETITLE].xml file in /Portals/XXX with your favorite xml Editor.
3. Follow the XML editing instructions in the previous post
4. Import the module using the Import item in the Module Action Menu
You are not authorized to post a reply.

Active Forums 4.2

 

  
Spacer
SpacerfooterSpacer
Spacer
Update :: September 10, 2010
Spacer