01-07-2013 03:26 AM
I have a combo box on a web form. I needed some stuff to occur on changing the combo box value. I changed my mind a couple times about what kind of action I wanted performed on the onChange event, and I went back to a code snippet I had used earlier. Even though it was the same control, with the same code - building it then complained that the event of the same name already existed.
If you change the action from, say, a code snippet to a business rule, and then back again, it doesn't give you the option of re-using the settings that were in place before first changing the action to a business rule. And obviously it doesn't delete the code like I assumed it would.
What is the proper procedure here? Does "removing" the code snippet steps before changing the rule properly delete the code? Is there a way of properly deleting the code in the current situation?
I got around the build error by deleting the control, and recreating it with a different name. Would that have deleted associated code?
01-07-2013 11:06 PM
Try the following.
1. In App Architect goto Tools --> Build Settings and take note of the Build Path.
2. Exit App Architect.
3. Delete everything int eh BUild Path from (1)
4. Start App Architect and compile and deploy.
Hope this helps
01-28-2013 09:15 AM - edited 01-28-2013 09:23 AM
I have a similar problem like the OP. I deleted the OnLoad-Event of the SalesOrder-Details containing the Code Snippet (not C# Code Snippet). Then I removed some of the controls and now everytime I want to Build the snippet libraries I get the same error that some codesnippet could not refer to some control because it's missing.
I have learned today that you have to delete the code snippet steps before deleting the code snippet itself. If you forgot to do this, the only thing you can do is searching in your VFS (or LFS) for the files that hold the code and delete them or rename them with another extension (like *.bak or *.old or else)
And deleting the content of the build directory didn't work for me at all.
And I still don't know how you could reuse those codesnippets like the OP suggested.
01-28-2013 10:31 AM