PDA

View Full Version : [CLOSED] Store conversion is failing



michaeld
Sep 27, 2013, 9:46 AM
The following code never renders Addr.breakout.

Daniil
Sep 27, 2013, 1:53 PM
Hi @michaeld,

I added the control to the page this way.

<%@ Register Src="~/TestUC.ascx" TagPrefix="uc" TagName="TestUC" %>

<uc:TestUC runat="server" />

Then I got the JavaScript error and got rid of:

<ExtraParams>
<ext:Parameter Name="q" Value="#{Address}.getValue()" Mode="Raw" />
</ExtraParams>
because it was the reason of that error.

Looking at the Page Sources I see:

<script type="text/javascript">
var Addr = {
breakout: function (value, rec) {
rec.street = value.street;
rec.city = value.city;
rec.state = value.state;
}
};
</script>

So, it renders.

Please clarify how do you add the user control to the page?

michaeld
Sep 28, 2013, 12:03 AM
Darn it. I sent you the wrong sample. That was an earlier transformation when I was still simplifying it to the bare minimums. Darn me for trying to post you something quick before bed. Sleep dep, sorry.

I don't need to post the correct one because you're right, once I fixed the issue from the other thread, I was able to correct the issue with rendering the htmlbin in my test.

You can close this item and the other. Thanks for taking the moment.